summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-10-23 20:51:29 +0000
committerKarl Berry <karl@freefriends.org>2007-10-23 20:51:29 +0000
commit98d57998af9f14a2120a8b9f9fe302ce4587d99c (patch)
tree52872e6e8655a62aea40e831a1b4ed7ea9f6b217 /Build
parent9aa61a80b025f019899bf6ae5b2a95d05b3c0e34 (diff)
longinteger for >2gb pdf output; from Martin
git-svn-id: svn://tug.org/texlive/trunk@5261 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/web2c/ChangeLog5
-rw-r--r--Build/source/texk/web2c/config.h21
-rw-r--r--Build/source/texk/web2c/web2c/ChangeLog6
-rw-r--r--Build/source/texk/web2c/web2c/common.defines5
4 files changed, 31 insertions, 6 deletions
diff --git a/Build/source/texk/web2c/ChangeLog b/Build/source/texk/web2c/ChangeLog
index e321f2a2567..fd1dd2008c8 100644
--- a/Build/source/texk/web2c/ChangeLog
+++ b/Build/source/texk/web2c/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-23 Karl Berry <karl@tug.org>
+
+ * config.h (LONGINTEGER_TYPE): #define, depending on the C version.
+ (longinteger): typedef.
+
2007-10-01 Karl Berry <karl@tug.org>
* cpascal.h (floor): #undef, since MaxOSX #defines it.
diff --git a/Build/source/texk/web2c/config.h b/Build/source/texk/web2c/config.h
index cb68a6a9c1e..427636d0c2f 100644
--- a/Build/source/texk/web2c/config.h
+++ b/Build/source/texk/web2c/config.h
@@ -1,6 +1,6 @@
/* config.h: All .c files include this first.
-Copyright (C) 1995, 1996, 2006 Karl Berry.
+Copyright (C) 1995, 1996, 2006, 2007 Karl Berry.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -13,8 +13,7 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+along with this program; if not, see <http://www.gnu.org/licenses/. */
#ifndef WEB2C_CONFIG_H
#define WEB2C_CONFIG_H
@@ -90,6 +89,22 @@ typedef SCHAR_TYPE schar;
#endif /* not INTEGER_TYPE */
typedef INTEGER_TYPE integer;
+
+/* We need a type that's at least 64 bits wide. */
+#if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
+ /* C99; this is easy */
+ #include <stdint.h>
+ #define LONGINTEGER_TYPE int_least64_t
+ #define LONGINTEGER_MAX INT_LEAST64_MAX
+ #define LONGINTEGER_MIN INT_LEAST64_MIN
+#else
+ /* C++ or <C99; let's hope long is 64bit */
+ #define LONGINTEGER_TYPE long
+ #define LONGINTEGER_MAX LONG_MAX
+ #define LONGINTEGER_MIN LONG_MIN
+#endif
+typedef LONGINTEGER_TYPE longinteger;
+
/* I don't want to write a configure test for remove when all Unix
machines have unlink. But, for the sake of non-Unix machines that
diff --git a/Build/source/texk/web2c/web2c/ChangeLog b/Build/source/texk/web2c/web2c/ChangeLog
index c1bf656a2c8..52fbdb1c116 100644
--- a/Build/source/texk/web2c/web2c/ChangeLog
+++ b/Build/source/texk/web2c/web2c/ChangeLog
@@ -1,9 +1,11 @@
+2007-10-23 Karl Berry <karl@tug.org>
+
+ * common.defines (longinteger): make accessible to web sources.
+
2006-05-26 Jonathan Kew <jonathan_kew@sil.org>
* coerce.h: add support for xetex
-
* convert: add support for xetex
-
* splitup.c: add support for xetex
2005-07-27 Olaf Weber <olaf@infovore.xs4all.nl>
diff --git a/Build/source/texk/web2c/web2c/common.defines b/Build/source/texk/web2c/web2c/common.defines
index 1fc6998791f..31c70c35b1a 100644
--- a/Build/source/texk/web2c/web2c/common.defines
+++ b/Build/source/texk/web2c/web2c/common.defines
@@ -1,4 +1,6 @@
-{This file is concatenated by ./convert to the beginning of the Pascal
+{common.defines. Public domain.
+
+ This file is concatenated by ./convert to the beginning of the Pascal
code that tangle outputs. The idea is to put all these symbols, which
can be defined as macros or functions, or as part of standard C, into
web2c's symbol table, so that we can access them from a change file.
@@ -191,6 +193,7 @@
@define type char = 0..255;
@define type getoptstruct;
@define type integer;
+@define type longinteger;
@define type memoryword; {for gftodvi, TeX, and Metafont}
@define type pointertobyte;
@define type real;