Debian Codegraph @

texk/web2c/luatexdir/tex/texnodes.h

raw
1 /* texnodes.h
2
3 Copyright 2006-2008 Taco Hoekwater <[email protected]>
4
5 This file is part of LuaTeX.
6
7 LuaTeX is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2 of the License, or (at your
10 option) any later version.
11
12 LuaTeX is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
15 License for more details.
16
17 You should have received a copy of the GNU General Public License along
18 with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */
19
20
21 #include <stdarg.h>
22
23 #ifndef __NODES_H__
24 # define __NODES_H__
25
26 # define varmemcast(a) (memory_word *)(a)
27
28 extern memory_word *volatile varmem;
29 extern halfword var_mem_max;
30
31 extern halfword get_node(int s);
32 extern void free_node(halfword p, int s);
33 extern void init_node_mem(int s);
34 extern void dump_node_mem(void);
35 extern void undump_node_mem(void);
36
37 # define max_halfword 0x3FFFFFFF
38 # define max_dimen 0x3FFFFFFF
39 # ifndef null
40 # define null 0
41 # endif
42 # define null_flag -0x40000000
43 # define zero_glue 0
44 # define normal 0
45
46 # define vinfo(a) varmem[(a)].hh.v.LH
47 # define vlink(a) varmem[(a)].hh.v.RH
48 # define type(a) varmem[(a)].hh.u.B0
49 # define subtype(a) varmem[(a)].hh.u.B1
50 # define node_attr(a) vinfo((a)+1)
51 # define alink(a) vlink((a)+1)
52
53 # define node_size(a) varmem[(a)].hh.v.LH
54
55 # define rlink(a) vlink((a)+1) /* aka alink() */
56 # define tlink(a) vinfo((a)+1) /* overlaps with node_attr() */
57
58 /* really special head node pointers that only need links */
59
60 # define temp_node_size 2
61
62 /* attribute lists */
63
64 # define UNUSED_ATTRIBUTE -0x7FFFFFFF /* as low as it goes */
65
66 /* it is convenient to have attribute list nodes and attribute node
67 * be the same size
68 */
69
70 # define attribute_node_size 2
71 # define cache_disabled max_halfword
72
73 # define attr_list_ref(a) vinfo((a)+1) /* the reference count */
74 # define attribute_id(a) vinfo((a)+1)
75 # define attribute_value(a) vlink((a)+1)
76
77 # define assign_attribute_ref(n,p) do { \
78 node_attr(n) = p;attr_list_ref(p)++; \
79 } while (0)
80
81 # define add_node_attr_ref(a) do { \
82 if (a!=null) attr_list_ref((a))++; \
83 } while (0)
84
85 # define replace_attribute_list(a,b) do { \
86 delete_attribute_ref(node_attr(a)); \
87 node_attr(a)=b; \
88 } while (0)
89
90 extern void update_attribute_cache(void);
91 extern halfword copy_attribute_list(halfword n);
92 extern halfword do_set_attribute(halfword p, int i, int val);
93
94 # define width_offset 2
95 # define depth_offset 3
96 # define height_offset 4
97 # define list_offset 6
98
99 typedef enum {
100 user_skip_glue,
101 line_skip_glue,
102 baseline_skip_glue,
103 par_skip_glue,
104 above_display_skip_glue,
105 below_display_skip_glue,
106 above_display_short_skip_glue,
107 below_display_short_skip_glue,
108 left_skip_glue,
109 right_skip_glue,
110 top_skip_glue,
111 split_top_skip_glue,
112 tab_skip_glue,
113 space_skip_glue,
114 xspace_skip_glue,
115 par_fill_skip_glue,
116 math_skip_glue,
117 thin_mu_skip_glue,
118 med_mu_skip_glue,
119 thick_mu_skip_glue,
120 /* math */
121 cond_math_glue = 98, /* special |subtype| to suppress glue in the next node */
122 mu_glue, /* |subtype| for math glue */
123 /* leaders */
124 a_leaders, /* |subtype| for aligned leaders */
125 c_leaders, /* |subtype| for centered leaders */
126 x_leaders, /* |subtype| for expanded leaders */
127 g_leaders /* |subtype| for global (page) leaders */
128 } glue_subtypes;
129
130 /* normal nodes */
131
132 # define inf_bad 10000 /* infinitely bad value */
133 # define inf_penalty inf_bad /* ``infinite'' penalty value */
134 # define eject_penalty -(inf_penalty) /* ``negatively infinite'' penalty value */
135
136 # define penalty_node_size 3
137 # define penalty(a) vlink((a)+2)
138
139 typedef enum {
140 user_penalty,
141 linebreak_penalty, /* includes widow, club, broken ect */
142 line_penalty,
143 word_penalty,
144 final_penalty,
145 noad_penalty,
146 before_display_penalty,
147 after_display_penalty,
148 equation_number_penalty,
149 } penalty_subtypes ;
150
151 /*
152 # define glue_node_size 4
153 # define glue_ptr(a) vinfo((a)+2)
154 # define leader_ptr(a) vlink((a)+2)
155 # define synctex_tag_glue(a) vinfo((a)+3)
156 # define synctex_line_glue(a) vlink((a)+3)
157 */
158
159 # define glue_node_size 7
160 # define glue_spec_size 5
161 /* define width(a) vinfo((a)+2) */
162 /* define leader_ptr(a) vlink((a)+2) */
163 # define shrink(a) vinfo((a)+3)
164 # define stretch(a) vlink((a)+3)
165 # define stretch_order(a) vinfo((a)+4)
166 # define shrink_order(a) vlink((a)+4)
167 # define leader_ptr(a) vlink((a)+5) /* should be in vlink((a)+2) but fails */
168 # define synctex_tag_glue(a) vinfo((a)+6)
169 # define synctex_line_glue(a) vlink((a)+6)
170
171 #define glue_is_zero(p) \
172 ((p == null) || (width(p) == 0 && stretch(p) == 0 && shrink(p) == 0))
173
174 #define glue_is_positive(p) \
175 ((p == null) || (width(p) > 0))
176
177 #define reset_glue_to_zero(p) \
178 if (p != null) { \
179 width(p) = 0; \
180 stretch(p) = 0; \
181 shrink(p) = 0; \
182 stretch_order(p) = 0; \
183 shrink_order(p) = 0; \
184 }
185
186 #define copy_glue_values(p,q) \
187 if (q == null) { \
188 width(p) = 0; \
189 stretch(p) = 0; \
190 shrink(p) = 0; \
191 stretch_order(p) = 0; \
192 shrink_order(p) = 0; \
193 } else { \
194 width(p) = width(q); \
195 stretch(p) = stretch(q); \
196 shrink(p) = shrink(q); \
197 stretch_order(p) = stretch_order(q); \
198 shrink_order(p) = shrink_order(q); \
199 }
200
201
202 /*
203 disc nodes could eventually be smaller, because the indirect
204 pointers are not really needed (8 instead of 10).
205 */
206
207 typedef enum {
208 discretionary_disc = 0,
209 explicit_disc,
210 automatic_disc,
211 syllable_disc,
212 init_disc, /* first of a duo of syllable_discs */
213 select_disc, /* second of a duo of syllable_discs */
214 } discretionary_subtypes;
215
216 # define disc_node_size 11
217 # define pre_break_head(a) ((a)+5)
218 # define post_break_head(a) ((a)+7)
219 # define no_break_head(a) ((a)+9)
220
221 # define disc_penalty(a) vlink((a)+2)
222 # define pre_break(a) vinfo((a)+3)
223 # define post_break(a) vlink((a)+3)
224 # define no_break(a) vlink((a)+4) /* we have vinfo((a)+4) for later usage */
225
226 # define vlink_pre_break(a) vlink(pre_break_head(a))
227 # define vlink_post_break(a) vlink(post_break_head(a))
228 # define vlink_no_break(a) vlink(no_break_head(a))
229
230 # define tlink_pre_break(a) tlink(pre_break_head(a))
231 # define tlink_post_break(a) tlink(post_break_head(a))
232 # define tlink_no_break(a) tlink(no_break_head(a))
233
234 typedef enum {
235 font_kern = 0,
236 explicit_kern, /* |subtype| of kern nodes from \.{\\kern} and \.{\\/} */
237 accent_kern, /* |subtype| of kern nodes from accents */
238 italic_kern,
239 } kern_subtypes;
240
241 # define kern_node_size 5
242 # define ex_kern(a) vinfo((a)+3) /* expansion factor (hz) */
243 # define synctex_tag_kern(a) vinfo((a)+4)
244 # define synctex_line_kern(a) vlink((a)+4)
245
246 # define box_node_size 9
247
248 /* todo, make an enum of this */
249
250 typedef enum {
251 unknown_list = 0,
252 line_list = 1, /* paragraph lines */
253 hbox_list = 2, /* \.{\\hbox} */
254 indent_list = 3, /* indentation box */
255 align_row_list = 4, /* row from a \.{\\halign} or \.{\\valign} */
256 align_cell_list = 5, /* cell from a \.{\\halign} or \.{\\valign} */
257 equation_list = 6, /* display equation */
258 equation_number_list = 7, /* display equation number */
259 math_list_list = 8,
260 math_char_list = 9,
261 math_h_extensible_list = 10,
262 math_v_extensible_list = 11,
263 math_h_delimiter_list = 12,
264 math_v_delimiter_list = 13,
265 math_over_delimiter_list = 14,
266 math_under_delimiter_list = 15,
267 math_numerator_list = 16,
268 math_denominator_list = 17,
269 math_limits_list = 18,
270 math_fraction_list = 19,
271 math_nucleus_list = 20,
272 math_sup_list = 21,
273 math_sub_list = 22,
274 math_degree_list = 23,
275 math_scripts_list = 24,
276 math_over_list = 25,
277 math_under_list = 26,
278 math_accent_list = 27,
279 math_radical_list = 28,
280 } list_subtypes ;
281
282 # define width(a) varmem[(a)+2].cint
283 # define depth(a) varmem[(a)+3].cint
284 # define height(a) varmem[(a)+4].cint
285 # define shift_amount(a) vlink((a)+5)
286 # define box_dir(a) vinfo((a)+5)
287 # define list_ptr(a) vlink((a)+6)
288 # define glue_order(a) subtype((a)+6)
289 # define glue_sign(a) type((a)+6)
290 # define glue_set(a) varmem[(a)+7].gr
291 # define synctex_tag_box(a) vinfo((a)+8)
292 # define synctex_line_box(a) vlink((a)+8)
293
294 /* unset nodes */
295
296 # define glue_stretch(a) varmem[(a)+7].cint
297 # define glue_shrink shift_amount
298 # define span_count subtype
299
300 typedef enum {
301 normal_rule = 0,
302 box_rule,
303 image_rule,
304 empty_rule,
305 user_rule,
306 math_over_rule,
307 math_under_rule,
308 math_fraction_rule,
309 math_radical_rule,
310 outline_rule,
311 } rule_subtypes;
312
313 # define rule_node_size 9
314 # define rule_dir(a) vlink((a)+5)
315 # define rule_index(a) vinfo((a)+6)
316 # define rule_transform(a) vlink((a)+6)
317 # define rule_left(a) vinfo((a)+7)
318 # define rule_right(a) vlink((a)+7)
319 # define synctex_tag_rule(a) vinfo((a)+8)
320 # define synctex_line_rule(a) vlink((a)+8)
321
322 # define rule_math_size rule_index
323 # define rule_math_font rule_transform
324
325 # define mark_node_size 3
326 # define mark_ptr(a) vlink((a)+2)
327 # define mark_class(a) vinfo((a)+2)
328
329 # define adjust_node_size 3
330 # define adjust_pre subtype
331 # define adjust_ptr(a) vlink(a+2)
332
333 # define glyph_node_size 7
334 # define character(a) vinfo((a)+2)
335 # define font(a) vlink((a)+2)
336 # define lang_data(a) vinfo((a)+3)
337 # define lig_ptr(a) vlink((a)+3)
338 # define x_displace(a) vinfo((a)+4)
339 # define y_displace(a) vlink((a)+4)
340 # define ex_glyph(a) vinfo((a)+5) /* expansion factor (hz) */
341 # define glyph_node_data(a) vlink((a)+5)
342 # define synctex_tag_glyph(a) vinfo((a)+6)
343 # define synctex_line_glyph(a) vlink((a)+6)
344
345 # define is_char_node(a) (a!=null && type(a)==glyph_node)
346
347 # define char_lang(a) ((const int)(signed short)(((signed int)((unsigned)lang_data(a)&0x7FFF0000)<<1)>>17))
348 # define char_lhmin(a) ((const int)(((unsigned)lang_data(a) & 0x0000FF00)>>8))
349 # define char_rhmin(a) ((const int)(((unsigned)lang_data(a) & 0x000000FF)))
350 # define char_uchyph(a) ((const int)(((unsigned)lang_data(a) & 0x80000000)>>31))
351
352 # define protect_glyph_node(n) subtype(n) = ((quarterword) subtype(n) | 0xFF00)
353 # define unprotect_glyph_node(n) subtype(n) = ((quarterword) subtype(n) & 0x00FF)
354 # define is_protected_glyph_node(n) ((quarterword) subtype(n) & 0xFF00)
355
356 # define make_lang_data(a,b,c,d) (a>0 ? (1<<31): 0)+ \
357 (b<<16)+ (((c>0 && c<256) ? c : 255)<<8)+(((d>0 && d<256) ? d : 255))
358
359 # define init_lang_data(a) lang_data(a)=256+1
360
361 # define set_char_lang(a,b) lang_data(a)=make_lang_data(char_uchyph(a),b,char_lhmin(a),char_rhmin(a))
362 # define set_char_lhmin(a,b) lang_data(a)=make_lang_data(char_uchyph(a),char_lang(a),b,char_rhmin(a))
363 # define set_char_rhmin(a,b) lang_data(a)=make_lang_data(char_uchyph(a),char_lang(a),char_lhmin(a),b)
364 # define set_char_uchyph(a,b) lang_data(a)=make_lang_data(b,char_lang(a),char_lhmin(a),char_rhmin(a))
365
366 # define margin_kern_node_size 4
367 # define margin_char(a) vlink((a)+3)
368
369 /*@# {|subtype| of marginal kerns}*/
370
371 typedef enum {
372 left_side = 0,
373 right_side
374 } margin_kern_subtypes ;
375
376 typedef enum {
377 before = 0,
378 after
379 } math_subtypes ;
380
381 # define math_node_size 7
382 /* define width(a) vinfo((a)+2) */
383 /* overlaps width */
384 /* define shrink(a) vinfo((a)+3) */
385 /* define stretch(a) vlink((a)+3) */
386 /* define stretch_order(a) vinfo((a)+4) */
387 /* define shrink_order(a) vlink((a)+4) */
388 /* leader_ptr slot */
389 # define surround(a) vinfo((a)+5)
390 # define synctex_tag_math(a) vinfo((a)+6)
391 # define synctex_line_math(a) vlink((a)+6)
392
393 # define ins_node_size 6
394 # define float_cost(a) varmem[(a)+2].cint
395 # define ins_ptr(a) vinfo((a)+5)
396 # define split_top_ptr(a) vlink((a)+5)
397
398 # define page_ins_node_size 5
399
400 /* height = 4 */
401
402 typedef enum {
403 hlist_node = 0,
404 vlist_node,
405 rule_node,
406 ins_node,
407 mark_node,
408 adjust_node,
409 boundary_node,
410 disc_node,
411 whatsit_node,
412 #define last_preceding_break_node whatsit_node
413 local_par_node,
414 dir_node,
415 #define last_non_discardable_node dir_node
416 math_node,
417 glue_node,
418 kern_node,
419 penalty_node,
420 unset_node,
421 style_node,
422 choice_node,
423 simple_noad,
424 radical_noad,
425 fraction_noad,
426 accent_noad,
427 fence_noad,
428 math_char_node, /* kernel fields */
429 sub_box_node,
430 sub_mlist_node,
431 math_text_char_node,
432 delim_node, /* shield fields */
433 margin_kern_node,
434 glyph_node, /* this and below have attributes */
435 align_record_node,
436 pseudo_file_node,
437 pseudo_line_node,
438 inserting_node,
439 split_up_node,
440 expr_node,
441 nesting_node,
442 span_node,
443 attribute_node,
444 glue_spec_node,
445 attribute_list_node,
446 temp_node,
447 align_stack_node,
448 movement_node,
449 if_node,
450 unhyphenated_node,
451 hyphenated_node,
452 delta_node,
453 passive_node,
454 shape_node,
455 } node_types;
456
457 # define MAX_NODE_TYPE shape_node /* 60 */
458
459 /*
460 TH: these two defines still need checking. The node ordering in luatex is not
461 quite the same as in tex82, HH: but it's probably ok
462 */
463
464 /*
465
466 # define precedes_break(a) \
467 # (type(a)<math_node && \
468 # (type(a)!=whatsit_node || (subtype(a)!=dir_node && subtype(a)!=local_par_node)))
469
470 */
471
472 /*
473 # define precedes_break(a) (type(a)<math_node)
474 # define non_discardable(a) (type(a)<math_node || type(a) == dir_node || type(a) == local_par_node)
475 */
476
477 # define precedes_break(a) (type(a)<=last_preceding_break_node)
478 # define precedes_kern(a) ((type(a) == kern_node) && (subtype(a) == font_kern || subtype(a) == accent_kern))
479 # define precedes_dir(a) ((type(a) == dir_node) && (break_after_dir_mode_par == 1))
480 # define non_discardable(a) (type(a)<=last_non_discardable_node)
481
482 # define known_node_type(i) ( i >= 0 && i <= MAX_NODE_TYPE)
483
484 # define last_known_node temp_node /* used by \lastnodetype */
485
486 # define movement_node_size 3
487 # define if_node_size 2
488 # define align_stack_node_size 6
489 # define nesting_node_size 2
490
491 # define expr_node_size 3
492 # define expr_type(A) type((A)+1)
493 # define expr_state(A) subtype((A)+1) /* enum defined in scanning.w */
494 # define expr_e_field(A) vlink((A)+1) /* saved expression so far */
495 # define expr_t_field(A) vlink((A)+2) /* saved term so far */
496 # define expr_n_field(A) vinfo((A)+2) /* saved numerator */
497
498 # define span_node_size 3
499 # define span_span(a) vlink((a)+1)
500 # define span_link(a) vinfo((a)+1)
501
502 # define pseudo_file_node_size 2
503 # define pseudo_lines(a) vlink((a)+1)
504
505 # define nodetype_has_attributes(t) (((t)<=glyph_node) && ((t)!=unset_node))
506
507 # define nodetype_has_subtype(t) ((t)!=attribute_list_node && (t)!=attribute_node && (t)!=glue_spec_node)
508 # define nodetype_has_prev(t) nodetype_has_subtype((t))
509
510 /*
511 style and choice nodes; style nodes can be smaller, the information is encoded in
512 |subtype|, but choice nodes are on-the-spot converted to style nodes
513 */
514
515 # define style_node_size 4
516 # define display_mlist(a) vinfo((a)+2) /* mlist to be used in display style */
517 # define text_mlist(a) vlink((a)+2) /* mlist to be used in text style */
518 # define script_mlist(a) vinfo((a)+3) /* mlist to be used in script style */
519 # define script_script_mlist(a) vlink((a)+3) /* mlist to be used in scriptscript style */
520
521 /*
522 because noad types get changed when processing we need to make sure some if the node
523 sizes match and that we don't share slots with different properties
524
525 once it's sorted out we can go smaller and also adapt the flush etc code to it
526 */
527
528 /* regular noads */
529
530 # define noad_size 8
531 # define new_hlist(a) vlink((a)+2) /* the translation of an mlist */
532 # define nucleus(a) vinfo((a)+2) /* the |nucleus| field of a noad */
533 # define supscr(a) vlink((a)+3) /* the |supscr| field of a noad */
534 # define subscr(a) vinfo((a)+3) /* the |subscr| field of a noad */
535 # define noaditalic(a) vlink((a)+4)
536 # define noadwidth(a) vinfo((a)+4)
537 # define noadheight(a) vlink((a)+5)
538 # define noaddepth(a) vinfo((a)+5)
539 # define noadextra1(a) vlink((a)+6) /* we need to match delimiter (saves copy) */
540 # define noadoptions(a) vinfo((a)+6)
541 # define noadextra3(a) vlink((a)+7) /* see (!) below */
542 # define noadextra4(a) vinfo((a)+7) /* used to store samesize */
543
544 # define noad_fam(a) vlink((a)+6) /* noadextra1 */
545
546 typedef enum {
547 ord_noad_type = 0,
548 op_noad_type_normal,
549 op_noad_type_limits,
550 op_noad_type_no_limits,
551 bin_noad_type,
552 rel_noad_type,
553 open_noad_type,
554 close_noad_type,
555 punct_noad_type,
556 inner_noad_type,
557 under_noad_type,
558 over_noad_type,
559 vcenter_noad_type,
560 } noad_types;
561
562 /* accent noads */
563
564 # define accent_noad_size 8
565 # define top_accent_chr(a) vinfo((a)+6) /* the |top_accent_chr| field of an accent noad */
566 # define bot_accent_chr(a) vlink((a)+6) /* the |bot_accent_chr| field of an accent noad */
567 # define overlay_accent_chr(a) vinfo((a)+7) /* the |overlay_accent_chr| field of an accent noad */
568 # define accentfraction(a) vlink((a)+7)
569
570 typedef enum {
571 bothflexible_accent,
572 fixedtop_accent,
573 fixedbottom_accent,
574 fixedboth_accent,
575 } math_accent_subtypes ;
576
577 /* left and right noads */
578
579 # define fence_noad_size 8 /* needs to match noad size */
580 # define delimiteritalic(a) vlink((a)+4)
581 /* define delimiterwidth(a) vinfo((a)+4) */
582 # define delimiterheight(a) vlink((a)+5)
583 # define delimiterdepth(a) vinfo((a)+5)
584 # define delimiter(a) vlink((a)+6) /* |delimiter| field in left and right noads */
585 # define delimiteroptions(a) vinfo((a)+6)
586 # define delimiterclass(a) vlink((a)+7) /* (!) we could probably pack some more in 6 */
587 # define delimitersamesize(a) vinfo((a)+7) /* set by engine */
588
589 /* when dimensions then axis else noaxis */
590
591 typedef enum {
592 noad_option_set = 0x08,
593 noad_option_unused_1 = 0x00 + 0x08,
594 noad_option_unused_2 = 0x01 + 0x08,
595 noad_option_axis = 0x02 + 0x08,
596 noad_option_no_axis = 0x04 + 0x08,
597 noad_option_exact = 0x10 + 0x08,
598 noad_option_left = 0x11 + 0x08,
599 noad_option_middle = 0x12 + 0x08,
600 noad_option_right = 0x14 + 0x08,
601 noad_option_no_sub_script = 0x21 + 0x08,
602 noad_option_no_super_script = 0x22 + 0x08,
603 noad_option_no_script = 0x23 + 0x08,
604 noad_option_no_rule = 0x24 + 0x08,
605 } delimiter_options ;
606
607 # define delimiteroptionset(a) ((delimiteroptions(a) & noad_option_set ) == noad_option_set )
608 # define delimiteraxis(a) ((delimiteroptions(a) & noad_option_axis ) == noad_option_axis )
609 # define delimiternoaxis(a) ((delimiteroptions(a) & noad_option_no_axis) == noad_option_no_axis)
610 # define delimiterexact(a) ((delimiteroptions(a) & noad_option_exact ) == noad_option_exact )
611
612 # define noadoptionnosubscript(a) ( (type(a) == simple_noad) && ( \
613 ((delimiteroptions(a) & noad_option_no_sub_script ) == noad_option_no_sub_script) || \
614 ((delimiteroptions(a) & noad_option_no_script ) == noad_option_no_script ) ))
615 # define noadoptionnosupscript(a) ( (type(a) == simple_noad) && ( \
616 ((delimiteroptions(a) & noad_option_no_super_script) == noad_option_no_super_script) || \
617 ((delimiteroptions(a) & noad_option_no_script ) == noad_option_no_script ) ))
618
619 typedef enum {
620 noad_delimiter_mode_noshift = 0x01,
621 noad_delimiter_mode_italics = 0x02,
622 noad_delimiter_mode_ordinal = 0x04,
623 noad_delimiter_mode_samenos = 0x08,
624 noad_delimiter_mode_charnos = 0x10,
625 } delimiter_modes ;
626
627 # define delimitermodenoshift ((math_delimiters_mode_par & noad_delimiter_mode_noshift) == noad_delimiter_mode_noshift)
628 # define delimitermodeitalics ((math_delimiters_mode_par & noad_delimiter_mode_italics) == noad_delimiter_mode_italics)
629 # define delimitermodeordinal ((math_delimiters_mode_par & noad_delimiter_mode_ordinal) == noad_delimiter_mode_ordinal)
630 # define delimitermodesamenos ((math_delimiters_mode_par & noad_delimiter_mode_samenos) == noad_delimiter_mode_samenos)
631 # define delimitermodecharnos ((math_delimiters_mode_par & noad_delimiter_mode_charnos) == noad_delimiter_mode_charnos)
632
633 /* subtype of fence noads */
634
635 /*
636 # define left_noad_side 1
637 # define middle_noad_side 2
638 # define right_noad_side 3
639 # define no_noad_side 4
640 */
641
642 typedef enum {
643 unset_noad_side = 0,
644 left_noad_side = 1,
645 middle_noad_side = 2,
646 right_noad_side = 3,
647 no_noad_side = 4,
648 } fence_subtypes ;
649
650 /* fraction noads */
651
652 # define fraction_noad_size 8
653 # define thickness(a) vlink((a)+2) /* |thickness| field in a fraction noad */
654 # define numerator(a) vlink((a)+3) /* |numerator| field in a fraction noad */
655 # define denominator(a) vinfo((a)+3) /* |denominator| field in a fraction noad */
656 # define left_delimiter(a) vlink((a)+5) /* first delimiter field of a noad */
657 # define right_delimiter(a) vinfo((a)+5) /* second delimiter field of a fraction noad */
658 # define middle_delimiter(a) vlink((a)+6)
659 # define fractionoptions(a) vinfo((a)+6)
660 # define fraction_fam(a) vlink((a)+7)
661
662 # define fractionoptionset(a) ((fractionoptions(a) & noad_option_set ) == noad_option_set )
663 # define fractionexact(a) ((fractionoptions(a) & noad_option_exact ) == noad_option_exact )
664 # define fractionnoaxis(a) ((fractionoptions(a) & noad_option_no_axis) == noad_option_no_axis)
665 # define fractionnorule(a) ((fractionoptions(a) & noad_option_no_rule) == noad_option_no_rule)
666
667 /* radical noads */
668 /* this is like a fraction, but it only stores a |left_delimiter| */
669
670 # define radical_noad_size 7
671 # define radicalwidth(a) vinfo((a)+4)
672 # define degree(a) vlink((a)+6) /* the root degree in a radical noad */
673 # define radicaloptions(a) vinfo((a)+6)
674
675 # define radicaloptionset(a) ((radicaloptions(a) & noad_option_set ) == noad_option_set)
676 # define radicalexact(a) ((radicaloptions(a) & noad_option_exact ) == noad_option_exact)
677 # define radicalleft(a) ((radicaloptions(a) & noad_option_left ) == noad_option_left)
678 # define radicalmiddle(a) ((radicaloptions(a) & noad_option_middle) == noad_option_middle)
679 # define radicalright(a) ((radicaloptions(a) & noad_option_right ) == noad_option_right)
680
681 typedef enum {
682 radical_noad_type,
683 uradical_noad_type,
684 uroot_noad_type,
685 uunderdelimiter_noad_type,
686 uoverdelimiter_noad_type,
687 udelimiterunder_noad_type,
688 udelimiterover_noad_type,
689 } radical_subtypes;
690
691 /* accessors for the |nucleus|-style node fields */
692
693 # define math_kernel_node_size 3
694 # define math_fam(a) vinfo((a)+2)
695 # define math_character(a) vlink((a)+2)
696 # define math_list(a) vlink((a)+2)
697
698 /* accessors for the |delimiter|-style two-word subnode fields */
699
700 # define math_shield_node_size 4 /* not used yet */
701
702 # define small_fam(A) vinfo((A)+2) /* |fam| for ``small'' delimiter */
703 # define small_char(A) vlink((A)+2) /* |character| for ``small'' delimiter */
704 # define large_fam(A) vinfo((A)+3) /* |fam| for ``large'' delimiter */
705 # define large_char(A) vlink((A)+3) /* |character| for ``large'' delimiter */
706
707 /* we should have the codes in a separate enum: extension_codes */
708
709 /* be careful: must be in sync with whatsit_node_data[] ! (at least) */
710
711 typedef enum {
712 /* core */
713 open_node = 0,
714 write_node,
715 close_node,
716 special_node,
717 late_special_node, /* done a la pdftex, more natural is to use special with a flag instead */
718 use_box_resource_node,
719 use_image_resource_node,
720 save_pos_node,
721 late_lua_node,
722 user_defined_node,
723 /* dvi backend */
724 dvi_literal_node = 15,
725 /* pdf backend */
726 pdf_literal_node = 16,
727 pdf_late_literal_node, /* done a la pdftex, more natural is to use special with a flag instead */
728 pdf_refobj_node,
729 pdf_annot_node,
730 pdf_start_link_node,
731 pdf_end_link_node,
732 pdf_dest_node,
733 pdf_action_node,
734 pdf_thread_node,
735 pdf_start_thread_node,
736 pdf_end_thread_node,
737 pdf_thread_data_node,
738 pdf_link_data_node,
739 pdf_colorstack_node,
740 pdf_setmatrix_node,
741 pdf_save_node,
742 pdf_restore_node,
743 pdf_link_state_node,
744 } whatsit_types;
745
746 # define first_common_whatsit open_node
747 # define last_common_whatsit user_defined_node
748 # define backend_first_dvi_whatsit dvi_literal_node
749 # define backend_last_dvi_whatsit dvi_literal_node
750 # define backend_first_pdf_whatsit pdf_literal_node
751 # define backend_last_pdf_whatsit pdf_link_state_node /* Don't forget to adapt this when extending! */
752
753 /*
754 We add quite some slack for future usage because who knows how we need to be compatible with
755 other engines.
756 */
757
758 # define MAX_WHATSIT_TYPE 48
759
760 # define known_whatsit_type(i) ( \
761 (i >= first_common_whatsit && i <= last_common_whatsit) || \
762 (i >= backend_first_dvi_whatsit && i <= backend_last_dvi_whatsit) || \
763 (i >= backend_first_pdf_whatsit && i <= backend_last_pdf_whatsit) \
764 )
765
766 # define get_node_size(i,j) (i!=whatsit_node ? node_data[i].size : whatsit_node_data[j].size)
767 # define get_node_name(i,j) (i!=whatsit_node ? node_data[i].name : whatsit_node_data[j].name)
768 # define get_etex_code(i) (node_data[i].etex)
769
770 # define GLYPH_CHARACTER (1 << 0)
771 # define GLYPH_LIGATURE (1 << 1)
772 # define GLYPH_GHOST (1 << 2)
773 # define GLYPH_LEFT (1 << 3)
774 # define GLYPH_RIGHT (1 << 4)
775
776 typedef enum {
777 glyph_unset = 0,
778 glyph_character = GLYPH_CHARACTER,
779 glyph_ligature = GLYPH_LIGATURE,
780 glyph_ghost = GLYPH_GHOST,
781 glyph_left = GLYPH_LEFT,
782 glyph_right = GLYPH_RIGHT,
783 } glyph_subtypes;
784
785 # define is_character(p) ((subtype(p)) & GLYPH_CHARACTER)
786 # define is_ligature(p) ((subtype(p)) & GLYPH_LIGATURE )
787 # define is_ghost(p) ((subtype(p)) & GLYPH_GHOST )
788
789 # define is_simple_character(p) (is_character(p) && !is_ligature(p) && !is_ghost(p))
790
791 # define is_leftboundary(p) (is_ligature(p) && ((subtype(p)) & GLYPH_LEFT ))
792 # define is_rightboundary(p) (is_ligature(p) && ((subtype(p)) & GLYPH_RIGHT ))
793 # define is_leftghost(p) (is_ghost(p) && ((subtype(p)) & GLYPH_LEFT ))
794 # define is_rightghost(p) (is_ghost(p) && ((subtype(p)) & GLYPH_RIGHT ))
795
796
797 # define set_is_glyph(p) subtype(p) = (quarterword) (subtype(p) & ~GLYPH_CHARACTER)
798 # define set_is_character(p) subtype(p) = (quarterword) (subtype(p) | GLYPH_CHARACTER)
799 # define set_is_ligature(p) subtype(p) = (quarterword) (subtype(p) | GLYPH_LIGATURE)
800 # define set_is_ghost(p) subtype(p) = (quarterword) (subtype(p) |GLYPH_GHOST)
801
802 # define set_to_glyph(p) subtype(p) = (quarterword)(subtype(p) & 0xFF00)
803 # define set_to_character(p) subtype(p) = (quarterword)((subtype(p) & 0xFF00) | GLYPH_CHARACTER)
804 # define set_to_ligature(p) subtype(p) = (quarterword)((subtype(p) & 0xFF00) | GLYPH_LIGATURE)
805 # define set_to_ghost(p) subtype(p) = (quarterword)((subtype(p) & 0xFF00) | GLYPH_GHOST)
806
807 # define set_is_leftboundary(p) { set_to_ligature(p); subtype(p) |= GLYPH_LEFT; }
808 # define set_is_rightboundary(p) { set_to_ligature(p); subtype(p) |= GLYPH_RIGHT; }
809 # define set_is_leftghost(p) { set_to_ghost(p); subtype(p) |= GLYPH_LEFT; }
810 # define set_is_rightghost(p) { set_to_ghost(p); subtype(p) |= GLYPH_RIGHT; }
811
812 typedef enum {
813 cancel_boundary = 0,
814 user_boundary,
815 protrusion_boundary,
816 word_boundary,
817 } boundary_subtypes ;
818
819 # define boundary_node_size 3
820 # define boundary_value(a) vinfo((a)+2)
821
822 typedef enum {
823 normal_dir = 0,
824 cancel_dir,
825 } dir_subtypes ;
826
827 # define dir_node_size 5
828 # define dir_dir(a) vinfo((a)+2)
829 # define dir_level(a) vlink((a)+2)
830 # define dir_refpos_h(a) vinfo((a)+3)
831 # define dir_refpos_v(a) vlink((a)+3)
832 # define dir_cur_h(a) vinfo((a)+4)
833 # define dir_cur_v(a) vlink((a)+4)
834
835 # define write_node_size 3
836 # define literal_node_size 3
837 # define special_node_size 3
838 # define close_node_size 3
839 # define write_tokens(a) vlink(a+2)
840 # define write_stream(a) vinfo(a+2)
841
842 # define special_tokens write_tokens
843
844 # define open_node_size 4
845 # define open_name(a) vlink((a)+2)
846 # define open_area(a) vinfo((a)+3)
847 # define open_ext(a) vlink((a)+3)
848
849 # define late_lua_node_size 4
850 # define late_lua_data(a) vlink((a)+2)
851 # define late_lua_reg(a) vinfo((a)+2)
852 # define late_lua_name(a) vlink((a)+3)
853 # define late_lua_type(a) subtype((a)+3)
854
855 # define save_pos_node_size 3
856
857 # define local_par_size 6
858
859 # define local_pen_inter(a) vinfo((a)+2)
860 # define local_pen_broken(a) vlink((a)+2)
861 # define local_box_left(a) vlink((a)+3)
862 # define local_box_left_width(a) vinfo((a)+3)
863 # define local_box_right(a) vlink((a)+4)
864 # define local_box_right_width(a) vinfo((a)+4)
865 # define local_par_dir(a) vinfo((a)+5)
866
867 /* type of literal data */
868
869 # define lua_refid_literal 1 /* not a |normal| string */
870 # define lua_refid_call 2 /* not a |normal| string */
871
872 /* begin of pdf backend nodes */
873
874 /* literal ctm types */
875
876 typedef enum {
877 set_origin = 0,
878 direct_page,
879 direct_always,
880 direct_raw,
881 direct_text,
882 direct_font,
883 scan_special,
884 } ctm_transform_modes;
885
886 # define pdf_refobj_node_size 3
887
888 # define pdf_obj_objnum(a) vinfo((a) + 2)
889
890 # define pdf_annot_node_size 9 /* all need the same size, rect margin related ! */
891 # define pdf_dest_node_size 9
892 # define pdf_thread_node_size 9
893
894 /*
895 when a whatsit node representing annotation is created, words |1..3| are
896 width, height and depth of this annotation; after shipping out words |1..4|
897 are rectangle specification of annotation. For whatsit node representing
898 destination |pdf_ann_left| and |pdf_ann_top| are used for some types of destinations
899 */
900
901 /*
902 coordinates of destinations/threads/annotations (in whatsit node)
903 */
904
905 # define pdf_ann_left(a) varmem[(a) + 2].cint
906 # define pdf_ann_top(a) varmem[(a) + 3].cint
907 # define pdf_ann_right(a) varmem[(a) + 4].cint
908 # define pdf_ann_bottom(a) varmem[(a) + 5].cint
909 # define pdf_ann_margin(a) varmem[(a) + 8].cint /* so all need to have the same size */
910
911 # define pdf_literal_data(a) vlink((a)+2)
912 # define pdf_literal_mode(a) type((a)+2)
913 # define pdf_literal_type(a) subtype((a)+2)
914
915 # define pdf_annot_data(a) vinfo((a) + 6)
916 # define pdf_link_attr(a) vinfo((a) + 6)
917 # define pdf_link_action(a) vlink((a) + 6)
918 # define pdf_annot_objnum(a) varmem[(a) + 7].cint
919 # define pdf_link_objnum(a) varmem[(a) + 7].cint
920
921 # define pdf_dest_type(a) type((a) + 6)
922 # define pdf_dest_named_id(a) subtype((a) + 6)
923 # define pdf_dest_id(a) vlink((a) + 6)
924 # define pdf_dest_xyz_zoom(a) vinfo((a) + 7)
925 # define pdf_dest_objnum(a) vlink((a) + 7)
926
927 # define pdf_thread_named_id(a) subtype((a) + 6)
928 # define pdf_thread_id(a) vlink((a) + 6)
929 # define pdf_thread_attr(a) vinfo((a) + 7)
930
931 # define pdf_end_link_node_size 3
932 # define pdf_end_thread_node_size 3
933
934 # define pdf_setmatrix_node_size 3
935 # define pdf_save_node_size 3
936 # define pdf_restore_node_size 3
937
938 # define pdf_link_state_node_size 3
939
940 # define pdf_link_state(a) vinfo((a) + 2)
941
942 # define pdf_colorstack_node_size 4
943 # define pdf_colorstack_stack(a) vlink((a)+2)
944 # define pdf_colorstack_cmd(a) vinfo((a)+2)
945 # define pdf_colorstack_data(a) vlink((a)+3)
946 # define pdf_setmatrix_data(a) vlink((a)+2)
947
948 typedef enum {
949 pdf_action_page = 0,
950 pdf_action_goto,
951 pdf_action_thread,
952 pdf_action_user
953 } pdf_action_type;
954
955 typedef enum {
956 pdf_window_notset,
957 pdf_window_new,
958 pdf_window_nonew,
959 } pdf_window_type;
960
961 # define pdf_action_size 6
962
963 # define pdf_action_type(a) vlink((a)+2) /* enum pdf_action_type */
964 # define pdf_action_named_id(a) vinfo((a)+2) /* bitset of two booleans */
965 # define pdf_action_id(a) vlink((a)+3) /* number or toks */
966 # define pdf_action_file(a) vinfo((a)+3) /* toks */
967 # define pdf_action_new_window(a) vlink((a)+4) /* enum pdf_window_type */
968 # define pdf_action_tokens(a) vinfo((a)+4) /* toks */
969 # define pdf_action_refcount(a) vlink((a)+5) /* number */
970 # define pdf_action_struct_id(a) vinfo((a)+5) /* number or toks */
971
972 typedef enum {
973 colorstack_set = 0,
974 colorstack_push,
975 colorstack_pop,
976 colorstack_current
977 } colorstack_commands;
978
979 # define colorstack_data colorstack_push /* last value where data field is set */
980
981 /* end of pdf backend nodes */
982
983 /* user defined nodes */
984
985 # define user_defined_node_size 4
986 # define user_node_type(a) vinfo((a)+2)
987 # define user_node_id(a) vlink((a)+2)
988 # define user_node_value(a) vinfo((a)+3)
989
990 /* node sused in the parbuilder */
991
992 # define active_node_size 4 /*number of words in extended active nodes */
993 # define fitness subtype /*|very_loose_fit..tight_fit| on final line for this break */
994 # define break_node(a) vlink((a)+1) /*pointer to the corresponding passive node */
995 # define line_number(a) vinfo((a)+1) /*line that begins at this breakpoint */
996 # define total_demerits(a) varmem[(a)+2].cint /* the quantity that \TeX\ minimizes */
997 # define active_short(a) vinfo(a+3) /* |shortfall| of this line */
998 # define active_glue(a) vlink(a+3) /*corresponding glue stretch or shrink */
999
1000 # define passive_node_size 7
1001 # define cur_break(a) vlink((a)+1) /*in passive node, points to position of this breakpoint */
1002 # define prev_break(a) vinfo((a)+1) /*points to passive node that should precede this one */
1003 # define passive_pen_inter(a) vinfo((a)+2)
1004 # define passive_pen_broken(a) vlink((a)+2)
1005 # define passive_left_box(a) vlink((a)+3)
1006 # define passive_left_box_width(a) vinfo((a)+3)
1007 # define passive_last_left_box(a) vlink((a)+4)
1008 # define passive_last_left_box_width(a) vinfo((a)+4)
1009 # define passive_right_box(a) vlink((a)+5)
1010 # define passive_right_box_width(a) vinfo((a)+5)
1011 # define serial(a) vlink((a)+6) /* serial number for symbolic identification */
1012
1013 # define delta_node_size 10 /* 8 fields, stored in a+1..9 */
1014
1015 /* helpers */
1016
1017 # define couple_nodes(a,b) {assert(b!=null);vlink(a)=b;alink(b)=a;}
1018 # define try_couple_nodes(a,b) if (b==null) vlink(a)=b; else {couple_nodes(a,b);}
1019 # define uncouple_node(a) {assert(a!=null);vlink(a)=null;alink(a)=null;}
1020
1021 # define cache_disabled max_halfword
1022
1023 extern void delete_attribute_ref(halfword b);
1024 extern void reset_node_properties(halfword b);
1025 extern void reassign_attribute(halfword n,halfword new);
1026 extern void build_attribute_list(halfword b);
1027 extern halfword current_attribute_list(void);
1028
1029 extern int unset_attribute(halfword n, int c, int w);
1030 extern void set_attribute(halfword n, int c, int w);
1031 extern int has_attribute(halfword n, int c, int w);
1032
1033 extern halfword new_span_node(halfword n, int c, scaled w);
1034
1035 extern void print_short_node_contents(halfword n);
1036 extern void show_node_list(int i);
1037 extern pointer actual_box_width(pointer r, scaled base_width);
1038
1039 typedef struct _subtype_info {
1040 int id;
1041 const char *name;
1042 int lua;
1043 } subtype_info;
1044
1045 typedef struct _field_info {
1046 const char *name;
1047 int lua;
1048 } field_info;
1049
1050 typedef struct _node_info {
1051 int id;
1052 int size;
1053 subtype_info *subtypes;
1054 field_info *fields;
1055 const char *name;
1056 int etex;
1057 int lua;
1058 } node_info;
1059
1060 extern node_info node_data[];
1061 extern node_info whatsit_node_data[];
1062
1063 extern subtype_info node_subtypes_dir[];
1064 extern subtype_info node_subtypes_glue[];
1065 extern subtype_info node_subtypes_mathglue[];
1066 extern subtype_info node_subtypes_leader[];
1067 extern subtype_info node_subtypes_boundary[];
1068 extern subtype_info node_subtypes_penalty[];
1069 extern subtype_info node_subtypes_kern[];
1070 extern subtype_info node_subtypes_rule[];
1071 extern subtype_info node_subtypes_glyph[];
1072 extern subtype_info node_subtypes_disc[];
1073 extern subtype_info node_subtypes_marginkern[];
1074 extern subtype_info node_subtypes_list[];
1075 extern subtype_info node_subtypes_adjust[];
1076 extern subtype_info node_subtypes_math[];
1077 extern subtype_info node_subtypes_noad[];
1078 extern subtype_info node_subtypes_radical[];
1079 extern subtype_info node_subtypes_accent[];
1080 extern subtype_info node_subtypes_fence[];
1081
1082 extern subtype_info node_values_pdf_destination[];
1083 extern subtype_info node_values_pdf_literal[];
1084 extern subtype_info node_values_pdf_literal[];
1085 extern subtype_info node_values_pdf_action[];
1086 extern subtype_info node_values_pdf_window[];
1087
1088 extern subtype_info node_values_fill[];
1089 extern subtype_info node_values_dir[];
1090 extern subtype_info node_values_color_stack[];
1091
1092 extern subtype_info other_values_page_states[];
1093
1094 extern halfword new_node(int i, int j);
1095 extern void flush_node_list(halfword);
1096 extern void flush_node(halfword);
1097 extern halfword do_copy_node_list(halfword, halfword);
1098 extern halfword copy_node_list(halfword);
1099 extern halfword copy_node(const halfword);
1100 extern void check_node(halfword);
1101 extern halfword fix_node_list(halfword);
1102 extern int fix_node_lists;
1103 extern char *sprint_node_mem_usage(void);
1104 extern halfword raw_glyph_node(void);
1105 extern halfword new_glyph_node(void);
1106 extern int valid_node(halfword);
1107
1108 extern void flush_node_wrapup_dvi(halfword);
1109 extern void flush_node_wrapup_pdf(halfword);
1110 extern void copy_node_wrapup_dvi(halfword, halfword); /* original target */
1111 extern void copy_node_wrapup_pdf(halfword, halfword); /* original target */
1112 extern void check_node_wrapup_dvi(halfword); /* DEBUG_NODES mode */
1113 extern void check_node_wrapup_pdf(halfword); /* DEBUG_NODES mode */
1114 extern void show_node_wrapup_dvi(halfword);
1115 extern void show_node_wrapup_pdf(halfword);
1116
1117 typedef enum {
1118 normal_g = 0, /* normal */
1119 sfi,
1120 fil,
1121 fill,
1122 filll
1123 } glue_orders;
1124
1125 # define zero_glue 0
1126 # define sfi_glue zero_glue+glue_spec_size
1127 # define fil_glue sfi_glue+glue_spec_size
1128 # define fill_glue fil_glue+glue_spec_size
1129 # define ss_glue fill_glue+glue_spec_size
1130 # define fil_neg_glue ss_glue+glue_spec_size
1131 # define page_ins_head fil_neg_glue+glue_spec_size
1132
1133 # define contrib_head page_ins_head+temp_node_size
1134 # define page_head contrib_head+temp_node_size
1135 # define temp_head page_head+temp_node_size
1136 # define hold_head temp_head+temp_node_size
1137 # define adjust_head hold_head+temp_node_size
1138 # define pre_adjust_head adjust_head+temp_node_size
1139 # define active pre_adjust_head+temp_node_size
1140 # define align_head active+active_node_size
1141 # define end_span align_head+temp_node_size
1142 # define begin_point end_span+span_node_size
1143 # define end_point begin_point+glyph_node_size
1144 # define var_mem_stat_max (end_point+glyph_node_size-1)
1145
1146 # define stretching 1
1147 # define shrinking 2
1148
1149 # define last_normal_node shape_node
1150 # define last_whatsit_node pdf_restore_node
1151
1152 # define is_running(A) ((A)==null_flag) /* tests for a running dimension */
1153
1154 extern halfword tail_of_list(halfword p);
1155
1156 extern int var_used;
1157
1158 # define cache_disabled max_halfword
1159
1160 extern int max_used_attr;
1161 extern halfword attr_list_cache;
1162
1163 extern halfword new_null_box(void);
1164 extern halfword new_rule(int s);
1165 extern halfword new_glyph(int f, int c);
1166 extern quarterword norm_min(int h);
1167 extern halfword new_char(int f, int c);
1168 extern scaled glyph_width(halfword p);
1169 extern scaled glyph_height(halfword p);
1170 extern scaled glyph_depth(halfword p);
1171 extern halfword new_disc(void);
1172 extern halfword new_math(scaled w, int s);
1173 extern halfword new_spec(halfword p);
1174 extern halfword new_param_glue(int n);
1175 extern halfword new_glue(halfword q);
1176 extern halfword new_skip_param(int n);
1177 extern halfword new_kern(scaled w);
1178 extern halfword new_penalty(int m, int s);
1179
1180 extern int lua_properties_enabled ;
1181 extern int lua_properties_level ;
1182 extern int lua_properties_use_metatable ;
1183
1184 extern halfword make_local_par_node(int mode);
1185
1186 extern void synctex_set_mode(int mode);
1187 extern int synctex_get_mode(void);
1188 extern void synctex_set_tag(int tag);
1189 extern void synctex_set_line(int line);
1190 extern void synctex_force_tag(int tag);
1191 extern void synctex_force_line(int tag);
1192 extern int synctex_get_tag(void);
1193 extern void synctex_set_no_files(int flag);
1194 extern int synctex_get_no_files(void);
1195 extern int synctex_get_line(void);
1196
1197 extern void l_set_node_data(void) ;
1198 extern void l_set_whatsit_data(void) ;
1199
1200 #endif
1201