Typing in the following code produces an error reported by Eclipse (by CDT?).
'Invalid decimal format encountered'
int main()
{
int a = 0b00001111; // <- this line
while(1)
{
}
return 0;
}
It seems that the JIT-Syntax-Checker provided by CDT(?) doesnt recognize the 0b-Sequence, due the unconformity to the C-Standard of the latter.
Maybe there is a way for the AVR-Eclipse Plugin to let the CDT provide this sequence. It would be a nice solution, because the 0b- "enhancement" is an AVR-GCC related feature and would be inappropriate in standard-C projects (which can reside next to AVR projects within one workspace).
Logged In: YES
user_id=1542541
Originator: NO
Hi Simon,
this is probably out of scope for the plugin. I have looked at the CDT source to find some extension point to implement this, but so far haven't found anything (which does not mean it is impossible - but it is at least not obvious)
I have placed your request on the eclipse.tools.cdt newsgroup (http://www.eclipse.org/newsportal/article.php?id=17092&group=eclipse.tools.cdt#17092)
Maybe I can get some pointers from there.
brgds,
Thomas
I have filed a Bug report on this on Eclipse Bugzilla (incl. a patch to fix the problem).
https://bugs.eclipse.org/bugs/show_bug.cgi?id=249698
Now it is up to the CDT maintainers to accept and incorporate the patch...
I am closing this Feature Request for now.
Thomas
Hello. I checked your CDT bug report and it was accepted and added, so this should be fixable now?