On Tue, 2 Dec 2008 06:03:36 +0100 (CET) ioguix@free.fr wrote:
One question: to keep the code readable, I used these macros to define the values: #define AC_PARENTHESIS 1 #define AC_CBRACKET 2 #define AC_SBRACKET 4 #define AC_SQUOTE 8 #define AC_DQUOTE 16
What is your policy about that ? Is it ok or do you prefer to put values directly in the code ?
It would be best if you used an (anonymous) enum instead of macros IMO.
Regards, Nick