~ubuntu-branches/ubuntu/wily/luatex/wily

« back to all changes in this revision

Viewing changes to source/texk/web2c/web2c/coerce.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Preining
  • Date: 2010-04-29 00:47:19 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20100429004719-o42etkqe90n97b9e
Tags: 0.60.1-1
* new upstream release, adapt build-script patch
* disable patch: upstream-epstopdf_cc_no_xpdf_patching, included upstream
* disable patch: libpoppler-0.12, not needed anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Some definitions that get appended to the `coerce.h' file that web2c
2
2
   outputs.  */
3
 
/* $Id: coerce.h 13921 2009-06-23 16:27:41Z peter $ */
 
3
/* $Id: coerce.h 17943 2010-04-20 11:16:07Z peter $ */
4
4
 
5
5
/* The C compiler ignores most unnecessary casts (i.e., casts of
6
6
   something to its own type).  However, for structures, it doesn't.
7
7
   Therefore, we have to redefine these macros so they don't cast
8
 
   cast their argument (of type memoryword or fourquarters,
9
 
   respectively).  */
10
 
 
11
 
#ifdef luaTeX
12
 
 
13
 
#ifdef  print_word
14
 
#undef  print_word
15
 
#define print_word(x)   zprint_word (x)
16
 
#endif
17
 
 
18
 
/* luatex doesn't have tfm_qqqq */
19
 
 
20
 
#ifdef  eq_destroy
21
 
#undef  eq_destroy
22
 
#define eq_destroy(x)   zeq_destroy(x)
23
 
#endif
24
 
 
25
 
#ifdef  synch_p_with_c
26
 
#undef  synch_p_with_c
27
 
#define synch_p_with_c(x) zsynch_p_with_c(x)
28
 
#endif
29
 
 
30
 
#else /* luaTeX */
 
8
   their argument (of type memoryword or fourquarters, respectively).  */
31
9
 
32
10
#ifdef  printword
33
11
#undef  printword
44
22
#define eqdestroy(x)    zeqdestroy(x)
45
23
#endif
46
24
 
47
 
#endif
48
 
 
49
25
/* And we use the opportunity to declare a few functions that could not be
50
26
   declared in texmfmp.h, because they need typedefs not yet known at that
51
27
   point.  */
52
28
extern strnumber getjobname (strnumber);
53
29
 
54
 
#ifdef MP
55
 
/* MP defined poolASCIIcode instead of packedASCIIcode, sigh. */
56
 
typedef poolASCIIcode packedASCIIcode;
57
 
#endif
58
30
#ifdef XeTeX
59
31
/* XeTeX redefines "ASCII" types.... */
60
32
typedef packedUTF16code packedASCIIcode;
66
38
extern void paintrow (screenrow, pixelcolor, transspec, screencol);
67
39
#endif
68
40
 
 
41
extern strnumber makefullnamestring(void);
 
42
 
69
43
#ifdef TeX
 
44
extern string gettexstring (strnumber);
70
45
/* Prototypes for source-specials functions... */
71
 
extern strnumber makefullnamestring();
72
46
extern boolean isnewsource (strnumber, int);
73
47
extern poolpointer makesrcspecial (strnumber, int);
74
48
extern void remembersourceinfo (strnumber, int);
75
49
#endif
76
50
 
77
 
#ifdef luaTeX
78
 
#include <luatexdir/luatex.h>
79
 
#endif /* luaTeX */
80
 
 
81
51
/* When compiling the lib in luatexdir, we -DpdfTeX so code can be more
82
52
   easily shared.  But we can't have both pdftexd.h and luatexd.h, etc.  */
83
 
#if defined (pdfTeX) && !defined (luaTeX)
 
53
#ifdef pdfTeX
84
54
#include <pdftexdir/pdftex.h>
85
 
#endif /* pdfTeX and not luaTeX */
 
55
#endif /* pdfTeX */
86
56
 
87
57
#ifdef XeTeX
88
58
#include <xetexdir/xetex.h>
89
59
#endif /* XeTeX */
90
60
 
91
 
#ifdef MP
92
 
#define MPOSTCOERCE
93
 
#include <mpdir/mplib.h>
94
 
#endif /* MP */
 
61
#if defined(TeX) && defined(__SyncTeX__)
 
62
#include <synctexdir/synctex.h>
 
63
#endif