function names can start with [0-9_] while symbols not

Bert Wesarg bert.wesarg at googlemail.com
Fri Aug 29 13:21:46 CEST 2008


On Fri, Aug 29, 2008 at 09:39, Bert Wesarg <bert.wesarg at googlemail.com> wrote:
> On Fri, Aug 29, 2008 at 09:06, Bert Wesarg <bert.wesarg at googlemail.com> wrote:
>> Hi,
>>
>> there is a small inconsistency for the syntax of function names. A
>> function name can be [A-Za-z0-9_]+. But symbol names can only be
>> [A-Za-z$][A-Za-z0-9_]+, So its impossible to call a function defined
>> as '_test', or '0hello'.
>>
>> I post a patch shortly, to support the symbol pattern for function
>> definitions too.
> BTW: there is the same buffer overflow in matchesActionRoutine() we
> already fixed in the yylex().
Oops, the previously buffer overflow was in readCheckMacroString(), sorry.

>
>>
>> Bert
>>
>


More information about the Develop mailing list