Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Compiler Index versus ID

(1/2) > >>

MortenMacFly:
Dear all,
after a break I came back and wow! Many amazing changes in C::B. One thing is the addition of the D compiler... great!
Hence I've got a question: I have added the G77 and GCC 4.10 compiler to C::B by simply adjusting a copy of the GCC compiler. Quite some of my projects depend on these compilers. Now we've had that discussion already but I would like to ask again: Isn't it possible to use a compiler ID and not an index for the compiler setup in the project files? It's kind of annoying to use a search & replace with the project files which I've done quite some time now. This doesn't fit to all the features C::B offers.
I believe this is for sure already in the pipeline for the compiler framework re-design but I'd like to vote for doing this small (?) change now: I am thinking of simply replacing the index (e.g. "1") with the string like the compiler is represented in the compiler setup (e.g. "GNU GCC setup". This would not change the file format of the project files in general but would work (imho) much better.
...or is this really a major change?
Morten.

killerbot:
I already posted a patch for this some time ago, which seperated internal compilers from user compilers. So internal and external compilers can't fight any longer. But indeed we need to go one step further.
I'll try to update the patch this evening (bringing it back in sync with todays revision).

The only conflict that can remain is when you remove a user compiler and add another one, then they all shift one up, so their (ID/index) changes.

This is the 'outdated' :-( patch :
http://sourceforge.net/tracker/index.php?func=detail&aid=1389603&group_id=126998&atid=707418
And this is what I have implemented in it.
http://forums.codeblocks.org/index.php?topic=1741.0


Cheers,
Lieven

MortenMacFly:

--- Quote from: killerbot on February 06, 2006, 10:23:17 am ---I already posted a patch for this some time ago, [...]

--- End quote ---
Sounds interesting to me. I'll have a look at it later - maybe I can get it to work with SVN-HEAD...
Morten.

killerbot:
enjoy it, any ideas let me know. During my update to head, I will go all the way now, discussed it with Yiannis. So we are going for unique ID now, not even a number anymore ....
I hope to have it ready as soon as possible, will divide my time between CB and helping out my girlfriend with Mambo.   8)

takeshimiya:
If this makes it, can the lexers be indexed by a string instead of an ID also?

Navigation

[0] Message Index

[#] Next page

Go to full version