summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/ChangeLog4
-rw-r--r--Build/source/texk/web2c/lib/ChangeLog7
-rw-r--r--Build/source/texk/web2c/lib/lib.h5
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c100
-rw-r--r--Build/source/texk/web2c/pdftexdir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/pdftexdir/ptexlib.h1
-rw-r--r--Build/source/texk/web2c/texmfmem.h17
-rw-r--r--Build/source/texk/web2c/texmfmp-help.h61
-rw-r--r--Build/source/texk/web2c/web2c/ChangeLog4
-rw-r--r--Build/source/texk/web2c/web2c/coerce.h37
10 files changed, 48 insertions, 193 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog
index 1e1b8f5d669..0a7c975f6db 100644
--- a/Build/source/texk/web2c/ChangeLog
+++ b/Build/source/texk/web2c/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-20 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * texmfmem.h, texmfmp-help.h: Remove luaTeX specific code.
+
2010-04-19 Peter Breitenlohner <peb@mppmu.mpg.de>
* Makefile.am (sub_dirs): Removed, former ptexdir/lib/ is now
diff --git a/Build/source/texk/web2c/lib/ChangeLog b/Build/source/texk/web2c/lib/ChangeLog
index 86e29509d6e..db9709bbd4d 100644
--- a/Build/source/texk/web2c/lib/ChangeLog
+++ b/Build/source/texk/web2c/lib/ChangeLog
@@ -1,3 +1,10 @@
+2010-04-20 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * texmfmp.c, lib.h: Remove luaTeX specific code.
+
+ * lib.h: Move extern declaration of ptexbanner from here
+ to ../pdftexdir/ptexlib.h (instatiated in texmfmp.c).
+
2010-04-19 Peter Breitenlohner <peb@mppmu.mpg.de>
* main.c, texmfmp.c: Remove extern declaration of mainbody,
diff --git a/Build/source/texk/web2c/lib/lib.h b/Build/source/texk/web2c/lib/lib.h
index 26b0017978c..42510ebc9cd 100644
--- a/Build/source/texk/web2c/lib/lib.h
+++ b/Build/source/texk/web2c/lib/lib.h
@@ -49,11 +49,6 @@ extern string output_directory;
/* printversion.c */
extern void printversionandexit (const_string, const_string, const_string, char*);
-/* texmfmp.c (actually ../pdftexextra.c or ../luatexextra) */
-#if defined(pdfTeX) || defined(luaTeX)
-extern const char *ptexbanner;
-#endif
-
/* setupvar.c */
/* Set an array size from texmf.cnf. */
extern void setupboundvariable (integer *, const_string, integer);
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index d5781f8dcbb..315d7f48f76 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -46,8 +46,6 @@
#elif defined (pdfTeX)
#include <pdftexdir/pdftexextra.h>
#include <pdftexdir/ptexlib.h>
-#elif defined (luaTeX)
-#include <luatexdir/luatexextra.h>
#elif defined (Aleph)
#include <alephdir/alephextra.h>
#elif defined (pTeX)
@@ -450,7 +448,7 @@ runsystem (const char *cmd)
return allow;
}
-#if defined(pdfTeX) || defined(luaTeX)
+#ifdef pdfTeX
/* Like runsystem(), the runpopen() function is called only when
shellenabledp == 1. Unlike runsystem(), here we write errors to
stderr, since we have nowhere better to use; and of course we return
@@ -486,7 +484,7 @@ runpopen (const char *cmd, const char *mode)
free (cmdname);
return f;
}
-#endif /* pdfTeX || luaTeX */
+#endif /* pdfTeX */
#endif /* TeX */
/* The main program, etc. */
@@ -495,14 +493,6 @@ runpopen (const char *cmd, const char *mode)
#include "xetexdir/XeTeX_ext.h"
#endif
-#if defined(luaTeX)
-extern void lua_initialize(int ac, char **av);
-int etexp;
-#define MAYBE_STATIC /* symbols needed in luainit.c */
-#else
-#define MAYBE_STATIC static
-#endif
-
/* What we were invoked as and with. */
char **argv;
int argc;
@@ -511,10 +501,10 @@ int argc;
static const_string user_progname;
/* The C version of what might wind up in DUMP_VAR. */
-MAYBE_STATIC const_string dump_name;
+static const_string dump_name;
/* The C version of the jobname, if given. */
-MAYBE_STATIC const_string c_job_name;
+static const_string c_job_name;
/* The filename for dynamic character translation, or NULL. */
string translate_filename;
@@ -522,13 +512,11 @@ string default_translate_filename;
#if defined(TeX)
/* Needed for --src-specials option. */
-MAYBE_STATIC char *last_source_name;
-MAYBE_STATIC int last_lineno;
-#if !defined (luaTeX)
+static char *last_source_name;
+static int last_lineno;
static boolean srcspecialsoption = false;
static void parse_src_specials_option (const_string);
#endif
-#endif
/* Parsing a first %&-line in the input file. */
static void parse_first_line (const_string);
@@ -554,31 +542,7 @@ texmf_yesno(const_string var)
return value && (*value == 't' || *value == 'y' || *value == '1');
}
-#ifdef luaTeX
-#define TEXformatdefault TEX_format_default
-#define debugformatfile debug_format_file
-#define formatdefaultlength format_default_length
-#define iniversion ini_version
-#define outputfilename output_file_name
-#define readyalready ready_already
-#define dumpoption dump_option
-#define outputcomment output_comment
-#define pdfoutputoption pdf_output_option
-#define pdfoutputvalue pdf_output_value
-#define pdfdraftmodeoption pdf_draftmode_option
-#define pdfdraftmodevalue pdf_draftmode_value
-#define dumpline dump_line
-#define bufsize buf_size
-#define maxbufstack max_buf_stack
-#define inopen in_open
-#define inputfile input_file
-#define strstart str_start
-#define strpool str_pool
-#define poolptr pool_ptr
-#define poolsize pool_size
-#endif
-
-#if defined(pdfTeX) || defined(luaTeX)
+#ifdef pdfTeX
const char *ptexbanner = BANNER;
#endif
@@ -680,10 +644,10 @@ maininit (int ac, string *av)
iniversion = true;
} else if (FILESTRCASEEQ (kpse_program_name, "virtex")) {
virversion = true;
-#if !defined(Aleph) && !defined(luaTeX)
+#ifndef Aleph
} else if (FILESTRCASEEQ (kpse_program_name, "mltex")) {
mltexp = true;
-#endif /* !Aleph && !luaTeX */
+#endif /* !Aleph */
#endif /* TeX */
}
@@ -697,7 +661,7 @@ maininit (int ac, string *av)
#ifdef TeX
/* Sanity check: -mltex, -enc, -etex only work in combination with -ini. */
if (!iniversion) {
-#if !defined(Aleph) && !defined(luaTeX)
+#if !defined(Aleph)
if (mltexp) {
fprintf(stderr, "-mltex only works with -ini\n");
}
@@ -785,11 +749,7 @@ main (int ac, string *av)
_setmaxstdio(2048);
#endif
-#if defined(luaTeX)
- lua_initialize (ac, av);
-#else
maininit (ac, av);
-#endif /* not luaTeX */
/* Call the real main program. */
mainbody ();
@@ -872,7 +832,7 @@ topenin (void)
/* One more time, this time converting to TeX's internal character
representation. */
-#if !defined(Aleph) && !defined(XeTeX) && !defined(luaTeX)
+#if !defined(Aleph) && !defined(XeTeX)
for (i = first; i < last; i++)
buffer[i] = xord[buffer[i]];
#endif
@@ -1083,7 +1043,7 @@ ipcpage (int is_eof)
#if defined (TeX) || defined (MF)
/* TCX and Aleph&Co get along like sparks and gunpowder. */
-#if !defined(Aleph) && !defined(XeTeX) && !defined(luaTeX)
+#if !defined(Aleph) && !defined(XeTeX)
/* Return the next number following START, setting POST to the following
character, as in strtol. Issue a warning and return -1 if no number
@@ -1184,7 +1144,7 @@ readtcxfile (void)
WARNING1 ("Could not open char translation file `%s'", orig_filename);
}
}
-#endif /* !Aleph && !XeTeX && !luaTeX */
+#endif /* !Aleph && !XeTeX */
#endif /* TeX || MF [character translation] */
#ifdef XeTeX /* XeTeX handles this differently, and allows odd quotes within names */
@@ -1323,17 +1283,17 @@ static struct option long_options[]
{ "ipc", 0, &ipcon, 1 },
{ "ipc-start", 0, &ipcon, 2 },
#endif /* IPC */
-#if !defined(Aleph) && !defined(luaTeX)
+#if !defined(Aleph)
{ "mltex", 0, &mltexp, 1 },
#if !defined(XeTeX) && !defined(pTeX)
{ "enc", 0, &enctexp, 1 },
#endif /* !XeTeX && !pTeX */
-#endif /* !Aleph && !luaTeX */
-#if defined (eTeX) || defined(pdfTeX) || defined(Aleph) || defined(XeTeX) || defined(luaTeX)
+#endif /* !Aleph */
+#if defined (eTeX) || defined(pdfTeX) || defined(Aleph) || defined(XeTeX)
{ "etex", 0, &etexp, 1 },
#endif /* eTeX || pdfTeX || Aleph */
{ "output-comment", 1, 0, 0 },
-#if defined(pdfTeX) || defined(luaTeX)
+#if defined(pdfTeX)
{ "draftmode", 0, 0, 0 },
{ "output-format", 1, 0, 0 },
#endif /* pdfTeX */
@@ -1361,11 +1321,7 @@ static struct option long_options[]
{ "no-parse-first-line", 0, &parsefirstlinep, -1 },
{ "translate-file", 1, 0, 0 },
{ "default-translate-file", 1, 0, 0 },
-#if !defined(luaTeX)
{ "8bit", 0, &eightbitp, 1 },
-#else
- { "8bit", 0, 0, 0 },
-#endif
#if defined(XeTeX)
{ "no-pdf", 0, &nopdfoutput, 1 },
{ "output-driver", 1, 0, 0 },
@@ -1469,7 +1425,6 @@ parse_options (int argc, string *argv)
shellenabledp = 1;
restrictedshell = 1;
-#if ! defined (luaTeX)
} else if (ARGUMENT_IS ("src-specials")) {
last_source_name = xstrdup("");
/* Option `--src" without any value means `auto' mode. */
@@ -1481,9 +1436,8 @@ parse_options (int argc, string *argv)
} else {
parse_src_specials_option(optarg);
}
-#endif
#endif /* TeX */
-#if defined(pdfTeX) || defined(luaTeX)
+#if defined(pdfTeX)
} else if (ARGUMENT_IS ("output-format")) {
pdfoutputoption = 1;
if (strcmp(optarg, "dvi") == 0) {
@@ -1544,7 +1498,7 @@ parse_options (int argc, string *argv)
} else if (ARGUMENT_IS ("version")) {
char *versions;
-#if defined (pdfTeX) || defined(XeTeX) || defined(luaTeX)
+#if defined (pdfTeX) || defined(XeTeX)
initversionstring(&versions);
#else
versions = NULL;
@@ -1556,7 +1510,6 @@ parse_options (int argc, string *argv)
}
#if defined(TeX)
-#if ! defined (luaTeX)
void
parse_src_specials_option (const_string opt_list)
{
@@ -1607,7 +1560,6 @@ parse_src_specials_option (const_string opt_list)
srcspecialsoption = true;
}
#endif
-#endif
/* If the first thing on the command line (we use the globals `argv' and
`optind') is a normal filename (i.e., does not start with `&' or
@@ -1697,7 +1649,7 @@ parse_first_line (const_string filename)
closed using pclose().
*/
-#if defined(pdfTeX) || defined(luaTeX)
+#if defined(pdfTeX)
static FILE *pipes [] = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,
NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
@@ -1717,11 +1669,6 @@ open_in_or_pipe (FILE **f_ptr, int filefmt, const_string fopen_mode)
*f_ptr = NULL;
fname = xmalloc(strlen((const_string)(nameoffile+1))+1);
strcpy(fname,(const_string)(nameoffile+1));
-#if !defined(pdfTeX)
- if (fullnameoffile)
- free (fullnameoffile);
- fullnameoffile = xstrdup (fname);
-#endif
recorder_record_input (fname + 1);
*f_ptr = runpopen(fname+1,"r");
free(fname);
@@ -1978,7 +1925,7 @@ input_line (FILE *f)
--last;
/* Don't bother using xord if we don't need to. */
-#if !defined(Aleph) && !defined(luaTeX)
+#if !defined(Aleph)
for (i = first; i <= last; i++)
buffer[i] = xord[buffer[i]];
#endif
@@ -2232,7 +2179,7 @@ do_undump (char *p, int item_size, int nitems, FILE *in_file)
/* FIXME -- some (most?) of this can/should be moved to the Pascal/WEB side. */
#if defined(TeX) || defined(MF)
-#if !defined(pdfTeX) && !defined(luaTeX)
+#if !defined(pdfTeX)
static void
checkpoolpointer (poolpointer poolptr, size_t len)
{
@@ -2370,9 +2317,6 @@ gettexstring (strnumber s)
#else
-#ifdef luaTeX
-static
-#endif
string
gettexstring (strnumber s)
{
diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog
index d5d93472e89..66552b70c34 100644
--- a/Build/source/texk/web2c/pdftexdir/ChangeLog
+++ b/Build/source/texk/web2c/pdftexdir/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-20 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * ptexlib.h: Move extern declaration of ptexbanner to here
+ from ../lib/lib.h (instatiated in ../lib/texmfmp.c).
+
2010-03-09 Peter Breitenlohner <peb@mppmu.mpg.de>
* ttf2afm.c: Use kpse_set_program_name(argv[0], NULL) instead of
diff --git a/Build/source/texk/web2c/pdftexdir/ptexlib.h b/Build/source/texk/web2c/pdftexdir/ptexlib.h
index 9bab56da912..fa555341ebc 100644
--- a/Build/source/texk/web2c/pdftexdir/ptexlib.h
+++ b/Build/source/texk/web2c/pdftexdir/ptexlib.h
@@ -164,6 +164,7 @@ extern strnumber last_tex_string;
extern size_t last_ptr_index;
extern char *fb_array;
extern FILE *t3_file;
+extern const char *ptexbanner;
/* pdftexlib function prototypes */
diff --git a/Build/source/texk/web2c/texmfmem.h b/Build/source/texk/web2c/texmfmem.h
index 30497f417ab..5a8d6fd6882 100644
--- a/Build/source/texk/web2c/texmfmem.h
+++ b/Build/source/texk/web2c/texmfmem.h
@@ -63,7 +63,7 @@
*/
/* Aleph is sufficiently different to separate the definition. */
-#if !defined(Aleph) && !defined(luaTeX)
+#if !defined(Aleph)
typedef union
{
@@ -181,7 +181,7 @@ typedef union
#define qqqq v.QQQQ
#endif
-#else /* Aleph || luaTeX */
+#else /* Aleph */
typedef union
{
@@ -257,15 +257,4 @@ typedef union
#define gr gg.GLUE
-#endif /* Aleph || luaTeX */
-
-#if defined(luaTeX)
-#define memory_word memoryword
-#define two_halves twohalves
-#define four_quarters fourquarters
-
-#define strnumber str_number
-#define poolpointer pool_pointer
-#define packedASCIIcode packed_ASCII_code
-#define internalfontnumber internal_font_number
-#endif /* luaTeX */
+#endif /* Aleph */
diff --git a/Build/source/texk/web2c/texmfmp-help.h b/Build/source/texk/web2c/texmfmp-help.h
index 49efa151fff..b31a2a1dc00 100644
--- a/Build/source/texk/web2c/texmfmp-help.h
+++ b/Build/source/texk/web2c/texmfmp-help.h
@@ -137,67 +137,6 @@ const_string ETEXHELP[] = {
};
#endif /* eTeX */
-#ifdef luaTeX
-const_string LUATEXHELP[] = {
- "Usage: luatex [OPTION]... [TEXNAME[.tex]] [COMMANDS]",
- " or: luatex [OPTION]... \\FIRST-LINE",
- " or: luatex [OPTION]... &FMT ARGS",
- " Run luaTeX on TEXNAME, usually creating TEXNAME.pdf.",
- " Any remaining COMMANDS are processed as luaTeX input, after TEXNAME is read.",
- " If the first line of TEXNAME is %&FMT, and FMT is an existing .fmt file,",
- " use it. Else use `NAME.fmt', where NAME is the program invocation name,",
- " most commonly `luatex'.",
- "",
- " Alternatively, if the first non-option argument begins with a backslash,",
- " interpret all non-option arguments as a line of luaTeX input.",
- "",
- " Alternatively, if the first non-option argument begins with a &, the",
- " next word is taken as the FMT to read, overriding all else. Any",
- " remaining arguments are processed as above.",
- "",
- " If no arguments or options are specified, prompt for input.",
- "",
- "-enc enable encTeX extensions such as \\mubyte",
- "-etex enable e-TeX extensions",
- "[-no]-file-line-error disable/enable file:line:error style messages",
- "-fmt=FMTNAME use FMTNAME instead of program name or a %& line",
- "-halt-on-error stop processing at the first error",
- "-ini be luainitex, for dumping formats; this is implicitly",
- " true if the program name is `luainitex'",
- "-interaction=STRING set interaction mode (STRING=batchmode/nonstopmode/",
- " scrollmode/errorstopmode)",
-#ifdef IPC
- "-ipc send DVI output to a socket as well as the usual",
- " output file",
- "-ipc-start as -ipc, and also start the server at the other end",
-#endif /* IPC */
- "-jobname=STRING set the job name to STRING",
- "-kpathsea-debug=NUMBER set path searching debugging flags according to",
- " the bits of NUMBER",
- "[-no]-mktex=FMT disable/enable mktexFMT generation (FMT=tex/tfm)",
- "-mltex enable MLTeX extensions such as \\charsubdef",
- "-output-comment=STRING use STRING for DVI file comment instead of date",
- " (no effect for PDF)",
- "-output-directory=DIR use DIR as the directory to write files to",
- "-output-format=FORMAT use FORMAT for job output; FORMAT is `dvi' or `pdf'",
- "[-no]-parse-first-line disable/enable parsing of the first line of the",
- " input file",
- "-progname=STRING set program (and fmt) name to STRING",
- "-recorder enable filename recorder",
- "[-no]-shell-escape disable/enable \\write18{SHELL COMMAND}",
- "-shell-restricted enable restricted \\write18",
- "-src-specials insert source specials into the DVI file",
- "-src-specials=WHERE insert source specials in certain places of",
- " the DVI file. WHERE is a comma-separated value",
- " list: cr display hbox math par parend vbox",
- "-translate-file=TCXNAME use the TCX file TCXNAME",
- "-8bit make all characters printable by default",
- "-help display this help and exit",
- "-version output version information and exit",
- NULL
-};
-#endif /* luaTeX */
-
#ifdef MF
const_string MFHELP[] = {
"Usage: mf [OPTION]... [MFNAME[.mf]] [COMMANDS]",
diff --git a/Build/source/texk/web2c/web2c/ChangeLog b/Build/source/texk/web2c/web2c/ChangeLog
index 6e43e7c55e9..0d0f25b6f36 100644
--- a/Build/source/texk/web2c/web2c/ChangeLog
+++ b/Build/source/texk/web2c/web2c/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-20 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * coerce.h: Remove luaTeX specific code.
+
2010-04-18 Peter Breitenlohner <peb@mppmu.mpg.de>
* convert, splitup.c: Remove luatex.
diff --git a/Build/source/texk/web2c/web2c/coerce.h b/Build/source/texk/web2c/web2c/coerce.h
index 5a8cf92a4e5..d2feb82a340 100644
--- a/Build/source/texk/web2c/web2c/coerce.h
+++ b/Build/source/texk/web2c/web2c/coerce.h
@@ -7,27 +7,6 @@
Therefore, we have to redefine these macros so they don't cast
their argument (of type memoryword or fourquarters, respectively). */
-#ifdef luaTeX
-
-#ifdef print_word
-#undef print_word
-#define print_word(x) zprint_word (x)
-#endif
-
-/* luatex doesn't have tfm_qqqq */
-
-#ifdef eq_destroy
-#undef eq_destroy
-#define eq_destroy(x) zeq_destroy(x)
-#endif
-
-#ifdef synch_p_with_c
-#undef synch_p_with_c
-#define synch_p_with_c(x) zsynch_p_with_c(x)
-#endif
-
-#else /* luaTeX */
-
#ifdef printword
#undef printword
#define printword(x) zprintword (x)
@@ -43,8 +22,6 @@
#define eqdestroy(x) zeqdestroy(x)
#endif
-#endif
-
/* And we use the opportunity to declare a few functions that could not be
declared in texmfmp.h, because they need typedefs not yet known at that
point. */
@@ -64,33 +41,23 @@ extern void paintrow (screenrow, pixelcolor, transspec, screencol);
extern strnumber makefullnamestring(void);
#ifdef TeX
-#ifndef luaTeX
extern string gettexstring (strnumber);
-#endif
/* Prototypes for source-specials functions... */
extern boolean isnewsource (strnumber, int);
extern poolpointer makesrcspecial (strnumber, int);
extern void remembersourceinfo (strnumber, int);
#endif
-#ifdef luaTeX
-#include <luatexdir/luatex.h>
-#endif /* luaTeX */
-
/* When compiling the lib in luatexdir, we -DpdfTeX so code can be more
easily shared. But we can't have both pdftexd.h and luatexd.h, etc. */
-#if defined (pdfTeX) && !defined (luaTeX)
+#ifdef pdfTeX
#include <pdftexdir/pdftex.h>
-#endif /* pdfTeX and not luaTeX */
+#endif /* pdfTeX */
#ifdef XeTeX
#include <xetexdir/xetex.h>
#endif /* XeTeX */
#if defined(TeX) && defined(__SyncTeX__)
-#ifdef luaTeX
-#include <luatexdir/utils/synctex.h>
-#else
#include <synctexdir/synctex.h>
#endif
-#endif