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)  

cwebboot.c File Reference
#include <ctype.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <kpathsea/kpathsea.h>
#include <w2c/config.h>
#include <lib/lib.h>
#include "help.h"
Include dependency graph for cwebboot.c:

Go to the source code of this file.

Classes

struct  name_info
 

Macros

#define HAVE_GETTEXT   0
 
#define gettext(A)   A
 
#define setlocale(A, B)   ""
 
#define bindtextdomain(A, B)   ""
 
#define textdomain(A)   ""
 
#define HAVE_BOOLEAN
 
#define CWEB
 
#define _(S)   gettext(S) \
 
#define and_and   04
 
#define lt_lt   020
 
#define gt_gt   021
 
#define plus_plus   013
 
#define minus_minus   01
 
#define minus_gt   031
 
#define non_eq   032
 
#define lt_eq   034
 
#define gt_eq   035
 
#define eq_eq   036
 
#define or_or   037
 
#define dot_dot_dot   016
 
#define colon_colon   06
 
#define period_ast   026
 
#define minus_gt_ast   027 \
 
#define xisalpha(c)   (isalpha((eight_bits) c) &&((eight_bits) c<0200) )
 
#define xisdigit(c)   (isdigit((eight_bits) c) &&((eight_bits) c<0200) )
 
#define xisspace(c)   (isspace((eight_bits) c) &&((eight_bits) c<0200) )
 
#define xislower(c)   (islower((eight_bits) c) &&((eight_bits) c<0200) )
 
#define xisupper(c)   (isupper((eight_bits) c) &&((eight_bits) c<0200) )
 
#define xisxdigit(c)   (isxdigit((eight_bits) c) &&((eight_bits) c<0200) ) \
 
#define max_include_depth   10 \
 
#define max_file_name_length   1024
 
#define cur_file   file[include_depth]
 
#define cur_file_name   file_name[include_depth]
 
#define cur_line   line[include_depth]
 
#define web_file   file[0]
 
#define web_file_name   file_name[0] \
 
#define length(c)   (size_t) ((c+1) ->byte_start-(c) ->byte_start)
 
#define print_id(c)   term_write((c) ->byte_start,length((c) ) )
 
#define llink   link
 
#define rlink   dummy.Rlink
 
#define root
 
#define spotless   0
 
#define harmless_message   1
 
#define error_message   2
 
#define fatal_message   3
 
#define mark_harmless   {if(history==spotless) history= harmless_message;}
 
#define mark_error   history= error_message
 
#define confusion(s)
 
#define show_banner   flags['b']
 
#define show_progress   flags['p']
 
#define show_stats   flags['s']
 
#define show_happiness   flags['h']
 
#define temporary_output   flags['t']
 
#define make_xrefs   flags['x'] \
 
#define update_terminal   fflush(stdout)
 
#define new_line   putchar('\n')
 
#define putxchar   putchar
 
#define term_write(a, b)   fflush(stdout) ,fwrite(a,sizeof(char) ,b,stdout)
 
#define C_printf(c, a)   fprintf(C_file,c,a)
 
#define C_putc(c)   putc(c,C_file) \
 
#define max_bytes   1000000 \
 
#define max_toks   1000000
 
#define max_names   10239 \
 
#define max_sections   4000
 
#define max_texts   10239
 
#define longest_name   10000
 
#define stack_size   500
 
#define buf_size   1000
 
#define long_buf_size   (buf_size+longest_name) \
 
#define lines_dont_match
 
#define if_section_start_make_pending(b)
 
#define too_long()
 
#define hash_size   8501 \
 
#define first_chunk(p)   ((p) ->byte_start+2)
 
#define prefix_length(p)
 
#define set_prefix_length(p, m)
 
#define less   0
 
#define equal   1
 
#define greater   2
 
#define prefix   3
 
#define extension   4 \
 
#define bad_extension   5 \
 
#define RETURN_OK   0
 
#define RETURN_WARN   5
 
#define RETURN_ERROR   10
 
#define RETURN_FAIL   20 \
 
#define flag_change   (**argv!='-')
 
#define max_banner   50 \
 
#define PATH_SEPARATOR   separators[0]
 
#define DIR_SEPARATOR   separators[1]
 
#define DEVICE_SEPARATOR   separators[2] \
 
#define kpse_find_cweb(name)   kpse_find_file(name,kpse_cweb_format,true) \
 
#define SEPARATORS   "://"
 

Typedefs

typedef Bool__ boolean
 
typedef uint8_t eight_bits
 
typedef uint16_t sixteen_bits
 
typedef struct name_info name_info
 
typedef name_infoname_pointer
 
typedef name_pointerhash_pointer
 

Enumerations

enum  cweb {
  ctangle , cweave , ctwill , ctangle ,
  cweave , ctwill , ctangle , cweave ,
  ctwill , ctangle , cweave , ctwill ,
  ctangle , cweave , ctwill , ctangle ,
  cweave , ctwill
}
 

Functions

boolean get_line (void)
 
void check_complete (void)
 
void reset_input (void)
 
boolean names_match (name_pointer, const char *, size_t, eight_bits)
 
name_pointer id_lookup (const char *, const char *, char)
 
name_pointer section_lookup (char *, char *, int)
 
void init_node (name_pointer)
 
void init_p (name_pointer, eight_bits)
 
void print_prefix_name (name_pointer)
 
void print_section_name (name_pointer)
 
void sprint_section_name (char *, name_pointer)
 
int wrap_up (void)
 
void err_print (const char *)
 
void fatal (const char *, const char *)
 
void overflow (const char *)
 
void common_init (void)
 
void print_stats (void)
 
void cb_show_banner (void)
 
static boolean input_ln (FILE *)
 
static void prime_the_change_buffer (void)
 
static void check_change (void)
 
static int web_strcmp (char *, int, char *, int)
 
static name_pointer add_section_name (name_pointer, int, char *, char *, int)
 
static void extend_section_name (name_pointer, char *, char *, int)
 
static int section_name_cmp (char **, int, name_pointer)
 
static void scan_args (void)
 
static void cb_usage (const_string str)
 
static void cb_usagehelp (const_string *message, const_string bug_email)
 

Variables

cweb program
 
int phase
 
char section_text []
 
char * section_text_end = section_text+ 10000
 
char * id_first
 
char * id_loc
 
char buffer []
 
char * buffer_end = buffer+ 1000 -2
 
char * loc = buffer
 
char * limit = buffer
 
int include_depth
 
FILEfile []
 
FILEchange_file
 
char file_name [][1024]
 
char change_file_name []
 
char check_file_name []
 
int line []
 
int change_line
 
int change_depth
 
boolean input_has_ended
 
boolean changing
 
boolean web_file_open = 0
 
sixteen_bits section_count
 
boolean changed_section []
 
boolean change_pending
 
boolean print_where = 0
 
char byte_mem []
 
char * byte_mem_end = byte_mem+ 1000000 -1
 
char * byte_ptr
 
name_info name_dir []
 
name_pointer name_dir_end = name_dir+ 10239 -1
 
name_pointer name_ptr
 
name_pointer hash []
 
hash_pointer hash_end = hash+ 8501 -1
 
hash_pointer h
 
int history = 0
 
int argc
 
char ** argv
 
char C_file_name []
 
char tex_file_name []
 
char idx_file_name []
 
char scn_file_name []
 
boolean flags []
 
const char * use_language = ""
 
FILEC_file
 
FILEtex_file
 
FILEidx_file
 
FILEscn_file
 
FILEactive_file
 
FILEcheck_file
 
static char change_buffer [1000]
 
static char * change_limit
 
char * found_filename
 
char cb_banner [50]
 
string texmf_locale
 
char separators [] = "://"
 

Macro Definition Documentation

◆ _

#define _ (   S)    gettext(S) \

Definition at line 55 of file cwebboot.c.

◆ and_and

#define and_and   04

Definition at line 57 of file cwebboot.c.

◆ bad_extension

#define bad_extension   5 \

Definition at line 157 of file cwebboot.c.

◆ bindtextdomain

#define bindtextdomain (   A,
  B 
)    ""

Definition at line 32 of file cwebboot.c.

◆ buf_size

#define buf_size   1000

Definition at line 128 of file cwebboot.c.

◆ C_printf

#define C_printf (   c,
  a 
)    fprintf(C_file,c,a)

Definition at line 116 of file cwebboot.c.

◆ C_putc

#define C_putc (   c)    putc(c,C_file) \

Definition at line 117 of file cwebboot.c.

◆ colon_colon

#define colon_colon   06

Definition at line 69 of file cwebboot.c.

◆ confusion

#define confusion (   s)
Value:
fatal(_("! This can't happen: ") ,s) \
\
#define s
Definition: afcover.h:80
void fatal(const char *, const char *)
Definition: cwebboot.c:1374
#define _(S)
Definition: cwebboot.c:55

Definition at line 102 of file cwebboot.c.

◆ cur_file

#define cur_file   file[include_depth]

Definition at line 83 of file cwebboot.c.

◆ cur_file_name

#define cur_file_name   file_name[include_depth]

Definition at line 84 of file cwebboot.c.

◆ cur_line

#define cur_line   line[include_depth]

Definition at line 85 of file cwebboot.c.

◆ CWEB

#define CWEB

Definition at line 49 of file cwebboot.c.

◆ DEVICE_SEPARATOR

#define DEVICE_SEPARATOR   separators[2] \

Definition at line 169 of file cwebboot.c.

◆ DIR_SEPARATOR

#define DIR_SEPARATOR   separators[1]

Definition at line 168 of file cwebboot.c.

◆ dot_dot_dot

#define dot_dot_dot   016

Definition at line 68 of file cwebboot.c.

◆ eq_eq

#define eq_eq   036

Definition at line 66 of file cwebboot.c.

◆ equal

#define equal   1

Definition at line 152 of file cwebboot.c.

◆ error_message

#define error_message   2

Definition at line 98 of file cwebboot.c.

◆ extension

#define extension   4 \

Definition at line 155 of file cwebboot.c.

◆ fatal_message

#define fatal_message   3

Definition at line 99 of file cwebboot.c.

◆ first_chunk

#define first_chunk (   p)    ((p) ->byte_start+2)

Definition at line 145 of file cwebboot.c.

◆ flag_change

#define flag_change   (**argv!='-')

Definition at line 164 of file cwebboot.c.

◆ gettext

#define gettext (   A)    A

Definition at line 14 of file cwebboot.c.

◆ greater

#define greater   2

Definition at line 153 of file cwebboot.c.

◆ gt_eq

#define gt_eq   035

Definition at line 65 of file cwebboot.c.

◆ gt_gt

#define gt_gt   021

Definition at line 59 of file cwebboot.c.

◆ harmless_message

#define harmless_message   1

Definition at line 97 of file cwebboot.c.

◆ hash_size

#define hash_size   8501 \

Definition at line 143 of file cwebboot.c.

◆ HAVE_BOOLEAN

#define HAVE_BOOLEAN

Definition at line 40 of file cwebboot.c.

◆ HAVE_GETTEXT

#define HAVE_GETTEXT   0

Definition at line 8 of file cwebboot.c.

◆ if_section_start_make_pending

#define if_section_start_make_pending (   b)
Value:
{*limit= '!'; \
for(loc= buffer;xisspace(*loc) ;loc++) ; \
*limit= ' '; \
if(*loc=='@'&&(xisspace(*(loc+1) ) ||*(loc+1) =='*') ) change_pending= b; \
} \
#define b
Definition: jpegint.h:372
boolean change_pending
Definition: cwebboot.c:340
char * limit
Definition: cwebboot.c:310
#define xisspace(c)
Definition: cwebboot.c:75
char * loc
Definition: cwebboot.c:309
Definition: utils.c:300

Definition at line 134 of file cwebboot.c.

◆ kpse_find_cweb

#define kpse_find_cweb (   name)    kpse_find_file(name,kpse_cweb_format,true) \

Definition at line 171 of file cwebboot.c.

◆ length

#define length (   c)    (size_t) ((c+1) ->byte_start-(c) ->byte_start)

Definition at line 89 of file cwebboot.c.

◆ less

#define less   0

Definition at line 151 of file cwebboot.c.

◆ lines_dont_match

#define lines_dont_match
Value:
strncmp(buffer,change_buffer,(size_t) (limit-buffer) ) ) \
static char * change_limit
Definition: cwebboot.c:333
static char change_buffer[1000]
Definition: cwebboot.c:332

Definition at line 131 of file cwebboot.c.

◆ llink

#define llink   link

Definition at line 91 of file cwebboot.c.

◆ long_buf_size

#define long_buf_size   (buf_size+longest_name) \

Definition at line 129 of file cwebboot.c.

◆ longest_name

#define longest_name   10000

Definition at line 126 of file cwebboot.c.

◆ lt_eq

#define lt_eq   034

Definition at line 64 of file cwebboot.c.

◆ lt_lt

#define lt_lt   020

Definition at line 58 of file cwebboot.c.

◆ make_xrefs

#define make_xrefs   flags['x'] \

Definition at line 110 of file cwebboot.c.

◆ mark_error

#define mark_error (   void)    history= error_message

Definition at line 101 of file cwebboot.c.

◆ mark_harmless

#define mark_harmless   {if(history==spotless) history= harmless_message;}

Definition at line 100 of file cwebboot.c.

◆ max_banner

#define max_banner   50 \

Definition at line 165 of file cwebboot.c.

◆ max_bytes

#define max_bytes   1000000 \

Definition at line 119 of file cwebboot.c.

◆ max_file_name_length

#define max_file_name_length   1024

Definition at line 82 of file cwebboot.c.

◆ max_include_depth

#define max_include_depth   10 \

Definition at line 80 of file cwebboot.c.

◆ max_names

#define max_names   10239 \

Definition at line 122 of file cwebboot.c.

◆ max_sections

#define max_sections   4000

Definition at line 124 of file cwebboot.c.

◆ max_texts

#define max_texts   10239

Definition at line 125 of file cwebboot.c.

◆ max_toks

#define max_toks   1000000

Definition at line 121 of file cwebboot.c.

◆ minus_gt

#define minus_gt   031

Definition at line 62 of file cwebboot.c.

◆ minus_gt_ast

#define minus_gt_ast   027 \

Definition at line 71 of file cwebboot.c.

◆ minus_minus

#define minus_minus   01

Definition at line 61 of file cwebboot.c.

◆ new_line

#define new_line (   void)    putchar('\n')

Definition at line 113 of file cwebboot.c.

◆ non_eq

#define non_eq   032

Definition at line 63 of file cwebboot.c.

◆ or_or

#define or_or   037

Definition at line 67 of file cwebboot.c.

◆ PATH_SEPARATOR

#define PATH_SEPARATOR   separators[0]

Definition at line 167 of file cwebboot.c.

◆ period_ast

#define period_ast   026

Definition at line 70 of file cwebboot.c.

◆ plus_plus

#define plus_plus   013

Definition at line 60 of file cwebboot.c.

◆ prefix

#define prefix   3

Definition at line 154 of file cwebboot.c.

◆ prefix_length

#define prefix_length (   p)
Value:
(int) ((eight_bits) *((p) ->byte_start) *256+ \
(eight_bits) *((p) ->byte_start+1) )
small capitals from c petite p
Definition: afcover.h:72
uint8_t eight_bits
Definition: ctangleboot.c:165
uint8_t eight_bits
Definition: cwebboot.c:180
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 146 of file cwebboot.c.

◆ print_id

#define print_id (   c)    term_write((c) ->byte_start,length((c) ) )

Definition at line 90 of file cwebboot.c.

◆ putxchar

#define putxchar   putchar

Definition at line 114 of file cwebboot.c.

◆ RETURN_ERROR

#define RETURN_ERROR   10

Definition at line 161 of file cwebboot.c.

◆ RETURN_FAIL

#define RETURN_FAIL   20 \

Definition at line 162 of file cwebboot.c.

◆ RETURN_OK

#define RETURN_OK   0

Definition at line 159 of file cwebboot.c.

◆ RETURN_WARN

#define RETURN_WARN   5

Definition at line 160 of file cwebboot.c.

◆ rlink

#define rlink   dummy.Rlink

Definition at line 92 of file cwebboot.c.

◆ root

#define root
Value:
name_dir->rlink \
\
name_info name_dir[]
Definition: cwebboot.c:349

Definition at line 93 of file cwebboot.c.

◆ SEPARATORS

#define SEPARATORS   "://"

Definition at line 411 of file cwebboot.c.

◆ set_prefix_length

#define set_prefix_length (   p,
  m 
)
Value:
(*((p) ->byte_start) = (m) /256, \
*((p) ->byte_start+1) = (m) %256) \
m
Definition: tex4ht.c:3990

Definition at line 148 of file cwebboot.c.

◆ setlocale

#define setlocale (   A,
  B 
)    ""

Definition at line 31 of file cwebboot.c.

◆ show_banner

#define show_banner   flags['b']

Definition at line 105 of file cwebboot.c.

◆ show_happiness

#define show_happiness   flags['h']

Definition at line 108 of file cwebboot.c.

◆ show_progress

#define show_progress   flags['p']

Definition at line 106 of file cwebboot.c.

◆ show_stats

#define show_stats   flags['s']

Definition at line 107 of file cwebboot.c.

◆ spotless

#define spotless   0

Definition at line 96 of file cwebboot.c.

◆ stack_size

#define stack_size   500

Definition at line 127 of file cwebboot.c.

◆ temporary_output

#define temporary_output   flags['t']

Definition at line 109 of file cwebboot.c.

◆ term_write

#define term_write (   a,
  b 
)    fflush(stdout) ,fwrite(a,sizeof(char) ,b,stdout)

Definition at line 115 of file cwebboot.c.

◆ textdomain

#define textdomain (   A)    ""

Definition at line 33 of file cwebboot.c.

◆ too_long

#define too_long ( )
Value:
err_print(_("! Include file name too long") ) ;goto restart;} \
int include_depth
Definition: cwebboot.c:315

Definition at line 140 of file cwebboot.c.

◆ update_terminal

#define update_terminal (   void)    fflush(stdout)

Definition at line 112 of file cwebboot.c.

◆ web_file

#define web_file   file[0]

Definition at line 86 of file cwebboot.c.

◆ web_file_name

#define web_file_name   file_name[0] \

Definition at line 87 of file cwebboot.c.

◆ xisalpha

#define xisalpha (   c)    (isalpha((eight_bits) c) &&((eight_bits) c<0200) )

Definition at line 73 of file cwebboot.c.

◆ xisdigit

#define xisdigit (   c)    (isdigit((eight_bits) c) &&((eight_bits) c<0200) )

Definition at line 74 of file cwebboot.c.

◆ xislower

#define xislower (   c)    (islower((eight_bits) c) &&((eight_bits) c<0200) )

Definition at line 76 of file cwebboot.c.

◆ xisspace

#define xisspace (   c)    (isspace((eight_bits) c) &&((eight_bits) c<0200) )

Definition at line 75 of file cwebboot.c.

◆ xisupper

#define xisupper (   c)    (isupper((eight_bits) c) &&((eight_bits) c<0200) )

Definition at line 77 of file cwebboot.c.

◆ xisxdigit

#define xisxdigit (   c)    (isxdigit((eight_bits) c) &&((eight_bits) c<0200) ) \

Definition at line 78 of file cwebboot.c.

Typedef Documentation

◆ boolean

typedef Bool__ boolean

Definition at line 39 of file cwebboot.c.

◆ eight_bits

Definition at line 180 of file cwebboot.c.

◆ hash_pointer

Definition at line 243 of file cwebboot.c.

◆ name_info

typedef struct name_info name_info

◆ name_pointer

Definition at line 242 of file cwebboot.c.

◆ sixteen_bits

Definition at line 181 of file cwebboot.c.

Enumeration Type Documentation

◆ cweb

enum cweb
Enumerator
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 
ctangle 
cweave 
ctwill 

Definition at line 182 of file cwebboot.c.

Function Documentation

◆ add_section_name()

static name_pointer add_section_name ( name_pointer  par,
int  c,
char *  first,
char *  last,
int  ispref 
)
static

◆ cb_show_banner()

void cb_show_banner ( void  )

Definition at line 1652 of file cwebboot.c.

◆ cb_usage()

static void cb_usage ( const_string  str)
static

Definition at line 1619 of file cwebboot.c.

References _, exit(), fatal_message, fprintf, history, str, textdomain, and wrap_up().

Referenced by scan_args().

◆ cb_usagehelp()

static void cb_usagehelp ( const_string message,
const_string  bug_email 
)
static

Definition at line 1631 of file cwebboot.c.

References _, exit(), history, message, printf(), spotless, strcmp(), textdomain, and wrap_up().

Referenced by scan_args().

◆ check_change()

◆ check_complete()

void check_complete ( void  )

Definition at line 942 of file cwebboot.c.

◆ common_init()

void common_init ( void  )

Definition at line 495 of file cwebboot.c.

◆ err_print()

void err_print ( const char *  s)

◆ extend_section_name()

static void extend_section_name ( name_pointer  p,
char *  first,
char *  last,
int  ispref 
)
static

◆ fatal()

void fatal ( const char *  s,
const char *  t 
)

Definition at line 1374 of file cwebboot.c.

Referenced by common_init(), get_line(), overflow(), reset_input(), and scan_args().

◆ get_line()

boolean get_line ( void  )

Definition at line 807 of file cwebboot.c.

◆ id_lookup()

name_pointer id_lookup ( const char *  first,
const char *  last,
char  t 
)

Definition at line 958 of file cwebboot.c.

◆ init_node()

void init_node ( name_pointer  node)

Definition at line 565 of file ctangleboot.c.

Referenced by add_section_name().

◆ init_p()

void init_p ( name_pointer  p,
eight_bits  t 
)

Definition at line 571 of file ctangleboot.c.

Referenced by id_lookup().

◆ input_ln()

static boolean input_ln ( FILE fp)
static

Definition at line 598 of file cwebboot.c.

References _, buffer, buffer_end, c, EOF, err_print(), feof, fp, getc, k, limit, loc, and ungetc.

Referenced by check_change(), get_line(), and prime_the_change_buffer().

◆ names_match()

boolean names_match ( name_pointer  p,
const char *  first,
size_t  l,
eight_bits  t 
)

Definition at line 551 of file ctangleboot.c.

Referenced by id_lookup().

◆ overflow()

void overflow ( const char *  t)

Definition at line 1385 of file cwebboot.c.

Referenced by add_section_name(), extend_section_name(), and id_lookup().

◆ prime_the_change_buffer()

static void prime_the_change_buffer ( void  )
static

Definition at line 625 of file cwebboot.c.

References _, change_buffer, change_file, change_limit, change_line, err_print(), input_ln(), limit, loc, strncpy(), tolower, and xisupper.

Referenced by get_line(), and reset_input().

◆ print_prefix_name()

void print_prefix_name ( name_pointer  p)

Definition at line 1058 of file cwebboot.c.

Referenced by section_lookup().

◆ print_section_name()

void print_section_name ( name_pointer  p)

Definition at line 1014 of file cwebboot.c.

Referenced by section_lookup().

◆ print_stats()

void print_stats ( void  )

Definition at line 1930 of file ctangleboot.c.

Referenced by wrap_up().

◆ reset_input()

void reset_input ( void  )

Definition at line 761 of file cwebboot.c.

◆ scan_args()

◆ section_lookup()

name_pointer section_lookup ( char *  first,
char *  last,
int  ispref 
)

Definition at line 1150 of file cwebboot.c.

◆ section_name_cmp()

static int section_name_cmp ( char **  pfirst,
int  len,
name_pointer  r 
)
static

Definition at line 1254 of file cwebboot.c.

References bad_extension, name_info::byte_start, c, equal, extension, first, first_chunk, int(), len, name_dir, prefix, q, r, s, and web_strcmp().

Referenced by section_lookup().

◆ sprint_section_name()

void sprint_section_name ( char *  dest,
name_pointer  p 
)

Definition at line 1035 of file cwebboot.c.

◆ web_strcmp()

static int web_strcmp ( char *  j,
int  j_len,
char *  k,
int  k_len 
)
static

Definition at line 1070 of file cwebboot.c.

References equal, extension, greater, j, k, k1, less, and prefix.

Referenced by section_lookup(), and section_name_cmp().

◆ wrap_up()

Variable Documentation

◆ active_file

FILE* active_file

Definition at line 394 of file cwebboot.c.

◆ argc

int argc

Definition at line 373 of file cwebboot.c.

Referenced by scan_args().

◆ argv

char** argv

Definition at line 374 of file cwebboot.c.

Referenced by common_init(), and scan_args().

◆ buffer

char buffer[(1000+10000)]

Definition at line 307 of file cwebboot.c.

Referenced by check_complete(), get_line(), input_ln(), and reset_input().

◆ buffer_end

char* buffer_end = buffer+ 1000 -2

Definition at line 308 of file cwebboot.c.

Referenced by input_ln().

◆ byte_mem

char byte_mem[1000000]

Definition at line 347 of file cwebboot.c.

Referenced by common_init().

◆ byte_mem_end

char* byte_mem_end = byte_mem+ 1000000 -1

Definition at line 348 of file cwebboot.c.

Referenced by add_section_name(), extend_section_name(), and id_lookup().

◆ byte_ptr

char* byte_ptr

Definition at line 355 of file cwebboot.c.

Referenced by add_section_name(), common_init(), extend_section_name(), and id_lookup().

◆ C_file

FILE* C_file

Definition at line 387 of file cwebboot.c.

Referenced by common_init(), and wrap_up().

◆ C_file_name

char C_file_name[1024]

Definition at line 375 of file cwebboot.c.

Referenced by common_init(), and scan_args().

◆ cb_banner

char cb_banner[50]

Definition at line 408 of file cwebboot.c.

Referenced by cb_show_banner(), and scan_args().

◆ change_buffer

char change_buffer[1000]
static

Definition at line 332 of file cwebboot.c.

Referenced by check_change(), check_complete(), get_line(), and prime_the_change_buffer().

◆ change_depth

int change_depth

Definition at line 324 of file cwebboot.c.

Referenced by check_change(), check_complete(), err_print(), get_line(), and reset_input().

◆ change_file

FILE* change_file

Definition at line 317 of file cwebboot.c.

Referenced by check_change(), get_line(), prime_the_change_buffer(), and reset_input().

◆ change_file_name

char change_file_name[1024]

Definition at line 320 of file cwebboot.c.

Referenced by reset_input(), and scan_args().

◆ change_limit

char* change_limit
static

Definition at line 333 of file cwebboot.c.

Referenced by check_change(), check_complete(), get_line(), and prime_the_change_buffer().

◆ change_line

int change_line

Definition at line 323 of file cwebboot.c.

Referenced by check_change(), err_print(), get_line(), prime_the_change_buffer(), and reset_input().

◆ change_pending

boolean change_pending

Definition at line 340 of file cwebboot.c.

Referenced by check_change(), and get_line().

◆ changed_section

boolean changed_section[4000]

Definition at line 339 of file cwebboot.c.

Referenced by check_change(), and get_line().

◆ changing

boolean changing

Definition at line 326 of file cwebboot.c.

Referenced by check_change(), check_complete(), err_print(), get_line(), and reset_input().

◆ check_file

FILE* check_file

Definition at line 392 of file cwebboot.c.

Referenced by wrap_up().

◆ check_file_name

char check_file_name[1024]

Definition at line 380 of file cwebboot.c.

Referenced by common_init(), and wrap_up().

◆ file

FILE* file[10]

Definition at line 316 of file cwebboot.c.

◆ file_name

char file_name[10][1024]

Definition at line 318 of file cwebboot.c.

◆ flags

boolean flags[128]

Definition at line 382 of file cwebboot.c.

Referenced by scan_args().

◆ found_filename

char* found_filename

Definition at line 395 of file cwebboot.c.

Referenced by get_line(), and reset_input().

◆ h

Definition at line 363 of file cwebboot.c.

Referenced by common_init(), and id_lookup().

◆ hash

name_pointer hash[8501]

Definition at line 361 of file cwebboot.c.

Referenced by common_init(), and id_lookup().

◆ hash_end

hash_pointer hash_end = hash+ 8501 -1

Definition at line 362 of file cwebboot.c.

Referenced by common_init().

◆ history

int history = 0

Definition at line 368 of file cwebboot.c.

Referenced by cb_usage(), cb_usagehelp(), fatal(), and wrap_up().

◆ id_first

char* id_first

Definition at line 301 of file cwebboot.c.

◆ id_loc

char* id_loc

Definition at line 302 of file cwebboot.c.

◆ idx_file

FILE* idx_file

Definition at line 389 of file cwebboot.c.

◆ idx_file_name

char idx_file_name[1024]

Definition at line 377 of file cwebboot.c.

Referenced by scan_args().

◆ include_depth

int include_depth

Definition at line 315 of file cwebboot.c.

Referenced by check_change(), check_complete(), err_print(), get_line(), and reset_input().

◆ input_has_ended

boolean input_has_ended

Definition at line 325 of file cwebboot.c.

Referenced by check_change(), get_line(), and reset_input().

◆ limit

◆ line

int line[10]

Definition at line 322 of file cwebboot.c.

◆ loc

◆ name_dir

◆ name_dir_end

name_pointer name_dir_end = name_dir+ 10239 -1

Definition at line 350 of file cwebboot.c.

Referenced by add_section_name(), extend_section_name(), and id_lookup().

◆ name_ptr

name_pointer name_ptr

Definition at line 356 of file cwebboot.c.

Referenced by add_section_name(), common_init(), extend_section_name(), and id_lookup().

◆ phase

int phase

Definition at line 294 of file cwebboot.c.

◆ print_where

boolean print_where = 0

Definition at line 342 of file cwebboot.c.

Referenced by check_change(), and get_line().

◆ program

cweb program

Definition at line 288 of file cwebboot.c.

Referenced by common_init(), and scan_args().

◆ scn_file

FILE* scn_file

Definition at line 391 of file cwebboot.c.

◆ scn_file_name

char scn_file_name[1024]

Definition at line 379 of file cwebboot.c.

Referenced by scan_args().

◆ section_count

sixteen_bits section_count

Definition at line 338 of file cwebboot.c.

Referenced by check_change(), and get_line().

◆ section_text

char section_text[10000+1]

Definition at line 299 of file cwebboot.c.

◆ section_text_end

char* section_text_end = section_text+ 10000

Definition at line 300 of file cwebboot.c.

◆ separators

char separators[] = "://"

◆ tex_file

FILE* tex_file

Definition at line 388 of file cwebboot.c.

Referenced by common_init(), and wrap_up().

◆ tex_file_name

char tex_file_name[1024]

Definition at line 376 of file cwebboot.c.

Referenced by common_init(), and scan_args().

◆ texmf_locale

string texmf_locale

Definition at line 409 of file cwebboot.c.

Referenced by common_init().

◆ use_language

const char* use_language = ""

Definition at line 402 of file cwebboot.c.

Referenced by scan_args().

◆ web_file_open

boolean web_file_open = 0

Definition at line 327 of file cwebboot.c.

Referenced by err_print(), and reset_input().