diff options
author | Will Estes <wlestes@users.sourceforge.net> | 2012-03-02 22:15:29 +0000 |
---|---|---|
committer | Will Estes <wlestes@users.sourceforge.net> | 2012-03-02 22:15:29 +0000 |
commit | f7b92db0377e43bede5ffbc2ce253eda5188a960 (patch) | |
tree | 3bfbe11ebf578a7d1c28989067c7a5a42f2c343d /tests | |
parent | c1e163d0f52a69ae1b60e245cfce148a9599b2d5 (diff) |
wrap yy_fatal_error calls appropriately
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-reject/scanner.l | 6 | ||||
-rw-r--r-- | tests/test-table-opts/scanner.l | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/test-reject/scanner.l b/tests/test-reject/scanner.l index 25dab60..5e5208e 100644 --- a/tests/test-reject/scanner.l +++ b/tests/test-reject/scanner.l @@ -52,17 +52,17 @@ int main ( int argc, char** argv ) #ifdef TEST_HAS_TABLES_EXTERNAL if((fp = fopen(argv[1],"r"))== NULL) - yy_fatal_error("could not open tables file for reading" M4_YY_CALL_LAST_ARG); + YY_FATAL_ERROR("could not open tables file for reading"); if(yytables_fload(fp M4_YY_CALL_LAST_ARG) < 0) - yy_fatal_error("yytables_fload returned < 0" M4_YY_CALL_LAST_ARG); + YY_FATAL_ERROR("yytables_fload returned < 0"); if(M4_YY_TABLES_VERIFY) exit(0); #endif if(argc > 2){ if((fp = fopen(argv[2],"r"))== NULL) - yy_fatal_error("could not open input file for reading" M4_YY_CALL_LAST_ARG); + YY_FATAL_ERROR("could not open input file for reading"); yyin = fp; } while(yylex(M4_YY_CALL_ONLY_ARG) != 0) diff --git a/tests/test-table-opts/scanner.l b/tests/test-table-opts/scanner.l index a9a87c6..3ad6199 100644 --- a/tests/test-table-opts/scanner.l +++ b/tests/test-table-opts/scanner.l @@ -54,17 +54,17 @@ int main ( int argc, char** argv ) #ifdef TEST_HAS_TABLES_EXTERNAL if((fp = fopen(argv[1],"r"))== NULL) - yy_fatal_error("could not open tables file for reading" M4_YY_CALL_LAST_ARG); + YY_FATAL_ERROR("could not open tables file for reading"); if(yytables_fload(fp M4_YY_CALL_LAST_ARG) < 0) - yy_fatal_error("yytables_fload returned < 0" M4_YY_CALL_LAST_ARG); + YY_FATAL_ERROR("yytables_fload returned < 0"); if(M4_YY_TABLES_VERIFY) exit(0); #endif if(argc > 2){ if((fp = fopen(argv[2],"r"))== NULL) - yy_fatal_error("could not open input file for reading" M4_YY_CALL_LAST_ARG); + YY_FATAL_ERROR("could not open input file for reading"); yyin = fp; } while(yylex(M4_YY_CALL_ONLY_ARG) != 0) |