Changeset a3f0fea in git for Singular/scanner.cc
- Timestamp:
- Jan 24, 2019, 1:08:04 PM (5 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 756676ef1fcf4cff300fb1607a6d21293b253245
- Parents:
- 25fe907e3f7e0d124b25f97832c0b71e96c515e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/scanner.cc
r25fe907 ra3f0fea 99 99 typedef struct yy_buffer_state *YY_BUFFER_STATE; 100 100 101 externint yyleng;102 externFILE *yyin, *yyout;101 EXTERN_VAR int yyleng; 102 EXTERN_VAR FILE *yyin, *yyout; 103 103 104 104 #define EOB_ACT_CONTINUE_SCAN 0 … … 199 199 }; 200 200 201 staticYY_BUFFER_STATE yy_current_buffer = 0;201 STATIC_VAR YY_BUFFER_STATE yy_current_buffer = 0; 202 202 203 203 /* We provide macros for accessing buffer states in case in the … … 209 209 210 210 /* yy_hold_char holds the character lost when yytext is formed. */ 211 staticchar yy_hold_char;212 213 staticint yy_n_chars; /* number of characters read into yy_ch_buf */214 215 216 int yyleng;211 STATIC_VAR char yy_hold_char; 212 213 STATIC_VAR int yy_n_chars; /* number of characters read into yy_ch_buf */ 214 215 216 VAR int yyleng; 217 217 218 218 /* Points to current character in buffer. */ 219 staticchar *yy_c_buf_p = (char *) 0;220 staticint yy_init = 1; /* whether we need to initialize */221 staticint yy_start = 0; /* start state number */219 STATIC_VAR char *yy_c_buf_p = (char *) 0; 220 STATIC_VAR int yy_init = 1; /* whether we need to initialize */ 221 STATIC_VAR int yy_start = 0; /* start state number */ 222 222 223 223 /* Flag which is used to allow yywrap()'s to do buffer switches 224 224 * instead of setting up a fresh yyin. A bit of a hack ... 225 225 */ 226 staticint yy_did_buffer_switch_on_eof;226 STATIC_VAR int yy_did_buffer_switch_on_eof; 227 227 228 228 void yyrestart YY_PROTO(( FILE *input_file )); … … 263 263 264 264 typedef unsigned char YY_CHAR; 265 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;265 VAR FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; 266 266 typedef int yy_state_type; 267 externchar *yytext;267 EXTERN_VAR char *yytext; 268 268 #define yytext_ptr yytext 269 269 … … 543 543 } ; 544 544 545 staticyy_state_type yy_last_accepting_state;546 staticchar *yy_last_accepting_cpos;545 STATIC_VAR yy_state_type yy_last_accepting_state; 546 STATIC_VAR char *yy_last_accepting_cpos; 547 547 548 548 /* The intent behind this definition is that it'll catch … … 550 550 */ 551 551 #define REJECT reject_used_but_not_detected 552 staticint yy_more_flag = 0;553 staticint yy_more_len = 0;552 STATIC_VAR int yy_more_flag = 0; 553 STATIC_VAR int yy_more_len = 0; 554 554 #define yymore() (yy_more_flag = 1) 555 555 #define YY_MORE_ADJ yy_more_len 556 556 #define YY_RESTORE_YY_MORE_OFFSET 557 char *yytext;557 VAR char *yytext; 558 558 #line 1 "scanner.l" 559 559 #define INITIAL 0 … … 579 579 #ifndef NEW_FLEX 580 580 #endif /* NEW_LEX */ 581 int blocknest = 0;582 externchar * yytext;581 VAR int blocknest = 0; 582 EXTERN_VAR char * yytext; 583 583 //extern unsigned char * yytext; 584 externint yyleng;585 externint inerror;584 EXTERN_VAR int yyleng; 585 EXTERN_VAR int inerror; 586 586 587 587 #ifndef SING_NDEBUG … … 709 709 710 710 #if YY_STACK_USED 711 staticint yy_start_stack_ptr = 0;712 staticint yy_start_stack_depth = 0;713 staticint *yy_start_stack = 0;711 STATIC_VAR int yy_start_stack_ptr = 0; 712 STATIC_VAR int yy_start_stack_depth = 0; 713 STATIC_VAR int *yy_start_stack = 0; 714 714 #ifndef YY_NO_PUSH_STATE 715 715 static void yy_push_state YY_PROTO(( int new_state )); … … 1768 1768 static void yyunput( c, yy_bp ) 1769 1769 int c; 1770 register char *yy_bp;1770 VAR register char *yy_bp; 1771 1771 #endif 1772 1772 { … … 1943 1943 YY_BUFFER_STATE yy_create_buffer( file, size ) 1944 1944 FILE *file; 1945 int size;1945 VAR int size; 1946 1946 #endif 1947 1947 { … … 2000 2000 void yy_init_buffer( b, file ) 2001 2001 YY_BUFFER_STATE b; 2002 FILE *file;2002 VAR FILE *file; 2003 2003 #endif 2004 2004 … … 2058 2058 YY_BUFFER_STATE yy_scan_buffer( base, size ) 2059 2059 char *base; 2060 yy_size_t size;2060 VAR yy_size_t size; 2061 2061 #endif 2062 2062 { … … 2113 2113 YY_BUFFER_STATE yy_scan_bytes( bytes, len ) 2114 2114 yyconst char *bytes; 2115 int len;2115 VAR int len; 2116 2116 #endif 2117 2117 { … … 2240 2240 char *s1; 2241 2241 yyconst char *s2; 2242 int n;2242 VAR int n; 2243 2243 #endif 2244 2244 { … … 2281 2281 static void *yy_flex_realloc( ptr, size ) 2282 2282 void *ptr; 2283 yy_size_t size;2283 VAR yy_size_t size; 2284 2284 #endif 2285 2285 {
Note: See TracChangeset
for help on using the changeset viewer.