summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tex/printing.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tex/printing.h')
-rw-r--r--Build/source/texk/web2c/luatexdir/tex/printing.h77
1 files changed, 41 insertions, 36 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tex/printing.h b/Build/source/texk/web2c/luatexdir/tex/printing.h
index 04109cdf8a4..838e87e5bde 100644
--- a/Build/source/texk/web2c/luatexdir/tex/printing.h
+++ b/Build/source/texk/web2c/luatexdir/tex/printing.h
@@ -1,5 +1,5 @@
/* printing.h
-
+
Copyright 2009 Taco Hoekwater <taco@luatex.org>
This file is part of LuaTeX.
@@ -17,22 +17,29 @@
You should have received a copy of the GNU General Public License along
with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */
-
#ifndef PRINTING_H
# define PRINTING_H
+#define last_file_selector 127 /* was 15 */
+
+/*
+ Nicer will be to start these with 0 and then use an offset for the write
+ registers internally.
+*/
+
typedef enum {
- no_print = 16, /* |selector| setting that makes data disappear */
- term_only = 17, /* printing is destined for the terminal only */
- log_only = 18, /* printing is destined for the transcript file only */
- term_and_log = 19, /* normal |selector| setting */
- pseudo = 20, /* special |selector| setting for |show_context| */
- new_string = 21, /* printing is deflected to the string pool */
+ no_print = last_file_selector + 1, /* 16 */ /* |selector| setting that makes data disappear */
+ term_only = last_file_selector + 2, /* 17 */ /* printing is destined for the terminal only */
+ log_only = last_file_selector + 3, /* 18 */ /* printing is destined for the transcript file only */
+ term_and_log = last_file_selector + 4, /* 19 */ /* normal |selector| setting */
+ pseudo = last_file_selector + 5, /* 20 */ /* special |selector| setting for |show_context| */
+ new_string = last_file_selector + 6, /* 21 */ /* printing is deflected to the string pool */
} selector_settings;
+extern int new_string_line;
+
# define ssup_error_line 255
-# define max_selector new_string
- /* highest selector setting */
+# define max_selector new_string /* highest selector setting */
extern alpha_file log_file;
extern int selector;
@@ -46,11 +53,11 @@ extern int first_count;
extern boolean inhibit_par_tokens;
/*
-Macro abbreviations for output to the terminal and to the log file are
-defined here for convenience. Some systems need special conventions
-for terminal output, and it is possible to adhere to those conventions
-by changing |wterm|, |wterm_ln|, and |wterm_cr| in this section.
-@^system dependencies@>
+ Macro abbreviations for output to the terminal and to the log file are
+ defined here for convenience. Some systems need special conventions
+ for terminal output, and it is possible to adhere to those conventions
+ by changing |wterm|, |wterm_ln|, and |wterm_cr| in this section.
+ @^system dependencies@>
*/
# define wterm_cr() fprintf(term_out,"\n")
@@ -83,34 +90,33 @@ extern void tprint_esc(const char *s);
extern void prompt_input(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)|| \
+# 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))
-
+# define is_active_cs(a) \
+ (a && str_length(a)>3 && \
+ ( *str_string(a) == 0xEF) && \
+ (*(str_string(a)+1) == 0xBF) && \
+ (*(str_string(a)+2) == 0xBF))
# define active_cs_value(A) pool_to_unichar((str_string((A))+3))
-extern void print_glue(scaled d, int order, const char *s); /* prints a glue component */
-extern void print_spec(int p, const char *s); /* prints a glue specification */
+extern void print_glue(scaled d, int order, const char *s); /* prints a glue component */
+extern void print_spec(int p, const char *s); /* prints a glue specification */
-extern int font_in_short_display; /* an internal font number */
+extern int font_in_short_display; /* an internal font number */
extern void print_font_identifier(internal_font_number f);
-extern void short_display(int p); /* prints highlights of list |p| */
-extern void print_font_and_char(int p); /* prints |char_node| data */
-extern void print_mark(int p); /* prints token list data in braces */
-extern void print_rule_dimen(scaled d); /* prints dimension in rule node */
-extern int depth_threshold; /* maximum nesting depth in box displays */
-extern int breadth_max; /* maximum number of items shown at the same list level */
+extern void short_display(int p); /* prints highlights of list |p| */
+extern void print_font_and_char(int p); /* prints |char_node| data */
+extern void print_mark(int p); /* prints token list data in braces */
+extern void print_rule_dimen(scaled d); /* prints dimension in rule node */
+extern int depth_threshold; /* maximum nesting depth in box displays */
+extern int breadth_max; /* maximum number of items shown at the same list level */
extern void show_box(halfword p);
-extern void short_display_n(int p, int m); /* prints highlights of list |p| */
+extern void short_display_n(int p, int m); /* prints highlights of list |p| */
extern void print_csnames(int hstart, int hfinish);
extern void print_file_line(void);
@@ -119,5 +125,4 @@ extern void begin_diagnostic(void);
extern void end_diagnostic(boolean blank_line);
extern int global_old_setting;
-
#endif