Sat Aug 27 18:36:03 2011 UTC ()
Mark yy_fatal_error as noreturn if supported by the compiler.


(joerg)
diff -r1.5 -r1.6 src/external/bsd/flex/dist/flex.skl

cvs diff -r1.5 -r1.6 src/external/bsd/flex/dist/Attic/flex.skl (expand / switch to unified diff)

--- src/external/bsd/flex/dist/Attic/flex.skl 2009/12/06 09:16:16 1.5
+++ src/external/bsd/flex/dist/Attic/flex.skl 2011/08/27 18:36:03 1.6
@@ -726,26 +726,29 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], @@ -726,26 +726,29 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]],
726[[ 726[[
727#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 727#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
728]]) 728]])
729 729
730%% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here 730%% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here
731 731
732%if-c-only Standard (non-C++) definition 732%if-c-only Standard (non-C++) definition
733 733
734m4_ifdef( [[M4_YY_NOT_IN_HEADER]], 734m4_ifdef( [[M4_YY_NOT_IN_HEADER]],
735[[ 735[[
736static yy_state_type yy_get_previous_state M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG ); 736static yy_state_type yy_get_previous_state M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );
737static yy_state_type yy_try_NUL_trans M4_YY_PARAMS( yy_state_type current_state M4_YY_PROTO_LAST_ARG); 737static yy_state_type yy_try_NUL_trans M4_YY_PARAMS( yy_state_type current_state M4_YY_PROTO_LAST_ARG);
738static int yy_get_next_buffer M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG ); 738static int yy_get_next_buffer M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );
 739#if defined(__GNUC__) && __GNUC__ >= 3
 740__attribute__((__noreturn__))
 741#endif
739static void yy_fatal_error M4_YY_PARAMS( yyconst char msg[] M4_YY_PROTO_LAST_ARG ); 742static void yy_fatal_error M4_YY_PARAMS( yyconst char msg[] M4_YY_PROTO_LAST_ARG );
740]]) 743]])
741 744
742%endif 745%endif
743 746
744m4_ifdef( [[M4_YY_NOT_IN_HEADER]], 747m4_ifdef( [[M4_YY_NOT_IN_HEADER]],
745[[ 748[[
746/* Done after the current pattern has been matched and before the 749/* Done after the current pattern has been matched and before the
747 * corresponding action - sets up yytext. 750 * corresponding action - sets up yytext.
748 */ 751 */
749#define YY_DO_BEFORE_ACTION \ 752#define YY_DO_BEFORE_ACTION \
750 YY_G(yytext_ptr) = yy_bp; \ 753 YY_G(yytext_ptr) = yy_bp; \
751%% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ 754%% [2.0] code to fiddle yytext and yyleng for yymore() goes here \