Changeset 3298 for palm/trunk/UTIL/chemistry/gasphase_preproc/kpp/src
- Timestamp:
- Oct 2, 2018 12:21:11 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/UTIL/chemistry/gasphase_preproc/kpp/src/lex.yy.c
r2696 r3298 10 10 #define YY_FLEX_MAJOR_VERSION 2 11 11 #define YY_FLEX_MINOR_VERSION 5 12 #define YY_FLEX_SUBMINOR_VERSION 3 712 #define YY_FLEX_SUBMINOR_VERSION 35 13 13 #if YY_FLEX_SUBMINOR_VERSION > 0 14 14 #define FLEX_BETA … … 143 143 /* Size of default input buffer. */ 144 144 #ifndef YY_BUF_SIZE 145 #ifdef __ia64__ 146 /* On IA-64, the buffer size is 16k, not 8k. 147 * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. 148 * Ditto for the __ia64__ case accordingly. 149 */ 150 #define YY_BUF_SIZE 32768 151 #else 145 152 #define YY_BUF_SIZE 16384 153 #endif /* __ia64__ */ 146 154 #endif 147 155 … … 155 163 #endif 156 164 157 #ifndef YY_TYPEDEF_YY_SIZE_T 158 #define YY_TYPEDEF_YY_SIZE_T 159 typedef size_t yy_size_t; 160 #endif 161 162 extern yy_size_t yyleng; 165 extern int yyleng; 163 166 164 167 extern FILE *yyin, *yyout; … … 186 189 #define unput(c) yyunput( c, (yytext_ptr) ) 187 190 191 #ifndef YY_TYPEDEF_YY_SIZE_T 192 #define YY_TYPEDEF_YY_SIZE_T 193 typedef size_t yy_size_t; 194 #endif 195 188 196 #ifndef YY_STRUCT_YY_BUFFER_STATE 189 197 #define YY_STRUCT_YY_BUFFER_STATE … … 203 211 * characters. 204 212 */ 205 yy_size_t yy_n_chars;213 int yy_n_chars; 206 214 207 215 /* Whether we "own" the buffer - i.e., we know we created it, … … 273 281 /* yy_hold_char holds the character lost when yytext is formed. */ 274 282 static char yy_hold_char; 275 static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */276 yy_size_t yyleng;283 static int yy_n_chars; /* number of characters read into yy_ch_buf */ 284 int yyleng; 277 285 278 286 /* Points to current character in buffer. */ … … 302 310 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); 303 311 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); 304 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes, yy_size_t len );312 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); 305 313 306 314 void *yyalloc (yy_size_t ); … … 801 809 return (x); \ 802 810 } 803 #line 8 04"lex.yy.c"811 #line 812 "lex.yy.c" 804 812 805 813 #define INITIAL 0 … … 864 872 void yyset_out (FILE * out_str ); 865 873 866 yy_size_t yyget_leng (void );874 int yyget_leng (void ); 867 875 868 876 char *yyget_text (void ); … … 906 914 /* Amount of stuff to slurp up with each read. */ 907 915 #ifndef YY_READ_BUF_SIZE 916 #ifdef __ia64__ 917 /* On IA-64, the buffer size is 16k, not 8k */ 918 #define YY_READ_BUF_SIZE 16384 919 #else 908 920 #define YY_READ_BUF_SIZE 8192 921 #endif /* __ia64__ */ 909 922 #endif 910 923 … … 1009 1022 #line 120 "scan.l" 1010 1023 1011 #line 10 12"lex.yy.c"1024 #line 1025 "lex.yy.c" 1012 1025 1013 1026 if ( !(yy_init) ) … … 1526 1539 ECHO; 1527 1540 YY_BREAK 1528 #line 15 29"lex.yy.c"1541 #line 1542 "lex.yy.c" 1529 1542 1530 1543 case YY_END_OF_BUFFER: … … 1710 1723 else 1711 1724 { 1712 yy_size_t num_to_read =1725 int num_to_read = 1713 1726 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; 1714 1727 … … 1717 1730 1718 1731 /* just a shorter name for the current buffer */ 1719 YY_BUFFER_STATE b = YY_CURRENT_BUFFER _LVALUE;1732 YY_BUFFER_STATE b = YY_CURRENT_BUFFER; 1720 1733 1721 1734 int yy_c_buf_p_offset = … … 1724 1737 if ( b->yy_is_our_buffer ) 1725 1738 { 1726 yy_size_t new_size = b->yy_buf_size * 2;1739 int new_size = b->yy_buf_size * 2; 1727 1740 1728 1741 if ( new_size <= 0 ) … … 1755 1768 /* Read in more data. */ 1756 1769 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), 1757 (yy_n_chars), num_to_read );1770 (yy_n_chars), (size_t) num_to_read ); 1758 1771 1759 1772 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); … … 1850 1863 yy_is_jam = (yy_current_state == 198); 1851 1864 1852 1865 return yy_is_jam ? 0 : yy_current_state; 1853 1866 } 1854 1867 … … 1865 1878 { /* need to shift things up to make room */ 1866 1879 /* +2 for EOB chars. */ 1867 register yy_size_t number_to_move = (yy_n_chars) + 2;1880 register int number_to_move = (yy_n_chars) + 2; 1868 1881 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ 1869 1882 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; … … 1914 1927 else 1915 1928 { /* need more input */ 1916 yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);1929 int offset = (yy_c_buf_p) - (yytext_ptr); 1917 1930 ++(yy_c_buf_p); 1918 1931 … … 2074 2087 } 2075 2088 2089 #ifndef __cplusplus 2090 extern int isatty (int ); 2091 #endif /* __cplusplus */ 2092 2076 2093 /* Initializes or reinitializes a buffer. 2077 2094 * This function is sometimes called more than once on the same buffer, … … 2186 2203 static void yyensure_buffer_stack (void) 2187 2204 { 2188 yy_size_t num_to_alloc;2205 int num_to_alloc; 2189 2206 2190 2207 if (!(yy_buffer_stack)) { … … 2283 2300 * @return the newly allocated buffer state object. 2284 2301 */ 2285 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )2302 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) 2286 2303 { 2287 2304 YY_BUFFER_STATE b; … … 2370 2387 * 2371 2388 */ 2372 yy_size_t yyget_leng (void)2389 int yyget_leng (void) 2373 2390 { 2374 2391 return yyleng;
Note: See TracChangeset
for help on using the changeset viewer.