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)  

routines.c File Reference
#include <kpathsea/config.h>
#include <kpathsea/types.h>
#include <kpathsea/c-std.h>
#include "routines.h"
#include "otp.h"
Include dependency graph for routines.c:

Go to the source code of this file.

Macros

#define out_ptr   (states[cur_state].length)
 
#define out_array   (states[cur_state].instrs)
 

Functions

list cons (int x, list L)
 
list list1 (int x)
 
list list2 (int x, int y)
 
list append (list K, list L)
 
list append1 (list L, int x)
 
llist lcons (left x, llist L)
 
llist llist1 (left x)
 
llist llist2 (left x, left y)
 
llist lappend (llist K, llist L)
 
llist lappend1 (llist L, left x)
 
left WildCard (void)
 
left StringLeft (char *x)
 
left SingleLeft (int x)
 
left DoubleLeft (int x, int y)
 
left ChoiceLeft (llist L)
 
left NotChoiceLeft (llist L)
 
left PlusLeft (left l, int n)
 
left CompleteLeft (left l, int n, int m)
 
left BeginningLeft (void)
 
left EndLeft (void)
 
list gen_left (left arg)
 
void store_alias (string str, left l)
 
left lookup_alias (string str)
 
void out_left (llist L)
 
void fill_in_left (void)
 
void fill_in (list L)
 
void out_right (int instr, int val)
 
void out_int (int instr, int val)
 
void store_state (const_string str)
 
int lookup_state (string str)
 
void add_to_state (int x)
 
void store_table (string str, int len)
 
void add_to_table (int x)
 
int lookup_table (string str)
 

Variables

list left_false_holes
 
int left_state
 
int right_offset
 
int input_bytes
 
int output_bytes
 
int no_states = 0
 
int cur_state = 0
 
int room_for_states = 0
 
state_type states [100]
 
int no_tables = 0
 
int cur_table = 0
 
int room_for_tables = 0
 
table_type tables [100]
 
int no_aliases = 0
 
alias_pair aliases [1000]
 

Macro Definition Documentation

◆ out_array

#define out_array   (states[cur_state].instrs)

Definition at line 32 of file routines.c.

◆ out_ptr

#define out_ptr   (states[cur_state].length)

Definition at line 31 of file routines.c.

Function Documentation

◆ add_to_state()

void add_to_state ( int  x)

Definition at line 511 of file routines.c.

References ARRAY_SIZE, cur_state, FATAL2, state_type::instrs, len, state_type::length, states, state_type::str, str, and cordic::x.

Referenced by out_int().

◆ add_to_table()

void add_to_table ( int  x)

Definition at line 539 of file routines.c.

References cur_table, len, table_type::length, table_type::table, tables, and cordic::x.

Referenced by fixup_var_list(), and yyparse().

◆ append()

list append ( list  K,
list  L 
)

Definition at line 92 of file routines.c.

References cons(), K, L, and nil.

Referenced by append1(), gen_left(), and out_left().

◆ append1()

list append1 ( list  L,
int  x 
)

Definition at line 100 of file routines.c.

References append(), L, list1(), and cordic::x.

◆ BeginningLeft()

left BeginningLeft ( void  )

Definition at line 242 of file routines.c.

References BEGINNINGLEFT, malloc, and temp.

Referenced by yyparse().

◆ ChoiceLeft()

left ChoiceLeft ( llist  L)

Definition at line 197 of file routines.c.

References CHOICELEFT, L, malloc, and temp.

Referenced by yyparse().

◆ CompleteLeft()

left CompleteLeft ( left  l,
int  n,
int  m 
)

Definition at line 229 of file routines.c.

References COMPLETELEFT, FATAL, cutout::l, m, malloc, n, and temp.

Referenced by yyparse().

◆ cons()

list cons ( int  x,
list  L 
)

Definition at line 56 of file routines.c.

References L, malloc, temp, and cordic::x.

Referenced by append(), gen_left(), and out_left().

◆ DoubleLeft()

left DoubleLeft ( int  x,
int  y 
)

Definition at line 186 of file routines.c.

References DOUBLELEFT, malloc, temp, cordic::x, and y.

Referenced by yyparse().

◆ EndLeft()

left EndLeft ( void  )

Definition at line 251 of file routines.c.

References ENDLEFT, malloc, and temp.

Referenced by yyparse().

◆ fill_in()

void fill_in ( list  L)

Definition at line 457 of file routines.c.

References L, out_array, out_ptr, and p.

Referenced by fill_in_left(), and gen_left().

◆ fill_in_left()

void fill_in_left ( void  )

Definition at line 450 of file routines.c.

References fill_in(), left_false_holes, OTP_STOP, and out_int().

Referenced by yyparse().

◆ gen_left()

◆ lappend()

llist lappend ( llist  K,
llist  L 
)

Definition at line 143 of file routines.c.

References K, L, lcons(), and nil.

Referenced by lappend1(), and yyparse().

◆ lappend1()

llist lappend1 ( llist  L,
left  x 
)

Definition at line 151 of file routines.c.

References L, lappend(), llist1(), and cordic::x.

Referenced by yyparse().

◆ lcons()

llist lcons ( left  x,
llist  L 
)

Definition at line 107 of file routines.c.

References L, malloc, temp, and cordic::x.

Referenced by lappend().

◆ list1()

list list1 ( int  x)

Definition at line 67 of file routines.c.

References malloc, nil, temp, and cordic::x.

Referenced by append1(), and gen_left().

◆ list2()

list list2 ( int  x,
int  y 
)

Definition at line 78 of file routines.c.

References malloc, nil, temp, cordic::x, and y.

◆ llist1()

llist llist1 ( left  x)

Definition at line 118 of file routines.c.

References malloc, nil, temp, and cordic::x.

Referenced by lappend1(), and yyparse().

◆ llist2()

llist llist2 ( left  x,
left  y 
)

Definition at line 129 of file routines.c.

References malloc, nil, lcell_struct::ptr, temp, lcell_struct::val, cordic::x, and y.

◆ lookup_alias()

left lookup_alias ( string  str)

Definition at line 413 of file routines.c.

References aliases, FATAL1, i, alias_pair::left_val, no_aliases, str, and strcmp().

Referenced by yyparse().

◆ lookup_state()

int lookup_state ( string  str)

Definition at line 499 of file routines.c.

References FATAL1, i, no_states, states, str, and strcmp().

Referenced by yyparse().

◆ lookup_table()

int lookup_table ( string  str)

Definition at line 548 of file routines.c.

References FATAL1, i, no_tables, str, strcmp(), and tables.

Referenced by otl_gsub_read_feat(), and yyparse().

◆ NotChoiceLeft()

left NotChoiceLeft ( llist  L)

Definition at line 207 of file routines.c.

References L, malloc, NOTCHOICELEFT, and temp.

Referenced by yyparse().

◆ out_int()

void out_int ( int  instr,
int  val 
)

Definition at line 474 of file routines.c.

References add_to_state(), FATAL1, and instr.

Referenced by fill_in_left(), gen_left(), out_left(), and out_right().

◆ out_left()

◆ out_right()

void out_right ( int  instr,
int  val 
)

Definition at line 468 of file routines.c.

References instr, out_int(), and right_offset.

Referenced by yyparse().

◆ PlusLeft()

left PlusLeft ( left  l,
int  n 
)

Definition at line 217 of file routines.c.

References FATAL, cutout::l, malloc, n, PLUSLEFT, and temp.

Referenced by yyparse().

◆ SingleLeft()

left SingleLeft ( int  x)

Definition at line 176 of file routines.c.

References malloc, SINGLELEFT, temp, and cordic::x.

Referenced by yyparse().

◆ store_alias()

void store_alias ( string  str,
left  l 
)

Definition at line 399 of file routines.c.

References aliases, FATAL1, i, cutout::l, alias_pair::left_val, no_aliases, alias_pair::str, str, strcmp(), and xstrdup.

Referenced by yyparse().

◆ store_state()

void store_state ( const_string  str)

Definition at line 483 of file routines.c.

References cur_state, FATAL1, i, state_type::length, state_type::no_exprs, no_states, states, state_type::str, str, strcmp(), and xstrdup.

Referenced by otp_read(), and yyparse().

◆ store_table()

void store_table ( string  str,
int  len 
)

Definition at line 524 of file routines.c.

References cur_table, FATAL1, i, table_type::length, no_tables, table_type::str, str, strcmp(), tables, and xstrdup.

Referenced by yyparse().

◆ StringLeft()

left StringLeft ( char *  x)

Definition at line 166 of file routines.c.

References malloc, STRINGLEFT, temp, and cordic::x.

Referenced by yyparse().

◆ WildCard()

left WildCard ( void  )

Definition at line 157 of file routines.c.

References malloc, temp, and WILDCARD.

Referenced by yyparse().

Variable Documentation

◆ aliases

◆ cur_state

int cur_state = 0

Definition at line 42 of file routines.c.

Referenced by add_to_state(), out_left(), and store_state().

◆ cur_table

int cur_table = 0

Definition at line 47 of file routines.c.

Referenced by add_to_table(), and store_table().

◆ input_bytes

int input_bytes

Definition at line 38 of file routines.c.

Referenced by BrotliCompressFragmentFastImpl(), CreateCommands(), otp_read(), and yyparse().

◆ left_false_holes

list left_false_holes

Definition at line 34 of file routines.c.

Referenced by fill_in_left(), and out_left().

◆ left_state

int left_state

Definition at line 36 of file routines.c.

◆ no_aliases

int no_aliases = 0

Definition at line 51 of file routines.c.

Referenced by lookup_alias(), and store_alias().

◆ no_states

int no_states = 0

Definition at line 41 of file routines.c.

Referenced by lookup_state(), otp_read(), store_state(), and yyparse().

◆ no_tables

int no_tables = 0

Definition at line 46 of file routines.c.

Referenced by lookup_table(), otp_read(), and store_table().

◆ output_bytes

int output_bytes

Definition at line 39 of file routines.c.

Referenced by otp_read(), and yyparse().

◆ right_offset

int right_offset

Definition at line 37 of file routines.c.

Referenced by out_right(), Subtable_Load_2(), and yyparse().

◆ room_for_states

int room_for_states = 0

Definition at line 43 of file routines.c.

Referenced by otp_read().

◆ room_for_tables

int room_for_tables = 0

Definition at line 48 of file routines.c.

Referenced by otp_read().

◆ states

◆ tables