ReactOS  0.4.15-dev-1618-g9c8ed68
parser.yy.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "config.h"
#include "wine/port.h"
#include <ctype.h>
#include <assert.h>
#include <limits.h>
#include "widl.h"
#include "utils.h"
#include "parser.h"
#include "wine/wpp.h"
#include "parser.tab.h"
Include dependency graph for parser.yy.c:

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 
struct  imports
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   parser__create_buffer
 
#define yy_delete_buffer   parser__delete_buffer
 
#define yy_scan_buffer   parser__scan_buffer
 
#define yy_scan_string   parser__scan_string
 
#define yy_scan_bytes   parser__scan_bytes
 
#define yy_init_buffer   parser__init_buffer
 
#define yy_flush_buffer   parser__flush_buffer
 
#define yy_load_buffer_state   parser__load_buffer_state
 
#define yy_switch_to_buffer   parser__switch_to_buffer
 
#define yypush_buffer_state   parser_push_buffer_state
 
#define yypop_buffer_state   parser_pop_buffer_state
 
#define yyensure_buffer_stack   parser_ensure_buffer_stack
 
#define yy_flex_debug   parser__flex_debug
 
#define yyin   parser_in
 
#define yyleng   parser_leng
 
#define yylex   parser_lex
 
#define yylineno   parser_lineno
 
#define yyout   parser_out
 
#define yyrestart   parser_restart
 
#define yytext   parser_text
 
#define yywrap   parser_wrap
 
#define yyalloc   parser_alloc
 
#define yyrealloc   parser_realloc
 
#define yyfree   parser_free
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define FLEX_BETA
 
#define parser__create_buffer_ALREADY_DEFINED
 
#define parser__delete_buffer_ALREADY_DEFINED
 
#define parser__scan_buffer_ALREADY_DEFINED
 
#define parser__scan_string_ALREADY_DEFINED
 
#define parser__scan_bytes_ALREADY_DEFINED
 
#define parser__init_buffer_ALREADY_DEFINED
 
#define parser__flush_buffer_ALREADY_DEFINED
 
#define parser__load_buffer_state_ALREADY_DEFINED
 
#define parser__switch_to_buffer_ALREADY_DEFINED
 
#define parser_push_buffer_state_ALREADY_DEFINED
 
#define parser_pop_buffer_state_ALREADY_DEFINED
 
#define parser_ensure_buffer_stack_ALREADY_DEFINED
 
#define parser_lex_ALREADY_DEFINED
 
#define parser_restart_ALREADY_DEFINED
 
#define yylex_init   parser_lex_init
 
#define yylex_init_extra   parser_lex_init_extra
 
#define yylex_destroy   parser_lex_destroy
 
#define yyget_debug   parser_get_debug
 
#define yyset_debug   parser_set_debug
 
#define yyget_extra   parser_get_extra
 
#define yyset_extra   parser_set_extra
 
#define yyget_in   parser_get_in
 
#define yyset_in   parser_set_in
 
#define yyget_out   parser_get_out
 
#define yyset_out   parser_set_out
 
#define yyget_leng   parser_get_leng
 
#define yyget_text   parser_get_text
 
#define yyget_lineno   parser_get_lineno
 
#define yyset_lineno   parser_set_lineno
 
#define parser_wrap_ALREADY_DEFINED
 
#define parser_alloc_ALREADY_DEFINED
 
#define parser_realloc_ALREADY_DEFINED
 
#define parser_free_ALREADY_DEFINED
 
#define parser_text_ALREADY_DEFINED
 
#define parser_leng_ALREADY_DEFINED
 
#define parser_in_ALREADY_DEFINED
 
#define parser_out_ALREADY_DEFINED
 
#define parser__flex_debug_ALREADY_DEFINED
 
#define parser_lineno_ALREADY_DEFINED
 
#define YYFLEX_INTTYPES_DEFINED
 
#define yyconst   const
 
#define yynoreturn
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((YY_CHAR) (c))
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   yyrestart( yyin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define YY_LINENO_REWIND_TO(ptr)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )
 
#define yy_new_buffer   yy_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   41
 
#define YY_END_OF_BUFFER   42
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_NO_INPUT   1
 
#define YY_NO_UNISTD_H
 
#define MAX_IMPORT_DEPTH   20
 
#define INITIAL   0
 
#define QUOTE   1
 
#define WSTRQUOTE   2
 
#define ATTR   3
 
#define PP_LINE   4
 
#define PP_PRAGMA   5
 
#define SQUOTE   6
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   /*LINTED*/break;
 
#define YY_RULE_SETUP
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define NKEYWORDS   (sizeof(keywords)/sizeof(keywords[0]))
 
#define KWP(p)   ((const struct keyword *)(p))
 

Typedefs

typedef unsigned char flex_uint8_t
 
typedef short int flex_int16_t
 
typedef unsigned short int flex_uint16_t
 
typedef char flex_int8_t
 
typedef long int flex_int32_t
 
typedef unsigned long int flex_uint32_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef flex_uint8_t YY_CHAR
 
typedef int yy_state_type
 

Functions

void yyrestart (FILE *input_file)
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 
void yy_flush_buffer (YY_BUFFER_STATE b)
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void yypop_buffer_state (void)
 
static void yyensure_buffer_stack (void)
 
static void yy_load_buffer_state (void)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE yy_scan_string (const char *yy_str)
 
YY_BUFFER_STATE yy_scan_bytes (const char *bytes, int len)
 
voidyyalloc (yy_size_t)
 
voidyyrealloc (void *, yy_size_t)
 
void yyfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yynoreturn yy_fatal_error (const char *msg)
 
static void addcchar (char c)
 
static charget_buffered_cstring (void)
 
static int kw_token (const char *kw)
 
static int attr_token (const char *kw)
 
static void switch_to_acf (void)
 
static unsigned int xstrtoul (const char *nptr, char **endptr, int base)
 
UUIDparse_uuid (const char *u)
 
static int yy_init_globals (void)
 
int yylex_destroy (void)
 
int yyget_debug (void)
 
void yyset_debug (int debug_flag)
 
YY_EXTRA_TYPE yyget_extra (void)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
FILEyyget_in (void)
 
void yyset_in (FILE *_in_str)
 
FILEyyget_out (void)
 
void yyset_out (FILE *_out_str)
 
int yyget_leng (void)
 
charyyget_text (void)
 
int yyget_lineno (void)
 
void yyset_lineno (int _line_number)
 
int yywrap (void)
 
static void yy_push_state (int _new_state)
 
static void yy_pop_state (void)
 
int yylex (void)
 
 if (!(yy_init))
 
static int kw_cmp_func (const void *s1, const void *s2)
 
void pop_import (void)
 
int do_import (char *fname)
 
void abort_import (void)
 
static void warning_disable (int warning)
 
static void warning_enable (int warning)
 
int do_warning (char *toggle, warning_list_t *wnum)
 
int is_warning_enabled (int warning)
 

Variables

int yyleng
 
FILEyyin = NULL
 
FILEyyout = NULL
 
static size_t yy_buffer_stack_top = 0
 
static size_t yy_buffer_stack_max = 0
 
static YY_BUFFER_STATEyy_buffer_stack = NULL
 
static char yy_hold_char
 
static int yy_n_chars
 
static charyy_c_buf_p = NULL
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int yylineno = 1
 
charyytext
 
static const flex_int16_t yy_accept [210]
 
static const YY_CHAR yy_ec [256]
 
static const YY_CHAR yy_meta [51]
 
static const flex_int16_t yy_base [251]
 
static const flex_int16_t yy_def [251]
 
static const flex_int16_t yy_nxt [728]
 
static const flex_int16_t yy_chk [728]
 
static yy_state_type yy_last_accepting_state
 
static charyy_last_accepting_cpos
 
int yy_flex_debug = 0
 
static charcbuffer
 
static int cbufidx
 
static int cbufalloc = 0
 
static warning_list_tdisabled_warnings = NULL
 
struct {
   YY_BUFFER_STATE   state
 
   char *   input_name
 
   int   line_number
 
   char *   temp_name
 
import_stack [MAX_IMPORT_DEPTH]
 
int import_stack_ptr = 0
 
static int yy_start_stack_ptr = 0
 
static int yy_start_stack_depth = 0
 
static intyy_start_stack = NULL
 
 YY_DECL
 
charyy_cp
 
charyy_bp
 
int yy_act
 
static const struct keyword keywords []
 
static const struct keyword attr_keywords []
 
struct importsfirst_import
 

Macro Definition Documentation

◆ ATTR

#define ATTR   3

Definition at line 1039 of file parser.yy.c.

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 361 of file parser.yy.c.

◆ ECHO

#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)

Definition at line 1143 of file parser.yy.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 405 of file parser.yy.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 406 of file parser.yy.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 407 of file parser.yy.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 39 of file parser.yy.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 34 of file parser.yy.c.

◆ INITIAL

#define INITIAL   0

Definition at line 1036 of file parser.yy.c.

◆ KWP

#define KWP (   p)    ((const struct keyword *)(p))

Definition at line 2814 of file parser.yy.c.

◆ MAX_IMPORT_DEPTH

#define MAX_IMPORT_DEPTH   20

Definition at line 986 of file parser.yy.c.

◆ NKEYWORDS

#define NKEYWORDS   (sizeof(keywords)/sizeof(keywords[0]))

Definition at line 2687 of file parser.yy.c.

◆ parser__create_buffer_ALREADY_DEFINED

#define parser__create_buffer_ALREADY_DEFINED

Definition at line 43 of file parser.yy.c.

◆ parser__delete_buffer_ALREADY_DEFINED

#define parser__delete_buffer_ALREADY_DEFINED

Definition at line 49 of file parser.yy.c.

◆ parser__flex_debug_ALREADY_DEFINED

#define parser__flex_debug_ALREADY_DEFINED

Definition at line 265 of file parser.yy.c.

◆ parser__flush_buffer_ALREADY_DEFINED

#define parser__flush_buffer_ALREADY_DEFINED

Definition at line 79 of file parser.yy.c.

◆ parser__init_buffer_ALREADY_DEFINED

#define parser__init_buffer_ALREADY_DEFINED

Definition at line 73 of file parser.yy.c.

◆ parser__load_buffer_state_ALREADY_DEFINED

#define parser__load_buffer_state_ALREADY_DEFINED

Definition at line 85 of file parser.yy.c.

◆ parser__scan_buffer_ALREADY_DEFINED

#define parser__scan_buffer_ALREADY_DEFINED

Definition at line 55 of file parser.yy.c.

◆ parser__scan_bytes_ALREADY_DEFINED

#define parser__scan_bytes_ALREADY_DEFINED

Definition at line 67 of file parser.yy.c.

◆ parser__scan_string_ALREADY_DEFINED

#define parser__scan_string_ALREADY_DEFINED

Definition at line 61 of file parser.yy.c.

◆ parser__switch_to_buffer_ALREADY_DEFINED

#define parser__switch_to_buffer_ALREADY_DEFINED

Definition at line 91 of file parser.yy.c.

◆ parser_alloc_ALREADY_DEFINED

#define parser_alloc_ALREADY_DEFINED

Definition at line 223 of file parser.yy.c.

◆ parser_ensure_buffer_stack_ALREADY_DEFINED

#define parser_ensure_buffer_stack_ALREADY_DEFINED

Definition at line 109 of file parser.yy.c.

◆ parser_free_ALREADY_DEFINED

#define parser_free_ALREADY_DEFINED

Definition at line 235 of file parser.yy.c.

◆ parser_in_ALREADY_DEFINED

#define parser_in_ALREADY_DEFINED

Definition at line 253 of file parser.yy.c.

◆ parser_leng_ALREADY_DEFINED

#define parser_leng_ALREADY_DEFINED

Definition at line 247 of file parser.yy.c.

◆ parser_lex_ALREADY_DEFINED

#define parser_lex_ALREADY_DEFINED

Definition at line 115 of file parser.yy.c.

◆ parser_lineno_ALREADY_DEFINED

#define parser_lineno_ALREADY_DEFINED

Definition at line 271 of file parser.yy.c.

◆ parser_out_ALREADY_DEFINED

#define parser_out_ALREADY_DEFINED

Definition at line 259 of file parser.yy.c.

◆ parser_pop_buffer_state_ALREADY_DEFINED

#define parser_pop_buffer_state_ALREADY_DEFINED

Definition at line 103 of file parser.yy.c.

◆ parser_push_buffer_state_ALREADY_DEFINED

#define parser_push_buffer_state_ALREADY_DEFINED

Definition at line 97 of file parser.yy.c.

◆ parser_realloc_ALREADY_DEFINED

#define parser_realloc_ALREADY_DEFINED

Definition at line 229 of file parser.yy.c.

◆ parser_restart_ALREADY_DEFINED

#define parser_restart_ALREADY_DEFINED

Definition at line 121 of file parser.yy.c.

◆ parser_text_ALREADY_DEFINED

#define parser_text_ALREADY_DEFINED

Definition at line 241 of file parser.yy.c.

◆ parser_wrap_ALREADY_DEFINED

#define parser_wrap_ALREADY_DEFINED

Definition at line 217 of file parser.yy.c.

◆ PP_LINE

#define PP_LINE   4

Definition at line 1040 of file parser.yy.c.

◆ PP_PRAGMA

#define PP_PRAGMA   5

Definition at line 1041 of file parser.yy.c.

◆ QUOTE

#define QUOTE   1

Definition at line 1037 of file parser.yy.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 914 of file parser.yy.c.

◆ SQUOTE

#define SQUOTE   6

Definition at line 1042 of file parser.yy.c.

◆ unput

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 425 of file parser.yy.c.

◆ WSTRQUOTE

#define WSTRQUOTE   2

Definition at line 1038 of file parser.yy.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 566 of file parser.yy.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 1222 of file parser.yy.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 383 of file parser.yy.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 487 of file parser.yy.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 475 of file parser.yy.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 476 of file parser.yy.c.

◆ yy_create_buffer

#define yy_create_buffer   parser__create_buffer

Definition at line 9 of file parser.yy.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
static YY_BUFFER_STATE * yy_buffer_stack
Definition: parser.yy.c:495
static size_t yy_buffer_stack_top
Definition: parser.yy.c:493
#define NULL
Definition: types.h:112

Definition at line 503 of file parser.yy.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 509 of file parser.yy.c.

◆ YY_DECL

#define YY_DECL   int yylex (void)

Definition at line 1210 of file parser.yy.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 1206 of file parser.yy.c.

◆ yy_delete_buffer

#define yy_delete_buffer   parser__delete_buffer

Definition at line 10 of file parser.yy.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyleng = (int) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
char * yy_bp
Definition: parser.yy.c:1236
char * yy_cp
Definition: parser.yy.c:1236
static char yy_hold_char
Definition: parser.yy.c:512
#define yytext_ptr
Definition: parser.yy.c:582
static char * yy_c_buf_p
Definition: parser.yy.c:517
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

Definition at line 592 of file parser.yy.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   42

Definition at line 599 of file parser.yy.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 372 of file parser.yy.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 1053 of file parser.yy.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1197 of file parser.yy.c.

◆ yy_flex_debug

#define yy_flex_debug   parser__flex_debug

Definition at line 21 of file parser.yy.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 35 of file parser.yy.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 36 of file parser.yy.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 37 of file parser.yy.c.

◆ yy_flush_buffer

#define yy_flush_buffer   parser__flush_buffer

Definition at line 15 of file parser.yy.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

Definition at line 537 of file parser.yy.c.

◆ yy_init_buffer

#define yy_init_buffer   parser__init_buffer

Definition at line 14 of file parser.yy.c.

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
_Check_return_ _CRTIMP int __cdecl ferror(_In_ FILE *_File)
GLuint64EXT * result
Definition: glext.h:11304
#define EINTR
Definition: acclib.h:80
#define YY_CURRENT_BUFFER_LVALUE
Definition: parser.yy.c:509
GLdouble n
Definition: glext.h:7729
size_t yy_size_t
Definition: macro.lex.yy.c:159
_Check_return_ _CRTIMP int __cdecl getc(_Inout_ FILE *_File)
int errno
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
_Check_return_opt_ _CRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
static INT max_size
Definition: history.c:51
unsigned char
Definition: typeof.h:29
const GLubyte * c
Definition: glext.h:8905
#define EOF
Definition: stdio.h:24
#define yyin
Definition: parser.yy.c:22
#define c
Definition: ke_i.h:80

Definition at line 1150 of file parser.yy.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 5 of file parser.yy.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 409 of file parser.yy.c.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 410 of file parser.yy.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state   parser__load_buffer_state

Definition at line 16 of file parser.yy.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 916 of file parser.yy.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 547 of file parser.yy.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 371 of file parser.yy.c.

◆ YY_NO_INPUT

#define YY_NO_INPUT   1

Definition at line 939 of file parser.yy.c.

◆ YY_NO_UNISTD_H

#define YY_NO_UNISTD_H

Definition at line 962 of file parser.yy.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 350 of file parser.yy.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   41

Definition at line 598 of file parser.yy.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 1134 of file parser.yy.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 917 of file parser.yy.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP
Value:
if ( yyleng > 0 ) \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
(yytext[yyleng - 1] == '\n'); \
YY_USER_ACTION
#define yyleng
Definition: parser.yy.c:23
#define yytext
Definition: parser.yy.c:28

Definition at line 1225 of file parser.yy.c.

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((YY_CHAR) (c))

Definition at line 355 of file parser.yy.c.

◆ yy_scan_buffer

#define yy_scan_buffer   parser__scan_buffer

Definition at line 11 of file parser.yy.c.

◆ yy_scan_bytes

#define yy_scan_bytes   parser__scan_bytes

Definition at line 13 of file parser.yy.c.

◆ yy_scan_string

#define yy_scan_string   parser__scan_string

Definition at line 12 of file parser.yy.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:503
#define YY_BUF_SIZE
Definition: parser.yy.c:383
#define yyin
Definition: parser.yy.c:22

Definition at line 557 of file parser.yy.c.

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:503
#define YY_BUF_SIZE
Definition: parser.yy.c:383
#define yyin
Definition: parser.yy.c:22

Definition at line 548 of file parser.yy.c.

◆ YY_START

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 366 of file parser.yy.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 1192 of file parser.yy.c.

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 389 of file parser.yy.c.

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 369 of file parser.yy.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 428 of file parser.yy.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   parser__switch_to_buffer

Definition at line 17 of file parser.yy.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 392 of file parser.yy.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 397 of file parser.yy.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 1217 of file parser.yy.c.

◆ yyalloc

Definition at line 30 of file parser.yy.c.

◆ yyconst

#define yyconst   const

Definition at line 341 of file parser.yy.c.

◆ yyensure_buffer_stack

#define yyensure_buffer_stack   parser_ensure_buffer_stack

Definition at line 20 of file parser.yy.c.

◆ YYFLEX_INTTYPES_DEFINED

#define YYFLEX_INTTYPES_DEFINED

Definition at line 292 of file parser.yy.c.

◆ yyfree

#define yyfree   parser_free

Definition at line 32 of file parser.yy.c.

◆ yyget_debug

#define yyget_debug   parser_get_debug

Definition at line 147 of file parser.yy.c.

◆ yyget_extra

#define yyget_extra   parser_get_extra

Definition at line 159 of file parser.yy.c.

◆ yyget_in

#define yyget_in   parser_get_in

Definition at line 171 of file parser.yy.c.

◆ yyget_leng

#define yyget_leng   parser_get_leng

Definition at line 195 of file parser.yy.c.

◆ yyget_lineno

#define yyget_lineno   parser_get_lineno

Definition at line 207 of file parser.yy.c.

◆ yyget_out

#define yyget_out   parser_get_out

Definition at line 183 of file parser.yy.c.

◆ yyget_text

#define yyget_text   parser_get_text

Definition at line 201 of file parser.yy.c.

◆ yyin

#define yyin   parser_in

Definition at line 22 of file parser.yy.c.

◆ yyleng

#define yyleng   parser_leng

Definition at line 23 of file parser.yy.c.

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
char * yy_bp
Definition: parser.yy.c:1236
GLdouble n
Definition: glext.h:7729
char * yy_cp
Definition: parser.yy.c:1236
#define YY_MORE_ADJ
Definition: parser.yy.c:916
static char yy_hold_char
Definition: parser.yy.c:512
static char * yy_c_buf_p
Definition: parser.yy.c:517

Definition at line 413 of file parser.yy.c.

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
GLdouble n
Definition: glext.h:7729
#define yyleng
Definition: parser.yy.c:23
#define yytext
Definition: parser.yy.c:28
static char yy_hold_char
Definition: parser.yy.c:512
static char * yy_c_buf_p
Definition: parser.yy.c:517

Definition at line 413 of file parser.yy.c.

◆ yylex

#define yylex   parser_lex

Definition at line 24 of file parser.yy.c.

◆ yylex_destroy

#define yylex_destroy   parser_lex_destroy

Definition at line 141 of file parser.yy.c.

◆ yylex_init

#define yylex_init   parser_lex_init

Definition at line 129 of file parser.yy.c.

◆ yylex_init_extra

#define yylex_init_extra   parser_lex_init_extra

Definition at line 135 of file parser.yy.c.

◆ yylineno

#define yylineno   parser_lineno

Definition at line 25 of file parser.yy.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 915 of file parser.yy.c.

◆ yynoreturn

#define yynoreturn

Definition at line 346 of file parser.yy.c.

◆ yyout

#define yyout   parser_out

Definition at line 26 of file parser.yy.c.

◆ yypop_buffer_state

#define yypop_buffer_state   parser_pop_buffer_state

Definition at line 19 of file parser.yy.c.

◆ yypush_buffer_state

#define yypush_buffer_state   parser_push_buffer_state

Definition at line 18 of file parser.yy.c.

◆ yyrealloc

#define yyrealloc   parser_realloc

Definition at line 31 of file parser.yy.c.

◆ yyrestart

#define yyrestart   parser_restart

Definition at line 27 of file parser.yy.c.

◆ yyset_debug

#define yyset_debug   parser_set_debug

Definition at line 153 of file parser.yy.c.

◆ yyset_extra

#define yyset_extra   parser_set_extra

Definition at line 165 of file parser.yy.c.

◆ yyset_in

#define yyset_in   parser_set_in

Definition at line 177 of file parser.yy.c.

◆ yyset_lineno

#define yyset_lineno   parser_set_lineno

Definition at line 213 of file parser.yy.c.

◆ yyset_out

#define yyset_out   parser_set_out

Definition at line 189 of file parser.yy.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 367 of file parser.yy.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 1187 of file parser.yy.c.

◆ yytext

#define yytext   parser_text

Definition at line 28 of file parser.yy.c.

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 582 of file parser.yy.c.

◆ yywrap

#define yywrap   parser_wrap

Definition at line 29 of file parser.yy.c.

Typedef Documentation

◆ flex_int16_t

Definition at line 319 of file parser.yy.c.

◆ flex_int32_t

Definition at line 334 of file parser.yy.c.

◆ flex_int8_t

typedef char flex_int8_t

Definition at line 331 of file parser.yy.c.

◆ flex_uint16_t

Definition at line 320 of file parser.yy.c.

◆ flex_uint32_t

Definition at line 335 of file parser.yy.c.

◆ flex_uint8_t

Definition at line 318 of file parser.yy.c.

◆ YY_BUFFER_STATE

Definition at line 393 of file parser.yy.c.

◆ YY_CHAR

Definition at line 569 of file parser.yy.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 398 of file parser.yy.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 573 of file parser.yy.c.

Function Documentation

◆ abort_import()

void abort_import ( void  )

Definition at line 2942 of file parser.yy.c.

2943 {
2944  int ptr;
2945 
2946  for (ptr=0; ptr<import_stack_ptr; ptr++)
2948 }
#define unlink
Definition: syshdrs.h:54
static PVOID ptr
Definition: dispmode.c:27
int import_stack_ptr
Definition: parser.yy.c:993
struct @4825 import_stack[MAX_IMPORT_DEPTH]
char * temp_name
Definition: parser.yy.c:991

Referenced by rm_tempfile().

◆ addcchar()

static void addcchar ( char  c)
static

Definition at line 2847 of file parser.yy.c.

2848 {
2849  if(cbufidx >= cbufalloc)
2850  {
2851  cbufalloc += 1024;
2852  cbuffer = xrealloc(cbuffer, cbufalloc * sizeof(cbuffer[0]));
2853  if(cbufalloc > 65536)
2854  parser_warning("Reallocating string buffer larger than 64kB\n");
2855  }
2856  cbuffer[cbufidx++] = c;
2857 }
static int cbufidx
Definition: parser.yy.c:976
static int cbufalloc
Definition: parser.yy.c:977
void * xrealloc(void *oldmem, size_t size)
Definition: uimain.c:736
static char * cbuffer
Definition: parser.yy.c:975
#define c
Definition: ke_i.h:80
int parser_warning(const char *s,...)
Definition: utils.c:94

Referenced by get_buffered_cstring().

◆ attr_token()

static int attr_token ( const char kw)
static

Definition at line 2834 of file parser.yy.c.

2835 {
2836  struct keyword key, *kwp;
2837  key.kw = kw;
2838  kwp = bsearch(&key, attr_keywords, sizeof(attr_keywords)/sizeof(attr_keywords[0]),
2839  sizeof(attr_keywords[0]), kw_cmp_func);
2840  if (kwp) {
2841  parser_lval.str = xstrdup(kwp->kw);
2842  return kwp->token;
2843  }
2844  return kw_token(kw);
2845 }
static const struct keyword attr_keywords[]
Definition: parser.yy.c:2692
static int kw_token(const char *kw)
Definition: parser.yy.c:2821
jsstr_t * str
Definition: parser.tab.c:295
static int kw_cmp_func(const void *s1, const void *s2)
Definition: parser.yy.c:2816
YYSTYPE parser_lval
char * xstrdup(const char *s)
Definition: uimain.c:768
Definition: path.c:41
#define bsearch

◆ do_import()

int do_import ( char fname)

Definition at line 2887 of file parser.yy.c.

2888 {
2889  FILE *f;
2890  char *path, *name;
2891  struct imports *import;
2892  int ptr = import_stack_ptr;
2893  int ret, fd;
2894 
2895  import = first_import;
2896  while (import && strcmp(import->name, fname))
2897  import = import->next;
2898  if (import) return 0; /* already imported */
2899 
2900  import = xmalloc(sizeof(struct imports));
2901  import->name = xstrdup(fname);
2902  import->next = first_import;
2903  first_import = import;
2904 
2905  /* don't search for a file name with a path in the include directories,
2906  * for compatibility with MIDL */
2907  if (strchr( fname, '/' ) || strchr( fname, '\\' ))
2908  path = xstrdup( fname );
2909  else if (!(path = wpp_find_include( fname, input_name )))
2910  error_loc("Unable to open include file %s\n", fname);
2911 
2913  error_loc("Exceeded max import depth\n");
2914 
2915  import_stack[ptr].temp_name = temp_name;
2916  import_stack[ptr].input_name = input_name;
2917  import_stack[ptr].line_number = line_number;
2918  import_stack_ptr++;
2919  input_name = path;
2920  line_number = 1;
2921 
2922  name = xstrdup( "widl.XXXXXX" );
2923  if((fd = mkstemps( name, 0 )) == -1)
2924  error("Could not generate a temp name from %s\n", name);
2925 
2926  temp_name = name;
2927  if (!(f = fdopen(fd, "wt")))
2928  error("Could not open fd %s for writing\n", name);
2929 
2930  ret = wpp_parse( path, f );
2931  fclose( f );
2932  if (ret) exit(1);
2933 
2934  if((f = fopen(temp_name, "r")) == NULL)
2935  error_loc("Unable to open %s\n", temp_name);
2936 
2939  return 1;
2940 }
#define error(str)
Definition: mkdosfs.c:1605
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:503
GLsizei const GLchar ** path
Definition: glext.h:7234
#define MAX_IMPORT_DEPTH
Definition: parser.yy.c:986
char * wpp_find_include(const char *name, const char *parent_name)
Definition: preproc.c:509
static int fd
Definition: io.c:51
int line_number
Definition: parser.yy.c:990
int wpp_parse(const char *input, FILE *output)
Definition: compiler.c:437
void * xmalloc(int size)
Definition: uimain.c:747
static PVOID ptr
Definition: dispmode.c:27
void error_loc(const char *s,...)
Definition: utils.c:69
#define YY_BUF_SIZE
Definition: parser.yy.c:383
#define yy_switch_to_buffer
Definition: parser.yy.c:17
GLfloat f
Definition: glext.h:7540
int import_stack_ptr
Definition: parser.yy.c:993
int ret
#define yy_create_buffer
Definition: parser.yy.c:9
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
#define f
Definition: ke_i.h:83
_Check_return_ _CRTIMP FILE *__cdecl fdopen(_In_ int _FileHandle, _In_z_ const char *_Format)
struct @4825 import_stack[MAX_IMPORT_DEPTH]
int mkstemps(char *template, int suffix_len)
Definition: mkstemps.c:73
#define NULL
Definition: types.h:112
char * temp_name
Definition: parser.yy.c:991
struct imports * first_import
char * strchr(const char *String, int ch)
Definition: utclib.c:501
Definition: name.c:38
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
void exit(int exitcode)
Definition: _exit.c:33
char * xstrdup(const char *s)
Definition: uimain.c:768
char * input_name
Definition: parser.yy.c:989
GLuint const GLchar * name
Definition: glext.h:6031

◆ do_warning()

int do_warning ( char toggle,
warning_list_t wnum 
)

Definition at line 3005 of file parser.yy.c.

3006 {
3007  warning_t *warning, *next;
3008  int ret = 1;
3009  if(!disabled_warnings)
3010  {
3013  }
3014 
3015  if(!strcmp(toggle, "disable"))
3017  warning_disable(warning->num);
3018  else if(!strcmp(toggle, "enable"))
3020  warning_enable(warning->num);
3021  else
3022  ret = 0;
3023 
3025  free(warning);
3026  return ret;
3027 }
#define free
Definition: debug_ros.c:5
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Definition: list.h:198
void * xmalloc(int size)
Definition: uimain.c:747
static warning_list_t * disabled_warnings
Definition: parser.yy.c:984
static void warning_disable(int warning)
Definition: parser.yy.c:2982
static void warning_enable(int warning)
Definition: parser.yy.c:2993
int ret
uint32_t entry
Definition: isohybrid.c:63
static unsigned __int64 next
Definition: rand_nt.c:6
#define LIST_FOR_EACH_ENTRY_SAFE(cursor, cursor2, list, type, field)
Definition: list.h:204
__WINE_SERVER_LIST_INLINE void list_init(struct list *list)
Definition: list.h:149
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469
#define warning(s)
Definition: debug.h:83

Referenced by yyparse().

◆ get_buffered_cstring()

static char * get_buffered_cstring ( void  )
static

Definition at line 2859 of file parser.yy.c.

2860 {
2861  addcchar(0);
2862  return xstrdup(cbuffer);
2863 }
static void addcchar(char c)
Definition: parser.yy.c:2847
static char * cbuffer
Definition: parser.yy.c:975
char * xstrdup(const char *s)
Definition: uimain.c:768

◆ if()

if ( yy_init)

Definition at line 1239 of file parser.yy.c.

1240  {
1241  (yy_init) = 1;
1242 
1243 #ifdef YY_USER_INIT
1244  YY_USER_INIT;
1245 #endif
1246 
1247  if ( ! (yy_start) )
1248  (yy_start) = 1; /* first start state */
1249 
1250  if ( ! yyin )
1251  yyin = stdin;
1252 
1253  if ( ! yyout )
1254  yyout = stdout;
1255 
1256  if ( ! YY_CURRENT_BUFFER ) {
1260  }
1261 
1263  }
static int yy_init
Definition: parser.yy.c:518
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:503
#define YY_CURRENT_BUFFER_LVALUE
Definition: parser.yy.c:509
FILE * stdin
FILE * stdout
#define yy_load_buffer_state
Definition: parser.yy.c:16
#define YY_BUF_SIZE
Definition: parser.yy.c:383
#define yy_create_buffer
Definition: parser.yy.c:9
#define yyensure_buffer_stack
Definition: parser.yy.c:20
static int yy_start
Definition: parser.yy.c:519
#define yyin
Definition: parser.yy.c:22
#define yyout
Definition: parser.yy.c:26

◆ is_warning_enabled()

int is_warning_enabled ( int  warning)

Definition at line 3029 of file parser.yy.c.

3030 {
3031  warning_t *warning_entry;
3032  if(!disabled_warnings)
3033  return 1;
3035  if(warning_entry->num == warning)
3036  return 0;
3037  return 1;
3038 }
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Definition: list.h:198
static warning_list_t * disabled_warnings
Definition: parser.yy.c:984
uint32_t entry
Definition: isohybrid.c:63
#define warning(s)
Definition: debug.h:83

Referenced by ctl2_alloc_guid().

◆ kw_cmp_func()

static int kw_cmp_func ( const void s1,
const void s2 
)
static

Definition at line 2816 of file parser.yy.c.

2817 {
2818  return strcmp(KWP(s1)->kw, KWP(s2)->kw);
2819 }
struct S2 s2
#define KWP(p)
Definition: parser.yy.c:2814
struct S1 s1
int strcmp(const char *String1, const char *String2)
Definition: utclib.c:469

Referenced by attr_token(), and kw_token().

◆ kw_token()

static int kw_token ( const char kw)
static

Definition at line 2821 of file parser.yy.c.

2822 {
2823  struct keyword key, *kwp;
2824  key.kw = kw;
2825  kwp = bsearch(&key, keywords, NKEYWORDS, sizeof(keywords[0]), kw_cmp_func);
2826  if (kwp && (winrt_mode || kwp->token != tNAMESPACE)) {
2827  parser_lval.str = xstrdup(kwp->kw);
2828  return kwp->token;
2829  }
2830  parser_lval.str = xstrdup(kw);
2831  return is_type(kw) ? aKNOWNTYPE : aIDENTIFIER;
2832 }
static const struct keyword keywords[]
Definition: parser.yy.c:2628
int is_type(const char *name)
Definition: parser.tab.c:6368
jsstr_t * str
Definition: parser.tab.c:295
static int kw_cmp_func(const void *s1, const void *s2)
Definition: parser.yy.c:2816
YYSTYPE parser_lval
#define NKEYWORDS
Definition: parser.yy.c:2687
char * xstrdup(const char *s)
Definition: uimain.c:768
int winrt_mode
Definition: widl.c:129
Definition: path.c:41
#define bsearch

Referenced by attr_token().

◆ parse_uuid()

UUID* parse_uuid ( const char u)

Definition at line 1008 of file parser.yy.c.

1009 {
1010  UUID* uuid = xmalloc(sizeof(UUID));
1011  char b[3];
1012  /* it would be nice to use UuidFromStringA */
1013  uuid->Data1 = strtoul(u, NULL, 16);
1014  uuid->Data2 = strtoul(u+9, NULL, 16);
1015  uuid->Data3 = strtoul(u+14, NULL, 16);
1016  b[2] = 0;
1017  memcpy(b, u+19, 2); uuid->Data4[0] = strtoul(b, NULL, 16);
1018  memcpy(b, u+21, 2); uuid->Data4[1] = strtoul(b, NULL, 16);
1019  memcpy(b, u+24, 2); uuid->Data4[2] = strtoul(b, NULL, 16);
1020  memcpy(b, u+26, 2); uuid->Data4[3] = strtoul(b, NULL, 16);
1021  memcpy(b, u+28, 2); uuid->Data4[4] = strtoul(b, NULL, 16);
1022  memcpy(b, u+30, 2); uuid->Data4[5] = strtoul(b, NULL, 16);
1023  memcpy(b, u+32, 2); uuid->Data4[6] = strtoul(b, NULL, 16);
1024  memcpy(b, u+34, 2); uuid->Data4[7] = strtoul(b, NULL, 16);
1025  return uuid;
1026 }
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 * u
Definition: glfuncs.h:240
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
Definition: utclib.c:696
void * xmalloc(int size)
Definition: uimain.c:747
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define memcpy(s1, s2, n)
Definition: mkisofs.h:878
#define NULL
Definition: types.h:112
Definition: msctf.idl:510

Referenced by yyparse().

◆ pop_import()

void pop_import ( void  )

Definition at line 2865 of file parser.yy.c.

2866 {
2867  int ptr = import_stack_ptr-1;
2868 
2869  fclose(yyin);
2872  if (temp_name) {
2873  unlink(temp_name);
2874  free(temp_name);
2875  }
2876  temp_name = import_stack[ptr].temp_name;
2877  input_name = import_stack[ptr].input_name;
2878  line_number = import_stack[ptr].line_number;
2879  import_stack_ptr--;
2880 }
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:503
#define free
Definition: debug_ros.c:5
#define unlink
Definition: syshdrs.h:54
int line_number
Definition: parser.yy.c:990
static PVOID ptr
Definition: dispmode.c:27
#define yy_switch_to_buffer
Definition: parser.yy.c:17
#define yy_delete_buffer
Definition: parser.yy.c:10
int import_stack_ptr
Definition: parser.yy.c:993
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
struct @4825 import_stack[MAX_IMPORT_DEPTH]
char * temp_name
Definition: parser.yy.c:991
#define yyin
Definition: parser.yy.c:22
YY_BUFFER_STATE state
Definition: parser.yy.c:988
char * input_name
Definition: parser.yy.c:989

Referenced by yyparse().

◆ switch_to_acf()

static void switch_to_acf ( void  )
static

Definition at line 2950 of file parser.yy.c.

2951 {
2952  int ptr = import_stack_ptr;
2953  int ret, fd;
2954  char *name;
2955  FILE *f;
2956 
2957  assert(import_stack_ptr == 0);
2958 
2959  input_name = acf_name;
2960  acf_name = NULL;
2961  line_number = 1;
2962 
2963  name = xstrdup( "widl.XXXXXX" );
2964  if((fd = mkstemps( name, 0 )) == -1)
2965  error("Could not generate a temp name from %s\n", name);
2966 
2967  temp_name = name;
2968  if (!(f = fdopen(fd, "wt")))
2969  error("Could not open fd %s for writing\n", name);
2970 
2971  ret = wpp_parse(input_name, f);
2972  fclose(f);
2973  if (ret) exit(1);
2974 
2975  if((f = fopen(temp_name, "r")) == NULL)
2976  error_loc("Unable to open %s\n", temp_name);
2977 
2980 }
#define error(str)
Definition: mkdosfs.c:1605
#define YY_CURRENT_BUFFER
Definition: parser.yy.c:503
#define assert(x)
Definition: debug.h:53
static int fd
Definition: io.c:51
int line_number
Definition: parser.yy.c:990
int wpp_parse(const char *input, FILE *output)
Definition: compiler.c:437
static PVOID ptr
Definition: dispmode.c:27
void error_loc(const char *s,...)
Definition: utils.c:69
#define YY_BUF_SIZE
Definition: parser.yy.c:383
#define yy_switch_to_buffer
Definition: parser.yy.c:17
GLfloat f
Definition: glext.h:7540
int import_stack_ptr
Definition: parser.yy.c:993
int ret
#define yy_create_buffer
Definition: parser.yy.c:9
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
#define f
Definition: ke_i.h:83
_Check_return_ _CRTIMP FILE *__cdecl fdopen(_In_ int _FileHandle, _In_z_ const char *_Format)
struct @4825 import_stack[MAX_IMPORT_DEPTH]
int mkstemps(char *template, int suffix_len)
Definition: mkstemps.c:73
#define NULL
Definition: types.h:112
char * temp_name
Definition: parser.yy.c:991
Definition: name.c:38
void exit(int exitcode)
Definition: _exit.c:33
char * xstrdup(const char *s)
Definition: uimain.c:768
char * acf_name
Definition: widl.c:135
char * input_name
Definition: parser.yy.c:989
GLuint const GLchar * name
Definition: glext.h:6031

◆ warning_disable()

static void warning_disable ( int  warning)
static

Definition at line 2982 of file parser.yy.c.

2983 {
2984  warning_t *warning_entry;
2986  if(warning_entry->num == warning)
2987  return;
2988  warning_entry = xmalloc( sizeof(*warning_entry) );
2989  warning_entry->num = warning;
2990  list_add_tail(disabled_warnings, &warning_entry->entry);
2991 }
__WINE_SERVER_LIST_INLINE void list_add_tail(struct list *list, struct list *elem)
Definition: list.h:102
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Definition: list.h:198
void * xmalloc(int size)
Definition: uimain.c:747
static warning_list_t * disabled_warnings
Definition: parser.yy.c:984
uint32_t entry
Definition: isohybrid.c:63
struct list entry
Definition: widltypes.h:547
#define warning(s)
Definition: debug.h:83

Referenced by do_warning().

◆ warning_enable()

static void warning_enable ( int  warning)
static

Definition at line 2993 of file parser.yy.c.

2994 {
2995  warning_t *warning_entry;
2997  if(warning_entry->num == warning)
2998  {
2999  list_remove(&warning_entry->entry);
3000  free(warning_entry);
3001  break;
3002  }
3003 }
#define free
Definition: debug_ros.c:5
#define LIST_FOR_EACH_ENTRY(elem, list, type, field)
Definition: list.h:198
__WINE_SERVER_LIST_INLINE void list_remove(struct list *elem)
Definition: list.h:108
static warning_list_t * disabled_warnings
Definition: parser.yy.c:984
uint32_t entry
Definition: isohybrid.c:63
struct list entry
Definition: widltypes.h:547
#define warning(s)
Definition: debug.h:83

Referenced by do_warning().

◆ xstrtoul()

static unsigned int xstrtoul ( const char nptr,
char **  endptr,
int  base 
)
static

Definition at line 997 of file parser.yy.c.

998 {
999  unsigned long val;
1000 
1001  errno = 0;
1002  val = strtoul(nptr, endptr, base);
1003  if ((val == ULONG_MAX && errno == ERANGE) || ((unsigned int)val != val))
1004  error_loc("integer constant %s is too large\n", nptr);
1005  return val;
1006 }
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
Definition: utclib.c:696
int errno
void error_loc(const char *s,...)
Definition: utils.c:69
GLuint GLfloat * val
Definition: glext.h:7180
#define ERANGE
Definition: acclib.h:92
#define ULONG_MAX
Definition: limits.h:44

◆ yy_create_buffer()

YY_BUFFER_STATE yy_create_buffer ( FILE file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 1351 of file macro.lex.yy.c.

1352 {
1354 
1355  b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1356  if ( ! b )
1357  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1358 
1359  b->yy_buf_size = size;
1360 
1361  /* yy_ch_buf has to be 2 characters longer than the size given because
1362  * we need to put in 2 end-of-buffer characters.
1363  */
1364  b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
1365  if ( ! b->yy_ch_buf )
1366  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1367 
1368  b->yy_is_our_buffer = 1;
1369 
1370  yy_init_buffer(b,file );
1371 
1372  return b;
1373 }
#define YY_FATAL_ERROR(msg)
Definition: macro.lex.yy.c:670
void * yyalloc(yy_size_t)
#define b
Definition: ke_i.h:79
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLsizeiptr size
Definition: glext.h:5919
static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
struct yy_buffer_state * YY_BUFFER_STATE
Definition: macro.lex.yy.c:154
Definition: fci.c:126

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with yy_create_buffer()

Definition at line 1379 of file macro.lex.yy.c.

1380 {
1381 
1382  if ( ! b )
1383  return;
1384 
1385  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1387 
1388  if ( b->yy_is_our_buffer )
1389  yyfree((void *) b->yy_ch_buf );
1390 
1391  yyfree((void *) b );
1392 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: macro.lex.yy.c:271
void yyfree(void *)
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
struct yy_buffer_state * YY_BUFFER_STATE
Definition: macro.lex.yy.c:154
#define YY_CURRENT_BUFFER
Definition: macro.lex.yy.c:264

◆ yy_fatal_error()

static void yynoreturn yy_fatal_error ( const char msg)
static

◆ yy_flush_buffer()

void yy_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters. On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1426 of file macro.lex.yy.c.

1427 {
1428  if ( ! b )
1429  return;
1430 
1431  b->yy_n_chars = 0;
1432 
1433  /* We always need two end-of-buffer characters. The first causes
1434  * a transition to the end-of-buffer state. The second causes
1435  * a jam in that state.
1436  */
1437  b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
1438  b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
1439 
1440  b->yy_buf_pos = &b->yy_ch_buf[0];
1441 
1442  b->yy_at_bol = 1;
1443  b->yy_buffer_status = YY_BUFFER_NEW;
1444 
1445  if ( b == YY_CURRENT_BUFFER )
1447 }
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define YY_END_OF_BUFFER_CHAR
Definition: macro.lex.yy.c:141
#define YY_BUFFER_NEW
Definition: macro.lex.yy.c:236
static void yy_load_buffer_state(void)
#define YY_CURRENT_BUFFER
Definition: macro.lex.yy.c:264

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

◆ yy_init_buffer()

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE file 
)
static

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

◆ yy_load_buffer_state()

static void yy_load_buffer_state ( void  )
static

◆ yy_pop_state()

static void yy_pop_state ( void  )
static

◆ yy_push_state()

static void yy_push_state ( int  _new_state)
static

◆ yy_scan_buffer()

YY_BUFFER_STATE yy_scan_buffer ( char base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 1553 of file macro.lex.yy.c.

1554 {
1556 
1557  if ( size < 2 ||
1560  /* They forgot to leave room for the EOB's. */
1561  return 0;
1562 
1563  b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
1564  if ( ! b )
1565  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1566 
1567  b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
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;
1573  b->yy_at_bol = 1;
1574  b->yy_fill_buffer = 0;
1575  b->yy_buffer_status = YY_BUFFER_NEW;
1576 
1578 
1579  return b;
1580 }
#define YY_FATAL_ERROR(msg)
Definition: macro.lex.yy.c:670
GLuint base
Definition: 3dtext.c:35
void * yyalloc(yy_size_t)
#define b
Definition: ke_i.h:79
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLsizeiptr size
Definition: glext.h:5919
#define YY_END_OF_BUFFER_CHAR
Definition: macro.lex.yy.c:141
#define YY_BUFFER_NEW
Definition: macro.lex.yy.c:236
void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)
struct yy_buffer_state * YY_BUFFER_STATE
Definition: macro.lex.yy.c:154

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( const char bytes,
int  len 
)

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( const char yy_str)

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1306 of file macro.lex.yy.c.

1307 {
1308 
1309  /* TODO. We should be able to replace this entire function body
1310  * with
1311  * yypop_buffer_state();
1312  * yypush_buffer_state(new_buffer);
1313  */
1315  if ( YY_CURRENT_BUFFER == new_buffer )
1316  return;
1317 
1318  if ( YY_CURRENT_BUFFER )
1319  {
1320  /* Flush out information for old buffer. */
1321  *(yy_c_buf_p) = (yy_hold_char);
1322  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1323  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1324  }
1325 
1326  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1328 
1329  /* We don't actually know whether we did this switch during
1330  * EOF (yywrap()) processing, but the only time this flag
1331  * is looked at is after yywrap() is called, so it's safe
1332  * to go ahead and always set it.
1333  */
1335 }
static char * yy_c_buf_p
Definition: macro.lex.yy.c:279
#define YY_CURRENT_BUFFER_LVALUE
Definition: macro.lex.yy.c:271
static void yyensure_buffer_stack(void)
static int yy_did_buffer_switch_on_eof
Definition: macro.lex.yy.c:286
static yy_size_t yy_n_chars
Definition: macro.lex.yy.c:275
static void yy_load_buffer_state(void)
static char yy_hold_char
Definition: macro.lex.yy.c:274
#define YY_CURRENT_BUFFER
Definition: macro.lex.yy.c:264

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

◆ yyalloc()

Definition at line 1814 of file macro.lex.yy.c.

1815 {
1816  return (void *) malloc( size );
1817 }
GLsizeiptr size
Definition: glext.h:5919
#define malloc
Definition: debug_ros.c:4

◆ yyensure_buffer_stack()

static void yyensure_buffer_stack ( void  )
static

◆ yyfree()

void yyfree ( void )

Definition at line 1831 of file macro.lex.yy.c.

1832 {
1833  free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
1834 }
#define free
Definition: debug_ros.c:5
static PVOID ptr
Definition: dispmode.c:27

◆ yyget_debug()

int yyget_debug ( void  )

Definition at line 1730 of file macro.lex.yy.c.

1731 {
1732  return yy_flex_debug;
1733 }
int yy_flex_debug
Definition: macro.lex.yy.c:462

◆ yyget_extra()

YY_EXTRA_TYPE yyget_extra ( void  )

◆ yyget_in()

FILE* yyget_in ( void  )

Get the input stream.

Definition at line 1674 of file macro.lex.yy.c.

1675 {
1676  return yyin;
1677 }
FILE * yyin
Definition: macro.lex.yy.c:338

◆ yyget_leng()

int yyget_leng ( void  )

Get the length of the current token.

Definition at line 1690 of file macro.lex.yy.c.

1691 {
1692  return yyleng;
1693 }
yy_size_t yyleng
Definition: macro.lex.yy.c:276

◆ yyget_lineno()

int yyget_lineno ( void  )

Get the current line number.

Definition at line 1665 of file macro.lex.yy.c.

1666 {
1667 
1668  return yylineno;
1669 }
int yylineno
Definition: macro.lex.yy.c:344

◆ yyget_out()

FILE* yyget_out ( void  )

Get the output stream.

Definition at line 1682 of file macro.lex.yy.c.

1683 {
1684  return yyout;
1685 }
FILE * yyout
Definition: macro.lex.yy.c:338

◆ yyget_text()

char* yyget_text ( void  )

Get the current token.

Definition at line 1699 of file macro.lex.yy.c.

1700 {
1701  return yytext;
1702 }
char * yytext
Definition: macro.lex.yy.c:471

◆ yylex()

int yylex ( void  )

◆ yylex_destroy()

int yylex_destroy ( void  )

Definition at line 1769 of file macro.lex.yy.c.

1770 {
1771 
1772  /* Pop the buffer stack, destroying each element. */
1773  while(YY_CURRENT_BUFFER){
1777  }
1778 
1779  /* Destroy the stack itself. */
1780  yyfree((yy_buffer_stack) );
1781  (yy_buffer_stack) = NULL;
1782 
1783  /* Reset the globals. This is important in a non-reentrant scanner so the next time
1784  * yylex() is called, initialization will occur. */
1785  yy_init_globals( );
1786 
1787  return 0;
1788 }
void yy_delete_buffer(YY_BUFFER_STATE b)
#define YY_CURRENT_BUFFER_LVALUE
Definition: macro.lex.yy.c:271
void yyfree(void *)
static int yy_init_globals(void)
static YY_BUFFER_STATE * yy_buffer_stack
Definition: macro.lex.yy.c:256
#define NULL
Definition: types.h:112
void yypop_buffer_state(void)
#define YY_CURRENT_BUFFER
Definition: macro.lex.yy.c:264

◆ yypop_buffer_state()

void yypop_buffer_state ( void  )

Removes and deletes the top of the stack, if present. The next element becomes the new top.

Definition at line 1485 of file macro.lex.yy.c.

1486 {
1487  if (!YY_CURRENT_BUFFER)
1488  return;
1489 
1492  if ((yy_buffer_stack_top) > 0)
1493  --(yy_buffer_stack_top);
1494 
1495  if (YY_CURRENT_BUFFER) {
1498  }
1499 }
void yy_delete_buffer(YY_BUFFER_STATE b)
static size_t yy_buffer_stack_top
Definition: macro.lex.yy.c:254
#define YY_CURRENT_BUFFER_LVALUE
Definition: macro.lex.yy.c:271
static int yy_did_buffer_switch_on_eof
Definition: macro.lex.yy.c:286
static void yy_load_buffer_state(void)
#define NULL
Definition: types.h:112
#define YY_CURRENT_BUFFER
Definition: macro.lex.yy.c:264

◆ yypush_buffer_state()

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack. The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 1455 of file macro.lex.yy.c.

1456 {
1457  if (new_buffer == NULL)
1458  return;
1459 
1461 
1462  /* This block is copied from yy_switch_to_buffer. */
1463  if ( YY_CURRENT_BUFFER )
1464  {
1465  /* Flush out information for old buffer. */
1466  *(yy_c_buf_p) = (yy_hold_char);
1467  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1468  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1469  }
1470 
1471  /* Only push if top exists. Otherwise, replace top. */
1472  if (YY_CURRENT_BUFFER)
1473  (yy_buffer_stack_top)++;
1474  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1475 
1476  /* copied from yy_switch_to_buffer. */
1479 }
static size_t yy_buffer_stack_top
Definition: macro.lex.yy.c:254
static char * yy_c_buf_p
Definition: macro.lex.yy.c:279
#define YY_CURRENT_BUFFER_LVALUE
Definition: macro.lex.yy.c:271
static void yyensure_buffer_stack(void)
static int yy_did_buffer_switch_on_eof
Definition: macro.lex.yy.c:286
static yy_size_t yy_n_chars
Definition: macro.lex.yy.c:275
static void yy_load_buffer_state(void)
static char yy_hold_char
Definition: macro.lex.yy.c:274
#define NULL
Definition: types.h:112
#define YY_CURRENT_BUFFER
Definition: macro.lex.yy.c:264

◆ yyrealloc()

void* yyrealloc ( void ,
yy_size_t   
)

Definition at line 1819 of file macro.lex.yy.c.

1820 {
1821  /* The cast to (char *) in the following accommodates both
1822  * implementations that use char* generic pointers, and those
1823  * that use void* generic pointers. It works with the latter
1824  * because both ANSI C and C++ allow castless assignment from
1825  * any pointer type to void*, and deal with argument conversions
1826  * as though doing an assignment.
1827  */
1828  return (void *) realloc( (char *) ptr, size );
1829 }
#define realloc
Definition: debug_ros.c:6
static PVOID ptr
Definition: dispmode.c:27
GLsizeiptr size
Definition: glext.h:5919

◆ yyrestart()

void yyrestart ( FILE input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 1289 of file macro.lex.yy.c.

1290 {
1291 
1292  if ( ! YY_CURRENT_BUFFER ){
1296  }
1297 
1298  yy_init_buffer(YY_CURRENT_BUFFER,input_file );
1300 }
#define YY_CURRENT_BUFFER_LVALUE
Definition: macro.lex.yy.c:271
static void yyensure_buffer_stack(void)
FILE * yyin
Definition: macro.lex.yy.c:338
#define YY_BUF_SIZE
Definition: macro.lex.yy.c:145
static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
static void yy_load_buffer_state(void)
#define YY_CURRENT_BUFFER
Definition: macro.lex.yy.c:264

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

Definition at line 1735 of file macro.lex.yy.c.

1736 {
1737  yy_flex_debug = bdebug ;
1738 }
int yy_flex_debug
Definition: macro.lex.yy.c:462

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined)

◆ yyset_in()

void yyset_in ( FILE in_str)

Set the input stream. This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
yy_switch_to_buffer

Definition at line 1720 of file macro.lex.yy.c.

1721 {
1722  yyin = in_str ;
1723 }
FILE * yyin
Definition: macro.lex.yy.c:338

◆ yyset_lineno()

void yyset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 1708 of file macro.lex.yy.c.

1709 {
1710 
1712 }
int line_number
Definition: parser.yy.c:990
int yylineno
Definition: macro.lex.yy.c:344

◆ yyset_out()

void yyset_out ( FILE _out_str)

Definition at line 1725 of file macro.lex.yy.c.

1726 {
1727  yyout = out_str ;
1728 }
FILE * yyout
Definition: macro.lex.yy.c:338

◆ yywrap()

int yywrap ( void  )

Definition at line 2104 of file macro.lex.yy.c.

2104 { return 1; }

Variable Documentation

◆ attr_keywords

const struct keyword attr_keywords[]
static

Definition at line 2692 of file parser.yy.c.

Referenced by attr_token().

◆ cbufalloc

int cbufalloc = 0
static

Definition at line 977 of file parser.yy.c.

Referenced by addcchar().

◆ cbuffer

char* cbuffer
static

Definition at line 975 of file parser.yy.c.

Referenced by _chm_decompress_block(), addcchar(), and get_buffered_cstring().

◆ cbufidx

int cbufidx
static

Definition at line 976 of file parser.yy.c.

Referenced by addcchar().

◆ disabled_warnings

warning_list_t* disabled_warnings = NULL
static

Definition at line 984 of file parser.yy.c.

Referenced by do_warning(), is_warning_enabled(), warning_disable(), and warning_enable().

◆ first_import

struct imports * first_import

Referenced by do_import().

◆ import_stack

struct { ... } import_stack[MAX_IMPORT_DEPTH]

◆ import_stack_ptr

int import_stack_ptr = 0

Definition at line 993 of file parser.yy.c.

Referenced by abort_import(), do_import(), pop_import(), and switch_to_acf().

◆ input_name

◆ keywords

const struct keyword keywords[]
static

Definition at line 2628 of file parser.yy.c.

Referenced by kw_token().

◆ line_number

◆ state

Definition at line 988 of file parser.yy.c.

Referenced by pop_import().

◆ temp_name

char* temp_name

Definition at line 991 of file parser.yy.c.

Referenced by abort_import(), do_import(), pop_import(), and switch_to_acf().

◆ yy_accept

const flex_int16_t yy_accept[210]
static
Initial value:
=
{ 0,
0, 0, 0, 0, 0, 0, 0, 0, 3, 3,
6, 6, 0, 0, 42, 40, 29, 28, 40, 8,
40, 12, 40, 40, 24, 24, 40, 40, 40, 27,
27, 27, 19, 40, 29, 2, 27, 18, 41, 9,
18, 11, 24, 24, 21, 21, 21, 20, 29, 2,
3, 6, 6, 6, 13, 18, 34, 38, 32, 0,
0, 24, 24, 24, 0, 30, 36, 33, 35, 31,
27, 10, 27, 37, 0, 2, 0, 2, 0, 27,
17, 15, 14, 24, 0, 21, 21, 0, 2, 2,
3, 6, 6, 6, 16, 39, 25, 24, 24, 23,
27, 0, 0, 27, 24, 0, 21, 6, 6, 0,
23, 23, 27, 0, 0, 27, 24, 0, 21, 6,
6, 0, 25, 23, 23, 27, 0, 0, 27, 24,
0, 21, 6, 5, 27, 0, 0, 27, 24, 0,
21, 6, 5, 27, 0, 0, 27, 24, 0, 21,
6, 27, 0, 1, 27, 24, 0, 21, 6, 27,
0, 27, 0, 24, 4, 0, 26, 0, 27, 0,
4, 0, 27, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 7,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 22, 0
}

Definition at line 607 of file parser.yy.c.

◆ yy_act

int yy_act

Definition at line 1237 of file parser.yy.c.

◆ yy_base

const flex_int16_t yy_base[251]
static
Initial value:
=
{ 0,
0, 49, 49, 53, 54, 57, 90, 59, 404, 397,
138, 139, 140, 141, 399, 677, 677, 677, 381, 677,
389, 677, 378, 382, 176, 138, 48, 377, 50, 0,
387, 372, 677, 335, 151, 152, 345, 677, 677, 677,
48, 677, 213, 118, 250, 0, 378, 677, 66, 377,
0, 0, 339, 337, 677, 138, 677, 677, 677, 363,
56, 181, 129, 48, 0, 677, 677, 677, 677, 677,
0, 677, 351, 677, 156, 154, 332, 157, 325, 328,
677, 677, 677, 274, 0, 309, 0, 71, 360, 359,
0, 0, 325, 316, 677, 677, 199, 677, 677, 137,
337, 320, 317, 309, 333, 0, 368, 308, 296, 195,
191, 142, 322, 298, 300, 304, 392, 0, 427, 303,
288, 61, 230, 677, 677, 309, 299, 285, 281, 451,
0, 486, 288, 0, 296, 275, 284, 271, 510, 0,
545, 279, 0, 294, 266, 302, 269, 569, 0, 604,
263, 271, 265, 294, 254, 292, 279, 278, 239, 80,
244, 239, 0, 351, 0, 164, 677, 238, 245, 0,
0, 244, 274, 0, 273, 167, 0, 241, 262, 227,
0, 225, 0, 226, 0, 219, 0, 222, 247, 677,
0, 0, 0, 0, 246, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 677, 677, 640,
644, 648, 650, 654, 656, 660, 664, 253, 252, 251,
249, 248, 668, 242, 239, 238, 672, 234, 227, 226,
221, 219, 217, 215, 211, 208, 207, 197, 188, 180,
178, 172, 171, 169, 144, 83, 82, 78, 77, 73
}

Definition at line 675 of file parser.yy.c.

◆ yy_bp

char * yy_bp

Definition at line 1236 of file parser.yy.c.

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 495 of file parser.yy.c.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 494 of file parser.yy.c.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 493 of file parser.yy.c.

◆ yy_c_buf_p

char* yy_c_buf_p = NULL
static

Definition at line 517 of file parser.yy.c.

◆ yy_chk

const flex_int16_t yy_chk[728]
static

Definition at line 821 of file parser.yy.c.

◆ yy_cp

char* yy_cp

Definition at line 1236 of file parser.yy.c.

◆ YY_DECL

YY_DECL
Initial value:
{
int yy_state_type
Definition: macro.lex.yy.c:340
#define yy_current_state()
Definition: ppl.yy.c:1440

The main scanner function which does all the work.

Definition at line 1234 of file parser.yy.c.

◆ yy_def

const flex_int16_t yy_def[251]
static
Initial value:
=
{ 0,
209, 1, 210, 210, 210, 210, 209, 7, 211, 211,
212, 212, 210, 210, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 213,
213, 213, 209, 209, 209, 209, 213, 209, 209, 209,
214, 209, 209, 43, 215, 215, 215, 209, 209, 209,
216, 217, 217, 217, 209, 214, 209, 209, 209, 209,
209, 209, 209, 209, 218, 209, 209, 209, 209, 209,
213, 209, 213, 209, 209, 209, 209, 209, 209, 213,
209, 209, 209, 209, 219, 215, 215, 209, 209, 209,
216, 217, 217, 217, 209, 209, 209, 209, 209, 218,
213, 209, 209, 213, 209, 220, 215, 217, 217, 209,
209, 209, 213, 209, 209, 213, 209, 221, 215, 217,
217, 209, 209, 209, 209, 213, 209, 209, 213, 209,
222, 215, 217, 223, 213, 209, 209, 213, 209, 224,
215, 217, 223, 213, 209, 209, 213, 209, 225, 215,
217, 213, 209, 209, 213, 209, 209, 215, 217, 213,
209, 213, 226, 209, 227, 209, 209, 209, 213, 228,
227, 209, 213, 229, 209, 209, 230, 209, 209, 209,
231, 209, 232, 209, 233, 209, 234, 209, 209, 209,
235, 236, 237, 238, 209, 239, 240, 241, 242, 243,
244, 245, 246, 247, 248, 249, 250, 209, 0, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209,
209, 209, 209, 209, 209, 209, 209, 209, 209, 209
}

Definition at line 706 of file parser.yy.c.

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

Definition at line 524 of file parser.yy.c.

◆ yy_ec

const YY_CHAR yy_ec[256]
static

Definition at line 634 of file parser.yy.c.

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 909 of file parser.yy.c.

Referenced by main().

◆ yy_hold_char

char yy_hold_char
static

Definition at line 512 of file parser.yy.c.

◆ yy_init

int yy_init = 0
static

Definition at line 518 of file parser.yy.c.

Referenced by if().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 906 of file parser.yy.c.

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 905 of file parser.yy.c.

◆ yy_meta

const YY_CHAR yy_meta[51]
static
Initial value:
=
{ 0,
1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
1, 1, 3, 3, 1, 1, 1, 3, 3, 3,
3, 4, 4, 4, 4, 4, 4, 4, 1, 1,
1, 4, 3, 3, 3, 3, 4, 4, 4, 4,
4, 4, 4, 4, 4, 4, 4, 4, 4, 1
}

Definition at line 666 of file parser.yy.c.

◆ yy_n_chars

int yy_n_chars
static

Definition at line 513 of file parser.yy.c.

◆ yy_nxt

const flex_int16_t yy_nxt[728]
static

Definition at line 737 of file parser.yy.c.

◆ yy_start

int yy_start = 0
static

Definition at line 519 of file parser.yy.c.

Referenced by if().

◆ yy_start_stack

int* yy_start_stack = NULL
static

Definition at line 1122 of file parser.yy.c.

◆ yy_start_stack_depth

int yy_start_stack_depth = 0
static

Definition at line 1121 of file parser.yy.c.

◆ yy_start_stack_ptr

int yy_start_stack_ptr = 0
static

Definition at line 1120 of file parser.yy.c.

◆ yyin

FILE* yyin = NULL

Definition at line 571 of file parser.yy.c.

◆ yyleng

int yyleng

Definition at line 514 of file parser.yy.c.

◆ yylineno

int yylineno = 1

Definition at line 576 of file parser.yy.c.

◆ yyout

FILE * yyout = NULL

Definition at line 571 of file parser.yy.c.

◆ yytext

char* yytext

Definition at line 918 of file parser.yy.c.