[CMAKE] Generate Flex and Bison files at build time

We have Flex and Bison distributed along with RosBE 2.2 so this should
not be a problem
This commit is contained in:
Victor Perevertkin 2021-01-28 06:36:00 +03:00
parent 91fceab36e
commit 5375e33490
No known key found for this signature in database
GPG key ID: C750B7222E9C7830
44 changed files with 54 additions and 68683 deletions

View file

@ -74,7 +74,8 @@ if(MSVC_IDE)
endif()
# Bison and Flex support
# include(sdk/cmake/bison-flex.cmake)
find_package(BISON REQUIRED)
find_package(FLEX REQUIRED)
if(NOT CMAKE_CROSSCOMPILING)
set(TOOLS_FOLDER ${CMAKE_CURRENT_BINARY_DIR})

View file

@ -17,13 +17,25 @@ list(APPEND SOURCE
reflection.c
utils.c)
FLEX_TARGET(asmshader_scanner asmshader.l ${CMAKE_CURRENT_BINARY_DIR}/asmshader.yy.c)
BISON_TARGET(asmshader_parser asmshader.y ${CMAKE_CURRENT_BINARY_DIR}/asmshader.tab.c COMPILE_FLAGS "-p asmshader_")
ADD_FLEX_BISON_DEPENDENCY(asmshader_scanner asmshader_parser)
FLEX_TARGET(hlsl_scanner hlsl.l ${CMAKE_CURRENT_BINARY_DIR}/hlsl.yy.c)
BISON_TARGET(hlsl_parser hlsl.y ${CMAKE_CURRENT_BINARY_DIR}/hlsl.tab.c COMPILE_FLAGS "-p hlsl_")
ADD_FLEX_BISON_DEPENDENCY(hlsl_scanner hlsl_parser)
FLEX_TARGET(pp_scanner ppl.l ${CMAKE_CURRENT_BINARY_DIR}/ppl.yy.c)
BISON_TARGET(pp_parser ppy.y ${CMAKE_CURRENT_BINARY_DIR}/ppy.tab.c COMPILE_FLAGS "-p ppy_")
ADD_FLEX_BISON_DEPENDENCY(pp_scanner pp_parser)
list(APPEND PCH_SKIP_SOURCE
asmshader.tab.c
asmshader.yy.c
hlsl.tab.c
hlsl.yy.c
ppy.tab.c
ppl.yy.c)
${FLEX_asmshader_scanner_OUTPUTS}
${BISON_asmshader_parser_OUTPUTS}
${FLEX_hlsl_scanner_OUTPUTS}
${BISON_hlsl_parser_OUTPUTS}
${FLEX_pp_scanner_OUTPUTS}
${BISON_pp_parser_OUTPUTS})
add_library(d3dcompiler_43 MODULE
${SOURCE}
@ -32,16 +44,6 @@ add_library(d3dcompiler_43 MODULE
${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43_stubs.c
${CMAKE_CURRENT_BINARY_DIR}/d3dcompiler_43.def)
# some files have been generated with relative file paths...
set_source_files_properties(
asmshader.tab.c
asmshader.yy.c
hlsl.tab.c
hlsl.yy.c
ppy.tab.c
ppl.yy.c
PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
set_module_type(d3dcompiler_43 win32dll)
target_link_libraries(d3dcompiler_43 dx10guid uuid wine wpp)
add_importlibs(d3dcompiler_43 msvcrt kernel32 ntdll)

File diff suppressed because it is too large Load diff

View file

@ -1,267 +0,0 @@
/* A Bison parser, made by GNU Bison 3.4.1. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
#ifndef YY_ASMSHADER_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_ASMSHADER_TAB_H_INCLUDED
# define YY_ASMSHADER_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_ASMSHADER_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int asmshader_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
INSTR_ADD = 258,
INSTR_NOP = 259,
INSTR_MOV = 260,
INSTR_SUB = 261,
INSTR_MAD = 262,
INSTR_MUL = 263,
INSTR_RCP = 264,
INSTR_RSQ = 265,
INSTR_DP3 = 266,
INSTR_DP4 = 267,
INSTR_MIN = 268,
INSTR_MAX = 269,
INSTR_SLT = 270,
INSTR_SGE = 271,
INSTR_ABS = 272,
INSTR_EXP = 273,
INSTR_LOG = 274,
INSTR_EXPP = 275,
INSTR_LOGP = 276,
INSTR_DST = 277,
INSTR_LRP = 278,
INSTR_FRC = 279,
INSTR_POW = 280,
INSTR_CRS = 281,
INSTR_SGN = 282,
INSTR_NRM = 283,
INSTR_SINCOS = 284,
INSTR_M4x4 = 285,
INSTR_M4x3 = 286,
INSTR_M3x4 = 287,
INSTR_M3x3 = 288,
INSTR_M3x2 = 289,
INSTR_DCL = 290,
INSTR_DEF = 291,
INSTR_DEFB = 292,
INSTR_DEFI = 293,
INSTR_REP = 294,
INSTR_ENDREP = 295,
INSTR_IF = 296,
INSTR_ELSE = 297,
INSTR_ENDIF = 298,
INSTR_BREAK = 299,
INSTR_BREAKP = 300,
INSTR_CALL = 301,
INSTR_CALLNZ = 302,
INSTR_LOOP = 303,
INSTR_RET = 304,
INSTR_ENDLOOP = 305,
INSTR_LABEL = 306,
INSTR_SETP = 307,
INSTR_TEXLDL = 308,
INSTR_LIT = 309,
INSTR_MOVA = 310,
INSTR_CND = 311,
INSTR_CMP = 312,
INSTR_DP2ADD = 313,
INSTR_TEXCOORD = 314,
INSTR_TEXCRD = 315,
INSTR_TEXKILL = 316,
INSTR_TEX = 317,
INSTR_TEXLD = 318,
INSTR_TEXBEM = 319,
INSTR_TEXBEML = 320,
INSTR_TEXREG2AR = 321,
INSTR_TEXREG2GB = 322,
INSTR_TEXREG2RGB = 323,
INSTR_TEXM3x2PAD = 324,
INSTR_TEXM3x2TEX = 325,
INSTR_TEXM3x3PAD = 326,
INSTR_TEXM3x3SPEC = 327,
INSTR_TEXM3x3VSPEC = 328,
INSTR_TEXM3x3TEX = 329,
INSTR_TEXDP3TEX = 330,
INSTR_TEXM3x2DEPTH = 331,
INSTR_TEXDP3 = 332,
INSTR_TEXM3x3 = 333,
INSTR_TEXDEPTH = 334,
INSTR_BEM = 335,
INSTR_DSX = 336,
INSTR_DSY = 337,
INSTR_TEXLDP = 338,
INSTR_TEXLDB = 339,
INSTR_TEXLDD = 340,
INSTR_PHASE = 341,
REG_TEMP = 342,
REG_OUTPUT = 343,
REG_INPUT = 344,
REG_CONSTFLOAT = 345,
REG_CONSTINT = 346,
REG_CONSTBOOL = 347,
REG_TEXTURE = 348,
REG_SAMPLER = 349,
REG_TEXCRDOUT = 350,
REG_OPOS = 351,
REG_OFOG = 352,
REG_OPTS = 353,
REG_VERTEXCOLOR = 354,
REG_FRAGCOLOR = 355,
REG_FRAGDEPTH = 356,
REG_VPOS = 357,
REG_VFACE = 358,
REG_ADDRESS = 359,
REG_LOOP = 360,
REG_PREDICATE = 361,
REG_LABEL = 362,
VER_VS10 = 363,
VER_VS11 = 364,
VER_VS20 = 365,
VER_VS2X = 366,
VER_VS30 = 367,
VER_PS10 = 368,
VER_PS11 = 369,
VER_PS12 = 370,
VER_PS13 = 371,
VER_PS14 = 372,
VER_PS20 = 373,
VER_PS2X = 374,
VER_PS30 = 375,
SHIFT_X2 = 376,
SHIFT_X4 = 377,
SHIFT_X8 = 378,
SHIFT_D2 = 379,
SHIFT_D4 = 380,
SHIFT_D8 = 381,
MOD_SAT = 382,
MOD_PP = 383,
MOD_CENTROID = 384,
COMP_GT = 385,
COMP_LT = 386,
COMP_GE = 387,
COMP_LE = 388,
COMP_EQ = 389,
COMP_NE = 390,
SMOD_BIAS = 391,
SMOD_SCALEBIAS = 392,
SMOD_DZ = 393,
SMOD_DW = 394,
SMOD_ABS = 395,
SMOD_NOT = 396,
SAMPTYPE_1D = 397,
SAMPTYPE_2D = 398,
SAMPTYPE_CUBE = 399,
SAMPTYPE_VOLUME = 400,
USAGE_POSITION = 401,
USAGE_BLENDWEIGHT = 402,
USAGE_BLENDINDICES = 403,
USAGE_NORMAL = 404,
USAGE_PSIZE = 405,
USAGE_TEXCOORD = 406,
USAGE_TANGENT = 407,
USAGE_BINORMAL = 408,
USAGE_TESSFACTOR = 409,
USAGE_POSITIONT = 410,
USAGE_COLOR = 411,
USAGE_FOG = 412,
USAGE_DEPTH = 413,
USAGE_SAMPLE = 414,
COMPONENT = 415,
IMMVAL = 416,
IMMBOOL = 417
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 68 "asmshader.y"
struct {
float val;
BOOL integer;
} immval;
BOOL immbool;
unsigned int regnum;
struct shader_reg reg;
DWORD srcmod;
DWORD writemask;
struct {
DWORD writemask;
DWORD idx;
DWORD last;
} wm_components;
DWORD swizzle;
struct {
DWORD swizzle;
DWORD idx;
} sw_components;
DWORD component;
struct {
DWORD mod;
DWORD shift;
} modshift;
enum bwriter_comparison_type comptype;
struct {
DWORD dclusage;
unsigned int regnum;
} declaration;
enum bwritersampler_texture_type samplertype;
struct rel_reg rel_reg;
struct src_regs sregs;
#line 255 "asmshader.tab.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE asmshader_lval;
int asmshader_parse (void);
#endif /* !YY_ASMSHADER_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_ASMSHADER_TAB_H_INCLUDED */

File diff suppressed because it is too large Load diff

View file

@ -1,711 +0,0 @@
#ifndef asmshader_HEADER_H
#define asmshader_HEADER_H 1
#define asmshader_IN_HEADER 1
#line 5 "asmshader.yy.h"
#line 7 "asmshader.yy.h"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#ifdef yy_create_buffer
#define asmshader__create_buffer_ALREADY_DEFINED
#else
#define yy_create_buffer asmshader__create_buffer
#endif
#ifdef yy_delete_buffer
#define asmshader__delete_buffer_ALREADY_DEFINED
#else
#define yy_delete_buffer asmshader__delete_buffer
#endif
#ifdef yy_scan_buffer
#define asmshader__scan_buffer_ALREADY_DEFINED
#else
#define yy_scan_buffer asmshader__scan_buffer
#endif
#ifdef yy_scan_string
#define asmshader__scan_string_ALREADY_DEFINED
#else
#define yy_scan_string asmshader__scan_string
#endif
#ifdef yy_scan_bytes
#define asmshader__scan_bytes_ALREADY_DEFINED
#else
#define yy_scan_bytes asmshader__scan_bytes
#endif
#ifdef yy_init_buffer
#define asmshader__init_buffer_ALREADY_DEFINED
#else
#define yy_init_buffer asmshader__init_buffer
#endif
#ifdef yy_flush_buffer
#define asmshader__flush_buffer_ALREADY_DEFINED
#else
#define yy_flush_buffer asmshader__flush_buffer
#endif
#ifdef yy_load_buffer_state
#define asmshader__load_buffer_state_ALREADY_DEFINED
#else
#define yy_load_buffer_state asmshader__load_buffer_state
#endif
#ifdef yy_switch_to_buffer
#define asmshader__switch_to_buffer_ALREADY_DEFINED
#else
#define yy_switch_to_buffer asmshader__switch_to_buffer
#endif
#ifdef yypush_buffer_state
#define asmshader_push_buffer_state_ALREADY_DEFINED
#else
#define yypush_buffer_state asmshader_push_buffer_state
#endif
#ifdef yypop_buffer_state
#define asmshader_pop_buffer_state_ALREADY_DEFINED
#else
#define yypop_buffer_state asmshader_pop_buffer_state
#endif
#ifdef yyensure_buffer_stack
#define asmshader_ensure_buffer_stack_ALREADY_DEFINED
#else
#define yyensure_buffer_stack asmshader_ensure_buffer_stack
#endif
#ifdef yylex
#define asmshader_lex_ALREADY_DEFINED
#else
#define yylex asmshader_lex
#endif
#ifdef yyrestart
#define asmshader_restart_ALREADY_DEFINED
#else
#define yyrestart asmshader_restart
#endif
#ifdef yylex_init
#define asmshader_lex_init_ALREADY_DEFINED
#else
#define yylex_init asmshader_lex_init
#endif
#ifdef yylex_init_extra
#define asmshader_lex_init_extra_ALREADY_DEFINED
#else
#define yylex_init_extra asmshader_lex_init_extra
#endif
#ifdef yylex_destroy
#define asmshader_lex_destroy_ALREADY_DEFINED
#else
#define yylex_destroy asmshader_lex_destroy
#endif
#ifdef yyget_debug
#define asmshader_get_debug_ALREADY_DEFINED
#else
#define yyget_debug asmshader_get_debug
#endif
#ifdef yyset_debug
#define asmshader_set_debug_ALREADY_DEFINED
#else
#define yyset_debug asmshader_set_debug
#endif
#ifdef yyget_extra
#define asmshader_get_extra_ALREADY_DEFINED
#else
#define yyget_extra asmshader_get_extra
#endif
#ifdef yyset_extra
#define asmshader_set_extra_ALREADY_DEFINED
#else
#define yyset_extra asmshader_set_extra
#endif
#ifdef yyget_in
#define asmshader_get_in_ALREADY_DEFINED
#else
#define yyget_in asmshader_get_in
#endif
#ifdef yyset_in
#define asmshader_set_in_ALREADY_DEFINED
#else
#define yyset_in asmshader_set_in
#endif
#ifdef yyget_out
#define asmshader_get_out_ALREADY_DEFINED
#else
#define yyget_out asmshader_get_out
#endif
#ifdef yyset_out
#define asmshader_set_out_ALREADY_DEFINED
#else
#define yyset_out asmshader_set_out
#endif
#ifdef yyget_leng
#define asmshader_get_leng_ALREADY_DEFINED
#else
#define yyget_leng asmshader_get_leng
#endif
#ifdef yyget_text
#define asmshader_get_text_ALREADY_DEFINED
#else
#define yyget_text asmshader_get_text
#endif
#ifdef yyget_lineno
#define asmshader_get_lineno_ALREADY_DEFINED
#else
#define yyget_lineno asmshader_get_lineno
#endif
#ifdef yyset_lineno
#define asmshader_set_lineno_ALREADY_DEFINED
#else
#define yyset_lineno asmshader_set_lineno
#endif
#ifdef yywrap
#define asmshader_wrap_ALREADY_DEFINED
#else
#define yywrap asmshader_wrap
#endif
#ifdef yyalloc
#define asmshader_alloc_ALREADY_DEFINED
#else
#define yyalloc asmshader_alloc
#endif
#ifdef yyrealloc
#define asmshader_realloc_ALREADY_DEFINED
#else
#define yyrealloc asmshader_realloc
#endif
#ifdef yyfree
#define asmshader_free_ALREADY_DEFINED
#else
#define yyfree asmshader_free
#endif
#ifdef yytext
#define asmshader_text_ALREADY_DEFINED
#else
#define yytext asmshader_text
#endif
#ifdef yyleng
#define asmshader_leng_ALREADY_DEFINED
#else
#define yyleng asmshader_leng
#endif
#ifdef yyin
#define asmshader_in_ALREADY_DEFINED
#else
#define yyin asmshader_in
#endif
#ifdef yyout
#define asmshader_out_ALREADY_DEFINED
#else
#define yyout asmshader_out
#endif
#ifdef yy_flex_debug
#define asmshader__flex_debug_ALREADY_DEFINED
#else
#define yy_flex_debug asmshader__flex_debug
#endif
#ifdef yylineno
#define asmshader_lineno_ALREADY_DEFINED
#else
#define yylineno asmshader_lineno
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
/* begin standard C++ headers. */
/* TODO: this is always defined, so inline it */
#define yyconst const
#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
extern int yyleng;
extern FILE *yyin, *yyout;
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
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 );
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 );
void *yyalloc ( yy_size_t );
void *yyrealloc ( void *, yy_size_t );
void yyfree ( void * );
/* Begin user sect3 */
#define asmshader_wrap() (/*CONSTCOND*/1)
#define YY_SKIP_YYWRAP
extern int yylineno;
extern char *yytext;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#define yytext_ptr yytext
#ifdef YY_HEADER_EXPORT_START_CONDITIONS
#define INITIAL 0
#endif
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
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 );
FILE *yyget_in ( void );
void yyset_in ( FILE * _in_str );
FILE *yyget_out ( void );
void yyset_out ( FILE * _out_str );
int yyget_leng ( void );
char *yyget_text ( void );
int yyget_lineno ( void );
void yyset_lineno ( int _line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap ( void );
#else
extern int yywrap ( void );
#endif
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy ( char *, const char *, int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen ( const char * );
#endif
#ifndef YY_NO_INPUT
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex (void);
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
/* yy_get_previous_state - get the state just before the EOB char was reached */
#undef YY_NEW_FILE
#undef YY_FLUSH_BUFFER
#undef yy_set_bol
#undef yy_new_buffer
#undef yy_set_interactive
#undef YY_DO_BEFORE_ACTION
#ifdef YY_DECL_IS_OURS
#undef YY_DECL_IS_OURS
#undef YY_DECL
#endif
#ifndef asmshader__create_buffer_ALREADY_DEFINED
#undef yy_create_buffer
#endif
#ifndef asmshader__delete_buffer_ALREADY_DEFINED
#undef yy_delete_buffer
#endif
#ifndef asmshader__scan_buffer_ALREADY_DEFINED
#undef yy_scan_buffer
#endif
#ifndef asmshader__scan_string_ALREADY_DEFINED
#undef yy_scan_string
#endif
#ifndef asmshader__scan_bytes_ALREADY_DEFINED
#undef yy_scan_bytes
#endif
#ifndef asmshader__init_buffer_ALREADY_DEFINED
#undef yy_init_buffer
#endif
#ifndef asmshader__flush_buffer_ALREADY_DEFINED
#undef yy_flush_buffer
#endif
#ifndef asmshader__load_buffer_state_ALREADY_DEFINED
#undef yy_load_buffer_state
#endif
#ifndef asmshader__switch_to_buffer_ALREADY_DEFINED
#undef yy_switch_to_buffer
#endif
#ifndef asmshader_push_buffer_state_ALREADY_DEFINED
#undef yypush_buffer_state
#endif
#ifndef asmshader_pop_buffer_state_ALREADY_DEFINED
#undef yypop_buffer_state
#endif
#ifndef asmshader_ensure_buffer_stack_ALREADY_DEFINED
#undef yyensure_buffer_stack
#endif
#ifndef asmshader_lex_ALREADY_DEFINED
#undef yylex
#endif
#ifndef asmshader_restart_ALREADY_DEFINED
#undef yyrestart
#endif
#ifndef asmshader_lex_init_ALREADY_DEFINED
#undef yylex_init
#endif
#ifndef asmshader_lex_init_extra_ALREADY_DEFINED
#undef yylex_init_extra
#endif
#ifndef asmshader_lex_destroy_ALREADY_DEFINED
#undef yylex_destroy
#endif
#ifndef asmshader_get_debug_ALREADY_DEFINED
#undef yyget_debug
#endif
#ifndef asmshader_set_debug_ALREADY_DEFINED
#undef yyset_debug
#endif
#ifndef asmshader_get_extra_ALREADY_DEFINED
#undef yyget_extra
#endif
#ifndef asmshader_set_extra_ALREADY_DEFINED
#undef yyset_extra
#endif
#ifndef asmshader_get_in_ALREADY_DEFINED
#undef yyget_in
#endif
#ifndef asmshader_set_in_ALREADY_DEFINED
#undef yyset_in
#endif
#ifndef asmshader_get_out_ALREADY_DEFINED
#undef yyget_out
#endif
#ifndef asmshader_set_out_ALREADY_DEFINED
#undef yyset_out
#endif
#ifndef asmshader_get_leng_ALREADY_DEFINED
#undef yyget_leng
#endif
#ifndef asmshader_get_text_ALREADY_DEFINED
#undef yyget_text
#endif
#ifndef asmshader_get_lineno_ALREADY_DEFINED
#undef yyget_lineno
#endif
#ifndef asmshader_set_lineno_ALREADY_DEFINED
#undef yyset_lineno
#endif
#ifndef asmshader_get_column_ALREADY_DEFINED
#undef yyget_column
#endif
#ifndef asmshader_set_column_ALREADY_DEFINED
#undef yyset_column
#endif
#ifndef asmshader_wrap_ALREADY_DEFINED
#undef yywrap
#endif
#ifndef asmshader_get_lval_ALREADY_DEFINED
#undef yyget_lval
#endif
#ifndef asmshader_set_lval_ALREADY_DEFINED
#undef yyset_lval
#endif
#ifndef asmshader_get_lloc_ALREADY_DEFINED
#undef yyget_lloc
#endif
#ifndef asmshader_set_lloc_ALREADY_DEFINED
#undef yyset_lloc
#endif
#ifndef asmshader_alloc_ALREADY_DEFINED
#undef yyalloc
#endif
#ifndef asmshader_realloc_ALREADY_DEFINED
#undef yyrealloc
#endif
#ifndef asmshader_free_ALREADY_DEFINED
#undef yyfree
#endif
#ifndef asmshader_text_ALREADY_DEFINED
#undef yytext
#endif
#ifndef asmshader_leng_ALREADY_DEFINED
#undef yyleng
#endif
#ifndef asmshader_in_ALREADY_DEFINED
#undef yyin
#endif
#ifndef asmshader_out_ALREADY_DEFINED
#undef yyout
#endif
#ifndef asmshader__flex_debug_ALREADY_DEFINED
#undef yy_flex_debug
#endif
#ifndef asmshader_lineno_ALREADY_DEFINED
#undef yylineno
#endif
#ifndef asmshader_tables_fload_ALREADY_DEFINED
#undef yytables_fload
#endif
#ifndef asmshader_tables_destroy_ALREADY_DEFINED
#undef yytables_destroy
#endif
#ifndef asmshader_TABLES_NAME_ALREADY_DEFINED
#undef yyTABLES_NAME
#endif
#line 485 "asmshader.l"
#line 709 "asmshader.yy.h"
#undef asmshader_IN_HEADER
#endif /* asmshader_HEADER_H */

File diff suppressed because it is too large Load diff

View file

@ -1,208 +0,0 @@
/* A Bison parser, made by GNU Bison 3.4.1. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
#ifndef YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
# define YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int hlsl_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
KW_BLENDSTATE = 258,
KW_BREAK = 259,
KW_BUFFER = 260,
KW_CBUFFER = 261,
KW_COLUMN_MAJOR = 262,
KW_COMPILE = 263,
KW_CONST = 264,
KW_CONTINUE = 265,
KW_DEPTHSTENCILSTATE = 266,
KW_DEPTHSTENCILVIEW = 267,
KW_DISCARD = 268,
KW_DO = 269,
KW_DOUBLE = 270,
KW_ELSE = 271,
KW_EXTERN = 272,
KW_FALSE = 273,
KW_FOR = 274,
KW_GEOMETRYSHADER = 275,
KW_GROUPSHARED = 276,
KW_IF = 277,
KW_IN = 278,
KW_INLINE = 279,
KW_INOUT = 280,
KW_MATRIX = 281,
KW_NAMESPACE = 282,
KW_NOINTERPOLATION = 283,
KW_OUT = 284,
KW_PASS = 285,
KW_PIXELSHADER = 286,
KW_PRECISE = 287,
KW_RASTERIZERSTATE = 288,
KW_RENDERTARGETVIEW = 289,
KW_RETURN = 290,
KW_REGISTER = 291,
KW_ROW_MAJOR = 292,
KW_SAMPLER = 293,
KW_SAMPLER1D = 294,
KW_SAMPLER2D = 295,
KW_SAMPLER3D = 296,
KW_SAMPLERCUBE = 297,
KW_SAMPLER_STATE = 298,
KW_SAMPLERCOMPARISONSTATE = 299,
KW_SHARED = 300,
KW_STATEBLOCK = 301,
KW_STATEBLOCK_STATE = 302,
KW_STATIC = 303,
KW_STRING = 304,
KW_STRUCT = 305,
KW_SWITCH = 306,
KW_TBUFFER = 307,
KW_TECHNIQUE = 308,
KW_TECHNIQUE10 = 309,
KW_TEXTURE = 310,
KW_TEXTURE1D = 311,
KW_TEXTURE1DARRAY = 312,
KW_TEXTURE2D = 313,
KW_TEXTURE2DARRAY = 314,
KW_TEXTURE2DMS = 315,
KW_TEXTURE2DMSARRAY = 316,
KW_TEXTURE3D = 317,
KW_TEXTURE3DARRAY = 318,
KW_TEXTURECUBE = 319,
KW_TRUE = 320,
KW_TYPEDEF = 321,
KW_UNIFORM = 322,
KW_VECTOR = 323,
KW_VERTEXSHADER = 324,
KW_VOID = 325,
KW_VOLATILE = 326,
KW_WHILE = 327,
OP_INC = 328,
OP_DEC = 329,
OP_AND = 330,
OP_OR = 331,
OP_EQ = 332,
OP_LEFTSHIFT = 333,
OP_LEFTSHIFTASSIGN = 334,
OP_RIGHTSHIFT = 335,
OP_RIGHTSHIFTASSIGN = 336,
OP_ELLIPSIS = 337,
OP_LE = 338,
OP_GE = 339,
OP_NE = 340,
OP_ADDASSIGN = 341,
OP_SUBASSIGN = 342,
OP_MULASSIGN = 343,
OP_DIVASSIGN = 344,
OP_MODASSIGN = 345,
OP_ANDASSIGN = 346,
OP_ORASSIGN = 347,
OP_XORASSIGN = 348,
OP_UNKNOWN1 = 349,
OP_UNKNOWN2 = 350,
OP_UNKNOWN3 = 351,
OP_UNKNOWN4 = 352,
PRE_LINE = 353,
VAR_IDENTIFIER = 354,
TYPE_IDENTIFIER = 355,
NEW_IDENTIFIER = 356,
STRING = 357,
C_FLOAT = 358,
C_INTEGER = 359
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 890 "hlsl.y"
struct hlsl_type *type;
INT intval;
FLOAT floatval;
BOOL boolval;
char *name;
DWORD modifiers;
struct hlsl_ir_node *instr;
struct list *list;
struct parse_function function;
struct parse_parameter parameter;
struct parse_initializer initializer;
struct parse_variable_def *variable_def;
struct parse_if_body if_body;
enum parse_unary_op unary_op;
enum parse_assign_op assign_op;
struct reg_reservation *reg_reservation;
struct parse_colon_attribute colon_attribute;
#line 182 "hlsl.tab.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
/* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
};
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE hlsl_lval;
extern YYLTYPE hlsl_lloc;
int hlsl_parse (void);
#endif /* !YY_HLSL_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_HLSL_TAB_H_INCLUDED */

File diff suppressed because it is too large Load diff

View file

@ -1,715 +0,0 @@
#ifndef hlsl_HEADER_H
#define hlsl_HEADER_H 1
#define hlsl_IN_HEADER 1
#line 5 "hlsl.yy.h"
#line 7 "hlsl.yy.h"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#ifdef yy_create_buffer
#define hlsl__create_buffer_ALREADY_DEFINED
#else
#define yy_create_buffer hlsl__create_buffer
#endif
#ifdef yy_delete_buffer
#define hlsl__delete_buffer_ALREADY_DEFINED
#else
#define yy_delete_buffer hlsl__delete_buffer
#endif
#ifdef yy_scan_buffer
#define hlsl__scan_buffer_ALREADY_DEFINED
#else
#define yy_scan_buffer hlsl__scan_buffer
#endif
#ifdef yy_scan_string
#define hlsl__scan_string_ALREADY_DEFINED
#else
#define yy_scan_string hlsl__scan_string
#endif
#ifdef yy_scan_bytes
#define hlsl__scan_bytes_ALREADY_DEFINED
#else
#define yy_scan_bytes hlsl__scan_bytes
#endif
#ifdef yy_init_buffer
#define hlsl__init_buffer_ALREADY_DEFINED
#else
#define yy_init_buffer hlsl__init_buffer
#endif
#ifdef yy_flush_buffer
#define hlsl__flush_buffer_ALREADY_DEFINED
#else
#define yy_flush_buffer hlsl__flush_buffer
#endif
#ifdef yy_load_buffer_state
#define hlsl__load_buffer_state_ALREADY_DEFINED
#else
#define yy_load_buffer_state hlsl__load_buffer_state
#endif
#ifdef yy_switch_to_buffer
#define hlsl__switch_to_buffer_ALREADY_DEFINED
#else
#define yy_switch_to_buffer hlsl__switch_to_buffer
#endif
#ifdef yypush_buffer_state
#define hlsl_push_buffer_state_ALREADY_DEFINED
#else
#define yypush_buffer_state hlsl_push_buffer_state
#endif
#ifdef yypop_buffer_state
#define hlsl_pop_buffer_state_ALREADY_DEFINED
#else
#define yypop_buffer_state hlsl_pop_buffer_state
#endif
#ifdef yyensure_buffer_stack
#define hlsl_ensure_buffer_stack_ALREADY_DEFINED
#else
#define yyensure_buffer_stack hlsl_ensure_buffer_stack
#endif
#ifdef yylex
#define hlsl_lex_ALREADY_DEFINED
#else
#define yylex hlsl_lex
#endif
#ifdef yyrestart
#define hlsl_restart_ALREADY_DEFINED
#else
#define yyrestart hlsl_restart
#endif
#ifdef yylex_init
#define hlsl_lex_init_ALREADY_DEFINED
#else
#define yylex_init hlsl_lex_init
#endif
#ifdef yylex_init_extra
#define hlsl_lex_init_extra_ALREADY_DEFINED
#else
#define yylex_init_extra hlsl_lex_init_extra
#endif
#ifdef yylex_destroy
#define hlsl_lex_destroy_ALREADY_DEFINED
#else
#define yylex_destroy hlsl_lex_destroy
#endif
#ifdef yyget_debug
#define hlsl_get_debug_ALREADY_DEFINED
#else
#define yyget_debug hlsl_get_debug
#endif
#ifdef yyset_debug
#define hlsl_set_debug_ALREADY_DEFINED
#else
#define yyset_debug hlsl_set_debug
#endif
#ifdef yyget_extra
#define hlsl_get_extra_ALREADY_DEFINED
#else
#define yyget_extra hlsl_get_extra
#endif
#ifdef yyset_extra
#define hlsl_set_extra_ALREADY_DEFINED
#else
#define yyset_extra hlsl_set_extra
#endif
#ifdef yyget_in
#define hlsl_get_in_ALREADY_DEFINED
#else
#define yyget_in hlsl_get_in
#endif
#ifdef yyset_in
#define hlsl_set_in_ALREADY_DEFINED
#else
#define yyset_in hlsl_set_in
#endif
#ifdef yyget_out
#define hlsl_get_out_ALREADY_DEFINED
#else
#define yyget_out hlsl_get_out
#endif
#ifdef yyset_out
#define hlsl_set_out_ALREADY_DEFINED
#else
#define yyset_out hlsl_set_out
#endif
#ifdef yyget_leng
#define hlsl_get_leng_ALREADY_DEFINED
#else
#define yyget_leng hlsl_get_leng
#endif
#ifdef yyget_text
#define hlsl_get_text_ALREADY_DEFINED
#else
#define yyget_text hlsl_get_text
#endif
#ifdef yyget_lineno
#define hlsl_get_lineno_ALREADY_DEFINED
#else
#define yyget_lineno hlsl_get_lineno
#endif
#ifdef yyset_lineno
#define hlsl_set_lineno_ALREADY_DEFINED
#else
#define yyset_lineno hlsl_set_lineno
#endif
#ifdef yywrap
#define hlsl_wrap_ALREADY_DEFINED
#else
#define yywrap hlsl_wrap
#endif
#ifdef yyalloc
#define hlsl_alloc_ALREADY_DEFINED
#else
#define yyalloc hlsl_alloc
#endif
#ifdef yyrealloc
#define hlsl_realloc_ALREADY_DEFINED
#else
#define yyrealloc hlsl_realloc
#endif
#ifdef yyfree
#define hlsl_free_ALREADY_DEFINED
#else
#define yyfree hlsl_free
#endif
#ifdef yytext
#define hlsl_text_ALREADY_DEFINED
#else
#define yytext hlsl_text
#endif
#ifdef yyleng
#define hlsl_leng_ALREADY_DEFINED
#else
#define yyleng hlsl_leng
#endif
#ifdef yyin
#define hlsl_in_ALREADY_DEFINED
#else
#define yyin hlsl_in
#endif
#ifdef yyout
#define hlsl_out_ALREADY_DEFINED
#else
#define yyout hlsl_out
#endif
#ifdef yy_flex_debug
#define hlsl__flex_debug_ALREADY_DEFINED
#else
#define yy_flex_debug hlsl__flex_debug
#endif
#ifdef yylineno
#define hlsl_lineno_ALREADY_DEFINED
#else
#define yylineno hlsl_lineno
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
/* begin standard C++ headers. */
/* TODO: this is always defined, so inline it */
#define yyconst const
#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
extern int yyleng;
extern FILE *yyin, *yyout;
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
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 );
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 );
void *yyalloc ( yy_size_t );
void *yyrealloc ( void *, yy_size_t );
void yyfree ( void * );
/* Begin user sect3 */
#define hlsl_wrap() (/*CONSTCOND*/1)
#define YY_SKIP_YYWRAP
extern int yylineno;
extern char *yytext;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#define yytext_ptr yytext
#ifdef YY_HEADER_EXPORT_START_CONDITIONS
#define INITIAL 0
#define pp 1
#define pp_line 2
#define pp_pragma 3
#define pp_ignore 4
#endif
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
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 );
FILE *yyget_in ( void );
void yyset_in ( FILE * _in_str );
FILE *yyget_out ( void );
void yyset_out ( FILE * _out_str );
int yyget_leng ( void );
char *yyget_text ( void );
int yyget_lineno ( void );
void yyset_lineno ( int _line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap ( void );
#else
extern int yywrap ( void );
#endif
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy ( char *, const char *, int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen ( const char * );
#endif
#ifndef YY_NO_INPUT
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex (void);
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
/* yy_get_previous_state - get the state just before the EOB char was reached */
#undef YY_NEW_FILE
#undef YY_FLUSH_BUFFER
#undef yy_set_bol
#undef yy_new_buffer
#undef yy_set_interactive
#undef YY_DO_BEFORE_ACTION
#ifdef YY_DECL_IS_OURS
#undef YY_DECL_IS_OURS
#undef YY_DECL
#endif
#ifndef hlsl__create_buffer_ALREADY_DEFINED
#undef yy_create_buffer
#endif
#ifndef hlsl__delete_buffer_ALREADY_DEFINED
#undef yy_delete_buffer
#endif
#ifndef hlsl__scan_buffer_ALREADY_DEFINED
#undef yy_scan_buffer
#endif
#ifndef hlsl__scan_string_ALREADY_DEFINED
#undef yy_scan_string
#endif
#ifndef hlsl__scan_bytes_ALREADY_DEFINED
#undef yy_scan_bytes
#endif
#ifndef hlsl__init_buffer_ALREADY_DEFINED
#undef yy_init_buffer
#endif
#ifndef hlsl__flush_buffer_ALREADY_DEFINED
#undef yy_flush_buffer
#endif
#ifndef hlsl__load_buffer_state_ALREADY_DEFINED
#undef yy_load_buffer_state
#endif
#ifndef hlsl__switch_to_buffer_ALREADY_DEFINED
#undef yy_switch_to_buffer
#endif
#ifndef hlsl_push_buffer_state_ALREADY_DEFINED
#undef yypush_buffer_state
#endif
#ifndef hlsl_pop_buffer_state_ALREADY_DEFINED
#undef yypop_buffer_state
#endif
#ifndef hlsl_ensure_buffer_stack_ALREADY_DEFINED
#undef yyensure_buffer_stack
#endif
#ifndef hlsl_lex_ALREADY_DEFINED
#undef yylex
#endif
#ifndef hlsl_restart_ALREADY_DEFINED
#undef yyrestart
#endif
#ifndef hlsl_lex_init_ALREADY_DEFINED
#undef yylex_init
#endif
#ifndef hlsl_lex_init_extra_ALREADY_DEFINED
#undef yylex_init_extra
#endif
#ifndef hlsl_lex_destroy_ALREADY_DEFINED
#undef yylex_destroy
#endif
#ifndef hlsl_get_debug_ALREADY_DEFINED
#undef yyget_debug
#endif
#ifndef hlsl_set_debug_ALREADY_DEFINED
#undef yyset_debug
#endif
#ifndef hlsl_get_extra_ALREADY_DEFINED
#undef yyget_extra
#endif
#ifndef hlsl_set_extra_ALREADY_DEFINED
#undef yyset_extra
#endif
#ifndef hlsl_get_in_ALREADY_DEFINED
#undef yyget_in
#endif
#ifndef hlsl_set_in_ALREADY_DEFINED
#undef yyset_in
#endif
#ifndef hlsl_get_out_ALREADY_DEFINED
#undef yyget_out
#endif
#ifndef hlsl_set_out_ALREADY_DEFINED
#undef yyset_out
#endif
#ifndef hlsl_get_leng_ALREADY_DEFINED
#undef yyget_leng
#endif
#ifndef hlsl_get_text_ALREADY_DEFINED
#undef yyget_text
#endif
#ifndef hlsl_get_lineno_ALREADY_DEFINED
#undef yyget_lineno
#endif
#ifndef hlsl_set_lineno_ALREADY_DEFINED
#undef yyset_lineno
#endif
#ifndef hlsl_get_column_ALREADY_DEFINED
#undef yyget_column
#endif
#ifndef hlsl_set_column_ALREADY_DEFINED
#undef yyset_column
#endif
#ifndef hlsl_wrap_ALREADY_DEFINED
#undef yywrap
#endif
#ifndef hlsl_get_lval_ALREADY_DEFINED
#undef yyget_lval
#endif
#ifndef hlsl_set_lval_ALREADY_DEFINED
#undef yyset_lval
#endif
#ifndef hlsl_get_lloc_ALREADY_DEFINED
#undef yyget_lloc
#endif
#ifndef hlsl_set_lloc_ALREADY_DEFINED
#undef yyset_lloc
#endif
#ifndef hlsl_alloc_ALREADY_DEFINED
#undef yyalloc
#endif
#ifndef hlsl_realloc_ALREADY_DEFINED
#undef yyrealloc
#endif
#ifndef hlsl_free_ALREADY_DEFINED
#undef yyfree
#endif
#ifndef hlsl_text_ALREADY_DEFINED
#undef yytext
#endif
#ifndef hlsl_leng_ALREADY_DEFINED
#undef yyleng
#endif
#ifndef hlsl_in_ALREADY_DEFINED
#undef yyin
#endif
#ifndef hlsl_out_ALREADY_DEFINED
#undef yyout
#endif
#ifndef hlsl__flex_debug_ALREADY_DEFINED
#undef yy_flex_debug
#endif
#ifndef hlsl_lineno_ALREADY_DEFINED
#undef yylineno
#endif
#ifndef hlsl_tables_fload_ALREADY_DEFINED
#undef yytables_fload
#endif
#ifndef hlsl_tables_destroy_ALREADY_DEFINED
#undef yytables_destroy
#endif
#ifndef hlsl_TABLES_NAME_ALREADY_DEFINED
#undef yyTABLES_NAME
#endif
#line 274 "hlsl.l"
#line 713 "hlsl.yy.h"
#undef hlsl_IN_HEADER
#endif /* hlsl_HEADER_H */

File diff suppressed because it is too large Load diff

View file

@ -1,730 +0,0 @@
#ifndef ppy_HEADER_H
#define ppy_HEADER_H 1
#define ppy_IN_HEADER 1
#line 5 "ppl.yy.h"
#line 7 "ppl.yy.h"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#ifdef yy_create_buffer
#define ppy__create_buffer_ALREADY_DEFINED
#else
#define yy_create_buffer ppy__create_buffer
#endif
#ifdef yy_delete_buffer
#define ppy__delete_buffer_ALREADY_DEFINED
#else
#define yy_delete_buffer ppy__delete_buffer
#endif
#ifdef yy_scan_buffer
#define ppy__scan_buffer_ALREADY_DEFINED
#else
#define yy_scan_buffer ppy__scan_buffer
#endif
#ifdef yy_scan_string
#define ppy__scan_string_ALREADY_DEFINED
#else
#define yy_scan_string ppy__scan_string
#endif
#ifdef yy_scan_bytes
#define ppy__scan_bytes_ALREADY_DEFINED
#else
#define yy_scan_bytes ppy__scan_bytes
#endif
#ifdef yy_init_buffer
#define ppy__init_buffer_ALREADY_DEFINED
#else
#define yy_init_buffer ppy__init_buffer
#endif
#ifdef yy_flush_buffer
#define ppy__flush_buffer_ALREADY_DEFINED
#else
#define yy_flush_buffer ppy__flush_buffer
#endif
#ifdef yy_load_buffer_state
#define ppy__load_buffer_state_ALREADY_DEFINED
#else
#define yy_load_buffer_state ppy__load_buffer_state
#endif
#ifdef yy_switch_to_buffer
#define ppy__switch_to_buffer_ALREADY_DEFINED
#else
#define yy_switch_to_buffer ppy__switch_to_buffer
#endif
#ifdef yypush_buffer_state
#define ppy_push_buffer_state_ALREADY_DEFINED
#else
#define yypush_buffer_state ppy_push_buffer_state
#endif
#ifdef yypop_buffer_state
#define ppy_pop_buffer_state_ALREADY_DEFINED
#else
#define yypop_buffer_state ppy_pop_buffer_state
#endif
#ifdef yyensure_buffer_stack
#define ppy_ensure_buffer_stack_ALREADY_DEFINED
#else
#define yyensure_buffer_stack ppy_ensure_buffer_stack
#endif
#ifdef yylex
#define ppy_lex_ALREADY_DEFINED
#else
#define yylex ppy_lex
#endif
#ifdef yyrestart
#define ppy_restart_ALREADY_DEFINED
#else
#define yyrestart ppy_restart
#endif
#ifdef yylex_init
#define ppy_lex_init_ALREADY_DEFINED
#else
#define yylex_init ppy_lex_init
#endif
#ifdef yylex_init_extra
#define ppy_lex_init_extra_ALREADY_DEFINED
#else
#define yylex_init_extra ppy_lex_init_extra
#endif
#ifdef yylex_destroy
#define ppy_lex_destroy_ALREADY_DEFINED
#else
#define yylex_destroy ppy_lex_destroy
#endif
#ifdef yyget_debug
#define ppy_get_debug_ALREADY_DEFINED
#else
#define yyget_debug ppy_get_debug
#endif
#ifdef yyset_debug
#define ppy_set_debug_ALREADY_DEFINED
#else
#define yyset_debug ppy_set_debug
#endif
#ifdef yyget_extra
#define ppy_get_extra_ALREADY_DEFINED
#else
#define yyget_extra ppy_get_extra
#endif
#ifdef yyset_extra
#define ppy_set_extra_ALREADY_DEFINED
#else
#define yyset_extra ppy_set_extra
#endif
#ifdef yyget_in
#define ppy_get_in_ALREADY_DEFINED
#else
#define yyget_in ppy_get_in
#endif
#ifdef yyset_in
#define ppy_set_in_ALREADY_DEFINED
#else
#define yyset_in ppy_set_in
#endif
#ifdef yyget_out
#define ppy_get_out_ALREADY_DEFINED
#else
#define yyget_out ppy_get_out
#endif
#ifdef yyset_out
#define ppy_set_out_ALREADY_DEFINED
#else
#define yyset_out ppy_set_out
#endif
#ifdef yyget_leng
#define ppy_get_leng_ALREADY_DEFINED
#else
#define yyget_leng ppy_get_leng
#endif
#ifdef yyget_text
#define ppy_get_text_ALREADY_DEFINED
#else
#define yyget_text ppy_get_text
#endif
#ifdef yyget_lineno
#define ppy_get_lineno_ALREADY_DEFINED
#else
#define yyget_lineno ppy_get_lineno
#endif
#ifdef yyset_lineno
#define ppy_set_lineno_ALREADY_DEFINED
#else
#define yyset_lineno ppy_set_lineno
#endif
#ifdef yywrap
#define ppy_wrap_ALREADY_DEFINED
#else
#define yywrap ppy_wrap
#endif
#ifdef yyalloc
#define ppy_alloc_ALREADY_DEFINED
#else
#define yyalloc ppy_alloc
#endif
#ifdef yyrealloc
#define ppy_realloc_ALREADY_DEFINED
#else
#define yyrealloc ppy_realloc
#endif
#ifdef yyfree
#define ppy_free_ALREADY_DEFINED
#else
#define yyfree ppy_free
#endif
#ifdef yytext
#define ppy_text_ALREADY_DEFINED
#else
#define yytext ppy_text
#endif
#ifdef yyleng
#define ppy_leng_ALREADY_DEFINED
#else
#define yyleng ppy_leng
#endif
#ifdef yyin
#define ppy_in_ALREADY_DEFINED
#else
#define yyin ppy_in
#endif
#ifdef yyout
#define ppy_out_ALREADY_DEFINED
#else
#define yyout ppy_out
#endif
#ifdef yy_flex_debug
#define ppy__flex_debug_ALREADY_DEFINED
#else
#define yy_flex_debug ppy__flex_debug
#endif
#ifdef yylineno
#define ppy_lineno_ALREADY_DEFINED
#else
#define yylineno ppy_lineno
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#ifndef SIZE_MAX
#define SIZE_MAX (~(size_t)0)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
/* begin standard C++ headers. */
/* TODO: this is always defined, so inline it */
#define yyconst const
#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
extern int yyleng;
extern FILE *yyin, *yyout;
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
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 );
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 );
void *yyalloc ( yy_size_t );
void *yyrealloc ( void *, yy_size_t );
void yyfree ( void * );
/* Begin user sect3 */
extern int yylineno;
extern char *yytext;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#define yytext_ptr yytext
#ifdef YY_HEADER_EXPORT_START_CONDITIONS
#define INITIAL 0
#define pp_pp 1
#define pp_eol 2
#define pp_inc 3
#define pp_dqs 4
#define pp_sqs 5
#define pp_iqs 6
#define pp_comment 7
#define pp_def 8
#define pp_define 9
#define pp_macro 10
#define pp_mbody 11
#define pp_macign 12
#define pp_macscan 13
#define pp_macexp 14
#define pp_if 15
#define pp_ifd 16
#define pp_ifignored 17
#define pp_endif 18
#define pp_line 19
#define pp_defined 20
#define pp_ignore 21
#define RCINCL 22
#endif
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
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 );
FILE *yyget_in ( void );
void yyset_in ( FILE * _in_str );
FILE *yyget_out ( void );
void yyset_out ( FILE * _out_str );
int yyget_leng ( void );
char *yyget_text ( void );
int yyget_lineno ( void );
void yyset_lineno ( int _line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap ( void );
#else
extern int yywrap ( void );
#endif
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy ( char *, const char *, int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen ( const char * );
#endif
#ifndef YY_NO_INPUT
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex (void);
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
/* yy_get_previous_state - get the state just before the EOB char was reached */
#undef YY_NEW_FILE
#undef YY_FLUSH_BUFFER
#undef yy_set_bol
#undef yy_new_buffer
#undef yy_set_interactive
#undef YY_DO_BEFORE_ACTION
#ifdef YY_DECL_IS_OURS
#undef YY_DECL_IS_OURS
#undef YY_DECL
#endif
#ifndef ppy__create_buffer_ALREADY_DEFINED
#undef yy_create_buffer
#endif
#ifndef ppy__delete_buffer_ALREADY_DEFINED
#undef yy_delete_buffer
#endif
#ifndef ppy__scan_buffer_ALREADY_DEFINED
#undef yy_scan_buffer
#endif
#ifndef ppy__scan_string_ALREADY_DEFINED
#undef yy_scan_string
#endif
#ifndef ppy__scan_bytes_ALREADY_DEFINED
#undef yy_scan_bytes
#endif
#ifndef ppy__init_buffer_ALREADY_DEFINED
#undef yy_init_buffer
#endif
#ifndef ppy__flush_buffer_ALREADY_DEFINED
#undef yy_flush_buffer
#endif
#ifndef ppy__load_buffer_state_ALREADY_DEFINED
#undef yy_load_buffer_state
#endif
#ifndef ppy__switch_to_buffer_ALREADY_DEFINED
#undef yy_switch_to_buffer
#endif
#ifndef ppy_push_buffer_state_ALREADY_DEFINED
#undef yypush_buffer_state
#endif
#ifndef ppy_pop_buffer_state_ALREADY_DEFINED
#undef yypop_buffer_state
#endif
#ifndef ppy_ensure_buffer_stack_ALREADY_DEFINED
#undef yyensure_buffer_stack
#endif
#ifndef ppy_lex_ALREADY_DEFINED
#undef yylex
#endif
#ifndef ppy_restart_ALREADY_DEFINED
#undef yyrestart
#endif
#ifndef ppy_lex_init_ALREADY_DEFINED
#undef yylex_init
#endif
#ifndef ppy_lex_init_extra_ALREADY_DEFINED
#undef yylex_init_extra
#endif
#ifndef ppy_lex_destroy_ALREADY_DEFINED
#undef yylex_destroy
#endif
#ifndef ppy_get_debug_ALREADY_DEFINED
#undef yyget_debug
#endif
#ifndef ppy_set_debug_ALREADY_DEFINED
#undef yyset_debug
#endif
#ifndef ppy_get_extra_ALREADY_DEFINED
#undef yyget_extra
#endif
#ifndef ppy_set_extra_ALREADY_DEFINED
#undef yyset_extra
#endif
#ifndef ppy_get_in_ALREADY_DEFINED
#undef yyget_in
#endif
#ifndef ppy_set_in_ALREADY_DEFINED
#undef yyset_in
#endif
#ifndef ppy_get_out_ALREADY_DEFINED
#undef yyget_out
#endif
#ifndef ppy_set_out_ALREADY_DEFINED
#undef yyset_out
#endif
#ifndef ppy_get_leng_ALREADY_DEFINED
#undef yyget_leng
#endif
#ifndef ppy_get_text_ALREADY_DEFINED
#undef yyget_text
#endif
#ifndef ppy_get_lineno_ALREADY_DEFINED
#undef yyget_lineno
#endif
#ifndef ppy_set_lineno_ALREADY_DEFINED
#undef yyset_lineno
#endif
#ifndef ppy_get_column_ALREADY_DEFINED
#undef yyget_column
#endif
#ifndef ppy_set_column_ALREADY_DEFINED
#undef yyset_column
#endif
#ifndef ppy_wrap_ALREADY_DEFINED
#undef yywrap
#endif
#ifndef ppy_get_lval_ALREADY_DEFINED
#undef yyget_lval
#endif
#ifndef ppy_set_lval_ALREADY_DEFINED
#undef yyset_lval
#endif
#ifndef ppy_get_lloc_ALREADY_DEFINED
#undef yyget_lloc
#endif
#ifndef ppy_set_lloc_ALREADY_DEFINED
#undef yyset_lloc
#endif
#ifndef ppy_alloc_ALREADY_DEFINED
#undef yyalloc
#endif
#ifndef ppy_realloc_ALREADY_DEFINED
#undef yyrealloc
#endif
#ifndef ppy_free_ALREADY_DEFINED
#undef yyfree
#endif
#ifndef ppy_text_ALREADY_DEFINED
#undef yytext
#endif
#ifndef ppy_leng_ALREADY_DEFINED
#undef yyleng
#endif
#ifndef ppy_in_ALREADY_DEFINED
#undef yyin
#endif
#ifndef ppy_out_ALREADY_DEFINED
#undef yyout
#endif
#ifndef ppy__flex_debug_ALREADY_DEFINED
#undef yy_flex_debug
#endif
#ifndef ppy_lineno_ALREADY_DEFINED
#undef yylineno
#endif
#ifndef ppy_tables_fload_ALREADY_DEFINED
#undef yytables_fload
#endif
#ifndef ppy_tables_destroy_ALREADY_DEFINED
#undef yytables_destroy
#endif
#ifndef ppy_TABLES_NAME_ALREADY_DEFINED
#undef yyTABLES_NAME
#endif
#line 768 "ppl.l"
#line 728 "ppl.yy.h"
#undef ppy_IN_HEADER
#endif /* ppy_HEADER_H */

File diff suppressed because it is too large Load diff

View file

@ -1,129 +0,0 @@
/* A Bison parser, made by GNU Bison 3.4.1. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
#ifndef YY_PPY_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_PPY_TAB_H_INCLUDED
# define YY_PPY_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_PPY_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int ppy_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
tRCINCLUDE = 258,
tIF = 259,
tIFDEF = 260,
tIFNDEF = 261,
tELSE = 262,
tELIF = 263,
tENDIF = 264,
tDEFINED = 265,
tNL = 266,
tINCLUDE = 267,
tLINE = 268,
tGCCLINE = 269,
tERROR = 270,
tWARNING = 271,
tPRAGMA = 272,
tPPIDENT = 273,
tUNDEF = 274,
tMACROEND = 275,
tCONCAT = 276,
tELIPSIS = 277,
tSTRINGIZE = 278,
tIDENT = 279,
tLITERAL = 280,
tMACRO = 281,
tDEFINE = 282,
tDQSTRING = 283,
tSQSTRING = 284,
tIQSTRING = 285,
tUINT = 286,
tSINT = 287,
tULONG = 288,
tSLONG = 289,
tULONGLONG = 290,
tSLONGLONG = 291,
tRCINCLUDEPATH = 292,
tLOGOR = 293,
tLOGAND = 294,
tEQ = 295,
tNE = 296,
tLTE = 297,
tGTE = 298,
tLSHIFT = 299,
tRSHIFT = 300
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 114 "ppy.y"
int sint;
unsigned int uint;
long slong;
unsigned long ulong;
__int64 sll;
unsigned __int64 ull;
int *iptr;
char *cptr;
cval_t cval;
marg_t *marg;
mtext_t *mtext;
#line 117 "ppy.tab.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE ppy_lval;
int ppy_parse (void);
#endif /* !YY_PPY_E_REACTOSSYNC_GCC_DLL_DIRECTX_WINE_D3DCOMPILER_43_PPY_TAB_H_INCLUDED */

View file

@ -34,12 +34,12 @@ list(APPEND SOURCE
string.c
vbarray.c)
list(APPEND PCH_SKIP_SOURCE
cc_parser.tab.c
parser.tab.c)
BISON_TARGET(cc_parser cc_parser.y ${CMAKE_CURRENT_BINARY_DIR}/cc_parser.tab.c COMPILE_FLAGS "-p cc_parser_")
BISON_TARGET(parser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.tab.c COMPILE_FLAGS "-p parser_")
# cc_parser.tab.c/parser.tab.c have been generated with relative file paths...
set_source_files_properties(cc_parser.tab.c parser.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
list(APPEND PCH_SKIP_SOURCE
${BISON_cc_parser_OUTPUTS}
${BISON_parser_OUTPUTS})
list(APPEND jscript_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/jscript.rgs

File diff suppressed because it is too large Load diff

View file

@ -1,87 +0,0 @@
/* A Bison parser, made by GNU Bison 3.4.1. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
#ifndef YY_CC_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_CC_PARSER_TAB_H_INCLUDED
# define YY_CC_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_CC_PARSER_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int cc_parser_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
tEQ = 258,
tEQEQ = 259,
tNEQ = 260,
tNEQEQ = 261,
tLSHIFT = 262,
tRSHIFT = 263,
tRRSHIFT = 264,
tOR = 265,
tAND = 266,
tLEQ = 267,
tGEQ = 268,
tCCValue = 269
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 36 "cc_parser.y"
ccval_t ccval;
#line 76 "cc_parser.tab.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int cc_parser_parse (parser_ctx_t *ctx);
#endif /* !YY_CC_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_CC_PARSER_TAB_H_INCLUDED */

File diff suppressed because it is too large Load diff

View file

@ -1,140 +0,0 @@
/* A Bison parser, made by GNU Bison 3.4.1. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
#ifndef YY_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_PARSER_TAB_H_INCLUDED
# define YY_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_PARSER_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int parser_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
kBREAK = 258,
kCASE = 259,
kCATCH = 260,
kCONTINUE = 261,
kDEFAULT = 262,
kDELETE = 263,
kDO = 264,
kELSE = 265,
kFUNCTION = 266,
kIF = 267,
kFINALLY = 268,
kFOR = 269,
kGET = 270,
kIN = 271,
kSET = 272,
kINSTANCEOF = 273,
kNEW = 274,
kNULL = 275,
kRETURN = 276,
kSWITCH = 277,
kTHIS = 278,
kTHROW = 279,
kTRUE = 280,
kFALSE = 281,
kTRY = 282,
kTYPEOF = 283,
kVAR = 284,
kVOID = 285,
kWHILE = 286,
kWITH = 287,
tANDAND = 288,
tOROR = 289,
tINC = 290,
tDEC = 291,
tHTMLCOMMENT = 292,
kDIVEQ = 293,
kDCOL = 294,
tIdentifier = 295,
tAssignOper = 296,
tEqOper = 297,
tShiftOper = 298,
tRelOper = 299,
tNumericLiteral = 300,
tBooleanLiteral = 301,
tStringLiteral = 302,
tEOF = 303,
LOWER_THAN_ELSE = 304
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 147 "parser.y"
int ival;
const WCHAR *srcptr;
jsstr_t *str;
literal_t *literal;
struct _argument_list_t *argument_list;
case_clausule_t *case_clausule;
struct _case_list_t *case_list;
catch_block_t *catch_block;
struct _element_list_t *element_list;
expression_t *expr;
const WCHAR *identifier;
struct _parameter_list_t *parameter_list;
struct _property_list_t *property_list;
property_definition_t *property_definition;
source_elements_t *source_elements;
statement_t *statement;
struct _statement_list_t *statement_list;
struct _variable_list_t *variable_list;
variable_declaration_t *variable_declaration;
#line 129 "parser.tab.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int parser_parse (parser_ctx_t *ctx);
#endif /* !YY_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_JSCRIPT_PARSER_TAB_H_INCLUDED */

View file

@ -48,9 +48,12 @@ list(APPEND SOURCE
upgrade.c
where.c)
BISON_TARGET(cond cond.y ${CMAKE_CURRENT_BINARY_DIR}/cond.tab.c COMPILE_FLAGS "-p cond_")
BISON_TARGET(sql sql.y ${CMAKE_CURRENT_BINARY_DIR}/sql.tab.c COMPILE_FLAGS "-p sql_")
list(APPEND PCH_SKIP_SOURCE
cond.tab.c
sql.tab.c
${BISON_cond_OUTPUTS}
${BISON_sql_OUTPUTS}
${CMAKE_CURRENT_BINARY_DIR}/msiserver_i.c
${CMAKE_CURRENT_BINARY_DIR}/msi_stubs.c)

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,137 +0,0 @@
/* A Bison parser, made by GNU Bison 3.0. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef YY_SQL_E_REACTOSSYNC_GCC_DLL_WIN32_MSI_SQL_TAB_H_INCLUDED
# define YY_SQL_E_REACTOSSYNC_GCC_DLL_WIN32_MSI_SQL_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int sql_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
TK_ALTER = 258,
TK_AND = 259,
TK_BY = 260,
TK_CHAR = 261,
TK_COMMA = 262,
TK_CREATE = 263,
TK_DELETE = 264,
TK_DROP = 265,
TK_DISTINCT = 266,
TK_DOT = 267,
TK_EQ = 268,
TK_FREE = 269,
TK_FROM = 270,
TK_GE = 271,
TK_GT = 272,
TK_HOLD = 273,
TK_ADD = 274,
TK_ID = 275,
TK_ILLEGAL = 276,
TK_INSERT = 277,
TK_INT = 278,
TK_INTEGER = 279,
TK_INTO = 280,
TK_IS = 281,
TK_KEY = 282,
TK_LE = 283,
TK_LONG = 284,
TK_LONGCHAR = 285,
TK_LP = 286,
TK_LT = 287,
TK_LOCALIZABLE = 288,
TK_MINUS = 289,
TK_NE = 290,
TK_NOT = 291,
TK_NULL = 292,
TK_OBJECT = 293,
TK_OR = 294,
TK_ORDER = 295,
TK_PRIMARY = 296,
TK_RP = 297,
TK_SELECT = 298,
TK_SET = 299,
TK_SHORT = 300,
TK_SPACE = 301,
TK_STAR = 302,
TK_STRING = 303,
TK_TABLE = 304,
TK_TEMPORARY = 305,
TK_UPDATE = 306,
TK_VALUES = 307,
TK_WHERE = 308,
TK_WILDCARD = 309,
END_OF_FILE = 310,
ILLEGAL = 311,
SPACE = 312,
UNCLOSED_STRING = 313,
COMMENT = 314,
FUNCTION = 315,
COLUMN = 316,
TK_LIKE = 318,
TK_NEGATION = 319
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE YYSTYPE;
union YYSTYPE
{
#line 68 "sql.y" /* yacc.c:1909 */
struct sql_str str;
LPWSTR string;
column_info *column_list;
MSIVIEW *query;
struct expr *expr;
USHORT column_type;
int integer;
#line 128 "sql.tab.h" /* yacc.c:1909 */
};
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int sql_parse (SQL_input *info);
#endif /* !YY_SQL_E_REACTOSSYNC_GCC_DLL_WIN32_MSI_SQL_TAB_H_INCLUDED */

View file

@ -45,14 +45,15 @@ list(APPEND SOURCE
xmlparser.c
xmlview.c)
FLEX_TARGET(xslpattern_scanner xslpattern.l ${CMAKE_CURRENT_BINARY_DIR}/xslpattern.yy.c)
BISON_TARGET(xslpattern_parser xslpattern.y ${CMAKE_CURRENT_BINARY_DIR}/xslpattern.tab.c COMPILE_FLAGS "-p xslpattern_")
ADD_FLEX_BISON_DEPENDENCY(xslpattern_scanner xslpattern_parser)
list(APPEND PCH_SKIP_SOURCE
factory.c
uuid.c
xslpattern.tab.c
xslpattern.yy.c)
# xslpattern.tab.c/xslpattern.yy.c have been generated with relative file paths...
set_source_files_properties(xslpattern.tab.c xslpattern.yy.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
${FLEX_xslpattern_scanner_OUTPUTS}
${BISON_xslpattern_parser_OUTPUTS})
list(APPEND msxml3_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/msxml3.manifest

File diff suppressed because it is too large Load diff

View file

@ -1,88 +0,0 @@
/* A Bison parser, made by GNU Bison 3.0. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef YY_XSLPATTERN_E_REACTOSSYNC_GCC_DLL_WIN32_MSXML3_XSLPATTERN_TAB_H_INCLUDED
# define YY_XSLPATTERN_E_REACTOSSYNC_GCC_DLL_WIN32_MSXML3_XSLPATTERN_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int xslpattern_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
TOK_Parent = 258,
TOK_Self = 259,
TOK_DblFSlash = 260,
TOK_FSlash = 261,
TOK_Axis = 262,
TOK_Colon = 263,
TOK_OpAnd = 264,
TOK_OpOr = 265,
TOK_OpNot = 266,
TOK_OpEq = 267,
TOK_OpIEq = 268,
TOK_OpNEq = 269,
TOK_OpINEq = 270,
TOK_OpLt = 271,
TOK_OpILt = 272,
TOK_OpGt = 273,
TOK_OpIGt = 274,
TOK_OpLEq = 275,
TOK_OpILEq = 276,
TOK_OpGEq = 277,
TOK_OpIGEq = 278,
TOK_OpAll = 279,
TOK_OpAny = 280,
TOK_NCName = 281,
TOK_Literal = 282,
TOK_Number = 283
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef int YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int xslpattern_parse (parser_param* p, void* scanner);
#endif /* !YY_XSLPATTERN_E_REACTOSSYNC_GCC_DLL_WIN32_MSXML3_XSLPATTERN_TAB_H_INCLUDED */

File diff suppressed because it is too large Load diff

View file

@ -1,346 +0,0 @@
#ifndef xslpattern_HEADER_H
#define xslpattern_HEADER_H 1
#define xslpattern_IN_HEADER 1
#line 6 "xslpattern.yy.h"
#line 8 "xslpattern.yy.h"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
#define YY_FLEX_SUBMINOR_VERSION 37
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* end standard C headers. */
/* flex integer type definitions */
#ifndef FLEXINT_H
#define FLEXINT_H
/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
* if you want the limit (max/min) macros for int types.
*/
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS 1
#endif
#include <inttypes.h>
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
#else
typedef signed char flex_int8_t;
typedef short int flex_int16_t;
typedef int flex_int32_t;
typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t;
/* Limits of integral types. */
#ifndef INT8_MIN
#define INT8_MIN (-128)
#endif
#ifndef INT16_MIN
#define INT16_MIN (-32767-1)
#endif
#ifndef INT32_MIN
#define INT32_MIN (-2147483647-1)
#endif
#ifndef INT8_MAX
#define INT8_MAX (127)
#endif
#ifndef INT16_MAX
#define INT16_MAX (32767)
#endif
#ifndef INT32_MAX
#define INT32_MAX (2147483647)
#endif
#ifndef UINT8_MAX
#define UINT8_MAX (255U)
#endif
#ifndef UINT16_MAX
#define UINT16_MAX (65535U)
#endif
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
#ifdef __cplusplus
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
/* C99 requires __STDC__ to be defined as 1. */
#if defined (__STDC__)
#define YY_USE_CONST
#endif /* defined (__STDC__) */
#endif /* ! __cplusplus */
#ifdef YY_USE_CONST
#define yyconst const
#else
#define yyconst
#endif
/* An opaque pointer. */
#ifndef YY_TYPEDEF_YY_SCANNER_T
#define YY_TYPEDEF_YY_SCANNER_T
typedef void* yyscan_t;
#endif
/* For convenience, these vars (plus the bison vars far below)
are macros in the reentrant scanner. */
#define yyin yyg->yyin_r
#define yyout yyg->yyout_r
#define yyextra yyg->yyextra_r
#define yyleng yyg->yyleng_r
#define yytext yyg->yytext_r
#define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
#define yy_flex_debug yyg->yy_flex_debug_r
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#define YY_BUF_SIZE 16384
#endif
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
yy_size_t yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
yy_size_t yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
void xslpattern_restart (FILE *input_file ,yyscan_t yyscanner );
void xslpattern__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
YY_BUFFER_STATE xslpattern__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
void xslpattern__delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
void xslpattern__flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
void xslpattern_push_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
void xslpattern_pop_buffer_state (yyscan_t yyscanner );
YY_BUFFER_STATE xslpattern__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
YY_BUFFER_STATE xslpattern__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
YY_BUFFER_STATE xslpattern__scan_bytes (yyconst char *bytes,yy_size_t len ,yyscan_t yyscanner );
void *xslpattern_alloc (yy_size_t ,yyscan_t yyscanner );
void *xslpattern_realloc (void *,yy_size_t ,yyscan_t yyscanner );
void xslpattern_free (void * ,yyscan_t yyscanner );
/* Begin user sect3 */
#define xslpattern_wrap(yyscanner) 1
#define YY_SKIP_YYWRAP
#define yytext_ptr yytext_r
#ifdef YY_HEADER_EXPORT_START_CONDITIONS
#define INITIAL 0
#endif
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
int xslpattern_lex_init (yyscan_t* scanner);
int xslpattern_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
int xslpattern_lex_destroy (yyscan_t yyscanner );
int xslpattern_get_debug (yyscan_t yyscanner );
void xslpattern_set_debug (int debug_flag ,yyscan_t yyscanner );
YY_EXTRA_TYPE xslpattern_get_extra (yyscan_t yyscanner );
void xslpattern_set_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
FILE *xslpattern_get_in (yyscan_t yyscanner );
void xslpattern_set_in (FILE * in_str ,yyscan_t yyscanner );
FILE *xslpattern_get_out (yyscan_t yyscanner );
void xslpattern_set_out (FILE * out_str ,yyscan_t yyscanner );
yy_size_t xslpattern_get_leng (yyscan_t yyscanner );
char *xslpattern_get_text (yyscan_t yyscanner );
int xslpattern_get_lineno (yyscan_t yyscanner );
void xslpattern_set_lineno (int line_number ,yyscan_t yyscanner );
int xslpattern_get_column (yyscan_t yyscanner );
void xslpattern_set_column (int column_no ,yyscan_t yyscanner );
YYSTYPE * xslpattern_get_lval (yyscan_t yyscanner );
void xslpattern_set_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int xslpattern_wrap (yyscan_t yyscanner );
#else
extern int xslpattern_wrap (yyscan_t yyscanner );
#endif
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
#endif
#ifndef YY_NO_INPUT
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int xslpattern_lex \
(YYSTYPE * yylval_param ,yyscan_t yyscanner);
#define YY_DECL int xslpattern_lex \
(YYSTYPE * yylval_param , yyscan_t yyscanner)
#endif /* !YY_DECL */
/* yy_get_previous_state - get the state just before the EOB char was reached */
#undef YY_NEW_FILE
#undef YY_FLUSH_BUFFER
#undef yy_set_bol
#undef yy_new_buffer
#undef yy_set_interactive
#undef YY_DO_BEFORE_ACTION
#ifdef YY_DECL_IS_OURS
#undef YY_DECL_IS_OURS
#undef YY_DECL
#endif
#line 152 "xslpattern.l"
#line 345 "xslpattern.yy.h"
#undef xslpattern_IN_HEADER
#endif /* xslpattern_HEADER_H */

View file

@ -15,11 +15,7 @@ list(APPEND SOURCE
vbscript.c
vbscript_main.c)
list(APPEND PCH_SKIP_SOURCE
parser.tab.c)
# parser.tab.c has been generated with relative file paths...
set_source_files_properties(parser.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
BISON_TARGET(parser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.tab.c COMPILE_FLAGS "-p parser_")
list(APPEND vbscript_rc_deps
${CMAKE_CURRENT_SOURCE_DIR}/vbscript_classes.rgs
@ -36,7 +32,7 @@ add_typelib(vbsglobal.idl vbsregexp10.idl vbsregexp55.idl)
add_library(vbscript MODULE
${SOURCE}
${PCH_SKIP_SOURCE}
${BISON_parser_OUTPUTS}
vbscript.rc
${CMAKE_CURRENT_BINARY_DIR}/vbscript.def)

File diff suppressed because it is too large Load diff

View file

@ -1,158 +0,0 @@
/* A Bison parser, made by GNU Bison 3.4.1. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
#ifndef YY_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_VBSCRIPT_PARSER_TAB_H_INCLUDED
# define YY_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_VBSCRIPT_PARSER_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int parser_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
tEXPRESSION = 258,
tEOF = 259,
tNL = 260,
tEMPTYBRACKETS = 261,
tLTEQ = 262,
tGTEQ = 263,
tNEQ = 264,
tSTOP = 265,
tME = 266,
tREM = 267,
tTRUE = 268,
tFALSE = 269,
tNOT = 270,
tAND = 271,
tOR = 272,
tXOR = 273,
tEQV = 274,
tIMP = 275,
tIS = 276,
tMOD = 277,
tCALL = 278,
tDIM = 279,
tSUB = 280,
tFUNCTION = 281,
tGET = 282,
tLET = 283,
tCONST = 284,
tIF = 285,
tELSE = 286,
tELSEIF = 287,
tEND = 288,
tTHEN = 289,
tEXIT = 290,
tWHILE = 291,
tWEND = 292,
tDO = 293,
tLOOP = 294,
tUNTIL = 295,
tFOR = 296,
tTO = 297,
tEACH = 298,
tIN = 299,
tSELECT = 300,
tCASE = 301,
tBYREF = 302,
tBYVAL = 303,
tOPTION = 304,
tNOTHING = 305,
tEMPTY = 306,
tNULL = 307,
tCLASS = 308,
tSET = 309,
tNEW = 310,
tPUBLIC = 311,
tPRIVATE = 312,
tNEXT = 313,
tON = 314,
tRESUME = 315,
tGOTO = 316,
tIdentifier = 317,
tString = 318,
tDEFAULT = 319,
tERROR = 320,
tEXPLICIT = 321,
tPROPERTY = 322,
tSTEP = 323,
tInt = 324,
tDouble = 325
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 87 "parser.y"
const WCHAR *string;
statement_t *statement;
expression_t *expression;
member_expression_t *member;
elseif_decl_t *elseif;
dim_decl_t *dim_decl;
dim_list_t *dim_list;
function_decl_t *func_decl;
arg_decl_t *arg_decl;
class_decl_t *class_decl;
const_decl_t *const_decl;
case_clausule_t *case_clausule;
unsigned uint;
LONG integer;
BOOL boolean;
double dbl;
#line 147 "parser.tab.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int parser_parse (parser_ctx_t *ctx);
#endif /* !YY_PARSER_E_REACTOSSYNC_GCC_DLL_WIN32_VBSCRIPT_PARSER_TAB_H_INCLUDED */

View file

@ -20,12 +20,11 @@ list(APPEND SOURCE
table.c
wbemlocator.c)
BISON_TARGET(wql wql.y ${CMAKE_CURRENT_BINARY_DIR}/wql.tab.c COMPILE_FLAGS "-p wql_")
list(APPEND PCH_SKIP_SOURCE
guid.c
wql.tab.c)
# wql.tab.c has been generated with relative file paths...
set_source_files_properties(wql.tab.c PROPERTIES COMPILE_FLAGS "-UREACTOS_SOURCE_DIR -DREACTOS_SOURCE_DIR=\"\\\".\\\"\"")
${BISON_wql_OUTPUTS})
add_library(wbemprox MODULE
${SOURCE}

File diff suppressed because it is too large Load diff

View file

@ -1,113 +0,0 @@
/* A Bison parser, made by GNU Bison 3.4.1. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
#ifndef YY_WQL_E_REACTOSSYNC_GCC_DLL_WIN32_WBEMPROX_WQL_TAB_H_INCLUDED
# define YY_WQL_E_REACTOSSYNC_GCC_DLL_WIN32_WBEMPROX_WQL_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int wql_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
TK_SELECT = 258,
TK_FROM = 259,
TK_STAR = 260,
TK_COMMA = 261,
TK_DOT = 262,
TK_IS = 263,
TK_LP = 264,
TK_RP = 265,
TK_NULL = 266,
TK_FALSE = 267,
TK_TRUE = 268,
TK_INTEGER = 269,
TK_WHERE = 270,
TK_SPACE = 271,
TK_MINUS = 272,
TK_ILLEGAL = 273,
TK_BY = 274,
TK_ASSOCIATORS = 275,
TK_OF = 276,
TK_STRING = 277,
TK_ID = 278,
TK_PATH = 279,
TK_OR = 280,
TK_AND = 281,
TK_NOT = 282,
TK_EQ = 283,
TK_NE = 284,
TK_LT = 285,
TK_GT = 286,
TK_LE = 287,
TK_GE = 288,
TK_LIKE = 289
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 222 "wql.y"
struct string str;
WCHAR *string;
struct property *proplist;
struct keyword *keywordlist;
struct view *view;
struct expr *expr;
int integer;
#line 102 "wql.tab.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
int wql_parse (struct parser *ctx);
#endif /* !YY_WQL_E_REACTOSSYNC_GCC_DLL_WIN32_WBEMPROX_WQL_TAB_H_INCLUDED */

View file

@ -1,27 +0,0 @@
# Simply use :
# add_bison_files(foo.y)
# and
# add_flex_files(foo.l)
# then add ${CMAKE_CURRENT_BINARY_DIR}/foo.tab.c
# and ${CMAKE_CURRENT_BINARY_DIR}/foo.yy.c to the source list
function(add_bison_files)
foreach(_file ${ARGN})
get_filename_component(_name ${_file} NAME_WE)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_name}.tab.c ${CMAKE_CURRENT_BINARY_DIR}/${_name}.tab.h
COMMAND bison -p ${_name}_ -o ${CMAKE_CURRENT_BINARY_DIR}/${_name}.tab.c --defines=${CMAKE_CURRENT_BINARY_DIR}/${_name}.tab.h ${CMAKE_CURRENT_SOURCE_DIR}/${_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_file})
endforeach()
endfunction()
function(add_flex_files)
foreach(_file ${ARGN})
get_filename_component(_name ${_file} NAME_WE)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_name}.yy.c ${CMAKE_CURRENT_BINARY_DIR}/${_name}.yy.h
COMMAND flex -o ${CMAKE_CURRENT_BINARY_DIR}/${_name}.yy.c --header-file=${CMAKE_CURRENT_BINARY_DIR}/${_name}.yy.h ${CMAKE_CURRENT_SOURCE_DIR}/${_file}
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_file})
endforeach()
endfunction()

View file

@ -10,6 +10,10 @@ if(MSVC)
endif()
endif()
FLEX_TARGET(p_scanner parser.l ${CMAKE_CURRENT_BINARY_DIR}/parser.yy.c)
BISON_TARGET(p_parser parser.y ${CMAKE_CURRENT_BINARY_DIR}/parser.tab.c COMPILE_FLAGS "-p parser_")
ADD_FLEX_BISON_DEPENDENCY(p_scanner p_parser)
list(APPEND SOURCE
client.c
expr.c
@ -25,8 +29,8 @@ list(APPEND SOURCE
widl.c
write_msft.c
write_sltg.c
parser.yy.c
parser.tab.c
${FLEX_p_scanner_OUTPUTS}
${BISON_p_parser_OUTPUTS}
../port/getopt.c
../port/getopt1.c
../port/mkstemps.c)

File diff suppressed because it is too large Load diff

View file

@ -1,289 +0,0 @@
/* A Bison parser, made by GNU Bison 3.5.4. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
/* Undocumented macros, especially those whose name start with YY_,
are private implementation details. Do not rely on them. */
#ifndef YY_PARSER_PARSER_TAB_H_INCLUDED
# define YY_PARSER_PARSER_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int parser_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
aIDENTIFIER = 258,
aPRAGMA = 259,
aKNOWNTYPE = 260,
aNUM = 261,
aHEXNUM = 262,
aDOUBLE = 263,
aSTRING = 264,
aWSTRING = 265,
aSQSTRING = 266,
aUUID = 267,
aEOF = 268,
aACF = 269,
SHL = 270,
SHR = 271,
MEMBERPTR = 272,
EQUALITY = 273,
INEQUALITY = 274,
GREATEREQUAL = 275,
LESSEQUAL = 276,
LOGICALOR = 277,
LOGICALAND = 278,
ELLIPSIS = 279,
tAGGREGATABLE = 280,
tALLNODES = 281,
tALLOCATE = 282,
tANNOTATION = 283,
tAPPOBJECT = 284,
tASYNC = 285,
tASYNCUUID = 286,
tAUTOHANDLE = 287,
tBINDABLE = 288,
tBOOLEAN = 289,
tBROADCAST = 290,
tBYTE = 291,
tBYTECOUNT = 292,
tCALLAS = 293,
tCALLBACK = 294,
tCASE = 295,
tCDECL = 296,
tCHAR = 297,
tCOCLASS = 298,
tCODE = 299,
tCOMMSTATUS = 300,
tCONST = 301,
tCONTEXTHANDLE = 302,
tCONTEXTHANDLENOSERIALIZE = 303,
tCONTEXTHANDLESERIALIZE = 304,
tCONTROL = 305,
tCPPQUOTE = 306,
tDECODE = 307,
tDEFAULT = 308,
tDEFAULTBIND = 309,
tDEFAULTCOLLELEM = 310,
tDEFAULTVALUE = 311,
tDEFAULTVTABLE = 312,
tDISABLECONSISTENCYCHECK = 313,
tDISPLAYBIND = 314,
tDISPINTERFACE = 315,
tDLLNAME = 316,
tDONTFREE = 317,
tDOUBLE = 318,
tDUAL = 319,
tENABLEALLOCATE = 320,
tENCODE = 321,
tENDPOINT = 322,
tENTRY = 323,
tENUM = 324,
tERRORSTATUST = 325,
tEXPLICITHANDLE = 326,
tEXTERN = 327,
tFALSE = 328,
tFASTCALL = 329,
tFAULTSTATUS = 330,
tFLOAT = 331,
tFORCEALLOCATE = 332,
tHANDLE = 333,
tHANDLET = 334,
tHELPCONTEXT = 335,
tHELPFILE = 336,
tHELPSTRING = 337,
tHELPSTRINGCONTEXT = 338,
tHELPSTRINGDLL = 339,
tHIDDEN = 340,
tHYPER = 341,
tID = 342,
tIDEMPOTENT = 343,
tIGNORE = 344,
tIIDIS = 345,
tIMMEDIATEBIND = 346,
tIMPLICITHANDLE = 347,
tIMPORT = 348,
tIMPORTLIB = 349,
tIN = 350,
tIN_LINE = 351,
tINLINE = 352,
tINPUTSYNC = 353,
tINT = 354,
tINT32 = 355,
tINT3264 = 356,
tINT64 = 357,
tINTERFACE = 358,
tLCID = 359,
tLENGTHIS = 360,
tLIBRARY = 361,
tLICENSED = 362,
tLOCAL = 363,
tLONG = 364,
tMAYBE = 365,
tMESSAGE = 366,
tMETHODS = 367,
tMODULE = 368,
tNAMESPACE = 369,
tNOCODE = 370,
tNONBROWSABLE = 371,
tNONCREATABLE = 372,
tNONEXTENSIBLE = 373,
tNOTIFY = 374,
tNOTIFYFLAG = 375,
tNULL = 376,
tOBJECT = 377,
tODL = 378,
tOLEAUTOMATION = 379,
tOPTIMIZE = 380,
tOPTIONAL = 381,
tOUT = 382,
tPARTIALIGNORE = 383,
tPASCAL = 384,
tPOINTERDEFAULT = 385,
tPRAGMA_WARNING = 386,
tPROGID = 387,
tPROPERTIES = 388,
tPROPGET = 389,
tPROPPUT = 390,
tPROPPUTREF = 391,
tPROXY = 392,
tPTR = 393,
tPUBLIC = 394,
tRANGE = 395,
tREADONLY = 396,
tREF = 397,
tREGISTER = 398,
tREPRESENTAS = 399,
tREQUESTEDIT = 400,
tRESTRICTED = 401,
tRETVAL = 402,
tSAFEARRAY = 403,
tSHORT = 404,
tSIGNED = 405,
tSINGLENODE = 406,
tSIZEIS = 407,
tSIZEOF = 408,
tSMALL = 409,
tSOURCE = 410,
tSTATIC = 411,
tSTDCALL = 412,
tSTRICTCONTEXTHANDLE = 413,
tSTRING = 414,
tSTRUCT = 415,
tSWITCH = 416,
tSWITCHIS = 417,
tSWITCHTYPE = 418,
tTHREADING = 419,
tTRANSMITAS = 420,
tTRUE = 421,
tTYPEDEF = 422,
tUIDEFAULT = 423,
tUNION = 424,
tUNIQUE = 425,
tUNSIGNED = 426,
tUSESGETLASTERROR = 427,
tUSERMARSHAL = 428,
tUUID = 429,
tV1ENUM = 430,
tVARARG = 431,
tVERSION = 432,
tVIPROGID = 433,
tVOID = 434,
tWCHAR = 435,
tWIREMARSHAL = 436,
tAPARTMENT = 437,
tNEUTRAL = 438,
tSINGLE = 439,
tFREE = 440,
tBOTH = 441,
CAST = 442,
PPTR = 443,
POS = 444,
NEG = 445,
ADDRESSOF = 446
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 144 "parser.y"
attr_t *attr;
attr_list_t *attr_list;
str_list_t *str_list;
expr_t *expr;
expr_list_t *expr_list;
type_t *type;
var_t *var;
var_list_t *var_list;
declarator_t *declarator;
declarator_list_t *declarator_list;
statement_t *statement;
statement_list_t *stmt_list;
warning_t *warning;
warning_list_t *warning_list;
ifref_t *ifref;
ifref_list_t *ifref_list;
char *str;
UUID *uuid;
unsigned int num;
double dbl;
interface_info_t ifinfo;
typelib_t *typelib;
struct _import_t *import;
struct _decl_spec_t *declspec;
enum storage_class stgclass;
#line 277 "parser.tab.h"
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE parser_lval;
int parser_parse (void);
#endif /* !YY_PARSER_PARSER_TAB_H_INCLUDED */

File diff suppressed because it is too large Load diff

View file

@ -1,698 +0,0 @@
#ifndef parser_HEADER_H
#define parser_HEADER_H 1
#define parser_IN_HEADER 1
#line 6 "parser.yy.h"
#line 8 "parser.yy.h"
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
#ifdef yy_create_buffer
#define parser__create_buffer_ALREADY_DEFINED
#else
#define yy_create_buffer parser__create_buffer
#endif
#ifdef yy_delete_buffer
#define parser__delete_buffer_ALREADY_DEFINED
#else
#define yy_delete_buffer parser__delete_buffer
#endif
#ifdef yy_scan_buffer
#define parser__scan_buffer_ALREADY_DEFINED
#else
#define yy_scan_buffer parser__scan_buffer
#endif
#ifdef yy_scan_string
#define parser__scan_string_ALREADY_DEFINED
#else
#define yy_scan_string parser__scan_string
#endif
#ifdef yy_scan_bytes
#define parser__scan_bytes_ALREADY_DEFINED
#else
#define yy_scan_bytes parser__scan_bytes
#endif
#ifdef yy_init_buffer
#define parser__init_buffer_ALREADY_DEFINED
#else
#define yy_init_buffer parser__init_buffer
#endif
#ifdef yy_flush_buffer
#define parser__flush_buffer_ALREADY_DEFINED
#else
#define yy_flush_buffer parser__flush_buffer
#endif
#ifdef yy_load_buffer_state
#define parser__load_buffer_state_ALREADY_DEFINED
#else
#define yy_load_buffer_state parser__load_buffer_state
#endif
#ifdef yy_switch_to_buffer
#define parser__switch_to_buffer_ALREADY_DEFINED
#else
#define yy_switch_to_buffer parser__switch_to_buffer
#endif
#ifdef yypush_buffer_state
#define parser_push_buffer_state_ALREADY_DEFINED
#else
#define yypush_buffer_state parser_push_buffer_state
#endif
#ifdef yypop_buffer_state
#define parser_pop_buffer_state_ALREADY_DEFINED
#else
#define yypop_buffer_state parser_pop_buffer_state
#endif
#ifdef yyensure_buffer_stack
#define parser_ensure_buffer_stack_ALREADY_DEFINED
#else
#define yyensure_buffer_stack parser_ensure_buffer_stack
#endif
#ifdef yylex
#define parser_lex_ALREADY_DEFINED
#else
#define yylex parser_lex
#endif
#ifdef yyrestart
#define parser_restart_ALREADY_DEFINED
#else
#define yyrestart parser_restart
#endif
#ifdef yylex_init
#define parser_lex_init_ALREADY_DEFINED
#else
#define yylex_init parser_lex_init
#endif
#ifdef yylex_init_extra
#define parser_lex_init_extra_ALREADY_DEFINED
#else
#define yylex_init_extra parser_lex_init_extra
#endif
#ifdef yylex_destroy
#define parser_lex_destroy_ALREADY_DEFINED
#else
#define yylex_destroy parser_lex_destroy
#endif
#ifdef yyget_debug
#define parser_get_debug_ALREADY_DEFINED
#else
#define yyget_debug parser_get_debug
#endif
#ifdef yyset_debug
#define parser_set_debug_ALREADY_DEFINED
#else
#define yyset_debug parser_set_debug
#endif
#ifdef yyget_extra
#define parser_get_extra_ALREADY_DEFINED
#else
#define yyget_extra parser_get_extra
#endif
#ifdef yyset_extra
#define parser_set_extra_ALREADY_DEFINED
#else
#define yyset_extra parser_set_extra
#endif
#ifdef yyget_in
#define parser_get_in_ALREADY_DEFINED
#else
#define yyget_in parser_get_in
#endif
#ifdef yyset_in
#define parser_set_in_ALREADY_DEFINED
#else
#define yyset_in parser_set_in
#endif
#ifdef yyget_out
#define parser_get_out_ALREADY_DEFINED
#else
#define yyget_out parser_get_out
#endif
#ifdef yyset_out
#define parser_set_out_ALREADY_DEFINED
#else
#define yyset_out parser_set_out
#endif
#ifdef yyget_leng
#define parser_get_leng_ALREADY_DEFINED
#else
#define yyget_leng parser_get_leng
#endif
#ifdef yyget_text
#define parser_get_text_ALREADY_DEFINED
#else
#define yyget_text parser_get_text
#endif
#ifdef yyget_lineno
#define parser_get_lineno_ALREADY_DEFINED
#else
#define yyget_lineno parser_get_lineno
#endif
#ifdef yyset_lineno
#define parser_set_lineno_ALREADY_DEFINED
#else
#define yyset_lineno parser_set_lineno
#endif
#ifdef yywrap
#define parser_wrap_ALREADY_DEFINED
#else
#define yywrap parser_wrap
#endif
#ifdef yyalloc
#define parser_alloc_ALREADY_DEFINED
#else
#define yyalloc parser_alloc
#endif
#ifdef yyrealloc
#define parser_realloc_ALREADY_DEFINED
#else
#define yyrealloc parser_realloc
#endif
#ifdef yyfree
#define parser_free_ALREADY_DEFINED
#else
#define yyfree parser_free
#endif
#ifdef yytext
#define parser_text_ALREADY_DEFINED
#else
#define yytext parser_text
#endif
#ifdef yyleng
#define parser_leng_ALREADY_DEFINED
#else
#define yyleng parser_leng
#endif
#ifdef yyin
#define parser_in_ALREADY_DEFINED
#else
#define yyin parser_in
#endif
#ifdef yyout
#define parser_out_ALREADY_DEFINED
#else
#define yyout parser_out
#endif
#ifdef yy_flex_debug
#define parser__flex_debug_ALREADY_DEFINED
#else
#define yy_flex_debug parser__flex_debug
#endif
#ifdef yylineno
#define parser_lineno_ALREADY_DEFINED
#else
#define yylineno parser_lineno
#endif
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* end standard C headers. */
/* begin standard C++ headers. */
/* flex integer type definitions */
#ifndef YYFLEX_INTTYPES_DEFINED
#define YYFLEX_INTTYPES_DEFINED
/* Prefer C99 integer types if available. */
# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
/* Include <inttypes.h> and not <stdint.h> because Solaris 2.6 has the former
* and not the latter.
*/
#include <inttypes.h>
# define YYFLEX_USE_STDINT
# else
# if defined(_MSC_VER) && _MSC_VER >= 1600
/* Visual C++ 2010 does not define __STDC_VERSION__ and has <stdint.h> but not
* <inttypes.h>.
*/
#include <stdint.h>
# define YYFLEX_USE_STDINT
# endif
# endif
# ifdef YYFLEX_USE_STDINT
typedef int8_t flex_int8_t;
typedef uint8_t flex_uint8_t;
typedef int16_t flex_int16_t;
typedef uint16_t flex_uint16_t;
typedef int32_t flex_int32_t;
typedef uint32_t flex_uint32_t;
# else
typedef unsigned char flex_uint8_t;
typedef short int flex_int16_t;
typedef unsigned short int flex_uint16_t;
# ifdef __STDC__
typedef signed char flex_int8_t;
/* ISO C only requires at least 16 bits for int. */
#include <limits.h>
# if UINT_MAX >= 4294967295
# define YYFLEX_INT32_DEFINED
typedef int flex_int32_t;
typedef unsigned int flex_uint32_t;
# endif
# else
typedef char flex_int8_t;
# endif
# ifndef YYFLEX_INT32_DEFINED
typedef long int flex_int32_t;
typedef unsigned long int flex_uint32_t;
# endif
# endif
#endif /* YYFLEX_INTTYPES_DEFINED */
/* TODO: this is always defined, so inline it */
#define yyconst const
#if defined(__GNUC__) && __GNUC__ >= 3
#define yynoreturn __attribute__((__noreturn__))
#else
#define yynoreturn
#endif
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
#ifndef YY_TYPEDEF_YY_SIZE_T
#define YY_TYPEDEF_YY_SIZE_T
typedef size_t yy_size_t;
#endif
extern int yyleng;
extern FILE *yyin, *yyout;
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
FILE *yy_input_file;
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* Whether we "own" the buffer - i.e., we know we created it,
* and can realloc() it to grow it, and should free() it to
* delete it.
*/
int yy_is_our_buffer;
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
* each newline.
*/
int yy_is_interactive;
/* Whether we're considered to be at the beginning of a line.
* If so, '^' rules will be active on the next match, otherwise
* not.
*/
int yy_at_bol;
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
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 );
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 );
void *yyalloc ( yy_size_t );
void *yyrealloc ( void *, yy_size_t );
void yyfree ( void * );
/* Begin user sect3 */
extern int yylineno;
extern char *yytext;
#ifdef yytext_ptr
#undef yytext_ptr
#endif
#define yytext_ptr yytext
#ifdef YY_HEADER_EXPORT_START_CONDITIONS
#define INITIAL 0
#define QUOTE 1
#define WSTRQUOTE 2
#define ATTR 3
#define PP_LINE 4
#define PP_PRAGMA 5
#define SQUOTE 6
#endif
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
#include <unistd.h>
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
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 );
FILE *yyget_in ( void );
void yyset_in ( FILE * _in_str );
FILE *yyget_out ( void );
void yyset_out ( FILE * _out_str );
int yyget_leng ( void );
char *yyget_text ( void );
int yyget_lineno ( void );
void yyset_lineno ( int _line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
extern "C" int yywrap ( void );
#else
extern int yywrap ( void );
#endif
#endif
#ifndef yytext_ptr
static void yy_flex_strncpy ( char *, const char *, int );
#endif
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen ( const char * );
#endif
#ifndef YY_NO_INPUT
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
extern int yylex (void);
#define YY_DECL int yylex (void)
#endif /* !YY_DECL */
/* yy_get_previous_state - get the state just before the EOB char was reached */
#undef YY_NEW_FILE
#undef YY_FLUSH_BUFFER
#undef yy_set_bol
#undef yy_new_buffer
#undef yy_set_interactive
#undef YY_DO_BEFORE_ACTION
#ifdef YY_DECL_IS_OURS
#undef YY_DECL_IS_OURS
#undef YY_DECL
#endif
#ifndef parser__create_buffer_ALREADY_DEFINED
#undef yy_create_buffer
#endif
#ifndef parser__delete_buffer_ALREADY_DEFINED
#undef yy_delete_buffer
#endif
#ifndef parser__scan_buffer_ALREADY_DEFINED
#undef yy_scan_buffer
#endif
#ifndef parser__scan_string_ALREADY_DEFINED
#undef yy_scan_string
#endif
#ifndef parser__scan_bytes_ALREADY_DEFINED
#undef yy_scan_bytes
#endif
#ifndef parser__init_buffer_ALREADY_DEFINED
#undef yy_init_buffer
#endif
#ifndef parser__flush_buffer_ALREADY_DEFINED
#undef yy_flush_buffer
#endif
#ifndef parser__load_buffer_state_ALREADY_DEFINED
#undef yy_load_buffer_state
#endif
#ifndef parser__switch_to_buffer_ALREADY_DEFINED
#undef yy_switch_to_buffer
#endif
#ifndef parser_push_buffer_state_ALREADY_DEFINED
#undef yypush_buffer_state
#endif
#ifndef parser_pop_buffer_state_ALREADY_DEFINED
#undef yypop_buffer_state
#endif
#ifndef parser_ensure_buffer_stack_ALREADY_DEFINED
#undef yyensure_buffer_stack
#endif
#ifndef parser_lex_ALREADY_DEFINED
#undef yylex
#endif
#ifndef parser_restart_ALREADY_DEFINED
#undef yyrestart
#endif
#ifndef parser_lex_init_ALREADY_DEFINED
#undef yylex_init
#endif
#ifndef parser_lex_init_extra_ALREADY_DEFINED
#undef yylex_init_extra
#endif
#ifndef parser_lex_destroy_ALREADY_DEFINED
#undef yylex_destroy
#endif
#ifndef parser_get_debug_ALREADY_DEFINED
#undef yyget_debug
#endif
#ifndef parser_set_debug_ALREADY_DEFINED
#undef yyset_debug
#endif
#ifndef parser_get_extra_ALREADY_DEFINED
#undef yyget_extra
#endif
#ifndef parser_set_extra_ALREADY_DEFINED
#undef yyset_extra
#endif
#ifndef parser_get_in_ALREADY_DEFINED
#undef yyget_in
#endif
#ifndef parser_set_in_ALREADY_DEFINED
#undef yyset_in
#endif
#ifndef parser_get_out_ALREADY_DEFINED
#undef yyget_out
#endif
#ifndef parser_set_out_ALREADY_DEFINED
#undef yyset_out
#endif
#ifndef parser_get_leng_ALREADY_DEFINED
#undef yyget_leng
#endif
#ifndef parser_get_text_ALREADY_DEFINED
#undef yyget_text
#endif
#ifndef parser_get_lineno_ALREADY_DEFINED
#undef yyget_lineno
#endif
#ifndef parser_set_lineno_ALREADY_DEFINED
#undef yyset_lineno
#endif
#ifndef parser_get_column_ALREADY_DEFINED
#undef yyget_column
#endif
#ifndef parser_set_column_ALREADY_DEFINED
#undef yyset_column
#endif
#ifndef parser_wrap_ALREADY_DEFINED
#undef yywrap
#endif
#ifndef parser_get_lval_ALREADY_DEFINED
#undef yyget_lval
#endif
#ifndef parser_set_lval_ALREADY_DEFINED
#undef yyset_lval
#endif
#ifndef parser_get_lloc_ALREADY_DEFINED
#undef yyget_lloc
#endif
#ifndef parser_set_lloc_ALREADY_DEFINED
#undef yyset_lloc
#endif
#ifndef parser_alloc_ALREADY_DEFINED
#undef yyalloc
#endif
#ifndef parser_realloc_ALREADY_DEFINED
#undef yyrealloc
#endif
#ifndef parser_free_ALREADY_DEFINED
#undef yyfree
#endif
#ifndef parser_text_ALREADY_DEFINED
#undef yytext
#endif
#ifndef parser_leng_ALREADY_DEFINED
#undef yyleng
#endif
#ifndef parser_in_ALREADY_DEFINED
#undef yyin
#endif
#ifndef parser_out_ALREADY_DEFINED
#undef yyout
#endif
#ifndef parser__flex_debug_ALREADY_DEFINED
#undef yy_flex_debug
#endif
#ifndef parser_lineno_ALREADY_DEFINED
#undef yylineno
#endif
#ifndef parser_tables_fload_ALREADY_DEFINED
#undef yytables_fload
#endif
#ifndef parser_tables_destroy_ALREADY_DEFINED
#undef yytables_destroy
#endif
#ifndef parser_TABLES_NAME_ALREADY_DEFINED
#undef yyTABLES_NAME
#endif
#line 239 "parser.l"
#line 697 "parser.yy.h"
#undef parser_IN_HEADER
#endif /* parser_HEADER_H */

View file

@ -30,15 +30,17 @@ if(CMAKE_CROSSCOMPILING)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
endif()
FLEX_TARGET(pp_scanner ppl.l ${CMAKE_CURRENT_BINARY_DIR}/ppl.yy.c)
BISON_TARGET(pp_parser ppy.y ${CMAKE_CURRENT_BINARY_DIR}/ppy.tab.c COMPILE_FLAGS "-p ppy_")
ADD_FLEX_BISON_DEPENDENCY(pp_scanner pp_parser)
list(APPEND SOURCE
preproc.c
wpp.c
ppl.yy.c
ppy.tab.c)
wpp.c)
if(CMAKE_CROSSCOMPILING)
add_library(wpp ${SOURCE})
add_library(wpp ${SOURCE} ${FLEX_pp_scanner_OUTPUT_SOURCE} ${BISON_pp_parser_OUTPUT_SOURCE})
else()
add_library(wpphost ${SOURCE})
add_library(wpphost ${SOURCE} ${FLEX_pp_scanner_OUTPUTS} ${BISON_pp_parser_OUTPUTS})
target_link_libraries(wpphost PRIVATE host_includes)
endif()

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,124 +0,0 @@
/* A Bison parser, made by GNU Bison 3.0.2. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef YY_PPY_PPY_TAB_H_INCLUDED
# define YY_PPY_PPY_TAB_H_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int ppy_debug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
tRCINCLUDE = 258,
tIF = 259,
tIFDEF = 260,
tIFNDEF = 261,
tELSE = 262,
tELIF = 263,
tENDIF = 264,
tDEFINED = 265,
tNL = 266,
tINCLUDE = 267,
tLINE = 268,
tGCCLINE = 269,
tERROR = 270,
tWARNING = 271,
tPRAGMA = 272,
tPPIDENT = 273,
tUNDEF = 274,
tMACROEND = 275,
tCONCAT = 276,
tELIPSIS = 277,
tSTRINGIZE = 278,
tIDENT = 279,
tLITERAL = 280,
tMACRO = 281,
tDEFINE = 282,
tDQSTRING = 283,
tSQSTRING = 284,
tIQSTRING = 285,
tUINT = 286,
tSINT = 287,
tULONG = 288,
tSLONG = 289,
tULONGLONG = 290,
tSLONGLONG = 291,
tRCINCLUDEPATH = 292,
tLOGOR = 293,
tLOGAND = 294,
tEQ = 295,
tNE = 296,
tLTE = 297,
tGTE = 298,
tLSHIFT = 299,
tRSHIFT = 300
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE YYSTYPE;
union YYSTYPE
{
#line 126 "ppy.y" /* yacc.c:1909 */
int sint;
unsigned int uint;
long slong;
unsigned long ulong;
wrc_sll_t sll;
wrc_ull_t ull;
int *iptr;
char *cptr;
cval_t cval;
marg_t *marg;
mtext_t *mtext;
#line 114 "ppy.tab.h" /* yacc.c:1909 */
};
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
extern YYSTYPE ppy_lval;
int ppy_parse (void);
#endif /* !YY_PPY_PPY_TAB_H_INCLUDED */