w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

tex2xindy.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
Include dependency graph for tex2xindy.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 FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   35
 
#define FLEX_BETA
 
#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 yyconst
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned 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 EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   yy_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   36
 
#define YY_END_OF_BUFFER   37
 
#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 QUOTE_ECHO   qs(yytext)
 
#define multiple_err
 
#define NO_RANGE   0
 
#define OPEN_RANGE   1
 
#define CLOSE_RANGE   2
 
#define INITIAL   0
 
#define key   1
 
#define print   2
 
#define skip2location   3
 
#define location   4
 
#define encap   5
 
#define xref   6
 
#define is   7
 
#define skiplocation   8
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   fwrite( yytext, yyleng, 1, yyout )
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP    YY_USER_ACTION
 
#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 unsigned char 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 (char *yy_str)
 
YY_BUFFER_STATE yy_scan_bytes (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 yy_fatal_error (char msg[])
 
static void qc (char ch)
 
static void qs (char *str)
 
static void omega_output_utf8 (int width)
 
static int yy_init_globals (void)
 
int yylex_destroy (void)
 
int yyget_debug (void)
 
void yyset_debug (int debug_flag)
 
voidyyget_extra (void)
 
void yyset_extra (void *user_defined)
 
FILEyyget_in (void)
 
void yyset_in (FILE *in_str)
 
FILEyyget_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)
 
int yywrap (void)
 
static void yyunput (int c, char *buf_ptr)
 
static int input (void)
 
int yylex (void)
 
static void yyunput (int c, register char *yy_bp)
 
static void yy_fatal_error (char *msg)
 
static void usage (void)
 
int main (int argc, char *argv[])
 

Variables

int yyleng
 
FILEyyin = (FILE *) 0
 
FILEyyout = (FILE *) 0
 
static size_t yy_buffer_stack_top = 0
 
static size_t yy_buffer_stack_max = 0
 
static YY_BUFFER_STATEyy_buffer_stack = 0
 
static char yy_hold_char
 
static int yy_n_chars
 
static char * yy_c_buf_p = (char *) 0
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int yylineno = 1
 
char * yytext
 
static flex_int16_t yy_accept [116]
 
static flex_int32_t yy_ec [256]
 
static flex_int32_t yy_meta [29]
 
static flex_int16_t yy_base [123]
 
static flex_int16_t yy_def [123]
 
static flex_int16_t yy_nxt [292]
 
static flex_int16_t yy_chk [292]
 
static yy_state_type yy_last_accepting_state
 
static char * yy_last_accepting_cpos
 
int yy_flex_debug = 0
 
FILEattrfd = NULL
 
static int lineno = 1
 
static int braces = 0
 
static int xref_mode = 0
 
static int glos_mode = 0
 
static int errors = 0
 
static int omega_mode = 0
 
int range = 0
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 139 of file tex2xindy.c.

◆ CLOSE_RANGE

#define CLOSE_RANGE   2

Definition at line 677 of file tex2xindy.c.

◆ ECHO

#define ECHO   fwrite( yytext, yyleng, 1, yyout )

Definition at line 847 of file tex2xindy.c.

◆ encap

#define encap   5

Definition at line 757 of file tex2xindy.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 174 of file tex2xindy.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 175 of file tex2xindy.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 176 of file tex2xindy.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 28 of file tex2xindy.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 23 of file tex2xindy.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 44 of file tex2xindy.c.

◆ INITIAL

#define INITIAL   0

Definition at line 752 of file tex2xindy.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 87 of file tex2xindy.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 78 of file tex2xindy.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 90 of file tex2xindy.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 81 of file tex2xindy.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 84 of file tex2xindy.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 75 of file tex2xindy.c.

◆ is

#define is   7

Definition at line 759 of file tex2xindy.c.

◆ key

#define key   1

Definition at line 753 of file tex2xindy.c.

◆ location

#define location   4

Definition at line 756 of file tex2xindy.c.

◆ multiple_err

#define multiple_err
Value:
{ \
fprintf(stderr, "line %d: multiple %s's\n", lineno, yytext); \
errors++; \
}
static int lineno
Definition: tex2xindy.c:662
char * yytext
Definition: tex2xindy.c:565

Definition at line 669 of file tex2xindy.c.

◆ NO_RANGE

#define NO_RANGE   0

Definition at line 675 of file tex2xindy.c.

◆ OPEN_RANGE

#define OPEN_RANGE   1

Definition at line 676 of file tex2xindy.c.

◆ print

#define print   2

Definition at line 754 of file tex2xindy.c.

◆ QUOTE_ECHO

#define QUOTE_ECHO   qs(yytext)

Definition at line 658 of file tex2xindy.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 561 of file tex2xindy.c.

◆ skip2location

#define skip2location   3

Definition at line 755 of file tex2xindy.c.

◆ skiplocation

#define skiplocation   8

Definition at line 760 of file tex2xindy.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 96 of file tex2xindy.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 99 of file tex2xindy.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 93 of file tex2xindy.c.

◆ unput

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

Definition at line 194 of file tex2xindy.c.

◆ xref

#define xref   6

Definition at line 758 of file tex2xindy.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 345 of file tex2xindy.c.

◆ YY_BREAK

#define YY_BREAK   break;

Definition at line 926 of file tex2xindy.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 158 of file tex2xindy.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 261 of file tex2xindy.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 249 of file tex2xindy.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 250 of file tex2xindy.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
#define NULL
Definition: ftobjs.h:61
static YY_BUFFER_STATE * yy_buffer_stack
Definition: tex2xindy.c:269
static size_t yy_buffer_stack_top
Definition: tex2xindy.c:267

Definition at line 277 of file tex2xindy.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 284 of file tex2xindy.c.

◆ YY_DECL

#define YY_DECL   int yylex (void)

Definition at line 914 of file tex2xindy.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 910 of file tex2xindy.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
yyleng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
#define size_t
Definition: glob.c:257
static char yy_hold_char
Definition: tex2xindy.c:287
#define yytext_ptr
Definition: tex2xindy.c:360
static char * yy_c_buf_p
Definition: tex2xindy.c:292

Definition at line 370 of file tex2xindy.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   37

Definition at line 378 of file tex2xindy.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 154 of file tex2xindy.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 2111 of file tex2xindy.c.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 771 of file tex2xindy.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 901 of file tex2xindy.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 24 of file tex2xindy.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   5

Definition at line 25 of file tex2xindy.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   35

Definition at line 26 of file tex2xindy.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 313 of file tex2xindy.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 = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
#define n
Definition: t4ht.c:1290
#define fread
Definition: xxstdio.h:25
#define c(n)
Definition: gpos-common.c:150
#define EOF
Definition: afmparse.c:59
int errno
#define buf
#define getc
Definition: line.c:39
#define ferror(f)
Definition: t1stdio.h:110
FILE * yyin
Definition: tex2xindy.c:351
#define YY_CURRENT_BUFFER_LVALUE
Definition: tex2xindy.c:284

Definition at line 854 of file tex2xindy.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 19 of file tex2xindy.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 178 of file tex2xindy.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 563 of file tex2xindy.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 323 of file tex2xindy.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart(yyin )

Definition at line 152 of file tex2xindy.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 126 of file tex2xindy.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   36

Definition at line 377 of file tex2xindy.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 839 of file tex2xindy.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 564 of file tex2xindy.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP    YY_USER_ACTION

Definition at line 929 of file tex2xindy.c.

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 133 of file tex2xindy.c.

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer(yyin,YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_CURRENT_BUFFER
Definition: tex2xindy.c:277
#define YY_BUF_SIZE
Definition: tex2xindy.c:158

Definition at line 335 of file tex2xindy.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; \
}

Definition at line 325 of file tex2xindy.c.

◆ YY_START

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

Definition at line 145 of file tex2xindy.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 896 of file tex2xindy.c.

◆ YY_STATE_BUF_SIZE

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

Definition at line 163 of file tex2xindy.c.

◆ YY_STATE_EOF

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

Definition at line 149 of file tex2xindy.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 202 of file tex2xindy.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 166 of file tex2xindy.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 197 of file tex2xindy.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 921 of file tex2xindy.c.

◆ yyconst

#define yyconst

Definition at line 122 of file tex2xindy.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_cp = (yy_hold_char); \
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 )
#define YY_MORE_ADJ
Definition: tex2xindy.c:563

Definition at line 2123 of file tex2xindy.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 )
int yyleng
Definition: tex2xindy.c:289

Definition at line 2123 of file tex2xindy.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 562 of file tex2xindy.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 146 of file tex2xindy.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 2313 of file tex2xindy.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 891 of file tex2xindy.c.

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 360 of file tex2xindy.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 66 of file tex2xindy.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 67 of file tex2xindy.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 65 of file tex2xindy.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 69 of file tex2xindy.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 70 of file tex2xindy.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 68 of file tex2xindy.c.

◆ YY_BUFFER_STATE

Definition at line 167 of file tex2xindy.c.

◆ YY_CHAR

typedef unsigned char YY_CHAR

Definition at line 349 of file tex2xindy.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 198 of file tex2xindy.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 353 of file tex2xindy.c.

Function Documentation

◆ input()

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ omega_output_utf8()

static void omega_output_utf8 ( int  width)
static

Definition at line 706 of file tex2xindy.c.

References c, fprintf, fputs, lineno, NULL, fc-lang::stdout, strtoul(), width, and yytext.

Referenced by yylex().

◆ qc()

static void qc ( char  ch)
static

Definition at line 683 of file tex2xindy.c.

References ch.

Referenced by filter_PNG15_apply_filter(), qs(), and yylex().

◆ qs()

◆ usage()

static void usage ( void  )
static

Definition at line 2319 of file tex2xindy.c.

References exit(), and fputs.

Referenced by main().

◆ 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 1828 of file tex2xindy.c.

References b, size, YY_FATAL_ERROR, yy_init_buffer(), and yyalloc().

Referenced by yylex(), and yyrestart().

◆ 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 1856 of file tex2xindy.c.

References b, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yyfree().

Referenced by yylex_destroy(), and yypop_buffer_state().

◆ yy_fatal_error() [1/2]

static void yy_fatal_error ( char *  msg)
static

Definition at line 2114 of file tex2xindy.c.

References exit(), fprintf, void, and YY_EXIT_FAILURE.

◆ yy_fatal_error() [2/2]

static void yy_fatal_error ( 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 1903 of file tex2xindy.c.

References b, YY_BUFFER_NEW, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_load_buffer_state().

Referenced by yy_init_buffer().

◆ yy_get_next_buffer()

◆ 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

Definition at line 1875 of file tex2xindy.c.

References b, errno, file, YY_CURRENT_BUFFER, and yy_flush_buffer().

Referenced by yy_create_buffer(), and yyrestart().

◆ yy_init_globals()

static int yy_init_globals ( void  )
static

◆ yy_load_buffer_state()

◆ 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 2030 of file tex2xindy.c.

References b, base, size, YY_BUFFER_NEW, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_switch_to_buffer(), and yyalloc().

Referenced by yy_scan_bytes().

◆ yy_scan_bytes()

YY_BUFFER_STATE yy_scan_bytes ( char *  yybytes,
int  _yybytes_len 
)

Setup the input buffer state to scan the given bytes. The next call to yylex() will scan from a copy of bytes.

Parameters
bytesthe byte buffer to scan
lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 2080 of file tex2xindy.c.

References b, buf, i, n, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_scan_buffer(), and yyalloc().

Referenced by yy_scan_string().

◆ yy_scan_string()

YY_BUFFER_STATE yy_scan_string ( char *  yystr)

Setup the input buffer state to scan a string. The next call to yylex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use yy_scan_bytes() instead.

Definition at line 2067 of file tex2xindy.c.

References strlen(), and yy_scan_bytes().

◆ 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 1783 of file tex2xindy.c.

References yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().

Referenced by yy_scan_buffer().

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 1627 of file tex2xindy.c.

References int(), yy_accept, yy_base, yy_c_buf_p, yy_chk, yy_def, yy_last_accepting_cpos, yy_last_accepting_state, yy_meta, and yy_nxt.

Referenced by yylex().

◆ yyalloc()

void* yyalloc ( yy_size_t  size)

Definition at line 2291 of file tex2xindy.c.

References malloc, and size.

Referenced by yy_create_buffer(), yy_scan_buffer(), yy_scan_bytes(), and yyensure_buffer_stack().

◆ yyensure_buffer_stack()

static void yyensure_buffer_stack ( void  )
static

◆ yyfree()

void yyfree ( void ptr)

Definition at line 2308 of file tex2xindy.c.

References free, and ptr.

Referenced by yy_delete_buffer(), and yylex_destroy().

◆ yyget_debug()

int yyget_debug ( void  )

Definition at line 2207 of file tex2xindy.c.

References yy_flex_debug.

◆ yyget_extra()

void* yyget_extra ( void  )

◆ yyget_in()

FILE* yyget_in ( void  )

Get the input stream.

Definition at line 2151 of file tex2xindy.c.

References yyin.

◆ yyget_leng()

int yyget_leng ( void  )

Get the length of the current token.

Definition at line 2167 of file tex2xindy.c.

References yyleng.

◆ yyget_lineno()

int yyget_lineno ( void  )

Get the current line number.

Definition at line 2142 of file tex2xindy.c.

References yylineno.

◆ yyget_out()

FILE* yyget_out ( void  )

Get the output stream.

Definition at line 2159 of file tex2xindy.c.

References yyout.

◆ yyget_text()

char* yyget_text ( void  )

Get the current token.

Definition at line 2176 of file tex2xindy.c.

References yytext.

◆ yylex()

◆ yylex_destroy()

◆ 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 1962 of file tex2xindy.c.

References NULL, yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_did_buffer_switch_on_eof, and yy_load_buffer_state().

Referenced by yylex_destroy().

◆ 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 1932 of file tex2xindy.c.

References NULL, yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().

◆ yyrealloc()

void* yyrealloc ( void ptr,
yy_size_t  size 
)

Definition at line 2296 of file tex2xindy.c.

References ptr, realloc, and size.

Referenced by yy_get_next_buffer(), and yyensure_buffer_stack().

◆ 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 1766 of file tex2xindy.c.

References gen-os2-unicode-ranges::input_file, YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer(), yy_load_buffer_state(), yyensure_buffer_stack(), and yyin.

Referenced by input(), and yy_get_next_buffer().

◆ yyset_debug()

void yyset_debug ( int  debug_flag)

Definition at line 2212 of file tex2xindy.c.

References yy_flex_debug.

◆ yyset_extra()

void yyset_extra ( void 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 2197 of file tex2xindy.c.

References yyin.

◆ yyset_lineno()

void yyset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2185 of file tex2xindy.c.

References line_number, and yylineno.

◆ yyset_out()

void yyset_out ( FILE out_str)

Definition at line 2202 of file tex2xindy.c.

References yyout.

◆ yyunput() [1/2]

static void yyunput ( int  c,
char *  buf_ptr 
)
static

◆ yyunput() [2/2]

static void yyunput ( int  c,
register char *  yy_bp 
)
static

◆ yywrap()

int yywrap ( void  )

yywrap – handles EOF for lex. Check to see if the stack of open files has anything on it. If it does, set yyin to the to value. If not return the termination signal for lex.

Definition at line 2373 of file tex2xindy.c.

Referenced by input(), and yylex().

Variable Documentation

◆ attrfd

FILE* attrfd = NULL

Definition at line 660 of file tex2xindy.c.

Referenced by main(), and yylex().

◆ braces

int braces = 0
static

◆ errors

int errors = 0
static

Definition at line 666 of file tex2xindy.c.

Referenced by main().

◆ glos_mode

int glos_mode = 0
static

Definition at line 665 of file tex2xindy.c.

Referenced by yylex().

◆ lineno

int lineno = 1
static

Definition at line 662 of file tex2xindy.c.

Referenced by omega_output_utf8(), and yylex().

◆ omega_mode

int omega_mode = 0
static

Definition at line 667 of file tex2xindy.c.

Referenced by main(), and yylex().

◆ range

int range = 0

Definition at line 679 of file tex2xindy.c.

Referenced by yylex().

◆ xref_mode

int xref_mode = 0
static

Definition at line 664 of file tex2xindy.c.

Referenced by yylex().

◆ yy_accept

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

Definition at line 386 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

◆ yy_base

flex_int16_t yy_base[123]
static
Initial value:
=
{ 0,
0, 4, 14, 41, 0, 4, 68, 93, 116, 0,
143, 170, 8, 9, 1, 2, 197, 224, 174, 263,
263, 263, 165, 15, 263, 263, 263, 263, 164, 263,
263, 161, 153, 263, 263, 263, 263, 263, 31, 159,
263, 263, 263, 263, 263, 160, 263, 263, 157, 263,
263, 263, 263, 263, 263, 263, 263, 263, 158, 155,
263, 263, 263, 263, 141, 136, 141, 36, 263, 132,
133, 41, 129, 112, 117, 263, 119, 102, 99, 50,
109, 102, 99, 67, 101, 81, 80, 70, 85, 64,
64, 263, 78, 61, 53, 92, 42, 35, 95, 36,
46, 103, 26, 64, 263, 114, 14, 122, 75, 125,
86, 263, 143, 263, 263, 252, 254, 256, 258, 260,
20, 19
}

Definition at line 442 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 269 of file tex2xindy.c.

Referenced by yy_init_globals(), yyensure_buffer_stack(), and yylex_destroy().

◆ yy_buffer_stack_max

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 268 of file tex2xindy.c.

Referenced by yy_init_globals(), and yyensure_buffer_stack().

◆ yy_buffer_stack_top

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 267 of file tex2xindy.c.

Referenced by yy_init_globals(), yyensure_buffer_stack(), yypop_buffer_state(), and yypush_buffer_state().

◆ yy_c_buf_p

◆ yy_chk

flex_int16_t yy_chk[292]
static

Definition at line 515 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

◆ yy_def

flex_int16_t yy_def[123]
static
Initial value:
=
{ 0,
116, 116, 117, 117, 4, 4, 116, 116, 4, 9,
118, 118, 9, 9, 9, 9, 119, 119, 115, 115,
115, 115, 120, 115, 115, 115, 115, 115, 120, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 120, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 120, 115,
115, 115, 115, 115, 115, 115, 121, 115, 115, 115,
115, 115, 115, 115, 115, 115, 122, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 115, 115, 115, 115, 115, 115,
115, 115, 115, 115, 0, 115, 115, 115, 115, 115,
115, 115
}

Definition at line 460 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

◆ yy_did_buffer_switch_on_eof

int yy_did_buffer_switch_on_eof
static

◆ yy_ec

flex_int32_t yy_ec[256]
static

Definition at line 403 of file tex2xindy.c.

Referenced by yy_get_previous_state(), and yylex().

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 556 of file tex2xindy.c.

Referenced by yyget_debug(), and yyset_debug().

◆ yy_hold_char

char yy_hold_char
static

◆ yy_init

int yy_init = 0
static

Definition at line 293 of file tex2xindy.c.

Referenced by yy_init_globals(), and yylex().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 553 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

◆ yy_last_accepting_state

yy_state_type yy_last_accepting_state
static

Definition at line 552 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

◆ yy_meta

flex_int32_t yy_meta[29]
static
Initial value:
=
{ 0,
1, 1, 1, 1, 1, 1, 1, 2, 1, 1,
1, 2, 2, 2, 2, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1
}

Definition at line 435 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

◆ yy_n_chars

◆ yy_nxt

flex_int16_t yy_nxt[292]
static

Definition at line 478 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_try_NUL_trans(), and yylex().

◆ yy_start

int yy_start = 0
static

Definition at line 294 of file tex2xindy.c.

Referenced by yy_get_previous_state(), yy_init_globals(), and yylex().

◆ yyin

◆ yyleng

int yyleng

Definition at line 289 of file tex2xindy.c.

Referenced by yyget_leng().

◆ yylineno

int yylineno = 1

Definition at line 357 of file tex2xindy.c.

Referenced by yyget_lineno(), and yyset_lineno().

◆ yyout

FILE * yyout = (FILE *) 0

Definition at line 172 of file tex2xindy.c.

Referenced by yy_init_globals(), yyget_out(), yylex(), and yyset_out().

◆ yytext

char* yytext

Definition at line 565 of file tex2xindy.c.

Referenced by omega_output_utf8(), yyget_text(), and yylex().