diff options
Diffstat (limited to 'tests/alloc_extra.l')
-rw-r--r-- | tests/alloc_extra.l | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tests/alloc_extra.l b/tests/alloc_extra.l index 2c582a8..c974777 100644 --- a/tests/alloc_extra.l +++ b/tests/alloc_extra.l @@ -43,9 +43,6 @@ struct Check { /* Save char into junk array at next position. */ static void check_extra ( yyscan_t scanner ); -/* Special yyalloc */ -void *yyalloc ( size_t size, yyscan_t scanner ); - %} %option 8bit prefix="test" @@ -65,7 +62,7 @@ void *yyalloc ( size_t size, yyscan_t scanner ); int main(void); int -main () +main (void) { yyscan_t scanner; struct Check check; @@ -78,8 +75,8 @@ main () testset_in(stdin, scanner); testset_out(stdout, scanner); - /* Test to confirm that yyalloc was called from - * yylex_init_extra with the yyextra argument. + /* Test to confirm that testalloc was called from + * testlex_init_extra with the testextra argument. */ check_extra(scanner); @@ -89,7 +86,7 @@ main () return 0; } -void *yyalloc(size_t size, yyscan_t scanner) +void *testalloc(size_t size, yyscan_t scanner) { struct Check *check; check = testget_extra(scanner); |