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)  

aptex-functions.h
Go to the documentation of this file.
1 /*
2  Copyright 2014, 2015, 2016, 2017, 2018 Clerk Ma
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful, but
10  WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License
15  along with this program; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301 USA.
18 */
19 
20 #ifndef APTEX_FUNCTIONS_H
21 #define APTEX_FUNCTIONS_H
22 
23 // functions of reallocation
32 static int realloc_hyphen (int hyphen_prime);
33 
34 // functions of string pool
35 static str_number make_str_string (const char * s);
36 static char * take_str_string (str_number s);
37 
38 // functions of I/O
39 static boolean b_open_output (byte_file * f);
40 
41 #define a_open_in(f) a_open_input(&(f))
42 #define b_open_in(f) b_open_input(&(f))
43 #define w_open_in(f) w_open_input(&(f))
44 //
45 #define a_open_out(f) a_open_output(&(f))
46 #define b_open_out(f) b_open_output(&(f))
47 #define w_open_out(f) w_open_output(&(f))
48 //
49 #define w_eof(f) (aptex_env.flag_compact_fmt == true ? gzeof((gzFile) f) : feof((FILE *) f))
50 
51 // functions of SyncTeX
52 void synctex_init (void);
53 void synctex_terminate (void);
54 void synctex_start_input (void);
55 void synctex_sheet (integer sync_mag);
56 void synctex_teehs (void);
57 void synctex_vlist (pointer this_box);
58 void synctex_tsilv (pointer this_box);
59 void synctex_void_vlist (halfword p, halfword this_box);
60 void synctex_hlist (halfword this_box);
61 void synctex_tsilh (halfword this_box);
62 void synctex_void_hlist (halfword p, halfword this_box);
63 void synctex_math (halfword p, halfword this_box);
65 void synctex_kern (halfword p, halfword this_box);
66 void synctex_char (halfword p, halfword this_box);
67 void synctex_node (halfword p, halfword this_box);
68 void synctex_current (void);
69 
70 // functions of TeX82
71 void print_ln (void);
72 void print_char (ASCII_code s);
73 void print_(integer s);
74 #define print(s) print_((integer) (s))
75 void prints_(const char * s);
76 #define prints(s) prints_((const char *) s)
77 void slow_print (integer s);
78 void print_nl (const char * s);
79 void print_esc (const char * s);
80 void sprint_esc (str_number s);
81 void print_int (integer n);
83 void jump_out (void);
84 void error (void);
85 void overflow (const char * s, integer n);
86 
87 boolean init_terminal (void);
88 str_number make_string (void);
89 
90 void term_input (void);
91 void normalize_selector (void);
92 void pause_for_instructions (void);
93 void print_scaled (scaled s);
94 
96 
97 void flush_list (pointer p);
99 void free_node (pointer p, halfword s);
100 
101 #ifdef APTEX_DEBUG
102 void check_mem (boolean print_locs);
103 void search_mem (pointer p);
104 #endif
105 
106 void show_node_list (integer p);
107 void delete_token_ref (pointer p);
108 void delete_glue_ref (pointer p);
109 #define fast_delete_glue_ref(p) delete_glue_ref((pointer) (p))
110 void flush_node_list (pointer p);
111 void print_cmd_chr (quarterword cmd, halfword chr_code);
113 #define primitive(s, c, o) primitive_(make_str_string((const char *) s), (quarterword) (c), (halfword) (o))
114 
115 void assign_trace (pointer p, const char * s);
116 
117 void show_context (void);
118 void end_token_list (void);
119 void back_input (void);
120 void begin_file_reading (void);
121 void end_file_reading (void);
122 void clear_for_error_prompt (void);
123 void get_next (void);
124 void get_token (void);
125 void get_x_token (void);
126 void scan_left_brace (void);
127 
128 void scan_int (void);
129 void scan_dimen (boolean mu, boolean inf, boolean shortcut);
131 void ins_the_toks (void);
132 void conv_toks (void);
133 pointer scan_toks (boolean macro_def, boolean xpand);
134 void pass_text (void);
135 void conditional (void);
140 #define pack_job_name(s) pack_job_name_(make_str_string((const char *) (s)))
141 void prompt_file_name_(const char * s, str_number e);
142 #define prompt_file_name(s, e) prompt_file_name_((const char *) s, make_str_string((const char*) e))
143 void open_log_file (void);
144 void start_input (void);
145 void dvi_swap (void);
146 
147 void movement (scaled w, eight_bits o);
148 void hlist_out (void);
149 void vlist_out (void);
150 
151 void prune_movements (integer l);
152 void out_what (pointer p);
153 void show_info (void);
154 
155 void mlist_to_hlist (void);
156 void align_peek (void);
158 void try_break (integer pi, small_number breaktype);
159 void post_line_break (boolean d);
160 void hyphenate (void);
161 void print_totals (void);
162 void build_page (void);
163 void normal_paragraph (void);
164 void resume_after_display (void);
165 void get_r_token (void);
166 void trap_zero_glue (void);
168 void alter_aux (void);
169 void alter_prev_graf (void);
170 void alter_page_so_far (void);
171 void alter_integer (void);
172 void alter_box_dimen (void);
173 void new_font (small_number a);
174 void new_interaction (void);
175 void do_assignments (void);
176 void main_control (void);
177 void give_err_help (void);
178 boolean open_fmt_file (void);
179 void close_files_and_terminate (void);
180 
181 #ifdef APTEX_DEBUG
182 void debug_help (void);
183 #endif
184 
185 // functions of pTeX and upTeX
188 
191 
192 boolean check_box (pointer box_p);
193 void adjust_hlist(pointer p, boolean pf);
194 
195 void dir_out(void);
196 void set_math_kchar(integer c);
197 void print_kanji(KANJI_code s);
199 boolean check_kcat_code(integer ct);
200 boolean check_echar_range(integer c);
201 
202 // functions of eTeX
203 boolean eTeX_enabled (boolean b, quarterword j, halfword k);
204 void group_trace (boolean e);
205 void show_save_groups (void);
206 void scan_general_text (void);
207 
208 static inline void print_if_line (integer val)
209 {
210  if (val != 0)
211  {
212  prints(" entered on line ");
213  print_int(val);
214  }
215 }
216 
218 pointer reverse(pointer this_box, pointer t, scaled cur_g, real cur_glue);
221 void just_reverse(pointer p);
223 void pseudo_start(void);
224 boolean pseudo_input();
225 void pseudo_close(void);
226 void get_x_or_protected(void);
227 void group_warning(void);
228 void if_warning(void);
229 void file_warning(void);
230 void scan_expr(void);
231 void scan_normal_glue(void);
232 void scan_mu_glue(void);
233 integer add_or_sub(integer x, integer y, integer max_answer, boolean negative);
235 integer fract(integer x, integer n, integer d, integer max_answer);
236 void scan_register_num(void);
238 void find_sa_element(small_number t, halfword n, boolean w);
239 void delete_sa_ref(pointer q);
240 //void print_sa_num(pointer q);
241 void show_sa(pointer p, const char * s);
243 void sa_save(pointer p);
244 void sa_destroy(pointer p);
245 void sa_def(pointer p, halfword e);
246 void sa_w_def(pointer p, integer w);
247 void gsa_def(pointer p, halfword e);
248 void gsa_w_def(pointer p, integer w);
249 void sa_restore(void);
250 
251 // functions of encodings
252 static void init_default_kanji (const_string file_str, const_string internal_str);
253 static char * mbcs_utf8 (const char * mbcs_str);
254 static char * utf8_mbcs (const char * utf8_str);
255 
256 // inline functions
257 /* sec 0016 */
258 static inline void do_nothing (void)
259 {
260  /* todo */
261 }
262 
263 /* sec 0034 */
264 static inline void update_terminal (void)
265 {
266  fflush(stdout);
267 }
268 
269 static inline void clear_terminal (void)
270 {
271  /* todo */
272 }
273 
274 static inline void wake_up_terminal(void)
275 {
276  /* todo */
277 }
278 
279 // functions of WEB2C
280 static inline int do_final_end (void)
281 {
282  update_terminal();
283  ready_already = 0;
284 
285  if ((history != spotless) && (history != warning_issued))
286  return 1;
287  else
288  return 0;
289 }
290 /* sec 0073 */
291 static inline void print_err (const char * s)
292 {
295 
296  print_nl("! ");
297  prints(s);
298 }
299 /* sec 0042 */
300 static inline void append_char (ASCII_code c)
301 {
302  str_pool[pool_ptr] = c;
303  incr(pool_ptr);
304 }
305 /* sec 0042 */
306 static inline void str_room (int val)
307 {
308 #ifdef APTEX_EXTENSION
311 
313  overflow("pool size", current_pool_size - init_pool_ptr);
314 #else
315  if (pool_ptr + val > pool_size)
316  overflow("pool size", pool_size - init_pool_ptr);
317 #endif
318 }
319 /* sec 0044 */
320 static inline void flush_string (void)
321 {
322  decr(str_ptr);
324 }
325 /* sec 0048 */
326 static inline void append_lc_hex (ASCII_code c)
327 {
328  if (c < 10)
329  append_char(c + '0');
330  else
331  append_char(c - 10 + 'a');
332 }
333 /* sec 0071 */
334 static inline void prompt_input (const char * s)
335 {
337  prints(s);
338  term_input();
339 }
340 /* sec 0079 */
341 static inline void tex_help (unsigned int n, ...)
342 {
343  int i;
344  va_list help_arg;
345 
346  if (n > 6)
347  n = 6;
348 
349  help_ptr = n;
350  va_start(help_arg, n);
351 
352  for (i = n - 1; i > -1; --i)
353  help_line[i] = va_arg(help_arg, char *);
354 
355  va_end(help_arg);
356 }
357 /* sec 0093 */
358 static inline void succumb (void)
359 {
362 
363  if (log_opened)
364  error();
365 
366 #ifdef APTEX_DEBUG
367  if (interaction > 0)
368  debug_help();
369 #endif
370 
372  jump_out();
373 }
374 /* sec 0096 */
375 static inline void check_interrupt (void)
376 {
377  if (interrupt != 0)
379 }
380 /* sec 0273 */
381 static inline void check_full_save_stack (void)
382 {
383  if (save_ptr > max_save_stack)
384  {
386 
387 #ifdef APTEX_EXTENSION
390 
392  overflow("save size", current_save_size);
393 #else
394  if (max_save_stack > save_size - 7)
395  overflow("save size", save_size);
396 #endif
397  }
398 }
399 /* sec 0321 */
400 static inline void push_input (void)
401 {
402  if (input_ptr > max_in_stack)
403  {
405 
406 #ifdef APTEX_EXTENSION
409 
411  overflow("input stack size", current_stack_size);
412 #else
413  if (input_ptr == stack_size)
414  overflow("input stack size", stack_size);
415 #endif
416  }
417 
419  incr(input_ptr);
420 }
421 /* sec 0322 */
422 static inline void pop_input (void)
423 {
424  decr(input_ptr);
426 }
427 /* sec 0532 */
428 static inline void ensure_dvi_open (void)
429 {
430  if (output_file_name == 0)
431  {
432  if (job_name == 0)
433  open_log_file();
434 
435  pack_job_name(".dvi");
436 
437  while (!b_open_out(dvi_file))
438  prompt_file_name("file name for output", ".dvi");
439 
441  }
442 }
443 /* sec 0616 */
444 static inline void synch_h (void)
445 {
446  if (cur_h != dvi_h)
447  {
449  dvi_h = cur_h;
450  }
451 }
452 /* sec 0616 */
453 static inline void synch_v (void)
454 {
455  if (cur_v != dvi_v)
456  {
458  dvi_v = cur_v;
459  }
460 }
461 /* sec 0121 */
462 static inline void free_avail (halfword p)
463 {
464  link(p) = avail;
465  avail = p;
466 
467 #ifdef STAT
468  decr(dyn_used);
469 #endif
470 }
471 /* sec 0180 */
472 static inline void node_list_display (integer p)
473 {
474  append_char('.');
475  show_node_list(p);
476  decr(pool_ptr);
477 }
478 /* sec 0214 */
479 static inline void tail_append (pointer val)
480 {
481  link(tail) = val;
482  tail = link(tail);
483 }
484 /* sec 0214 */
485 static inline void prev_append (pointer val)
486 {
487  link(prev_node) = val;
488  link(link(prev_node)) = tail;
490 }
491 /* sec 0564 */
492 static inline void fget (void)
493 {
494  fbyte = fgetc(tfm_file);
495 }
496 /* sec 0597 */
497 static inline void write_dvi (size_t a, size_t b)
498 {
499  if (fwrite((char *) &dvi_buf[a], sizeof(dvi_buf[a]), (b - a + 1), dvi_file) != (b - a + 1))
500  fprintf(stderr, "!Fatal Error, write_dvi()\n");
501 }
502 /* sec 0598 */
503 static inline void dvi_out (ASCII_code op)
504 {
505  dvi_buf[dvi_ptr] = op;
506  incr(dvi_ptr);
507 
508  if (dvi_ptr == dvi_limit)
509  dvi_swap();
510 }
511 /* sec 0934 */
512 static inline void set_cur_lang (void)
513 {
514  if (language <= 0)
515  cur_lang = 0;
516  else if (language > 255)
517  cur_lang = 0;
518  else
519  cur_lang = language;
520 }
521 /* sec 0985 */
522 static inline void print_plus (int i, const char * s)
523 {
524  if (page_so_far[i] != 0)
525  {
526  prints(" plus ");
528  prints(s);
529  }
530 }
531 
532 static inline void aptex_error (const char * t, const char * p)
533 {
535  print_err("Asiatic pTeX error");
536 
537  if (t != NULL)
538  {
539  prints(" (");
540  prints(t);
541  prints(")");
542  }
543 
544  prints(": ");
545  prints(p);
546  succumb();
547 }
548 
549 static inline integer get_microinterval()
550 {
551  integer s, m;
552 
554 
555  if ((s - epochseconds) > 32767)
556  return 0x7FFFFFFF;
557  else if (microseconds > m)
558  return ((s - 1 - epochseconds) * 65536) + (((m + 1000000 - microseconds) / 100) * 65536) / 10000;
559  else
560  return ((s - epochseconds) * 65536) + (((m - microseconds) / 100) * 65536) / 10000;
561 }
562 
564 {
565  if (selector == new_string)
566  aptex_error("tokens", "tokens_to_string() called while selector = new_string");
567 
573  return last_tokens_string;
574 }
575 
576 #define flushable(a) (a == str_ptr - 1)
577 
578 static inline void flush_str (str_number s)
579 {
580  if (flushable(s))
581  flush_string();
582 }
583 
584 static inline void compare_strings (void)
585 {
586  str_number s1, s2;
587  pool_pointer i1, i2, j1, j2;
588 
589  scan_toks(false, true);
590  is_print_utf8 = true;
592  is_print_utf8 = false;
594  scan_toks(false, true);
595  is_print_utf8 = true;
597  is_print_utf8 = false;
599  i1 = str_start[s1];
600  j1 = str_start[s1 + 1];
601  i2 = str_start[s2];
602  j2 = str_start[s2 + 1];
603 
604  while ((i1 < j1) && (i2 < j2))
605  {
606  if (str_pool[i1] < str_pool[i2])
607  {
608  cur_val = -1;
609  goto done;
610  }
611 
612  if (str_pool[i1] > str_pool[i2])
613  {
614  cur_val = 1;
615  goto done;
616  }
617 
618  incr(i1);
619  incr(i2);
620  }
621 
622  if ((i1 == j1) && (i2 == j2))
623  cur_val = 0;
624  else if (i1 < j1)
625  cur_val = 1;
626  else
627  cur_val = -1;
628 
629 done:
630  flush_str(s2);
631  flush_str(s1);
633 }
634 
635 static inline void write_log (const char * fmt, ...)
636 {
637  va_list m_ptr;
638  va_start(m_ptr, fmt);
639  vfprintf(log_file.file_data, fmt, m_ptr);
640  va_end(m_ptr);
641 }
642 
643 static inline void wlog_ln (const char * fmt, ...)
644 {
645  va_list m_ptr;
646  va_start(m_ptr, fmt);
647  vfprintf(log_file.file_data, fmt, m_ptr);
648  fprintf(log_file.file_data, "\n");
649  va_end(m_ptr);
650 }
651 
652 static inline void wterm (ASCII_code s)
653 {
654  (void) fputc(s, stdout);
655 }
656 
657 static inline void wlog (ASCII_code s)
658 {
659  (void) fputc(s, log_file.file_data);
660 }
661 
662 static inline void wterm_cr (void)
663 {
664  (void) fputc('\n', stdout);
665 }
666 
667 static inline void wlog_cr (void)
668 {
669  (void) fputc('\n', log_file.file_data);
670 }
671 
672 static inline void write_ln (alpha_file f)
673 {
674  (void) fputc('\n', f.file_data);
675 }
676 
677 #endif
static int pf(int(*writeFunc)(void *stream, const char *data, int size), void *stream, const char *fmt,...)
Definition: HTMLGen.cc:254
q
Definition: afm2pl.c:2287
int level
Definition: afm2pl.c:1694
void give_err_help(void)
Definition: aptex-src.c:36017
pointer get_node(integer s)
Definition: aptex-src.c:8773
void synctex_horizontal_rule_or_glue(halfword p, halfword this_box)
Definition: aptex-src.c:40087
void normal_paragraph(void)
Definition: aptex-src.c:30456
#define b_open_out(f)
void trap_zero_glue(void)
Definition: aptex-src.c:33723
void print_cmd_chr(quarterword cmd, halfword chr_code)
Definition: aptex-src.c:11377
boolean check_echar_range(integer c)
Definition: aptex-src.c:37111
void close_files_and_terminate(void)
Definition: aptex-src.c:36094
void group_trace(boolean e)
Definition: aptex-src.c:37231
static list_state_record * realloc_nest_stack(int size)
void delete_sa_ref(pointer q)
Definition: aptex-src.c:38969
static void wlog(ASCII_code s)
static void init_default_kanji(const_string file_str, const_string internal_str)
Definition: kanji.c:85
void end_token_list(void)
Definition: aptex-src.c:14055
void sa_restore(void)
Definition: aptex-src.c:39341
void gsa_def(pointer p, halfword e)
Definition: aptex-src.c:39300
void just_copy(pointer p, pointer h, pointer t)
Definition: aptex-src.c:37773
static void write_ln(alpha_file f)
void dir_out(void)
Definition: aptex-src.c:22306
static void set_cur_lang(void)
static halfword * realloc_param_stack(int size)
void change_page_direction(halfword d)
Definition: aptex-src.c:37055
static void wake_up_terminal(void)
void show_token_list(integer p, integer q, integer l)
Definition: aptex-src.c:8548
static void print_if_line(integer val)
void pack_job_name_(str_number s)
Definition: aptex-src.c:19443
void get_x_or_protected(void)
Definition: aptex-src.c:38251
static void aptex_error(const char *t, const char *p)
static str_number make_str_string(const char *s)
void prompt_file_name_(const char *s, str_number e)
void sprint_esc(str_number s)
Definition: aptex-src.c:7012
pointer new_segment(small_number s, pointer f)
Definition: aptex-src.c:37759
pointer get_inhibit_pos(KANJI_code c, small_number n)
Definition: aptex-src.c:36618
void scan_dimen(boolean mu, boolean inf, boolean shortcut)
Definition: aptex-src.c:17035
void get_token(void)
Definition: aptex-src.c:14331
void scan_glue(small_number level)
Definition: aptex-src.c:17359
#define prompt_file_name(s, e)
void sa_def(pointer p, halfword e)
Definition: aptex-src.c:39230
#define flushable(a)
void get_r_token(void)
Definition: aptex-src.c:33698
void do_register_command(small_number a)
Definition: aptex-src.c:33733
static void free_avail(halfword p)
void app_display(pointer j, pointer b, scaled d)
Definition: aptex-src.c:37953
void prune_movements(integer l)
Definition: aptex-src.c:20485
void build_page(void)
Definition: aptex-src.c:29726
#define prints(s)
static int do_final_end(void)
static void append_lc_hex(ASCII_code c)
static void pop_input(void)
void adjust_hlist(pointer p, boolean pf)
Definition: aptex-src.c:36845
void sa_destroy(pointer p)
Definition: aptex-src.c:39217
static void succumb(void)
static void dvi_out(ASCII_code op)
void synctex_terminate(void)
Definition: aptex-src.c:39728
void print_scaled(scaled s)
Definition: aptex-src.c:8377
void normalize_selector(void)
Definition: aptex-src.c:8319
static boolean b_open_output(byte_file *f)
static void tail_append(pointer val)
void synctex_void_hlist(halfword p, halfword this_box)
Definition: aptex-src.c:40031
boolean check_kcat_code(integer ct)
Definition: aptex-src.c:37103
pointer new_edge(small_number s, scaled w)
Definition: aptex-src.c:37553
void new_interaction(void)
Definition: aptex-src.c:34171
static char * mbcs_utf8(const char *mbcs_str)
void show_info(void)
Definition: aptex-src.c:23446
static void print_err(const char *s)
void pass_text(void)
Definition: aptex-src.c:18567
static in_state_record * realloc_input_stack(int size)
void term_input(void)
Definition: aptex-src.c:8291
void ins_the_toks(void)
Definition: aptex-src.c:17617
void mlist_to_hlist(void)
Definition: aptex-src.c:24775
pointer get_kinsoku_pos(KANJI_code c, small_number n)
Definition: aptex-src.c:36661
integer quotient(integer n, integer d)
Definition: aptex-src.c:38689
boolean do_marks(small_number a, small_number l, pointer q)
Definition: aptex-src.c:39089
void error(void)
Definition: cffdrivr.c:657
static memory_word * realloc_save_stack(int size)
void show_node_list(integer p)
Definition: aptex-src.c:9659
static void do_nothing(void)
void alter_aux(void)
Definition: aptex-src.c:33925
void sa_w_def(pointer p, integer w)
Definition: aptex-src.c:39267
void resume_after_display(void)
Definition: aptex-src.c:33671
pointer scan_toks(boolean macro_def, boolean xpand)
Definition: aptex-src.c:18221
void try_break(integer pi, small_number breaktype)
Definition: aptex-src.c:27260
void new_font(small_number a)
Definition: aptex-src.c:34062
void do_assignments(void)
Definition: aptex-src.c:34185
static void push_input(void)
static void check_interrupt(void)
static void prompt_input(const char *s)
static int realloc_hyphen(int hyphen_prime)
void show_sa(pointer p, const char *s)
integer add_or_sub(integer x, integer y, integer max_answer, boolean negative)
Definition: aptex-src.c:38669
static void wterm(ASCII_code s)
void hlist_out(void)
Definition: aptex-src.c:21435
static ASCII_code * realloc_buffer(int size)
void print_int(integer n)
Definition: aptex-src.c:7042
void flush_list(pointer p)
Definition: aptex-src.c:8751
void scan_general_text(void)
Definition: aptex-src.c:37497
static integer get_microinterval()
void new_index(quarterword i, pointer q)
Definition: aptex-src.c:38865
pointer reverse(pointer this_box, pointer t, scaled cur_g, real cur_glue)
Definition: aptex-src.c:37566
void print_(integer s)
Definition: aptex-src.c:6905
void synctex_vlist(pointer this_box)
Definition: aptex-src.c:39959
void scan_expr(void)
Definition: scanning.c:2496
static void append_char(ASCII_code c)
static void str_room(int val)
void delete_glue_ref(pointer p)
Definition: aptex-src.c:10276
static void print_plus(int i, const char *s)
integer fract(integer x, integer n, integer d, integer max_answer)
Definition: aptex-src.c:38726
void out_what(pointer p)
Definition: aptex-src.c:22589
void back_input(void)
Definition: aptex-src.c:14086
static void write_dvi(size_t a, size_t b)
void prints_(const char *s)
void synctex_sheet(integer sync_mag)
Definition: aptex-src.c:39875
eight_bits get_jfm_pos(KANJI_code kcode, internal_font_number f)
Definition: aptex-src.c:36584
pointer new_dir_node(pointer b, eight_bits dir)
Definition: aptex-src.c:36482
void conditional(void)
Definition: web2c-lexer.c:709
void overflow(const char *s, integer n)
void sa_save(pointer p)
Definition: aptex-src.c:39170
boolean eTeX_enabled(boolean b, quarterword j, halfword k)
Definition: aptex-src.c:37120
void print_kanji(KANJI_code s)
Definition: aptex-src.c:7395
void alter_integer(void)
Definition: aptex-src.c:33994
void print_file_name(integer n, integer a, integer e)
Definition: aptex-src.c:7246
static void compare_strings(void)
pointer id_lookup(integer j, integer l)
Definition: aptex-src.c:13216
void gsa_w_def(pointer p, integer w)
Definition: aptex-src.c:39321
void synctex_math(halfword p, halfword this_box)
Definition: aptex-src.c:40061
static void wlog_cr(void)
#define pack_job_name(s)
void alter_box_dimen(void)
Definition: aptex-src.c:34023
boolean check_box(pointer box_p)
Definition: aptex-src.c:36718
void movement(scaled w, eight_bits o)
Definition: dvigen.c:1048
void print_char(ASCII_code s)
Definition: aptex-src.c:6782
static memory_word * realloc_font_info(int size)
void print_ln(void)
Definition: aptex-src.c:6722
void pseudo_start(void)
Definition: aptex-src.c:38073
void synctex_hlist(halfword this_box)
Definition: aptex-src.c:40003
void synctex_start_input(void)
Definition: aptex-src.c:39687
void jump_out(void)
Definition: aptex-src.c:7415
void show_context(void)
Definition: aptex-src.c:13728
void print_totals(void)
Definition: aptex-src.c:29318
void pause_for_instructions(void)
Definition: aptex-src.c:8333
static void tex_help(unsigned int n,...)
void synctex_char(halfword p, halfword this_box)
Definition: aptex-src.c:40182
static void synch_h(void)
void begin_file_reading(void)
Definition: aptex-src.c:14130
static str_number tokens_to_string(pointer p)
void scan_int(void)
Definition: aptex-src.c:16854
void file_warning(void)
Definition: aptex-src.c:38351
static pool_pointer * realloc_str_start(int size)
static void wterm_cr(void)
static void update_terminal(void)
void scan_register_num(void)
Definition: aptex-src.c:38852
void dvi_swap(void)
Definition: aptex-src.c:20234
void scan_normal_glue(void)
Definition: aptex-src.c:38659
static void write_log(const char *fmt,...)
void get_next(void)
Definition: ctangleboot.c:1189
void synctex_init(void)
Definition: aptex-src.c:39485
void synctex_void_vlist(halfword p, halfword this_box)
Definition: aptex-src.c:39987
void print_nl(const char *s)
void group_warning(void)
Definition: aptex-src.c:38268
void synctex_teehs(void)
Definition: aptex-src.c:39905
void start_input(void)
Definition: aptex-src.c:19573
void pack_file_name(str_number n, str_number a, str_number e)
Definition: aptex-src.c:19230
void get_x_token(void)
Definition: aptex-src.c:15041
void end_file_reading(void)
Definition: aptex-src.c:14163
void print_esc(const char *s)
void delete_token_ref(pointer p)
Definition: aptex-src.c:10267
static void ensure_dvi_open(void)
void find_sa_element(small_number t, halfword n, boolean w)
Definition: aptex-src.c:38878
static void flush_str(str_number s)
void alter_prev_graf(void)
Definition: aptex-src.c:33957
void clear_for_error_prompt(void)
Definition: aptex-src.c:14177
void assign_trace(pointer p, const char *s)
void pseudo_close(void)
Definition: aptex-src.c:38230
void post_line_break(boolean d)
Definition: aptex-src.c:27932
void synctex_node(halfword p, halfword this_box)
Definition: aptex-src.c:40204
void hyphenate(void)
Definition: aptex-src.c:28486
static char * utf8_mbcs(const char *utf8_str)
void vlist_out(void)
Definition: aptex-src.c:21990
boolean init_terminal(void)
Definition: aptex-src.c:7720
str_number w_make_name_string(word_file f)
Definition: aptex-src.c:19328
void synctex_kern(halfword p, halfword this_box)
Definition: aptex-src.c:40139
void if_warning(void)
Definition: aptex-src.c:38309
boolean open_fmt_file(void)
Definition: aptex-src.c:36022
static void clear_terminal(void)
void set_math_kchar(integer c)
Definition: aptex-src.c:37033
void synctex_tsilh(halfword this_box)
Definition: aptex-src.c:40017
static void prev_append(pointer val)
void conv_toks(void)
Definition: aptex-src.c:17781
pointer finite_shrink(pointer p)
Definition: aptex-src.c:27229
void slow_print(integer s)
Definition: aptex-src.c:6968
str_number make_string(void)
Definition: aptex-src.c:7761
static void synch_v(void)
void just_reverse(pointer p)
Definition: aptex-src.c:37892
static void check_full_save_stack(void)
static char * take_str_string(str_number s)
static void wlog_ln(const char *fmt,...)
void main_control(void)
Definition: aptex-src.c:34958
static void fget(void)
void flush_node_list(pointer p)
Definition: aptex-src.c:10285
void scan_mu_glue(void)
Definition: aptex-src.c:38664
void scan_left_brace(void)
Definition: aptex-src.c:15098
void open_log_file(void)
Definition: aptex-src.c:19506
void free_node(pointer p, halfword s)
Definition: aptex-src.c:8891
void align_peek(void)
Definition: aptex-src.c:26299
static void node_list_display(integer p)
void show_save_groups(void)
Definition: aptex-src.c:37247
static packed_ASCII_code * realloc_str_pool(int size)
void alter_page_so_far(void)
Definition: aptex-src.c:33984
str_number b_make_name_string(byte_file f)
Definition: aptex-src.c:19322
void synctex_tsilv(pointer this_box)
Definition: aptex-src.c:39973
void synctex_current(void)
Definition: aptex-src.c:40214
static void flush_string(void)
boolean pseudo_input()
Definition: aptex-src.c:38182
@ warning_issued
Definition: aptex-macros.h:94
#define prev_node
Definition: aptex-macros.h:515
#define down1
#define right1
#define language
Definition: aptex-macros.h:837
@ error_stop_mode
Definition: aptex-macros.h:88
@ scroll_mode
Definition: aptex-macros.h:87
#define int_val
#define tail
Definition: aptex-macros.h:514
@ new_string
Definition: aptex-macros.h:79
void aptex_utils_get_seconds_and_micros(uint64_t *s, uint64_t *m)
Definition: aptex-utils.c:38
uint8_t small_number
Definition: aptex.h:113
static uint32_t current_pool_size
Definition: aptex.h:180
integer str_number
Definition: aptex.h:196
static boolean is_print_utf8
Definition: aptex.h:783
static integer max_save_stack
Definition: aptex.h:399
static integer epochseconds
Definition: aptex.h:785
static integer dyn_used
Definition: aptex.h:348
static int cur_lang
Definition: aptex.h:618
static uint32_t current_stack_size
Definition: aptex.h:185
uint8_t ASCII_code
Definition: aptex.h:109
static dvi_index dvi_ptr
Definition: aptex.h:536
integer internal_font_number
Definition: aptex.h:269
static str_number last_tokens_string
Definition: aptex.h:784
FILE * byte_file
Definition: aptex.h:120
static integer input_ptr
Definition: aptex.h:413
static scaled cur_v
Definition: aptex.h:543
static pointer avail
Definition: aptex.h:350
integer pool_pointer
Definition: aptex.h:195
uint8_t packed_ASCII_code
Definition: aptex.h:112
static boolean log_opened
Definition: aptex.h:476
static in_state_record * input_stack
Definition: aptex.h:411
static memory_word * save_stack
Definition: aptex.h:396
static int interaction
Definition: aptex.h:318
static integer max_in_stack
Definition: aptex.h:414
static pool_pointer init_pool_ptr
Definition: aptex.h:301
static int old_setting
Definition: aptex.h:381
static char * help_line[6]
Definition: aptex.h:325
static dvi_index dvi_limit
Definition: aptex.h:535
int32_t KANJI_code
Definition: aptex.h:110
static uint32_t selector
Definition: aptex.h:305
static int cur_val_level
Definition: aptex.h:448
static integer ready_already
Definition: aptex.h:720
void * word_file
Definition: aptex.h:121
@ increment_pool_size
Definition: aptex.h:180
static integer interrupt
Definition: aptex.h:329
static int help_ptr
Definition: aptex.h:326
@ increment_stack_size
Definition: aptex.h:185
static integer save_ptr
Definition: aptex.h:398
static eight_bits dvi_buf[dvi_buf_size+4]
Definition: aptex.h:533
static integer hyphen_prime
Definition: aptex.h:648
@ increment_save_size
Definition: aptex.h:182
@ save_size
Definition: aptex.h:182
static scaled cur_h
Definition: aptex.h:543
static scaled page_so_far[8]
Definition: aptex.h:689
static uint32_t current_save_size
Definition: aptex.h:182
#define n
Definition: t4ht.c:1290
static struct error_info cur_input
Definition: compile.c:112
#define b
Definition: jpegint.h:372
int w
Definition: dviconv.c:26
int h
Definition: dviconv.c:9
#define fflush
Definition: xxstdio.h:24
#define fgetc
Definition: xxstdio.h:26
double real
Definition: dvips.h:66
unsigned short halfword
Definition: dvips.h:68
FILE * dvi_file
Definition: dviinfo.c:67
unsigned char * pointer
Definition: fontmisc.h:33
static void
Definition: fpif.c:118
StrNumber_T str_ptr
Definition: stringpool.c:63
PoolPointer_T pool_ptr
ASCIICode_T * str_pool
PoolPointer_T * str_start
mpz_t * f
Definition: gen-fib.c:34
#define s
Definition: afcover.h:80
#define inf
Definition: globals.h:40
#define c(n)
Definition: gpos-common.c:150
#define a(n)
Definition: gpos-common.c:148
#define d(n)
Definition: gpos-common.c:151
#define NULL
Definition: ftobjs.h:61
small capitals from c petite p
Definition: afcover.h:72
small capitals from c petite p scientific i
Definition: afcover.h:80
kerning y
Definition: ttdriver.c:212
#define history
Definition: util.h:90
int dvi_v
Definition: dvi.c:6
int dvi_h
Definition: dvi.c:5
static FILE * tfm_file
Definition: tfm.c:41
const char * const_string
Definition: simpletypes.h:59
#define link
Definition: win32lib.h:82
#define fprintf
Definition: mendex.h:64
#define decr(x)
Definition: cpascal.h:91
#define incr(x)
Definition: cpascal.h:92
#define stack_size
Definition: ctangleboot.c:103
static char output_file_name[10000+1]
Definition: ctangleboot.c:339
#define spotless
Definition: ctangleboot.c:72
static int cur_val
Definition: ctangleboot.c:325
uint8_t eight_bits
Definition: ctangleboot.c:165
Code related to b fwrite(a, sizeof(char), b, stdout) @d C_printf(c
void debug_help(void)
#define cmd(arg)
Definition: mitsu.h:44
static double const pi
Definition: clipper.cpp:53
float x
Definition: cordic.py:15
int k
Definition: otp-parser.c:70
int integer
Definition: pbmtopk.c:38
char quarterword
Definition: pbmtopk.c:39
static int size
Definition: ppmlabel.c:24
#define dir
ShellFileEnvironment e
Definition: sh6.c:388
Definition: t1part.c:78
Definition: sh.h:1226
Definition: dvips.h:235
Definition: strexpr.c:21
int j
Definition: t4ht.c:1589
s1
Definition: t4ht.c:1059
static char job_name[255]
Definition: t4ht.c:484
char * s2
Definition: t4ht.c:1062
char fmt[256]
Definition: tex4ht.c:3925
val
Definition: tex4ht.c:3227
m
Definition: tex4ht.c:3990
static FILE * log_file
Definition: tex4ht.c:1100
op
Definition: tex4ht.c:3129
#define fbyte
Definition: tfmofm.c:487
#define microseconds
Definition: utmscale.cpp:17
#define va_start(pvar)
Definition: varargs.h:30
#define va_arg(pvar, type)
Definition: varargs.h:35
#define va_end(pvar)
Definition: varargs.h:38
char * va_list
Definition: varargs.h:22
long long scaled
Definition: vf_ng.c:93
#define pool_size(i)
Definition: gc.c:685