1 #line 2 "macro.lex.yy.c" 3 #line 4 "macro.lex.yy.c" 5 #define YY_INT_ALIGNED short int 10 #define YY_FLEX_MAJOR_VERSION 2 11 #define YY_FLEX_MINOR_VERSION 5 12 #define YY_FLEX_SUBMINOR_VERSION 37 13 #if YY_FLEX_SUBMINOR_VERSION > 0 34 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 39 #ifndef __STDC_LIMIT_MACROS 40 #define __STDC_LIMIT_MACROS 1 60 #define INT8_MIN (-128) 63 #define INT16_MIN (-32767-1) 66 #define INT32_MIN (-2147483647-1) 69 #define INT8_MAX (127) 72 #define INT16_MAX (32767) 75 #define INT32_MAX (2147483647) 78 #define UINT8_MAX (255U) 81 #define UINT16_MAX (65535U) 84 #define UINT32_MAX (4294967295U) 99 #if defined (__STDC__) 107 #define yyconst const 120 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) 126 #define BEGIN (yy_start) = 1 + 2 * 132 #define YY_START (((yy_start) - 1) / 2) 133 #define YYSTATE YY_START 136 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) 139 #define YY_NEW_FILE yyrestart(yyin ) 141 #define YY_END_OF_BUFFER_CHAR 0 145 #define YY_BUF_SIZE 16384 150 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) 152 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 153 #define YY_TYPEDEF_YY_BUFFER_STATE 157 #ifndef YY_TYPEDEF_YY_SIZE_T 158 #define YY_TYPEDEF_YY_SIZE_T 166 #define EOB_ACT_CONTINUE_SCAN 0 167 #define EOB_ACT_END_OF_FILE 1 168 #define EOB_ACT_LAST_MATCH 2 170 #define YY_LESS_LINENO(n) 177 int yyless_macro_arg = (n); \ 178 YY_LESS_LINENO(yyless_macro_arg);\ 179 *yy_cp = (yy_hold_char); \ 180 YY_RESTORE_YY_MORE_OFFSET \ 181 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ 182 YY_DO_BEFORE_ACTION; \ 186 #define unput(c) yyunput( c, (yytext_ptr) ) 188 #ifndef YY_STRUCT_YY_BUFFER_STATE 189 #define YY_STRUCT_YY_BUFFER_STATE 236 #define YY_BUFFER_NEW 0 237 #define YY_BUFFER_NORMAL 1 248 #define YY_BUFFER_EOF_PENDING 2 264 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ 265 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ 271 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] 300 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) 310 #define yy_new_buffer yy_create_buffer 312 #define yy_set_interactive(is_interactive) \ 314 if ( ! YY_CURRENT_BUFFER ){ \ 315 yyensure_buffer_stack (); \ 316 YY_CURRENT_BUFFER_LVALUE = \ 317 yy_create_buffer(yyin,YY_BUF_SIZE ); \ 319 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ 322 #define yy_set_bol(at_bol) \ 324 if ( ! YY_CURRENT_BUFFER ){\ 325 yyensure_buffer_stack (); \ 326 YY_CURRENT_BUFFER_LVALUE = \ 327 yy_create_buffer(yyin,YY_BUF_SIZE ); \ 329 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ 332 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 347 #define yytext_ptr yytext 357 #define YY_DO_BEFORE_ACTION \ 358 (yytext_ptr) = yy_bp; \ 359 yyleng = (size_t) (yy_cp - yy_bp); \ 360 (yy_hold_char) = *yy_cp; \ 362 (yy_c_buf_p) = yy_cp; 364 #define YY_NUM_RULES 14 365 #define YY_END_OF_BUFFER 15 375 0, 0, 0, 0, 15, 13, 14, 12, 5, 6,
376 13, 1, 1, 3, 4, 10, 8, 9, 10, 7,
382 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
383 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
384 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
385 1, 3, 1, 4, 1, 1, 1, 1, 5, 1,
386 1, 1, 6, 1, 6, 1, 1, 7, 8, 8,
387 8, 8, 8, 8, 8, 8, 8, 1, 1, 1,
388 1, 1, 1, 1, 9, 9, 9, 9, 9, 9,
389 9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
390 9, 9, 9, 9, 9, 9, 9, 10, 9, 9,
391 1, 11, 1, 1, 12, 13, 14, 14, 14, 14,
393 14, 14, 9, 9, 9, 9, 9, 9, 9, 9,
394 9, 9, 9, 9, 9, 9, 9, 9, 9, 10,
395 9, 9, 1, 1, 1, 1, 1, 1, 1, 1,
396 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
397 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
398 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
399 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
400 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
401 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
402 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
404 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
405 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
406 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
407 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
408 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
414 1, 2, 1, 1, 1, 1, 3, 3, 4, 5,
420 0, 0, 13, 25, 25, 62, 62, 62, 62, 62,
421 12, 13, 14, 0, 62, 62, 62, 62, 0, 62,
422 6, 24, 0, 0, 62, 0, 62, 38, 42, 45,
428 27, 1, 28, 28, 27, 27, 27, 27, 27, 27,
429 27, 29, 27, 30, 27, 27, 27, 27, 31, 27,
430 29, 27, 32, 30, 27, 32, 0, 27, 27, 27,
436 6, 7, 8, 9, 10, 11, 12, 13, 14, 14,
437 6, 6, 15, 14, 7, 23, 17, 18, 21, 22,
438 22, 22, 23, 19, 27, 20, 7, 27, 17, 18,
439 22, 22, 27, 27, 27, 19, 27, 20, 16, 16,
440 16, 16, 16, 16, 22, 27, 22, 24, 24, 24,
441 24, 25, 27, 25, 25, 25, 25, 26, 27, 27,
442 26, 5, 27, 27, 27, 27, 27, 27, 27, 27,
443 27, 27, 27, 27, 27, 27
448 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 3, 21, 3, 3, 11, 11,
450 13, 13, 12, 3, 5, 3, 4, 0, 4, 4,
451 22, 22, 0, 0, 0, 4, 0, 4, 28, 28,
452 28, 28, 28, 28, 29, 0, 29, 30, 30, 30,
453 30, 31, 0, 31, 31, 31, 31, 32, 0, 0,
454 32, 27, 27, 27, 27, 27, 27, 27, 27, 27,
455 27, 27, 27, 27, 27, 27
467 #define REJECT reject_used_but_not_detected 468 #define yymore() yymore_used_but_not_detected 469 #define YY_MORE_ADJ 0 470 #define YY_RESTORE_YY_MORE_OFFSET 472 #line 1 "macro.lex.l" 473 #line 2 "macro.lex.l" 494 #define YY_NO_INPUT 1 496 #line 26 "macro.lex.l" 501 #define YY_NO_UNISTD_H 525 #define YY_INPUT(buf,result,max_size)\ 526 if ((result = *lex_data->macroptr ? 1 : 0)) buf[0] = *lex_data->macroptr++; 528 #line 529 "macro.lex.yy.c" 533 #ifndef YY_NO_UNISTD_H 541 #ifndef YY_EXTRA_TYPE 542 #define YY_EXTRA_TYPE void * 580 #ifndef YY_SKIP_YYWRAP 582 extern "C" int yywrap (
void );
584 extern int yywrap (
void );
589 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
592 #ifdef YY_NEED_STRLEN 593 static int yy_flex_strlen (
yyconst char * );
599 static int yyinput (
void );
601 static int input (
void );
607 #ifndef YY_READ_BUF_SIZE 608 #define YY_READ_BUF_SIZE 8192 616 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) 623 #define YY_INPUT(buf,result,max_size) \ 624 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ 628 for ( n = 0; n < max_size && \ 629 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ 632 buf[n++] = (char) c; \ 633 if ( c == EOF && ferror( yyin ) ) \ 634 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 640 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ 642 if( errno != EINTR) \ 644 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 660 #define yyterminate() return YY_NULL 664 #ifndef YY_START_STACK_INCR 665 #define YY_START_STACK_INCR 25 669 #ifndef YY_FATAL_ERROR 670 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) 679 #define YY_DECL_IS_OURS 1 681 extern int yylex (
void);
683 #define YY_DECL int yylex (void) 689 #ifndef YY_USER_ACTION 690 #define YY_USER_ACTION 695 #define YY_BREAK break; 698 #define YY_RULE_SETUP \ 709 #line 58 "macro.lex.l" 712 #line 713 "macro.lex.yy.c" 762 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
764 yy_current_state = (
int)
yy_def[yy_current_state];
765 if ( yy_current_state >= 28 )
771 while ( yy_current_state != 27 );
793 #line 60 "macro.lex.l" 798 #line 61 "macro.lex.l" 803 #line 63 "macro.lex.l" 807 #line 66 "macro.lex.l" 809 #line 67 "macro.lex.l" 811 #line 68 "macro.lex.l" 813 #line 69 "macro.lex.l" 815 #line 70 "macro.lex.l" 818 #line 70 "macro.lex.l" 853 #line 102 "macro.lex.l" 858 #line 103 "macro.lex.l" 862 #line 104 "macro.lex.l" 867 #line 106 "macro.lex.l" 872 #line 107 "macro.lex.l" 877 #line 108 "macro.lex.l" 880 #line 881 "macro.lex.yy.c" 941 yy_current_state = yy_next_state;
1002 goto yy_find_action;
1009 "fatal flex scanner internal error--no action found" );
1025 register int number_to_move,
i;
1030 "fatal flex scanner internal error--end of buffer missed" );
1056 for (
i = 0;
i < number_to_move; ++
i )
1070 while ( num_to_read <= 0 )
1076 int yy_c_buf_p_offset =
1079 if (
b->yy_is_our_buffer )
1083 if ( new_size <= 0 )
1084 b->yy_buf_size +=
b->yy_buf_size / 8;
1086 b->yy_buf_size *= 2;
1088 b->yy_ch_buf = (
char *)
1090 yyrealloc((
void *)
b->yy_ch_buf,
b->yy_buf_size + 2 );
1096 if ( !
b->yy_ch_buf )
1098 "fatal error - scanner input buffer overflow" );
1141 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1158 register char *
yy_cp;
1170 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1172 yy_current_state = (
int)
yy_def[yy_current_state];
1173 if ( yy_current_state >= 28 )
1176 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
1179 return yy_current_state;
1189 register int yy_is_jam;
1198 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1200 yy_current_state = (
int)
yy_def[yy_current_state];
1201 if ( yy_current_state >= 28 )
1204 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
1205 yy_is_jam = (yy_current_state == 27);
1207 return yy_is_jam ? 0 : yy_current_state;
1212 static int yyinput (
void)
1214 static int input (
void)
1359 b->yy_buf_size =
size;
1364 b->yy_ch_buf = (
char *)
yyalloc(
b->yy_buf_size + 2 );
1365 if ( !
b->yy_ch_buf )
1368 b->yy_is_our_buffer = 1;
1388 if (
b->yy_is_our_buffer )
1389 yyfree((
void *)
b->yy_ch_buf );
1405 b->yy_input_file =
file;
1406 b->yy_fill_buffer = 1;
1413 b->yy_bs_lineno = 1;
1414 b->yy_bs_column = 0;
1417 b->yy_is_interactive = 0;
1440 b->yy_buf_pos = &
b->yy_ch_buf[0];
1457 if (new_buffer ==
NULL)
1519 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1539 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1567 b->yy_buf_size =
size - 2;
1568 b->yy_buf_pos =
b->yy_ch_buf =
base;
1569 b->yy_is_our_buffer = 0;
1570 b->yy_input_file = 0;
1571 b->yy_n_chars =
b->yy_buf_size;
1572 b->yy_is_interactive = 0;
1574 b->yy_fill_buffer = 0;
1611 n = _yybytes_len + 2;
1616 for (
i = 0;
i < _yybytes_len; ++
i )
1617 buf[
i] = yybytes[
i];
1628 b->yy_is_our_buffer = 1;
1633 #ifndef YY_EXIT_FAILURE 1634 #define YY_EXIT_FAILURE 2 1650 int yyless_macro_arg = (n); \ 1651 YY_LESS_LINENO(yyless_macro_arg);\ 1652 yytext[yyleng] = (yy_hold_char); \ 1653 (yy_c_buf_p) = yytext + yyless_macro_arg; \ 1654 (yy_hold_char) = *(yy_c_buf_p); \ 1655 *(yy_c_buf_p) = '\0'; \ 1656 yyleng = yyless_macro_arg; \ 1795 static void yy_flex_strncpy (
char*
s1,
yyconst char *
s2,
int n )
1798 for (
i = 0;
i <
n; ++
i )
1803 #ifdef YY_NEED_STRLEN 1804 static int yy_flex_strlen (
yyconst char *
s )
1807 for (
n = 0;
s[
n]; ++
n )
1836 #define YYTABLES_NAME "yytables" 1838 #line 107 "macro.lex.l" 1845 static CHAR szTestMacro[256];
1858 void macro_test(
void)
1863 macro = szTestMacro;
1870 static char c[2] = {0,0};
1874 case EMPTY:
return "EMPTY";
1877 case INTEGER:
return "INTEGER";
1878 case STRING:
return "STRING";
1880 default:
c[0] = (
char)
t;
return c;
1896 unsigned int len = 0,
idx = 0;
1934 if (*++
args ==
'\0')
break;
1936 if (
t ==
')')
goto CheckArgs_end;
1937 if (
t !=
',') {
WINE_WARN(
"missing ,\n");
return -1;}
1959 if (
idx < 0)
return 0;
1994 if (
idx < 0)
return 0;
2051 struct lex_data curr_lex_data, *prev_lex_data;
2083 case EMPTY:
goto done;
static yyconst flex_int32_t yy_ec[256]
unsigned char flex_uint8_t
YY_BUFFER_STATE yy_scan_string(yyconst char *yy_str)
static void yy_fatal_error(yyconst char msg[])
yy_size_t yyget_leng(void)
#define YY_STATE_EOF(state)
void yy_delete_buffer(YY_BUFFER_STATE b)
void yyrestart(FILE *input_file)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
#define FreeProcInstance(p)
#define YY_DO_BEFORE_ACTION
ACPI_SIZE strlen(const char *String)
static GLenum _GLUfuncptr fn
WINE_DEFAULT_DEBUG_CHANNEL(winhelp)
static size_t yy_buffer_stack_max
static size_t yy_buffer_stack_top
void yyset_extra(YY_EXTRA_TYPE user_defined)
#define EOB_ACT_LAST_MATCH
#define YY_FATAL_ERROR(msg)
static yyconst flex_int16_t yy_accept[28]
unsigned short int uint16_t
#define YY_CURRENT_BUFFER_LVALUE
void yyset_debug(int debug_flag)
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
static void yyensure_buffer_stack(void)
YY_BUFFER_STATE yy_scan_buffer(char *base, yy_size_t size)
GLenum GLuint GLenum GLsizei const GLchar * buf
CLIPBOARD_GLOBALS Globals
int MACRO_Lookup(const char *name, struct lexret *lr)
BOOL WINHELP_ReleaseWindow(WINHELP_WINDOW *win)
static unsigned char bytes[4]
void yyset_out(FILE *out_str)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
WINHELP_WINDOW * MACRO_CurrentWindow(void)
static const char * ts(int t)
void * yyalloc(yy_size_t)
WINHELP_WINDOW * WINHELP_GrabWindow(WINHELP_WINDOW *win)
unsigned int flex_uint32_t
static yyconst flex_int16_t yy_base[33]
static int yy_did_buffer_switch_on_eof
static yy_size_t yy_n_chars
#define YY_RESTORE_YY_MORE_OFFSET
YY_BUFFER_STATE yy_scan_bytes(yyconst char *bytes, yy_size_t len)
GLboolean GLboolean GLboolean b
PVOID WINAPI HeapAlloc(HANDLE, DWORD, SIZE_T)
static yyconst flex_int16_t yy_nxt[77]
#define YY_END_OF_BUFFER_CHAR
static yyconst flex_int16_t yy_def[33]
#define EOB_ACT_END_OF_FILE
void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)
#define MakeProcInstance(p, i)
static int yy_init_globals(void)
static yy_state_type yy_last_accepting_state
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
static yyconst flex_int32_t yy_meta[15]
static IHTMLWindow2 * window
static struct lex_data * lex_data
INT_PTR(CALLBACK * DLGPROC)(HWND, UINT, WPARAM, LPARAM)
static int MACRO_CallVoidFunc(void *fn, const char *args)
YY_EXTRA_TYPE yyget_extra(void)
LRESULT(CALLBACK * WNDPROC)(HWND, UINT, WPARAM, LPARAM)
static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
void yy_flush_buffer(YY_BUFFER_STATE b)
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
static YY_BUFFER_STATE * yy_buffer_stack
static int yy_get_next_buffer(void)
GLenum GLenum GLenum input
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static void yy_load_buffer_state(void)
BOOL MACRO_ExecuteMacro(WINHELP_WINDOW *window, LPCSTR macro)
void yyset_in(FILE *in_str)
unsigned short int flex_uint16_t
const char STRING_DIALOG_TEST[]
struct yy_buffer_state * YY_BUFFER_STATE
void yypush_buffer_state(YY_BUFFER_STATE new_buffer)
void yyset_lineno(int line_number)
#define EOB_ACT_CONTINUE_SCAN
static int MACRO_CheckArgs(void *pa[], unsigned max, const char *args)
static yy_state_type yy_get_previous_state(void)
_Check_return_ long __cdecl strtol(_In_z_ const char *_Str, _Out_opt_ _Deref_post_z_ char **_EndPtr, _In_ int _Radix)
void yypop_buffer_state(void)
static char * yy_last_accepting_cpos
#define YY_BUFFER_EOF_PENDING
#define YY_INPUT(buf, result, max_size)
static yyconst flex_int16_t yy_chk[77]
#define YY_CURRENT_BUFFER
#define HeapFree(x, y, z)
static int MACRO_CallBoolFunc(void *fn, const char *args, void **ret)
void * yyrealloc(void *, yy_size_t)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *