summaryrefslogtreecommitdiff
path: root/Build/source/texk/ptexenc
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-01-12 10:43:40 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-01-12 10:43:40 +0000
commit211eeafe381b75aeff8ef6c9920a5ea035bec732 (patch)
treedf85c7ada2b2a23ef950129f6e5e811ba2c05d60 /Build/source/texk/ptexenc
parent12a2781d8bdabf8a3283a3753b2569203c518260 (diff)
preliminary e-pTeX
git-svn-id: svn://tug.org/texlive/trunk@21042 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/ptexenc')
-rw-r--r--Build/source/texk/ptexenc/ChangeLog.TL6
-rw-r--r--Build/source/texk/ptexenc/Makefile.am4
-rw-r--r--Build/source/texk/ptexenc/Makefile.in4
-rw-r--r--Build/source/texk/ptexenc/ptexenc/unicode.h3
4 files changed, 10 insertions, 7 deletions
diff --git a/Build/source/texk/ptexenc/ChangeLog.TL b/Build/source/texk/ptexenc/ChangeLog.TL
index 0e961c8c986..d90c91f9056 100644
--- a/Build/source/texk/ptexenc/ChangeLog.TL
+++ b/Build/source/texk/ptexenc/ChangeLog.TL
@@ -3,9 +3,11 @@ ChangeLog.TL: TeX Live (TL) changes for ptexenc
2011-01-11 Peter Breitenlohner <peb@mppmu.mpg.de>
- * ptexenc.c, ptexenc/ptexenc.h: Export toUCS for e-pTeX.
- From eptex-110102.tar.xz by Hironori Kitagawa.
+ For e-pTeX, adapted from eptex-110102.tar.xz by Hironori Kitagawa.
+ * ptexenc.c, ptexenc/ptexenc.h: Export toUCS().
+ * ptexenc/unicode.h: Export UCStoUTF8().
* ptexenc.c: Change version string "ptetex" => "ptexenc".
+ * Makefile.am: Install ptexenc/unicode.h.
* configure.ac: Version 1.2.0.
diff --git a/Build/source/texk/ptexenc/Makefile.am b/Build/source/texk/ptexenc/Makefile.am
index 99800568be1..c7ba5905121 100644
--- a/Build/source/texk/ptexenc/Makefile.am
+++ b/Build/source/texk/ptexenc/Makefile.am
@@ -26,7 +26,6 @@ libptexenc_la_SOURCES = \
ptexenc.c \
ptexenc/kanjicnv.h \
ptexenc/unicode-jp.h \
- ptexenc/unicode.h \
unicode-jp.c \
unicode.c
@@ -34,7 +33,8 @@ libptexenc_la_SOURCES = \
@KPATHSEA_RULE@
nobase_include_HEADERS = \
- ptexenc/ptexenc.h
+ ptexenc/ptexenc.h \
+ ptexenc/unicode.h
EXTRA_DIST = COPYRIGHT ChangeLog.TL
diff --git a/Build/source/texk/ptexenc/Makefile.in b/Build/source/texk/ptexenc/Makefile.in
index 37702617e72..dd18b9eb89b 100644
--- a/Build/source/texk/ptexenc/Makefile.in
+++ b/Build/source/texk/ptexenc/Makefile.in
@@ -263,12 +263,12 @@ libptexenc_la_SOURCES = \
ptexenc.c \
ptexenc/kanjicnv.h \
ptexenc/unicode-jp.h \
- ptexenc/unicode.h \
unicode-jp.c \
unicode.c
nobase_include_HEADERS = \
- ptexenc/ptexenc.h
+ ptexenc/ptexenc.h \
+ ptexenc/unicode.h
EXTRA_DIST = COPYRIGHT ChangeLog.TL
all: all-am
diff --git a/Build/source/texk/ptexenc/ptexenc/unicode.h b/Build/source/texk/ptexenc/ptexenc/unicode.h
index 3451a97bd45..45ceee9f9d5 100644
--- a/Build/source/texk/ptexenc/ptexenc/unicode.h
+++ b/Build/source/texk/ptexenc/ptexenc/unicode.h
@@ -7,6 +7,7 @@
#define PTEXENC_UNICODE_H
#include <kpathsea/types.h>
+#include <ptexenc/ptexenc.h> /* for PTENCDLL */
/* determine if UTF-8 character or not */
extern boolean isUTF8(int length, int nth, int c);
@@ -14,7 +15,7 @@ extern boolean isUTF8(int length, int nth, int c);
extern int UTF8length(int first_byte);
extern int UTF8Slength(string buff, int buff_len);
extern long UTF8StoUCS(string s);
-extern long UCStoUTF8(long ucs);
+extern long PTENCDLL UCStoUTF8(long ucs);
#define LONG(a,b,c,d) ( ((long)(a)<<24) | ((long)(b)<<16) | ((c)<<8) | (d) )
#define BYTE1(x) (((x)>>24) & 0xff)