[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
|
RE: [cdt-dev] Compiler supports keyword "__restrict__" instead ofkeyword "restrict"
|
This should work without the modification, the parser is
configured with an extra macro definition:
-D__restrict__=restrict, see
GNUScannerExtensionConfiguration.java
Markus.
Hi All,
The file org.eclipse.cdt.core.parser.Keywords.java
contains an entry for the keyword "restrict". This keyword is supported by
compilers which implement the c99 standard. To use a compiler which does not
support the c99 standard, but supports GNU extensions to C, the C programmer
has to use the keyword "__restrict__" or "__restrict" to achieve the same
functionality.
Currently, we have modified this java file to change
the value of the "restrict" keyword to "__restrict__".
Is there any way
apart from modifying this Keywords.java file to let CDT know that the compiler
supports "__restrict__" rather than
"restrict"?
Thanks
Abeer
Tensilica
India