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

« back to all changes in this revision

Viewing changes to source/texk/web2c/web2c/splitup.c

  • 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:
2
2
   and it produces several .c and .h files in the current directory
3
3
   as its output.
4
4
 
5
 
   $Id: splitup.c 13921 2009-06-23 16:27:41Z peter $
 
5
   $Id: splitup.c 17922 2010-04-19 12:31:17Z peter $
6
6
 
7
7
   Tim Morgan  September 19, 1987.  */
8
8
 
64
64
  if (fgets (buffer, sizeof (buffer), stdin) == NULL)
65
65
    return false;
66
66
  if (strncmp (buffer, "#ifdef", 6) == 0
67
 
      || strncmp (buffer, "#if 1", 5) == 0
68
67
      || strncmp (buffer, "#ifndef", 7) == 0)
69
68
    {
70
69
      ++ifdef_nesting;
79
78
int
80
79
main (int argc, string *argv)
81
80
{
82
 
  string coerce;
 
81
  const_string coerce;
83
82
  unsigned coerce_len;
84
83
  int option;
85
84
 
124
123
  } else if (STREQ (output_name, "pdftex")) {
125
124
    fputs ("#define INITEX\n#define TeX\n#define pdfTeX\n", out);
126
125
    coerce = "pdftexcoerce.h";
127
 
  } else if (STREQ (output_name, "luatex")) {
128
 
    fputs ("#define INITEX\n#define TeX\n#define luaTeX\n", out);
129
 
    coerce = "luatexcoerce.h";
130
126
  } else if (STREQ (output_name, "xetex")) {
131
127
    fputs ("#define INITEX\n#define TeX\n#define XeTeX\n", out);
132
128
    coerce = "xetexcoerce.h";
133
 
  } else if (STREQ (output_name, "mp")) {
134
 
    fputs ("#define INIMP\n#define MP\n", out);
135
 
    coerce = "mpcoerce.h";
 
129
  } else if (STREQ (output_name, "ptex")) {
 
130
    fputs ("#define INITEX\n#define TeX\n#define pTeX\n", out);
 
131
    coerce = "ptexcoerce.h";
136
132
  } else
137
 
    FATAL1 ("Can only split mf, mp, tex, etex, aleph, luatex, pdftex, or xetex,\n not %s", output_name);
 
133
    FATAL1 ("Can only split mf, tex, etex, aleph, pdftex, or xetex,\n not %s", output_name);
138
134
  
139
135
  coerce_len = strlen (coerce);
140
136