ada vs identical flex

Andrew Cagney cagney@gnu.org
Thu Oct 7 23:17:00 GMT 2004


I'm comparing the generated ada-lex.c output from FLEX 2.5.2.  Yes, 
that's comparing the output from the same "identical" FLEX - one is 
found on NetBSD/PPC 1.6.2, and the other on FC3.

For yyrealloc, I'm finding that some cases are wrapped in #ifndef 
YY_USES_REJECT, while others are not vis:

                 NBSD     FC3
declaration     yes      no
definition      yes      no
reference       yes      yes
ada_flex_use    no       no

On NetBSD, since ada_flex_use tries to refer to a function wrapped in 
#ifndef YY_USE_REJECT (i.e., #ifdef'ed out) the build barfs.

On the other hand on FC3, the declaration / definition are always 
visible and the build succeeds.

Ideas?
Andrew




More information about the Gdb mailing list