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)  

detex.c File Reference
#include "detex.h"
#include <strings.h>
#include <sys/param.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
Include dependency graph for detex.c:

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define strrchr   rindex
 
#define PATH_MAX   MAXPATHLEN
 
#define YY_INT_ALIGNED   short int
 
#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 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 yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   174
 
#define YY_END_OF_BUFFER   175
 
#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 LaBEGIN   if (fLatex) BEGIN
 
#define IGNORE   Ignore()
 
#define INCRLINENO   IncrLineNo()
 
#define ECHO   Echo()
 
#define NOUN   if (fSpace && !fWord && !fReplace) putchar(' '); else {if (fReplace) printf("noun");}
 
#define VERBNOUN   if (fReplace) printf(" verbs noun"); /* puts a verb and a noun to make grammar checking work */
 
#define SPACE   if (!fWord) putchar(' ')
 
#define NEWLINE   LineBreak()
 
#define LATEX   fLatex=!fForcetex
 
#define KILLARGS(x)   cArgs=x; LaBEGIN LaMacro
 
#define STRIPARGS(x)   cArgs=x; LaBEGIN LaMacro2
 
#define CITE(x)   if (fLatex && !fCite) KILLARGS(x)
 
#define NO_MALLOC_DECL
 
#define NOFILE   256
 
#define INITIAL   0
 
#define Define   1
 
#define Display   2
 
#define IncludeOnly   3
 
#define Input   4
 
#define Math   5
 
#define Normal   6
 
#define Control   7
 
#define LaBegin   8
 
#define LaDisplay   9
 
#define LaEnd   10
 
#define LaEnv   11
 
#define LaFormula   12
 
#define LaInclude   13
 
#define LaSubfile   14
 
#define LaMacro   15
 
#define LaOptArg   16
 
#define LaMacro2   17
 
#define LaOptArg2   18
 
#define LaVerbatim   19
 
#define LaBreak   20
 
#define LaPicture   21
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   /*LINTED*/break;
 
#define YY_RULE_SETUP    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 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 yy_fatal_error (const char *msg)
 
void LineBreak ()
 
void Ignore ()
 
void IncrLineNo ()
 
void Echo ()
 
void AddInclude (char *sbFile)
 
void ErrorExit (const char *sb1)
 
void UsageExit (void)
 
void VersionExit (void)
 
void IncludeFile (char *sbFile)
 
void InputFile (char *sbFile)
 
void SetEnvIgnore (const char *sbEnvList)
 
void SetInputPaths (void)
 
void Warning (const char *sb1, const char *sb2)
 
int BeginEnv (const char *sbEnv)
 
int EndEnv (const char *sbEnv)
 
int InList (char *sbFile)
 
int SeparateList (char *sbList, char *rgsbList[], char chSep, int csbMax)
 
FILETexOpen (char *sbFile)
 
char * SafeMalloc (int cch, const char *sbMessage)
 
char * getenv ()
 
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 int input (void)
 
int yylex (void)
 
int main (int cArgs, char *rgsbArgs[])
 
void PrintPrefix ()
 

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 char * yy_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
 
char * yytext
 
static const flex_int16_t yy_accept [1362]
 
static const YY_CHAR yy_ec [256]
 
static const YY_CHAR yy_meta [61]
 
static const flex_int16_t yy_base [1416]
 
static const flex_int16_t yy_def [1416]
 
static const flex_int16_t yy_nxt [3432]
 
static const flex_int16_t yy_chk [3432]
 
static yy_state_type yy_last_accepting_state
 
static char * yy_last_accepting_cpos
 
int yy_flex_debug = 0
 
char * rgsbEnvIgnore [25]
 
char * rgsbIncList [40]
 
char * rgsbInputPaths [10]
 
char sbCurrentIgnoredEnv [100]
 
char * sbProgName
 
FILErgfp [256+1]
 
int cfp = 0
 
int cOpenBrace = 0
 
int cArgs = 0
 
int csbEnvIgnore
 
int csbIncList = 0
 
int csbInputPaths
 
int fLatex = 0
 
int fWord = 0
 
int fFollow = 1
 
int fCite = 0
 
int fSpace = 0
 
int fForcetex = 0
 
int fSrcLoc = 0
 
int fShowPictures = 0
 
int fReplace = 0
 
int currBracesLevel = 0
 
int footnoteLevel = -100
 
YY_BUFFER_STATE rgsb [256+1]
 
char * fFileNames [256+1]
 
int fFileLines [256+1]
 
int fIsColumn0 = 1
 
int csb = 0
 

Macro Definition Documentation

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 205 of file detex.c.

◆ CITE

#define CITE (   x)    if (fLatex && !fCite) KILLARGS(x)

Definition at line 1762 of file detex.c.

◆ Control

#define Control   7

Definition at line 1849 of file detex.c.

◆ Define

#define Define   1

Definition at line 1843 of file detex.c.

◆ Display

#define Display   2

Definition at line 1844 of file detex.c.

◆ ECHO

#define ECHO   Echo()

Definition at line 1754 of file detex.c.

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 249 of file detex.c.

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

Definition at line 250 of file detex.c.

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

Definition at line 251 of file detex.c.

◆ FLEX_BETA

#define FLEX_BETA

Definition at line 101 of file detex.c.

◆ FLEX_SCANNER

#define FLEX_SCANNER

Definition at line 96 of file detex.c.

◆ FLEXINT_H

#define FLEXINT_H

Definition at line 117 of file detex.c.

◆ IGNORE

#define IGNORE   Ignore()

Definition at line 1752 of file detex.c.

◆ IncludeOnly

#define IncludeOnly   3

Definition at line 1845 of file detex.c.

◆ INCRLINENO

#define INCRLINENO   IncrLineNo()

Definition at line 1753 of file detex.c.

◆ INITIAL

#define INITIAL   0

Definition at line 1842 of file detex.c.

◆ Input

#define Input   4

Definition at line 1846 of file detex.c.

◆ INT16_MAX

#define INT16_MAX   (32767)

Definition at line 159 of file detex.c.

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

Definition at line 150 of file detex.c.

◆ INT32_MAX

#define INT32_MAX   (2147483647)

Definition at line 162 of file detex.c.

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

Definition at line 153 of file detex.c.

◆ INT8_MAX

#define INT8_MAX   (127)

Definition at line 156 of file detex.c.

◆ INT8_MIN

#define INT8_MIN   (-128)

Definition at line 147 of file detex.c.

◆ KILLARGS

#define KILLARGS (   x)    cArgs=x; LaBEGIN LaMacro

Definition at line 1760 of file detex.c.

◆ LaBEGIN

#define LaBEGIN   if (fLatex) BEGIN

Definition at line 1751 of file detex.c.

◆ LaBegin

#define LaBegin   8

Definition at line 1850 of file detex.c.

◆ LaBreak

#define LaBreak   20

Definition at line 1862 of file detex.c.

◆ LaDisplay

#define LaDisplay   9

Definition at line 1851 of file detex.c.

◆ LaEnd

#define LaEnd   10

Definition at line 1852 of file detex.c.

◆ LaEnv

#define LaEnv   11

Definition at line 1853 of file detex.c.

◆ LaFormula

#define LaFormula   12

Definition at line 1854 of file detex.c.

◆ LaInclude

#define LaInclude   13

Definition at line 1855 of file detex.c.

◆ LaMacro

#define LaMacro   15

Definition at line 1857 of file detex.c.

◆ LaMacro2

#define LaMacro2   17

Definition at line 1859 of file detex.c.

◆ LaOptArg

#define LaOptArg   16

Definition at line 1858 of file detex.c.

◆ LaOptArg2

#define LaOptArg2   18

Definition at line 1860 of file detex.c.

◆ LaPicture

#define LaPicture   21

Definition at line 1863 of file detex.c.

◆ LaSubfile

#define LaSubfile   14

Definition at line 1856 of file detex.c.

◆ LATEX

#define LATEX   fLatex=!fForcetex

Definition at line 1759 of file detex.c.

◆ LaVerbatim

#define LaVerbatim   19

Definition at line 1861 of file detex.c.

◆ Math

#define Math   5

Definition at line 1847 of file detex.c.

◆ NEWLINE

#define NEWLINE   LineBreak()

Definition at line 1758 of file detex.c.

◆ NO_MALLOC_DECL

#define NO_MALLOC_DECL

Definition at line 1764 of file detex.c.

◆ NOFILE

#define NOFILE   256

Definition at line 1804 of file detex.c.

◆ Normal

#define Normal   6

Definition at line 1848 of file detex.c.

◆ NOUN

#define NOUN   if (fSpace && !fWord && !fReplace) putchar(' '); else {if (fReplace) printf("noun");}

Definition at line 1755 of file detex.c.

◆ PATH_MAX

#define PATH_MAX   MAXPATHLEN

Definition at line 75 of file detex.c.

◆ REJECT

#define REJECT   reject_used_but_not_detected

Definition at line 1740 of file detex.c.

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

Definition at line 175 of file detex.c.

◆ SPACE

#define SPACE   if (!fWord) putchar(' ')

Definition at line 1757 of file detex.c.

◆ STRIPARGS

#define STRIPARGS (   x)    cArgs=x; LaBEGIN LaMacro2

Definition at line 1761 of file detex.c.

◆ strrchr

#define strrchr   rindex

Definition at line 67 of file detex.c.

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

Definition at line 168 of file detex.c.

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

Definition at line 171 of file detex.c.

◆ UINT8_MAX

#define UINT8_MAX   (255U)

Definition at line 165 of file detex.c.

◆ unput

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

Definition at line 269 of file detex.c.

◆ VERBNOUN

#define VERBNOUN   if (fReplace) printf(" verbs noun"); /* puts a verb and a noun to make grammar checking work */

Definition at line 1756 of file detex.c.

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 410 of file detex.c.

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

Definition at line 2035 of file detex.c.

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

Definition at line 227 of file detex.c.

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

Definition at line 331 of file detex.c.

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

Definition at line 319 of file detex.c.

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

Definition at line 320 of file detex.c.

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
: NULL)
static YY_BUFFER_STATE * yy_buffer_stack
Definition: detex.c:339
static size_t yy_buffer_stack_top
Definition: detex.c:337
#define NULL
Definition: ftobjs.h:61

Definition at line 347 of file detex.c.

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

Definition at line 353 of file detex.c.

◆ YY_DECL

#define YY_DECL   int yylex (void)

Definition at line 2023 of file detex.c.

◆ YY_DECL_IS_OURS

#define YY_DECL_IS_OURS   1

Definition at line 2019 of file detex.c.

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
yyleng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
static char yy_hold_char
Definition: detex.c:356
#define yytext_ptr
Definition: detex.c:426
static char * yy_c_buf_p
Definition: detex.c:361
return() int(((double) *(font_tbl[cur_fnt].wtbl+(int)(*(font_tbl[cur_fnt].char_wi+(int)(ch - font_tbl[cur_fnt].char_f)% 256)))/(double)(1L<< 20)) *(double) font_tbl[cur_fnt].scale)

Definition at line 436 of file detex.c.

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   175

Definition at line 443 of file detex.c.

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

Definition at line 216 of file detex.c.

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

Definition at line 3907 of file detex.c.

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

Definition at line 1874 of file detex.c.

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )

Definition at line 2010 of file detex.c.

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

Definition at line 97 of file detex.c.

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

Definition at line 98 of file detex.c.

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

Definition at line 99 of file detex.c.

◆ YY_FLUSH_BUFFER

#define YY_FLUSH_BUFFER   yy_flush_buffer( YY_CURRENT_BUFFER )

Definition at line 381 of file detex.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); \
} \
}\
\
#define n
Definition: t4ht.c:1290
FILE * yyin
Definition: detex.c:415
#define YY_CURRENT_BUFFER_LVALUE
Definition: detex.c:353
size_t yy_size_t
Definition: detex.c:242
#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

Definition at line 1963 of file detex.c.

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

Definition at line 92 of file detex.c.

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)

Definition at line 253 of file detex.c.

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   ptr)

Definition at line 254 of file detex.c.

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

Definition at line 1742 of file detex.c.

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

Definition at line 391 of file detex.c.

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

Definition at line 215 of file detex.c.

◆ YY_NULL

#define YY_NULL   0

Definition at line 194 of file detex.c.

◆ YY_NUM_RULES

#define YY_NUM_RULES   174

Definition at line 442 of file detex.c.

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

Definition at line 1947 of file detex.c.

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 1743 of file detex.c.

◆ YY_RULE_SETUP

#define YY_RULE_SETUP    YY_USER_ACTION

Definition at line 2038 of file detex.c.

◆ YY_SC_TO_UI

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

Definition at line 199 of file detex.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: detex.c:347
#define YY_BUF_SIZE
Definition: detex.c:227

Definition at line 401 of file detex.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 392 of file detex.c.

◆ YY_START

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

Definition at line 210 of file detex.c.

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

Definition at line 2005 of file detex.c.

◆ YY_STATE_BUF_SIZE

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

Definition at line 233 of file detex.c.

◆ YY_STATE_EOF

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

Definition at line 213 of file detex.c.

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 272 of file detex.c.

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 236 of file detex.c.

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 241 of file detex.c.

◆ YY_USER_ACTION

#define YY_USER_ACTION

Definition at line 2030 of file detex.c.

◆ yyconst

#define yyconst   const

Definition at line 185 of file detex.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: detex.c:1742

Definition at line 3919 of file detex.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: detex.c:358
char * yytext
Definition: detex.c:1744

Definition at line 3919 of file detex.c.

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

Definition at line 1741 of file detex.c.

◆ yynoreturn

#define yynoreturn

Definition at line 190 of file detex.c.

◆ YYSTATE

#define YYSTATE   YY_START

Definition at line 211 of file detex.c.

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Definition at line 4111 of file detex.c.

◆ yyterminate

#define yyterminate ( )    return YY_NULL

Definition at line 2000 of file detex.c.

◆ yytext_ptr

#define yytext_ptr   yytext

Definition at line 426 of file detex.c.

Typedef Documentation

◆ flex_int16_t

typedef short int flex_int16_t

Definition at line 139 of file detex.c.

◆ flex_int32_t

typedef int flex_int32_t

Definition at line 140 of file detex.c.

◆ flex_int8_t

typedef signed char flex_int8_t

Definition at line 138 of file detex.c.

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

Definition at line 142 of file detex.c.

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

Definition at line 143 of file detex.c.

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

Definition at line 141 of file detex.c.

◆ YY_BUFFER_STATE

Definition at line 237 of file detex.c.

◆ YY_CHAR

Definition at line 413 of file detex.c.

◆ yy_size_t

typedef size_t yy_size_t

Definition at line 242 of file detex.c.

◆ yy_state_type

typedef int yy_state_type

Definition at line 417 of file detex.c.

Function Documentation

◆ AddInclude()

void AddInclude ( char *  sbFile)

AddInclude – adds sbFile to the rgsbIncList and increments csbIncList. If the include list is too long, sbFile is ignored.

Definition at line 4475 of file detex.c.

References csbIncList, fFollow, MAXINCLIST, rgsbIncList, SafeMalloc(), strcpy(), strlen(), void, and Warning().

Referenced by yylex().

◆ BeginEnv()

int BeginEnv ( const char *  sbEnv)

BeginEnv – checks to see if sbEnv is in the list rgsbEnvIgnore. If it is, sbCurrentIgnoredEnv is set to sbEnv.

Definition at line 4388 of file detex.c.

References csbEnvIgnore, fLatex, i, rgsbEnvIgnore, sbCurrentIgnoredEnv, strcmp(), strcpy(), and void.

Referenced by yylex().

◆ Echo()

void Echo ( )

Echo – If we are at column 0 and have specified '-1'; output the source location information.

Definition at line 4330 of file detex.c.

References fprintf, PrintPrefix(), yyout, and yytext.

◆ EndEnv()

int EndEnv ( const char *  sbEnv)

EndEnv – checks to see if sbEnv is the current environment being ignored.

Definition at line 4406 of file detex.c.

References fLatex, sbCurrentIgnoredEnv, and strcmp().

Referenced by yylex().

◆ ErrorExit()

void ErrorExit ( const char *  sb1)

ErrorExit – print an error message preceded by the program name. Stdout is flushed and detex exits.

Definition at line 4688 of file detex.c.

References exit(), fflush, fprintf, sbProgName, fc-lang::stdout, and void.

Referenced by main(), SafeMalloc(), SetEnvIgnore(), SetInputPaths(), uregex_open_68(), and uregex_openUText_68().

◆ getenv()

char* getenv ( )

Referenced by SetInputPaths().

◆ Ignore()

void Ignore ( )

Ignore – Since we might need to track source location information we cannot just ignore text. We must at least increase the linenumber counter.

Definition at line 4358 of file detex.c.

References fSpace, fWord, and IncrLineNo().

◆ IncludeFile()

void IncludeFile ( char *  sbFile)

IncludeFile – if sbFile is not in the rgsbIncList, push current yyin and open sbFile. If the open fails, the sbFile is ignored.

Definition at line 4447 of file detex.c.

References cfp, csb, fFileLines, fFileNames, fFollow, FILE, InList(), NULL, rgfp, rgsb, strdup, TexOpen(), Warning(), YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, yy_switch_to_buffer(), and yyin.

Referenced by yylex().

◆ IncrLineNo()

void IncrLineNo ( )

IncrLineNo – Increase the correct linenumber counter and reset the the 'fIsColumn0' to true.

Definition at line 4342 of file detex.c.

References c, csb, fFileLines, fIsColumn0, and yytext.

Referenced by Ignore().

◆ InList()

int InList ( char *  sbFile)

InList – checks to see if sbFile is in the rgsbIncList. If there is no list, all files are assumed to be "in the list".

Definition at line 4491 of file detex.c.

References csbIncList, i, NULL, PATH_MAX, rgsbIncList, strcmp(), strcpy(), strrchr, and void.

Referenced by IncludeFile().

◆ input()

◆ InputFile()

void InputFile ( char *  sbFile)

InputFile – push the current yyin and open sbFile. If the open fails, the sbFile is ignored.

Definition at line 4421 of file detex.c.

References cfp, csb, fFileLines, fFileNames, fFollow, FILE, NULL, rgfp, rgsb, strdup, TexOpen(), Warning(), YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, yy_switch_to_buffer(), and yyin.

Referenced by yylex().

◆ LineBreak()

void LineBreak ( )

LineBreak – choses the proper way to break a line. If '-1' option is enabled we also want to output some source location information.

Definition at line 4316 of file detex.c.

References csb, fFileLines, fIsColumn0, fWord, and PrintPrefix().

◆ main()

int main ( int  cArgs,
char *  rgsbArgs[] 
)

◆ PrintPrefix()

void PrintPrefix ( )

PrintPrefix – In case fSrcLoc is 1 and we are about to print the first column of a line, we want to output the location of that line in the original LaTeX document it came from.

Definition at line 4302 of file detex.c.

References csb, fFileLines, fFileNames, fIsColumn0, fSrcLoc, and printf().

Referenced by Echo(), and LineBreak().

◆ SafeMalloc()

char * SafeMalloc ( int  cch,
const char *  sbMessage 
)

SafeMalloc – wrapper around malloc() to check for failure.

Definition at line 4663 of file detex.c.

References ErrorExit(), malloc, and NULL.

Referenced by AddInclude(), SetEnvIgnore(), SetInputPaths(), and TexOpen().

◆ SeparateList()

int SeparateList ( char *  sbList,
char *  rgsbList[],
char  chSep,
int  csbMax 
)

SeparateList – takes a chSep separated list sbList, replaces the chSep's with NULLs and sets rgsbList[i] to the beginning of the ith word in sbList. The number of words is returned. A my_ERROR is returned if there are more than csbMax words.

Definition at line 4562 of file detex.c.

References my_ERROR, and strchr.

Referenced by SetEnvIgnore(), and SetInputPaths().

◆ SetEnvIgnore()

void SetEnvIgnore ( const char *  sbEnvList)

SetEnvIgnore – sets rgsbEnvIgnore to the values indicated by the sbEnvList.

Definition at line 4370 of file detex.c.

References CHENVSEP, csbEnvIgnore, ErrorExit(), MAXENVS, my_ERROR, rgsbEnvIgnore, SafeMalloc(), SeparateList(), strcpy(), strlen(), and void.

Referenced by main().

◆ SetInputPaths()

void SetInputPaths ( void  )

SetInputPaths – sets rgsbInputPaths to the values indicated by the TEXINPUTS environment variable if set or else DEFAULTINPUTS. If the user's TEXINPUTS has a leading ':' prepend the DEFAULTINPUTS to the path, if there is a trailing ':' append the DEFAULTINPUTS. This is consistent with the most recent TeX. However, this routine does not honor the '//' construct (expand subdirs).

Definition at line 4519 of file detex.c.

References CHPATHSEP, csbInputPaths, DEFAULTINPUTS, ErrorExit(), getenv(), MAXINPUTPATHS, my_ERROR, NULL, rgsbInputPaths, SafeMalloc(), SeparateList(), strlen(), and void.

Referenced by main().

◆ TexOpen()

FILE * TexOpen ( char *  sbFile)

TexOpen – tries to open sbFile in each of the rgsbInputPaths in turn. For each input path the following order is used: file.tex - must be as named, if not there go to the next path file.ext - random extension, try it file - base name, add .tex and try it file - try it as is Notice that if file exists in the first path and file.tex exists in one of the other paths, file in the first path is what is opened. If the sbFile begins with a '/', no paths are searched.

Definition at line 4588 of file detex.c.

References csbInputPaths, FILE, fopen, fp, free, kpse_tex_format, NULL, PATH_MAX, rgsbInputPaths, SafeMalloc(), snprintf, strchr, strcmp(), strcpy(), strlen(), strrchr, and void.

Referenced by IncludeFile(), InputFile(), and main().

◆ UsageExit()

void UsageExit ( void  )

UsageExit – print usage message and exit.

Definition at line 4700 of file detex.c.

References exit(), printf(), sbProgName, and void.

Referenced by main().

◆ VersionExit()

void VersionExit ( void  )

VersionExit – print version and exit.

Definition at line 4722 of file detex.c.

References exit(), printf(), VERSION, and void.

Referenced by main().

◆ Warning()

◆ 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 3624 of file detex.c.

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

Referenced by IncludeFile(), InputFile(), 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 3652 of file detex.c.

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

Referenced by yylex_destroy(), yypop_buffer_state(), and yywrap().

◆ yy_fatal_error()

static void yy_fatal_error ( const char *  msg)
static

Definition at line 3910 of file detex.c.

References exit(), fprintf, and YY_EXIT_FAILURE.

◆ 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 3699 of file detex.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 3671 of file detex.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 3826 of file detex.c.

References b, base, int(), NULL, 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 ( const 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
yybytesthe byte buffer to scan
_yybytes_lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 3876 of file detex.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 ( const 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 3863 of file detex.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 3579 of file detex.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 IncludeFile(), InputFile(), yy_scan_buffer(), and yywrap().

◆ yy_try_NUL_trans()

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 3456 of file detex.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 4088 of file detex.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 4106 of file detex.c.

References free, and ptr.

Referenced by yy_delete_buffer(), and yylex_destroy().

◆ yyget_debug()

int yyget_debug ( void  )

Definition at line 4003 of file detex.c.

References yy_flex_debug.

◆ yyget_extra()

void* yyget_extra ( void  )

◆ yyget_in()

FILE* yyget_in ( void  )

Get the input stream.

Definition at line 3947 of file detex.c.

References yyin.

◆ yyget_leng()

int yyget_leng ( void  )

Get the length of the current token.

Definition at line 3963 of file detex.c.

References yyleng.

◆ yyget_lineno()

int yyget_lineno ( void  )

Get the current line number.

Definition at line 3938 of file detex.c.

References yylineno.

◆ yyget_out()

FILE* yyget_out ( void  )

Get the output stream.

Definition at line 3955 of file detex.c.

References yyout.

◆ yyget_text()

char* yyget_text ( void  )

Get the current token.

Definition at line 3972 of file detex.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 3758 of file detex.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 3728 of file detex.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 4093 of file detex.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 3562 of file detex.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 4008 of file detex.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

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 3993 of file detex.c.

References yyin.

◆ yyset_lineno()

void yyset_lineno ( int  _line_number)

Set the current line number.

Parameters
_line_numberline number

Set the current line number.

Parameters
line_number

Definition at line 3981 of file detex.c.

References yylineno.

◆ yyset_out()

void yyset_out ( FILE _out_str)

Definition at line 3998 of file detex.c.

References yyout.

◆ 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 4260 of file detex.c.

References cfp, csb, fclose, fFileNames, free, rgfp, rgsb, void, YY_CURRENT_BUFFER, yy_delete_buffer(), yy_switch_to_buffer(), and yyin.

Referenced by input(), and yylex().

Variable Documentation

◆ cArgs

int cArgs = 0

Definition at line 1809 of file detex.c.

Referenced by main(), and yylex().

◆ cfp

int cfp = 0

Definition at line 1807 of file detex.c.

Referenced by IncludeFile(), InputFile(), and yywrap().

◆ cOpenBrace

int cOpenBrace = 0

Definition at line 1808 of file detex.c.

Referenced by yylex().

◆ csb

int csb = 0

Definition at line 1835 of file detex.c.

Referenced by IncludeFile(), IncrLineNo(), InputFile(), LineBreak(), main(), PrintPrefix(), and yywrap().

◆ csbEnvIgnore

int csbEnvIgnore

Definition at line 1810 of file detex.c.

Referenced by BeginEnv(), and SetEnvIgnore().

◆ csbIncList

int csbIncList = 0

Definition at line 1811 of file detex.c.

Referenced by AddInclude(), InList(), and yylex().

◆ csbInputPaths

int csbInputPaths

Definition at line 1812 of file detex.c.

Referenced by SetInputPaths(), and TexOpen().

◆ currBracesLevel

int currBracesLevel = 0

Definition at line 1823 of file detex.c.

Referenced by yylex().

◆ fCite

int fCite = 0

Definition at line 1816 of file detex.c.

Referenced by main().

◆ fFileLines

int fFileLines[256+1]

Definition at line 1833 of file detex.c.

Referenced by IncludeFile(), IncrLineNo(), InputFile(), LineBreak(), main(), and PrintPrefix().

◆ fFileNames

char* fFileNames[256+1]

Definition at line 1832 of file detex.c.

Referenced by IncludeFile(), InputFile(), main(), PrintPrefix(), and yywrap().

◆ fFollow

int fFollow = 1

Definition at line 1815 of file detex.c.

Referenced by AddInclude(), IncludeFile(), InputFile(), and main().

◆ fForcetex

int fForcetex = 0

Definition at line 1818 of file detex.c.

Referenced by main().

◆ fIsColumn0

int fIsColumn0 = 1

Definition at line 1834 of file detex.c.

Referenced by IncrLineNo(), LineBreak(), and PrintPrefix().

◆ fLatex

int fLatex = 0

Definition at line 1813 of file detex.c.

Referenced by BeginEnv(), EndEnv(), main(), and yylex().

◆ footnoteLevel

int footnoteLevel = -100

Definition at line 1824 of file detex.c.

Referenced by yylex().

◆ fReplace

int fReplace = 0

Definition at line 1821 of file detex.c.

Referenced by main().

◆ fShowPictures

int fShowPictures = 0

Definition at line 1820 of file detex.c.

Referenced by yylex().

◆ fSpace

int fSpace = 0

Definition at line 1817 of file detex.c.

Referenced by Ignore(), and main().

◆ fSrcLoc

int fSrcLoc = 0

Definition at line 1819 of file detex.c.

Referenced by main(), and PrintPrefix().

◆ fWord

int fWord = 0

Definition at line 1814 of file detex.c.

Referenced by Ignore(), LineBreak(), main(), and yylex().

◆ rgfp

FILE* rgfp[256+1]

Definition at line 1806 of file detex.c.

Referenced by IncludeFile(), InputFile(), and yywrap().

◆ rgsb

YY_BUFFER_STATE rgsb[256+1]

Definition at line 1831 of file detex.c.

Referenced by IncludeFile(), InputFile(), and yywrap().

◆ rgsbEnvIgnore

char* rgsbEnvIgnore[25]

Definition at line 1798 of file detex.c.

Referenced by BeginEnv(), and SetEnvIgnore().

◆ rgsbIncList

char* rgsbIncList[40]

Definition at line 1799 of file detex.c.

Referenced by AddInclude(), InList(), and yylex().

◆ rgsbInputPaths

char* rgsbInputPaths[10]

Definition at line 1800 of file detex.c.

Referenced by SetInputPaths(), and TexOpen().

◆ sbCurrentIgnoredEnv

char sbCurrentIgnoredEnv[100]

Definition at line 1801 of file detex.c.

Referenced by BeginEnv(), and EndEnv().

◆ sbProgName

char* sbProgName

Definition at line 1802 of file detex.c.

Referenced by ErrorExit(), main(), UsageExit(), and Warning().

◆ yy_accept

const flex_int16_t yy_accept[1362]
static

Definition at line 451 of file detex.c.

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

◆ yy_base

const flex_int16_t yy_base[1416]
static

Definition at line 647 of file detex.c.

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

◆ yy_buffer_stack

YY_BUFFER_STATE* yy_buffer_stack = NULL
static

Stack as an array.

Definition at line 339 of file detex.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 338 of file detex.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 337 of file detex.c.

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

◆ yy_c_buf_p

◆ yy_chk

const flex_int16_t yy_chk[3432]
static

Definition at line 1349 of file detex.c.

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

◆ yy_def

const flex_int16_t yy_def[1416]
static

Definition at line 807 of file detex.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

Definition at line 368 of file detex.c.

Referenced by input(), yy_switch_to_buffer(), yylex(), yypop_buffer_state(), and yypush_buffer_state().

◆ yy_ec

const YY_CHAR yy_ec[256]
static

Definition at line 605 of file detex.c.

Referenced by yy_get_previous_state(), and yylex().

◆ yy_flex_debug

int yy_flex_debug = 0

Definition at line 1735 of file detex.c.

Referenced by yyget_debug(), and yyset_debug().

◆ yy_hold_char

char yy_hold_char
static

Definition at line 356 of file detex.c.

Referenced by input(), yy_load_buffer_state(), yy_switch_to_buffer(), yylex(), and yypush_buffer_state().

◆ yy_init

int yy_init = 0
static

Definition at line 362 of file detex.c.

Referenced by yy_init_globals(), and yylex().

◆ yy_last_accepting_cpos

char* yy_last_accepting_cpos
static

Definition at line 1732 of file detex.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 1731 of file detex.c.

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

◆ yy_meta

const YY_CHAR yy_meta[61]
static
Initial value:
=
{ 0,
1, 2, 3, 2, 4, 1, 1, 5, 1, 1,
1, 1, 6, 7, 1, 7, 7, 1, 7, 1,
1, 8, 9, 9, 9, 9, 9, 1, 10, 11,
7, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 12, 1, 13, 1
}

Definition at line 637 of file detex.c.

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

◆ yy_n_chars

int yy_n_chars
static

◆ yy_nxt

const flex_int16_t yy_nxt[3432]
static

Definition at line 967 of file detex.c.

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

◆ yy_start

int yy_start = 0
static

Definition at line 363 of file detex.c.

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

◆ yyin

◆ yyleng

int yyleng

Definition at line 358 of file detex.c.

Referenced by yyget_leng().

◆ yylineno

int yylineno = 1

Definition at line 420 of file detex.c.

Referenced by yyget_lineno(), and yyset_lineno().

◆ yyout

FILE * yyout = NULL

Definition at line 247 of file detex.c.

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

◆ yytext

char* yytext

Definition at line 1744 of file detex.c.

Referenced by Echo(), IncrLineNo(), yyget_text(), and yylex().