[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
More 2.5.11 comments
From: |
Bruce Lilly |
Subject: |
More 2.5.11 comments |
Date: |
Sun, 11 Aug 2002 14:13:31 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 |
Additional comments:
1. gcc still bitches about the mismatch between %d and the long int
yy_rule_linenum. YY_rule_linenum should probably be an unsigned
integral type; then the printf format could be %lu and the
yy_rule_linenum arg in the printf statement could be cast to
unsigned long.
2. yylex_init always returns 0, even if yyalloc failed due to
lack of available memory. Moreover, in that case,
yy_init_globals() which is called by yylex_init will almost
certainly cause a segmentation fault. A possible fix:
if ((*ptr_yy_globals = (yyscan_t) yyalloc ( sizeof( struct yyguts_t ),
NULL )) == NULL)
return 1;
- More 2.5.11 comments,
Bruce Lilly <=