ReactOS  0.4.14-dev-554-g2f8d847
hlsl.yy.c File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "wine/debug.h"
#include "d3dcompiler_private.h"
#include "hlsl.tab.h"
Include dependency graph for hlsl.yy.c:

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define yy_create_buffer   hlsl__create_buffer
 
#define yy_delete_buffer   hlsl__delete_buffer
 
#define yy_scan_buffer   hlsl__scan_buffer
 
#define yy_scan_string   hlsl__scan_string
 
#define yy_scan_bytes   hlsl__scan_bytes
 
#define yy_init_buffer   hlsl__init_buffer
 
#define yy_flush_buffer   hlsl__flush_buffer
 
#define yy_load_buffer_state   hlsl__load_buffer_state
 
#define yy_switch_to_buffer   hlsl__switch_to_buffer
 
#define yypush_buffer_state   hlsl_push_buffer_state
 
#define yypop_buffer_state   hlsl_pop_buffer_state
 
#define yyensure_buffer_stack   hlsl_ensure_buffer_stack
 
#define yy_flex_debug   hlsl__flex_debug
 
#define yyin   hlsl_in
 
#define yyleng   hlsl_leng
 
#define yylex   hlsl_lex
 
#define yylineno   hlsl_lineno
 
#define yyout   hlsl_out
 
#define yyrestart   hlsl_restart
 
#define yytext   hlsl_text
 
#define yywrap   hlsl_wrap
 
#define yyalloc   hlsl_alloc
 
#define yyrealloc   hlsl_realloc
 
#define yyfree   hlsl_free
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define FLEX_BETA
 
#define hlsl__create_buffer_ALREADY_DEFINED
 
#define hlsl__delete_buffer_ALREADY_DEFINED
 
#define hlsl__scan_buffer_ALREADY_DEFINED
 
#define hlsl__scan_string_ALREADY_DEFINED
 
#define hlsl__scan_bytes_ALREADY_DEFINED
 
#define hlsl__init_buffer_ALREADY_DEFINED
 
#define hlsl__flush_buffer_ALREADY_DEFINED
 
#define hlsl__load_buffer_state_ALREADY_DEFINED
 
#define hlsl__switch_to_buffer_ALREADY_DEFINED
 
#define hlsl_push_buffer_state_ALREADY_DEFINED
 
#define hlsl_pop_buffer_state_ALREADY_DEFINED
 
#define hlsl_ensure_buffer_stack_ALREADY_DEFINED
 
#define hlsl_lex_ALREADY_DEFINED
 
#define hlsl_restart_ALREADY_DEFINED
 
#define yylex_init   hlsl_lex_init
 
#define yylex_init_extra   hlsl_lex_init_extra
 
#define yylex_destroy   hlsl_lex_destroy
 
#define yyget_debug   hlsl_get_debug
 
#define yyset_debug   hlsl_set_debug
 
#define yyget_extra   hlsl_get_extra
 
#define yyset_extra   hlsl_set_extra
 
#define yyget_in   hlsl_get_in
 
#define yyset_in   hlsl_set_in
 
#define yyget_out   hlsl_get_out
 
#define yyset_out   hlsl_set_out
 
#define yyget_leng   hlsl_get_leng
 
#define yyget_text   hlsl_get_text
 
#define yyget_lineno   hlsl_get_lineno
 
#define yyset_lineno   hlsl_set_lineno
 
#define hlsl_wrap_ALREADY_DEFINED
 
#define hlsl_alloc_ALREADY_DEFINED
 
#define hlsl_realloc_ALREADY_DEFINED
 
#define hlsl_free_ALREADY_DEFINED
 
#define hlsl_text_ALREADY_DEFINED
 
#define hlsl_leng_ALREADY_DEFINED
 
#define hlsl_in_ALREADY_DEFINED
 
#define hlsl_out_ALREADY_DEFINED
 
#define hlsl__flex_debug_ALREADY_DEFINED
 
#define hlsl_lineno_ALREADY_DEFINED
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define SIZE_MAX   (~(size_t)0)
 
#define yyconst   const
 
#define yynoreturn
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((YY_CHAR) (c))
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   yyrestart( yyin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define YY_LINENO_REWIND_TO(ptr)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )
 
#define yy_new_buffer   yy_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define hlsl_wrap()   (/*CONSTCOND*/1)
 
#define YY_SKIP_YYWRAP
 
#define yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   125
 
#define YY_END_OF_BUFFER   126
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_NO_UNISTD_H
 
#define YY_USER_ACTION
 
#define YY_NO_INPUT   1
 
#define INITIAL   0
 
#define pp   1
 
#define pp_line   2
 
#define pp_pragma   3
 
#define pp_ignore   4
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#define YY_BREAK   /*LINTED*/break;
 
#define YY_RULE_SETUP
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

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
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef flex_uint8_t YY_CHAR
 
typedef int yy_state_type
 

Functions

void yyrestart (FILE *input_file)
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 
void yy_flush_buffer (YY_BUFFER_STATE b)
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 
void yypop_buffer_state (void)
 
static void yyensure_buffer_stack (void)
 
static void yy_load_buffer_state (void)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
 
YY_BUFFER_STATE yy_scan_string (const char *yy_str)
 
YY_BUFFER_STATE yy_scan_bytes (const char *bytes, int len)
 
voidyyalloc (yy_size_t)
 
voidyyrealloc (void *, yy_size_t)
 
void yyfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yynoreturn yy_fatal_error (const char *msg)
 
 WINE_DEFAULT_DEBUG_CHANNEL (hlsl_parser)
 
static int yy_init_globals (void)
 
int yylex_destroy (void)
 
int yyget_debug (void)
 
void yyset_debug (int debug_flag)
 
YY_EXTRA_TYPE yyget_extra (void)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
FILEyyget_in (void)
 
void yyset_in (FILE *_in_str)
 
FILEyyget_out (void)
 
void yyset_out (FILE *_out_str)
 
int yyget_leng (void)
 
charyyget_text (void)
 
int yyget_lineno (void)
 
void yyset_lineno (int _line_number)
 
int yylex (void)
 
 if (!(yy_init))
 
struct bwriter_shaderparse_hlsl_shader (const char *text, enum shader_type type, DWORD major, DWORD minor, const char *entrypoint, char **messages)
 

Variables

int yyleng
 
FILEyyin = NULL
 
FILEyyout = NULL
 
static size_t yy_buffer_stack_top = 0
 
static size_t yy_buffer_stack_max = 0
 
static YY_BUFFER_STATEyy_buffer_stack = NULL
 
static char yy_hold_char
 
static int yy_n_chars
 
static charyy_c_buf_p = NULL
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int yylineno = 1
 
charyytext
 
static const flex_int16_t yy_accept [717]
 
static const YY_CHAR yy_ec [256]
 
static const YY_CHAR yy_meta [72]
 
static const flex_int16_t yy_base [725]
 
static const flex_int16_t yy_def [725]
 
static const flex_int16_t yy_nxt [1011]
 
static const flex_int16_t yy_chk [1011]
 
static yy_state_type yy_last_accepting_state
 
static charyy_last_accepting_cpos
 
int yy_flex_debug = 0
 
 YY_DECL
 
charyy_cp
 
charyy_bp
 
int yy_act
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 377 of file hlsl.yy.c.

◆ ECHO

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

Definition at line 1304 of file hlsl.yy.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 421 of file hlsl.yy.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 422 of file hlsl.yy.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 423 of file hlsl.yy.c.

◆ FLEX_BETA

#define FLEX_BETA

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

◆ FLEX_SCANNER

#define FLEX_SCANNER

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

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 289 of file hlsl.yy.c.

◆ hlsl__create_buffer_ALREADY_DEFINED

#define hlsl__create_buffer_ALREADY_DEFINED

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

◆ hlsl__delete_buffer_ALREADY_DEFINED

#define hlsl__delete_buffer_ALREADY_DEFINED

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

◆ hlsl__flex_debug_ALREADY_DEFINED

#define hlsl__flex_debug_ALREADY_DEFINED

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

◆ hlsl__flush_buffer_ALREADY_DEFINED

#define hlsl__flush_buffer_ALREADY_DEFINED

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

◆ hlsl__init_buffer_ALREADY_DEFINED

#define hlsl__init_buffer_ALREADY_DEFINED

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

◆ hlsl__load_buffer_state_ALREADY_DEFINED

#define hlsl__load_buffer_state_ALREADY_DEFINED

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

◆ hlsl__scan_buffer_ALREADY_DEFINED

#define hlsl__scan_buffer_ALREADY_DEFINED

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

◆ hlsl__scan_bytes_ALREADY_DEFINED

#define hlsl__scan_bytes_ALREADY_DEFINED

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

◆ hlsl__scan_string_ALREADY_DEFINED

#define hlsl__scan_string_ALREADY_DEFINED

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

◆ hlsl__switch_to_buffer_ALREADY_DEFINED

#define hlsl__switch_to_buffer_ALREADY_DEFINED

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

◆ hlsl_alloc_ALREADY_DEFINED

#define hlsl_alloc_ALREADY_DEFINED

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

◆ hlsl_ensure_buffer_stack_ALREADY_DEFINED

#define hlsl_ensure_buffer_stack_ALREADY_DEFINED

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

◆ hlsl_free_ALREADY_DEFINED

#define hlsl_free_ALREADY_DEFINED

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

◆ hlsl_in_ALREADY_DEFINED

#define hlsl_in_ALREADY_DEFINED

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

◆ hlsl_leng_ALREADY_DEFINED

#define hlsl_leng_ALREADY_DEFINED

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

◆ hlsl_lex_ALREADY_DEFINED

#define hlsl_lex_ALREADY_DEFINED

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

◆ hlsl_lineno_ALREADY_DEFINED

#define hlsl_lineno_ALREADY_DEFINED

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

◆ hlsl_out_ALREADY_DEFINED

#define hlsl_out_ALREADY_DEFINED

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

◆ hlsl_pop_buffer_state_ALREADY_DEFINED

#define hlsl_pop_buffer_state_ALREADY_DEFINED

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

◆ hlsl_push_buffer_state_ALREADY_DEFINED

#define hlsl_push_buffer_state_ALREADY_DEFINED

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

◆ hlsl_realloc_ALREADY_DEFINED

#define hlsl_realloc_ALREADY_DEFINED

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

◆ hlsl_restart_ALREADY_DEFINED

#define hlsl_restart_ALREADY_DEFINED

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

◆ hlsl_text_ALREADY_DEFINED

#define hlsl_text_ALREADY_DEFINED

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

◆ hlsl_wrap

#define hlsl_wrap ( )    (/*CONSTCOND*/1)

Definition at line 586 of file hlsl.yy.c.

◆ hlsl_wrap_ALREADY_DEFINED

#define hlsl_wrap_ALREADY_DEFINED

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

◆ INITIAL

#define INITIAL   0

Definition at line 1207 of file hlsl.yy.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

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

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 322 of file hlsl.yy.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

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

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 325 of file hlsl.yy.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 328 of file hlsl.yy.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

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

◆ pp

#define pp   1

Definition at line 1208 of file hlsl.yy.c.

◆ pp_ignore

#define pp_ignore   4

Definition at line 1211 of file hlsl.yy.c.

◆ pp_line

#define pp_line   2

Definition at line 1209 of file hlsl.yy.c.

◆ pp_pragma

#define pp_pragma   3

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

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 1160 of file hlsl.yy.c.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 347 of file hlsl.yy.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 340 of file hlsl.yy.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 343 of file hlsl.yy.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 337 of file hlsl.yy.c.

◆ unput

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

Definition at line 441 of file hlsl.yy.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

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

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 1383 of file hlsl.yy.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 399 of file hlsl.yy.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

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

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 491 of file hlsl.yy.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 492 of file hlsl.yy.c.

◆ yy_create_buffer

#define yy_create_buffer   hlsl__create_buffer

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

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
smooth NULL
Definition: ftsmooth.c:416
static size_t yy_buffer_stack_top
Definition: hlsl.yy.c:509
static YY_BUFFER_STATE * yy_buffer_stack
Definition: hlsl.yy.c:511

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

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 525 of file hlsl.yy.c.

◆ YY_DECL

#define YY_DECL   int yylex (void)

Definition at line 1371 of file hlsl.yy.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 1367 of file hlsl.yy.c.

◆ yy_delete_buffer

#define yy_delete_buffer   hlsl__delete_buffer

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

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
yyleng = (int) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
char * yy_bp
Definition: hlsl.yy.c:1397
static char yy_hold_char
Definition: hlsl.yy.c:528
#define yytext_ptr
Definition: hlsl.yy.c:601
char * yy_cp
Definition: hlsl.yy.c:1397
static char * yy_c_buf_p
Definition: hlsl.yy.c:533
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Definition: typeof.h:31

Definition at line 611 of file hlsl.yy.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   126

Definition at line 618 of file hlsl.yy.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 388 of file hlsl.yy.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

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

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 1358 of file hlsl.yy.c.

◆ yy_flex_debug

#define yy_flex_debug   hlsl__flex_debug

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

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

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

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

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

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

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

◆ yy_flush_buffer

#define yy_flush_buffer   hlsl__flush_buffer

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

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

Definition at line 553 of file hlsl.yy.c.

◆ yy_init_buffer

#define yy_init_buffer   hlsl__init_buffer

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

◆ YY_INPUT

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

Definition at line 1311 of file hlsl.yy.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

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

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

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

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 426 of file hlsl.yy.c.

◆ yy_load_buffer_state

#define yy_load_buffer_state   hlsl__load_buffer_state

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

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 1162 of file hlsl.yy.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 563 of file hlsl.yy.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 387 of file hlsl.yy.c.

◆ YY_NO_INPUT

#define YY_NO_INPUT   1

Definition at line 1203 of file hlsl.yy.c.

◆ YY_NO_UNISTD_H

#define YY_NO_UNISTD_H

Definition at line 1189 of file hlsl.yy.c.

◆ YY_NULL

#define YY_NULL   0

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

◆ YY_NUM_RULES

#define YY_NUM_RULES   125

Definition at line 617 of file hlsl.yy.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 1295 of file hlsl.yy.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 1163 of file hlsl.yy.c.

◆ YY_RULE_SETUP

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

Definition at line 1386 of file hlsl.yy.c.

◆ YY_SC_TO_UI

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

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

◆ yy_scan_buffer

#define yy_scan_buffer   hlsl__scan_buffer

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

◆ yy_scan_bytes

#define yy_scan_bytes   hlsl__scan_bytes

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

◆ yy_scan_string

#define yy_scan_string   hlsl__scan_string

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

◆ yy_set_bol

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

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

◆ yy_set_interactive

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

Definition at line 564 of file hlsl.yy.c.

◆ YY_SKIP_YYWRAP

#define YY_SKIP_YYWRAP

Definition at line 587 of file hlsl.yy.c.

◆ YY_START

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

Definition at line 382 of file hlsl.yy.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 1353 of file hlsl.yy.c.

◆ YY_STATE_BUF_SIZE

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

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

◆ YY_STATE_EOF

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

Definition at line 385 of file hlsl.yy.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 444 of file hlsl.yy.c.

◆ yy_switch_to_buffer

#define yy_switch_to_buffer   hlsl__switch_to_buffer

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

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 408 of file hlsl.yy.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

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

◆ YY_USER_ACTION

#define YY_USER_ACTION
Value:
do { \
hlsl_lloc.first_column = hlsl_ctx.column; \
hlsl_lloc.first_line = hlsl_ctx.line_no; \
hlsl_ctx.column += yyleng; \
} while(0);
struct hlsl_parse_ctx hlsl_ctx
Definition: hlsl.tab.c:90
#define yyleng
Definition: hlsl.yy.c:23

Definition at line 1195 of file hlsl.yy.c.

◆ yyalloc

#define yyalloc   hlsl_alloc

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

◆ yyconst

#define yyconst   const

Definition at line 357 of file hlsl.yy.c.

◆ yyensure_buffer_stack

#define yyensure_buffer_stack   hlsl_ensure_buffer_stack

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

◆ yyfree

#define yyfree   hlsl_free

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

◆ yyget_debug

#define yyget_debug   hlsl_get_debug

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

◆ yyget_extra

#define yyget_extra   hlsl_get_extra

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

◆ yyget_in

#define yyget_in   hlsl_get_in

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

◆ yyget_leng

#define yyget_leng   hlsl_get_leng

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

◆ yyget_lineno

#define yyget_lineno   hlsl_get_lineno

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

◆ yyget_out

#define yyget_out   hlsl_get_out

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

◆ yyget_text

#define yyget_text   hlsl_get_text

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

◆ yyin

#define yyin   hlsl_in

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

◆ yyleng

#define yyleng   hlsl_leng

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

◆ yyless [1/2]

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

Definition at line 429 of file hlsl.yy.c.

◆ yyless [2/2]

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

Definition at line 429 of file hlsl.yy.c.

◆ yylex

#define yylex   hlsl_lex

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

◆ yylex_destroy

#define yylex_destroy   hlsl_lex_destroy

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

◆ yylex_init

#define yylex_init   hlsl_lex_init

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

◆ yylex_init_extra

#define yylex_init_extra   hlsl_lex_init_extra

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

◆ yylineno

#define yylineno   hlsl_lineno

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

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 1161 of file hlsl.yy.c.

◆ yynoreturn

#define yynoreturn

Definition at line 362 of file hlsl.yy.c.

◆ yyout

#define yyout   hlsl_out

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

◆ yypop_buffer_state

#define yypop_buffer_state   hlsl_pop_buffer_state

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

◆ yypush_buffer_state

#define yypush_buffer_state   hlsl_push_buffer_state

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

◆ yyrealloc

#define yyrealloc   hlsl_realloc

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

◆ yyrestart

#define yyrestart   hlsl_restart

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

◆ yyset_debug

#define yyset_debug   hlsl_set_debug

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

◆ yyset_extra

#define yyset_extra   hlsl_set_extra

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

◆ yyset_in

#define yyset_in   hlsl_set_in

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

◆ yyset_lineno

#define yyset_lineno   hlsl_set_lineno

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

◆ yyset_out

#define yyset_out   hlsl_set_out

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

◆ YYSTATE

#define YYSTATE   YY_START

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

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 1348 of file hlsl.yy.c.

◆ yytext

#define yytext   hlsl_text

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

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 601 of file hlsl.yy.c.

◆ yywrap

#define yywrap   hlsl_wrap

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

Typedef Documentation

◆ flex_int16_t

Definition at line 311 of file hlsl.yy.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 312 of file hlsl.yy.c.

◆ flex_int8_t

Definition at line 310 of file hlsl.yy.c.

◆ flex_uint16_t

Definition at line 314 of file hlsl.yy.c.

◆ flex_uint32_t

Definition at line 315 of file hlsl.yy.c.

◆ flex_uint8_t

Definition at line 313 of file hlsl.yy.c.

◆ YY_BUFFER_STATE

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

◆ YY_CHAR

Definition at line 588 of file hlsl.yy.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 414 of file hlsl.yy.c.

◆ yy_state_type

typedef int yy_state_type

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

Function Documentation

◆ if()

if ( yy_init)

Definition at line 1400 of file hlsl.yy.c.

1401  {
1402  (yy_init) = 1;
1403 
1404 #ifdef YY_USER_INIT
1405  YY_USER_INIT;
1406 #endif
1407 
1408  if ( ! (yy_start) )
1409  (yy_start) = 1; /* first start state */
1410 
1411  if ( ! yyin )
1412  yyin = stdin;
1413 
1414  if ( ! yyout )
1415  yyout = stdout;
1416 
1417  if ( ! YY_CURRENT_BUFFER ) {
1421  }
1422 
1424  }
FILE * stdin
FILE * stdout
#define yy_load_buffer_state
Definition: hlsl.yy.c:16
#define yy_create_buffer
Definition: hlsl.yy.c:9
#define YY_BUF_SIZE
Definition: hlsl.yy.c:399
#define yyin
Definition: hlsl.yy.c:22
static int yy_init
Definition: hlsl.yy.c:534
#define YY_CURRENT_BUFFER_LVALUE
Definition: hlsl.yy.c:525
#define yyensure_buffer_stack
Definition: hlsl.yy.c:20
#define YY_CURRENT_BUFFER
Definition: hlsl.yy.c:519
static int yy_start
Definition: hlsl.yy.c:535
#define yyout
Definition: hlsl.yy.c:26

◆ parse_hlsl_shader()

struct bwriter_shader* parse_hlsl_shader ( const char text,
enum shader_type  type,
DWORD  major,
DWORD  minor,
const char entrypoint,
char **  messages 
)

Definition at line 3176 of file hlsl.yy.c.

3178 {
3179  struct bwriter_shader *ret = NULL;
3181 
3182  buffer = hlsl__scan_string(text);
3183  hlsl__switch_to_buffer(buffer);
3184 
3185  ret = parse_hlsl(type, major, minor, entrypoint, messages);
3186 
3187  hlsl__delete_buffer(buffer);
3188  return ret;
3189 }
struct bwriter_shader * parse_hlsl(enum shader_type type, DWORD major, DWORD minor, const char *entrypoint, char **messages)
Definition: hlsl.tab.c:4883
const WCHAR * text
Definition: package.c:1827
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLuint buffer
Definition: glext.h:5915
smooth NULL
Definition: ftsmooth.c:416
int ret
#define major(rdev)
Definition: propsheet.cpp:916
#define minor(rdev)
Definition: propsheet.cpp:917

Referenced by compile_shader().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( hlsl_parser  )

◆ yy_create_buffer()

YY_BUFFER_STATE yy_create_buffer ( FILE file,
int  size 
)

Allocate and initialize an input buffer state.

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

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

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

◆ yy_delete_buffer()

void yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with yy_create_buffer()

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

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

◆ yy_fatal_error()

static void yynoreturn yy_fatal_error ( const char msg)
static

◆ yy_flush_buffer()

void yy_flush_buffer ( YY_BUFFER_STATE  b)

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

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

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

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

◆ yy_get_next_buffer()

static int yy_get_next_buffer ( void  )
static

◆ yy_get_previous_state()

static yy_state_type yy_get_previous_state ( void  )
static

◆ yy_init_buffer()

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE file 
)
static

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

◆ yy_load_buffer_state()

static void yy_load_buffer_state ( void  )
static

◆ yy_scan_buffer()

YY_BUFFER_STATE yy_scan_buffer ( char base,
yy_size_t  size 
)

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

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

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

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

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( const char bytes,
int  len 
)

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( const char yy_str)

◆ yy_switch_to_buffer()

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

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

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

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

◆ yyalloc()

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

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

◆ yyensure_buffer_stack()

static void yyensure_buffer_stack ( void  )
static

◆ yyfree()

void yyfree ( void )

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

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

◆ yyget_debug()

int yyget_debug ( void  )

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

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

◆ yyget_extra()

YY_EXTRA_TYPE yyget_extra ( void  )

◆ yyget_in()

FILE* yyget_in ( void  )

Get the input stream.

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

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

◆ yyget_leng()

int yyget_leng ( void  )

Get the length of the current token.

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

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

◆ yyget_lineno()

int yyget_lineno ( void  )

Get the current line number.

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

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

◆ yyget_out()

FILE* yyget_out ( void  )

Get the output stream.

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

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

◆ yyget_text()

char* yyget_text ( void  )

Get the current token.

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

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

◆ yylex()

int yylex ( void  )

◆ yylex_destroy()

int yylex_destroy ( void  )

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

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

◆ yypop_buffer_state()

void yypop_buffer_state ( void  )

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

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

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

◆ yypush_buffer_state()

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)

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

Parameters
new_bufferThe new state.

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

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

◆ yyrealloc()

void* yyrealloc ( void ,
yy_size_t   
)

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

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

◆ yyrestart()

void yyrestart ( FILE input_file)

Immediately switch to a different input stream.

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

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

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

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

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

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

◆ yyset_extra()

void yyset_extra ( YY_EXTRA_TYPE  user_defined)

◆ yyset_in()

void yyset_in ( FILE in_str)

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

Parameters
in_strA readable stream.
See also
yy_switch_to_buffer

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

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

◆ yyset_lineno()

void yyset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

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

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

◆ yyset_out()

void yyset_out ( FILE _out_str)

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

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

Variable Documentation

◆ yy_accept

const flex_int16_t yy_accept[717]
static

Definition at line 626 of file hlsl.yy.c.

◆ yy_act

int yy_act

Definition at line 1398 of file hlsl.yy.c.

◆ yy_base

const flex_int16_t yy_base[725]
static

Definition at line 753 of file hlsl.yy.c.

◆ yy_bp

char * yy_bp

Definition at line 1397 of file hlsl.yy.c.

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 511 of file hlsl.yy.c.

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 510 of file hlsl.yy.c.

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

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

◆ yy_c_buf_p

char* yy_c_buf_p = NULL
static

Definition at line 533 of file hlsl.yy.c.

◆ yy_chk

const flex_int16_t yy_chk[1011]
static

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

◆ yy_cp

char* yy_cp

Definition at line 1397 of file hlsl.yy.c.

◆ YY_DECL

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

The main scanner function which does all the work.

Definition at line 1395 of file hlsl.yy.c.

◆ yy_def

const flex_int16_t yy_def[725]
static

Definition at line 837 of file hlsl.yy.c.

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

Definition at line 540 of file hlsl.yy.c.

◆ yy_ec

const YY_CHAR yy_ec[256]
static

Definition at line 709 of file hlsl.yy.c.

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 1155 of file hlsl.yy.c.

◆ yy_hold_char

char yy_hold_char
static

Definition at line 528 of file hlsl.yy.c.

◆ yy_init

int yy_init = 0
static

Definition at line 534 of file hlsl.yy.c.

Referenced by if().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 1152 of file hlsl.yy.c.

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 1151 of file hlsl.yy.c.

◆ yy_meta

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

Definition at line 741 of file hlsl.yy.c.

◆ yy_n_chars

int yy_n_chars
static

Definition at line 529 of file hlsl.yy.c.

◆ yy_nxt

const flex_int16_t yy_nxt[1011]
static

Definition at line 921 of file hlsl.yy.c.

◆ yy_start

int yy_start = 0
static

Definition at line 535 of file hlsl.yy.c.

Referenced by if().

◆ yyin

FILE* yyin = NULL

Definition at line 590 of file hlsl.yy.c.

◆ yyleng

int yyleng

Definition at line 530 of file hlsl.yy.c.

◆ yylineno

int yylineno = 1

Definition at line 595 of file hlsl.yy.c.

◆ yyout

FILE * yyout = NULL

Definition at line 590 of file hlsl.yy.c.

◆ yytext

char* yytext

Definition at line 1164 of file hlsl.yy.c.