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)  

errors.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define hlp1(A)   help_line[0]=A
 
#define hlp2(A, B)   help_line[1]=A; hlp1(B)
 
#define hlp3(A, B, C)   help_line[2]=A; hlp2(B,C)
 
#define hlp4(A, B, C, D)   help_line[3]=A; hlp3(B,C,D)
 
#define hlp5(A, B, C, D, E)   help_line[4]=A; hlp4(B,C,D,E)
 
#define hlp6(A, B, C, D, E, F)   help_line[5]=A; hlp5(B,C,D,E,F)
 
#define help0()   help_line[0]=NULL /* sometimes there might be no help */
 
#define help1(A)   do { help_line[1]=NULL; hlp1(A); } while (0)
 
#define help2(A, B)   do { help_line[2]=NULL; hlp2(B,A); } while (0)
 
#define help3(A, B, C)   do { help_line[3]=NULL; hlp3(C,B,A); } while (0)
 
#define help4(A, B, C, D)   do { help_line[4]=NULL; hlp4(D,C,B,A); } while (0)
 
#define help5(A, B, C, D, E)   do { help_line[5]=NULL; hlp5(E,D,C,B,A); } while (0)
 
#define help6(A, B, C, D, E, F)   do { help_line[6]=NULL; hlp6(F,E,D,C,B,A); } while (0)
 

Enumerations

enum  interaction_settings {
  batch_mode = 0 , nonstop_mode = 1 , scroll_mode = 2 , error_stop_mode = 3 ,
  unspecified_mode = 4
}
 
enum  error_states { spotless = 0 , warning_issued = 1 , error_message_issued = 2 , fatal_error_stop = 3 }
 

Functions

void initialize_errors (void)
 
void set_last_error_context (void)
 
void print_err (const char *s)
 
void fixup_selector (boolean log_opened)
 
void do_final_end (void)
 
void jump_out (void)
 
void error (void)
 
void int_error (int n)
 
void normalize_selector (void)
 
void succumb (void)
 
void fatal_error (const char *s)
 
void overflow (const char *s, unsigned int n)
 
void confusion (const char *s)
 
void check_interrupt (void)
 
void pause_for_instructions (void)
 
void tex_error (const char *msg, const char **hlp)
 
void normal_error (const char *t, const char *p)
 
void normal_warning (const char *t, const char *p)
 
void formatted_error (const char *t, const char *fmt,...)
 
void formatted_warning (const char *t, const char *fmt,...)
 
void back_error (void)
 
void ins_error (void)
 
void flush_err (void)
 
void char_warning (internal_font_number f, int c)
 
void wrapup_backend (void)
 

Variables

int interaction
 
int interactionoption
 
int defaultexitcode
 
char * last_error
 
char * last_lua_error
 
char * last_warning_tag
 
char * last_warning_str
 
char * last_error_context
 
boolean deletions_allowed
 
boolean set_box_allowed
 
int history
 
int error_count
 
int interrupt
 
boolean OK_to_interrupt
 
const char * help_line [7]
 
boolean use_err_help
 

Macro Definition Documentation

◆ help0

#define help0 ( )    help_line[0]=NULL /* sometimes there might be no help */

Definition at line 82 of file errors.h.

◆ help1

#define help1 (   A)    do { help_line[1]=NULL; hlp1(A); } while (0)

Definition at line 83 of file errors.h.

◆ help2

#define help2 (   A,
  B 
)    do { help_line[2]=NULL; hlp2(B,A); } while (0)

Definition at line 84 of file errors.h.

◆ help3

#define help3 (   A,
  B,
  C 
)    do { help_line[3]=NULL; hlp3(C,B,A); } while (0)

Definition at line 85 of file errors.h.

◆ help4

#define help4 (   A,
  B,
  C,
  D 
)    do { help_line[4]=NULL; hlp4(D,C,B,A); } while (0)

Definition at line 86 of file errors.h.

◆ help5

#define help5 (   A,
  B,
  C,
  D,
  E 
)    do { help_line[5]=NULL; hlp5(E,D,C,B,A); } while (0)

Definition at line 87 of file errors.h.

◆ help6

#define help6 (   A,
  B,
  C,
  D,
  E,
  F 
)    do { help_line[6]=NULL; hlp6(F,E,D,C,B,A); } while (0)

Definition at line 88 of file errors.h.

◆ hlp1

#define hlp1 (   A)    help_line[0]=A

Definition at line 75 of file errors.h.

◆ hlp2

#define hlp2 (   A,
  B 
)    help_line[1]=A; hlp1(B)

Definition at line 76 of file errors.h.

◆ hlp3

#define hlp3 (   A,
  B,
  C 
)    help_line[2]=A; hlp2(B,C)

Definition at line 77 of file errors.h.

◆ hlp4

#define hlp4 (   A,
  B,
  C,
  D 
)    help_line[3]=A; hlp3(B,C,D)

Definition at line 78 of file errors.h.

◆ hlp5

#define hlp5 (   A,
  B,
  C,
  D,
  E 
)    help_line[4]=A; hlp4(B,C,D,E)

Definition at line 79 of file errors.h.

◆ hlp6

#define hlp6 (   A,
  B,
  C,
  D,
  E,
  F 
)    help_line[5]=A; hlp5(B,C,D,E,F)

Definition at line 80 of file errors.h.

Enumeration Type Documentation

◆ error_states

Enumerator
spotless 
warning_issued 
error_message_issued 
fatal_error_stop 

Definition at line 63 of file errors.h.

◆ interaction_settings

Enumerator
batch_mode 
nonstop_mode 
scroll_mode 
error_stop_mode 
unspecified_mode 

Definition at line 29 of file errors.h.

Function Documentation

◆ back_error()

◆ char_warning()

◆ check_interrupt()

void check_interrupt ( void  )

Definition at line 813 of file errors.c.

References interrupt, and pause_for_instructions().

◆ confusion()

void confusion ( const char *  s)

◆ do_final_end()

void do_final_end ( void  )

◆ error()

void error ( void  msg)

Definition at line 657 of file cffdrivr.c.

References align_state, base_ptr, batch_mode, begin_file_reading(), c, call_edit_callback, callback_defined, clear_for_error_prompt(), cur_chr, cur_cmd, cur_input, cur_tok, debug_help(), decr, deletions_allowed, do_nothing, error_count, error_message_issued, error_stop_mode, fatal_error_stop, first, flush_err(), get_token(), give_err_help(), haltonerrorp, help2, help4, help_line, help_ptr, history, i, ilimit, iloc, incr, input_stack, interaction, jump_out(), kpse_init, last, line, loc, luatex_calledit(), makecstring(), NULL, OK_to_interrupt, print, print_char(), print_esc(), print_int(), print_ln(), print_nl(), prints, prompt_input(), run_callback(), s1, s2, s3, s4, scroll_mode, selector, set_last_error_context(), show_context(), show_error_hook_callback, slow_print(), tprint(), tprint_esc(), tprint_nl(), update_terminal, use_err_help, and void.

Referenced by after_math(), align_error(), back_error(), begin_box(), begin_insert_or_adjust(), box_error(), build_discretionary(), build_page(), cff_get_advances(), cff_get_cid_from_glyph_index(), cff_get_glyph_name(), cff_get_is_cid(), cff_glyph_load(), cff_ps_get_font_extra(), cff_ps_get_font_info(), change_page_direction(), char_warning(), check_outer_validity(), conv_toks(), cs_error(), delete_last(), do_register_command(), eTeX_enabled(), expand(), extra_right_brace(), fatal_error(), fetch(), fin_col(), find_font_dimen(), finite_shrink(), fire_up(), get_next(), gray_convert_glyph(), gray_raster_new(), handle_right_brace(), head_for_vmode(), if(), init_align(), Init_Font_Engine(), ins_error(), int_error(), issue_message(), LoadTrueTypeChar(), m_log(), macro_call(), main_control(), math_ac(), math_fraction(), math_left_right(), math_limit_switch(), mu_error(), new_font(), new_hyph_exceptions(), new_patterns(), no_align_error(), normal_warning(), off_save(), omit_error(), pause_for_instructions(), prefixed_command(), read_toks(), report_illegal_case(), scan_dimen(), scan_expr(), scan_int(), scan_math(), scan_something_internal(), scan_toks(), set_math_char(), set_math_kchar(), ship_out(), show_whatever(), sub_sup(), succumb(), tex_error(), unpackage(), vert_break(), vsplit(), and write_out().

◆ fatal_error()

void fatal_error ( const char *  s)

Definition at line 739 of file errors.c.

References help1, normalize_selector(), print_err(), s, and succumb().

◆ fixup_selector()

void fixup_selector ( boolean  log_opened)

Definition at line 154 of file errors.c.

References batch_mode, interaction, no_print, selector, and term_only.

Referenced by main_body(), new_interaction(), and tex_run_boot().

◆ flush_err()

◆ formatted_error()

void formatted_error ( const char *  t,
const char *  fmt,
  ... 
)

Definition at line 1038 of file errors.c.

◆ formatted_warning()

void formatted_warning ( const char *  t,
const char *  fmt,
  ... 
)

Definition at line 1048 of file errors.c.

◆ initialize_errors()

void initialize_errors ( void  )

◆ ins_error()

void ins_error ( void  )

Definition at line 884 of file errors.c.

References back_input(), error(), inserted, and OK_to_interrupt.

◆ int_error()

void int_error ( int  n)

Definition at line 685 of file errors.c.

References error(), n, print_char(), print_int(), and tprint().

◆ jump_out()

void jump_out ( void  )

Definition at line 7415 of file aptex-src.c.

References close_files_and_terminate(), and do_final_end().

Referenced by error(), and succumb().

◆ normal_error()

void normal_error ( const char *  t,
const char *  p 
)

Definition at line 951 of file errors.c.

Referenced by formatted_error().

◆ normal_warning()

void normal_warning ( const char *  t,
const char *  p 
)

Definition at line 981 of file errors.c.

Referenced by formatted_warning().

◆ normalize_selector()

void normalize_selector ( void  )

◆ overflow()

void overflow ( const char *  s,
unsigned int  n 
)

◆ pause_for_instructions()

void pause_for_instructions ( void  )

◆ print_err()

◆ set_last_error_context()

void set_last_error_context ( void  )

◆ succumb()

void succumb ( void  )

◆ tex_error()

void tex_error ( const char *  msg,
const char **  hlp 
)

Definition at line 847 of file errors.c.

◆ wrapup_backend()

Variable Documentation

◆ defaultexitcode

int defaultexitcode
extern

Definition at line 250 of file errors.c.

Referenced by do_final_end(), and setexitcode().

◆ deletions_allowed

boolean deletions_allowed
extern

Definition at line 184 of file errors.c.

Referenced by error(), initialize_errors(), and pause_for_instructions().

◆ error_count

int error_count
extern

Definition at line 195 of file errors.c.

Referenced by error().

◆ help_line

const char* help_line[7]
extern

Definition at line 234 of file errors.c.

Referenced by error(), and tex_error().

◆ history

◆ interaction

◆ interactionoption

int interactionoption
extern

Definition at line 55 of file errors.c.

Referenced by initialize_errors(), load_fmt_file(), lua_initialize(), maininit(), and parse_options().

◆ interrupt

int interrupt
extern

Definition at line 199 of file errors.c.

Referenced by check_interrupt(), and pause_for_instructions().

◆ last_error

char* last_error
extern

◆ last_error_context

char* last_error_context
extern

Definition at line 61 of file errors.c.

Referenced by getlasterrorcontext(), and set_last_error_context().

◆ last_lua_error

char* last_lua_error
extern

Definition at line 58 of file errors.c.

Referenced by getlastluaerror(), luatex_error(), and resetmessages().

◆ last_warning_str

char* last_warning_str
extern

Definition at line 60 of file errors.c.

Referenced by getlastwarningstr(), normal_warning(), and resetmessages().

◆ last_warning_tag

char* last_warning_tag
extern

Definition at line 59 of file errors.c.

Referenced by getlastwarningtag(), normal_warning(), and resetmessages().

◆ OK_to_interrupt

boolean OK_to_interrupt
extern

Definition at line 203 of file errors.c.

Referenced by back_error(), error(), initialize_errors(), ins_error(), and pause_for_instructions().

◆ set_box_allowed

boolean set_box_allowed
extern

Definition at line 188 of file errors.c.

Referenced by initialize_errors().

◆ use_err_help

boolean use_err_help
extern

Definition at line 240 of file errors.c.

Referenced by error().