summaryrefslogtreecommitdiff
path: root/source/luametatex/source/tex/texprinting.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/luametatex/source/tex/texprinting.h')
-rw-r--r--source/luametatex/source/tex/texprinting.h99
1 files changed, 41 insertions, 58 deletions
diff --git a/source/luametatex/source/tex/texprinting.h b/source/luametatex/source/tex/texprinting.h
index 61b7e45a2..b323b1ae5 100644
--- a/source/luametatex/source/tex/texprinting.h
+++ b/source/luametatex/source/tex/texprinting.h
@@ -50,64 +50,47 @@ typedef enum spec_units {
*/
-extern void tex_print_ln (void); /* always forces a newline */
-extern void tex_print_char (int s);
-extern void tex_print_tex_str (int s);
-extern void tex_print_tex_str_esc (strnumber s);
-extern void tex_print_nlp (void); /* flushes a line if we're doing one */
-extern void tex_print_banner (void);
-extern void tex_print_log_banner (void);
-extern void tex_print_version_banner (void);
-////// void tex_print_digits (const unsigned char *digits, int k);
-extern void tex_print_int (int n);
-extern void tex_print_hex (int n);
-extern void tex_print_uhex (int n);
-extern void tex_print_qhex (int n);
-extern void tex_print_roman_int (int n);
-extern void tex_print_current_string (void);
-extern void tex_print_cs_checked (halfword p); /*tex Also does the |IMPOSSIBLE| etc. */
-extern void tex_print_cs (halfword p); /*tex Only does the undefined case. */
-extern void tex_print_cs_name (halfword p); /*tex Only prints known ones. */
-extern void tex_print_str (const char *s);
-extern void tex_print_str_esc (const char *s);
-extern void tex_print_dimension (scaled d, int unit); /*tex prints a dimension with pt */
-extern void tex_print_sparse_dimension (scaled d, int unit); /*tex prints a dimension with pt */
-extern void tex_print_unit (int unit); /*tex prints a glue component */
-extern void tex_print_glue (scaled d, int order, int unit); /*tex prints a glue component */
-extern void tex_print_spec (int p, int unit); /*tex prints a glue specification */
-extern void tex_print_fontspec (int p);
-extern void tex_print_mathspec (int p);
-extern void tex_print_font_identifier (halfword f);
-extern void tex_print_font_specifier (halfword e); /*tex this is an eq table entry */
-extern void tex_print_font (halfword f);
-extern void tex_print_char_identifier (halfword c);
-extern void tex_print_token_list (const char *s, halfword p); /*tex prints token list data in braces */
-extern void tex_print_rule_dimen (scaled d); /*tex prints dimension in rule node */
-extern void tex_print_group (int e);
-extern void tex_print_format (const char *format, ...); /*tex similar to the one we use for errors */
-extern void tex_begin_diagnostic (void);
-extern void tex_print_levels (void);
-extern void tex_end_diagnostic (void);
-extern void tex_show_box (halfword p);
-extern void tex_short_display (halfword p); /*tex prints highlights of list |p| */
-
-extern void tex_print_message (const char *s);
-
-
-/*
-# define single_letter(A) \
- ((str_length(A)==1)|| \
- ((str_length(A)==4)&&*(str_string(A))>=0xF0)|| \
- ((str_length(A)==3)&&*(str_string(A))>=0xE0)|| \
- ((str_length(A)==2)&&*(str_string(A))>=0xC0))
-
-# define is_active_cs(a) \
- (a && str_length(a)>3 && \
- ( *str_string(a) == 0xEF) && \
- (*(str_string(a)+1) == 0xBF) && \
- (*(str_string(a)+2) == 0xBF))
-
-*/
+extern void tex_print_ln (void); /* always forces a newline */
+extern void tex_print_char (int s);
+extern void tex_print_tex_str (int s);
+extern void tex_print_tex_str_esc (strnumber s);
+extern void tex_print_nlp (void); /* flushes a line if we're doing one */
+extern void tex_print_banner (void);
+extern void tex_print_log_banner (void);
+extern void tex_print_version_banner (void);
+extern void tex_print_int (int n);
+extern void tex_print_hex (int n);
+extern void tex_print_uhex (int n);
+extern void tex_print_qhex (int n);
+extern void tex_print_roman_int (int n);
+extern void tex_print_current_string (void);
+extern void tex_print_cs_checked (halfword p); /*tex Also does the |IMPOSSIBLE| etc. */
+extern void tex_print_cs (halfword p); /*tex Only does the undefined case. */
+extern void tex_print_cs_name (halfword p); /*tex Only prints known ones. */
+extern void tex_print_str (const char *s);
+extern void tex_print_str_esc (const char *s);
+extern void tex_print_dimension (scaled d, int unit); /*tex prints a dimension with pt */
+extern void tex_print_sparse_dimension (scaled d, int unit); /*tex prints a dimension with pt */
+extern void tex_print_unit (int unit); /*tex prints a glue component */
+extern void tex_print_glue (scaled d, int order, int unit); /*tex prints a glue component */
+extern void tex_print_spec (int p, int unit); /*tex prints a glue specification */
+extern void tex_print_fontspec (int p);
+extern void tex_print_mathspec (int p);
+extern void tex_print_font_identifier (halfword f);
+extern void tex_print_font_specifier (halfword e); /*tex this is an eq table entry */
+extern void tex_print_font (halfword f);
+extern void tex_print_char_identifier (halfword c);
+extern void tex_print_token_list (const char *s, halfword p); /*tex prints token list data in braces */
+extern void tex_print_rule_dimen (scaled d); /*tex prints dimension in rule node */
+extern void tex_print_group (int e);
+extern void tex_print_format (const char *format, ...); /*tex similar to the one we use for errors */
+extern const char *tex_print_format_args (const char *format, va_list args);
+extern void tex_begin_diagnostic (void);
+extern void tex_print_levels (void);
+extern void tex_end_diagnostic (void);
+extern void tex_show_box (halfword p);
+extern void tex_short_display (halfword p); /*tex prints highlights of list |p| */
+extern void tex_print_message (const char *s);
inline static int tex_single_letter(strnumber s)
{