This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][libcpp] Macros for unique named functions / identifiers


On 04/13/2010 10:05 PM, Tom Tromey wrote:
Rahul>  CANON_BASE_FILE is analogous to BASE_FILE, but not a string
Rahul>  constant and only preserves characters valid as an identifiers.

I don't fully understand the need for this.

You could require users of your macro to #define CANON_BASE_FILE
themselves.

Or add this in the Makefile:


-DCANON_BASE_FILE=`echo $< | tr -c [a-z0-9] _`.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]