|
From: | Bruce Lilly |
Subject: | Re: flex and more namespace clashes |
Date: | Mon, 10 Mar 2003 16:11:08 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 |
John wrote:
If a prefix of m, c, or re is used, flex generates namespace clashes with the standard library functions malloc, calloc, or realloc.Can't you just use m_, c_, or re_ for the prefix?
Well I could use qwertyuiop, but I chose to use m, which is a contraction of what I had been using. That's when yyalloc bit me. The yy replacement affects the parser as well as the lexical analyzer, and I want the parser to be called as mparse rather than m_parse.
[Prev in Thread] | Current Thread | [Next in Thread] |