summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/web2c/hitexdir/doc/hiformat.hntbin1113677 -> 1113980 bytes
-rw-r--r--Build/source/texk/web2c/hitexdir/doc/hiformat.pdfbin1255614 -> 1256830 bytes
-rw-r--r--Build/source/texk/web2c/hitexdir/hiformat.w9
-rw-r--r--Build/source/texk/web2c/hitexdir/hilexer.c4
-rw-r--r--Build/source/texk/web2c/hitexdir/hiparser.c2
-rw-r--r--Build/source/texk/web2c/hitexdir/hiparser.h2
-rw-r--r--Build/source/texk/web2c/hitexdir/hitex.w21
7 files changed, 25 insertions, 13 deletions
diff --git a/Build/source/texk/web2c/hitexdir/doc/hiformat.hnt b/Build/source/texk/web2c/hitexdir/doc/hiformat.hnt
index f3b4bcd517c..f6d982d8461 100644
--- a/Build/source/texk/web2c/hitexdir/doc/hiformat.hnt
+++ b/Build/source/texk/web2c/hitexdir/doc/hiformat.hnt
Binary files differ
diff --git a/Build/source/texk/web2c/hitexdir/doc/hiformat.pdf b/Build/source/texk/web2c/hitexdir/doc/hiformat.pdf
index 5ec26605285..405fd81d504 100644
--- a/Build/source/texk/web2c/hitexdir/doc/hiformat.pdf
+++ b/Build/source/texk/web2c/hitexdir/doc/hiformat.pdf
Binary files differ
diff --git a/Build/source/texk/web2c/hitexdir/hiformat.w b/Build/source/texk/web2c/hitexdir/hiformat.w
index ab192c9d396..24efd4398c4 100644
--- a/Build/source/texk/web2c/hitexdir/hiformat.w
+++ b/Build/source/texk/web2c/hitexdir/hiformat.w
@@ -6720,7 +6720,7 @@ bool hcheck_banner(char *magic)
{ MESSAGE("Wrong HINT subversion: got %d, expected %d\n",v,HINT_SUB_VERSION); return false; }
if (*t!=' ' && *t!='\n')
{ MESSAGE("Space expected in banner after HINT subversion\n"); return false; }
- LOG("%s file version %d.%d:%s",magic,HINT_VERSION, HINT_SUB_VERSION, t);
+ LOG("%s file version " HINT_VERSION_STRING ":%s", magic, t);
DBG(DBGDIR,"banner size=0x%x\n",hbanner_size);
return true;
}
@@ -6766,7 +6766,7 @@ and a (short) comment as the second argument.
@<function to write the banner@>=
static size_t hput_banner(char *magic, char *str)
-{ size_t s=fprintf(hout,"%s %d.%d %s\n",magic,HINT_VERSION,HINT_SUB_VERSION,str);
+{ size_t s=fprintf(hout,"%s " HINT_VERSION_STRING " %s\n",magic,str);
if (s>MAX_BANNER) QUIT("Banner too big");
return s;
}
@@ -9140,7 +9140,7 @@ are supported in addition to the short options.
switch(option)
{ case '-':
if (strcmp(*argv,"--version")==0)
- { fprintf(stderr,"%s version %d.%d\n",prog_name, HINT_VERSION, HINT_SUB_VERSION);
+ { fprintf(stderr,"%s version " HINT_VERSION_STRING "\n",prog_name);
exit(0);
}
else if (strcmp(*argv,"--help")==0)
@@ -10456,6 +10456,9 @@ typedef double float64_t;
#endif
#define HINT_VERSION 1
#define HINT_SUB_VERSION 4
+#define AS_STR(X) #X
+#define VERSION_AS_STR(X,Y) AS_STR(X) "." AS_STR(Y)
+#define HINT_VERSION_STRING VERSION_AS_STR(HINT_VERSION, HINT_SUB_VERSION)
#endif
@
diff --git a/Build/source/texk/web2c/hitexdir/hilexer.c b/Build/source/texk/web2c/hitexdir/hilexer.c
index 1ac97007e65..0170ea5bf80 100644
--- a/Build/source/texk/web2c/hitexdir/hilexer.c
+++ b/Build/source/texk/web2c/hitexdir/hilexer.c
@@ -856,7 +856,7 @@ char *yytext;
#line 1 "lexer.l"
/*519:*/
#line 3 "lexer.l"
- #line 10736 "format.w"
+ #line 10739 "format.w"
#include "hibasetypes.h"
#include "hierror.h"
@@ -992,7 +992,7 @@ float64_t xtof(char*x)
}
/*:61*/
int yywrap(void){
- #line 10747 "format.w"
+ #line 10750 "format.w"
return 1;}
#ifdef _MSC_VER
#pragma warning( disable : 4267)
diff --git a/Build/source/texk/web2c/hitexdir/hiparser.c b/Build/source/texk/web2c/hitexdir/hiparser.c
index cb7ff102c31..bd18ec32c92 100644
--- a/Build/source/texk/web2c/hitexdir/hiparser.c
+++ b/Build/source/texk/web2c/hitexdir/hiparser.c
@@ -69,7 +69,7 @@
/* First part of user prologue. */
#line 2 "parser.y"
- #line 10777 "format.w"
+ #line 10780 "format.w"
#include "hibasetypes.h"
#include <string.h>
diff --git a/Build/source/texk/web2c/hitexdir/hiparser.h b/Build/source/texk/web2c/hitexdir/hiparser.h
index 591c0bff268..145751dbb6e 100644
--- a/Build/source/texk/web2c/hitexdir/hiparser.h
+++ b/Build/source/texk/web2c/hitexdir/hiparser.h
@@ -149,7 +149,7 @@ union YYSTYPE
{
#line 79 "parser.y"
- #line 10802 "format.w"
+ #line 10805 "format.w"
uint32_t u; int32_t i; char *s; float64_t f; Glyph c;
Dimen d;Stretch st;Xdimen xd;Kern kt;
Rule r;Glue g;Image x;
diff --git a/Build/source/texk/web2c/hitexdir/hitex.w b/Build/source/texk/web2c/hitexdir/hitex.w
index 26a3d5ebda7..b020140b51f 100644
--- a/Build/source/texk/web2c/hitexdir/hitex.w
+++ b/Build/source/texk/web2c/hitexdir/hitex.w
@@ -365,10 +365,9 @@ known as `\Prote'.
@d Prote_banner "This is Prote, Version " Prote_version_string
/*printed when \Prote\ starts*/
@#
-@d QUOTE(X) #X
-@d HINT_VER_STR(X,Y) "HINT version " QUOTE(X) "." QUOTE(Y)
-@d banner "This is HiTeX, Version 3.141592653, " HINT_VER_STR(HINT_VERSION,HINT_SUB_VERSION)
- /*printed when \TeX\ starts*/
+@d banner "This is HiTeX, Version 3.141592653"
+ eTeX_version_string"-"HINT_VERSION_STRING" "TL_VERSION
+ /*printed when \TeX\ starts*/
@ Different \PASCAL s have slightly different conventions, and the present
@!@:PASCAL H}{\ph@>
@@ -34088,7 +34087,17 @@ The code that follows is organized in three parts.
Some code for \TeX\ Live must come before
the definition of \TeX's macros because
it uses include files containing identifiers that are in conflict
-with \TeX's macros. The remaining two parts are first auxiliary functions and then
+with \TeX's macros or modify these macros. For example
+\TeX's |banner| is modified by adding the \TeX\ Live version.
+
+@<Header files and function declarations@>=
+#ifdef WEB2CVERSION
+#define TL_VERSION "(TeX Live "WEB2CVERSION")"
+#else
+#define TL_VERSION
+#endif
+
+@ The remaining two parts are first auxiliary functions and then
those functions that are called from the ``classic'' \TeX\ code.
@p @<\TeX\ Live auxiliary functions@>@;
@@ -34357,7 +34366,7 @@ static int argument_is(struct option *opt, char * s)
if (ARGUMENT_IS("help")) usage_help();
else if (ARGUMENT_IS("version")){@+
printf(banner@, "\n"@/
- "eTeX version "@, eTeX_version_string@, "\n"@/
+ "HINT version "@,HINT_VERSION_STRING@,"\n"@/
"Prote version "@, Prote_version_string@, "\n");
exit(0);@+
}