summaryrefslogtreecommitdiff
path: root/Build/source/libs/teckit/TECkit-2.5.3
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-10-13 10:46:20 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-10-13 10:46:20 +0000
commit5347e82ab228a003df517945d17a3bb2bedddc3c (patch)
tree5670ca02854e6767b59d49caf298c244acdde94c /Build/source/libs/teckit/TECkit-2.5.3
parent71f4dd313248c2db8fef21a4c5c3d3c14a5af46a (diff)
teckit: Avoid TL vs W32TeX diffs (from Akira)
git-svn-id: svn://tug.org/texlive/trunk@27956 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/teckit/TECkit-2.5.3')
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp16
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h3
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h3
-rw-r--r--Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp2
4 files changed, 6 insertions, 18 deletions
diff --git a/Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp b/Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp
index 3a273d60d80..9dbf7c7399f 100644
--- a/Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp
+++ b/Build/source/libs/teckit/TECkit-2.5.3/source/Engine.cpp
@@ -51,12 +51,6 @@ Description:
# define NOSERVICE
# define NOMCX
# include <windows.h>
-
- BOOL WINAPI
- DllMain(HINSTANCE /*hInst*/, DWORD /*wDataSeg*/, LPVOID /*lpReserved*/)
- {
- return true;
- }
#endif
#include "Engine.h"
@@ -102,8 +96,6 @@ READ(const UInt32 p)
#endif
}
-#pragma mark --- class Stage ---
-
Stage::Stage()
: oBuffer(0)
, oBufSize(0)
@@ -125,8 +117,6 @@ Stage::lookaheadCount() const
return 0;
}
-#pragma mark --- class Normalizer ---
-
#include "NormalizationData.c"
Normalizer::Normalizer(bool compose)
@@ -396,8 +386,6 @@ Normalizer::getChar()
return c;
}
-#pragma mark --- class Pass ---
-
Pass::Pass(const TableHeader* inTable, Converter* cnv)
: converter(cnv)
, tableHeader(inTable)
@@ -1282,8 +1270,6 @@ if (traceLevel > 0)
return 0;
}
-#pragma mark --- class Converter ---
-
Converter::Converter(const Byte* inTable, UInt32 inTableSize, bool inForward,
UInt16 inForm, UInt16 outForm)
: table(0)
@@ -1935,8 +1921,6 @@ Converter::Validate(const Converter* cnv)
return true;
}
-#pragma mark --- Public "C" API functions ---
-
TECkit_Status
WINAPI
TECkit_CreateConverter(
diff --git a/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h b/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h
index 584e950d556..9b59eb413df 100644
--- a/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h
+++ b/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Compiler.h
@@ -30,6 +30,9 @@ extern "C" {
#ifdef _WIN32
/* MS compiler has predefined _WIN32, so assume Windows target */
#include <windows.h> // apparently just using windef.h fails on VC++6
+#undef WINAPI
+#define WINAPI
+#define EXPORTED
#else
/* not the MS compiler, so try Metrowerks' platform macros */
#ifndef __APPLE__
diff --git a/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h b/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h
index 87a3790105f..0c8cfb67dd7 100644
--- a/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h
+++ b/Build/source/libs/teckit/TECkit-2.5.3/source/Public-headers/TECkit_Engine.h
@@ -80,6 +80,9 @@ extern "C" {
#ifdef _WIN32
/* MS compiler has predefined _WIN32, so assume Windows target */
#include <windows.h>
+#undef WINAPI
+#define WINAPI
+#define EXPORTED
#else
/* not the MS compiler, so try Metrowerks' platform macros */
#ifndef __APPLE__
diff --git a/Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp b/Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp
index e6e7af10e29..5a9467f2c8f 100644
--- a/Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp
+++ b/Build/source/libs/teckit/TECkit-2.5.3/source/Sample-tools/TECkit_Compile.cpp
@@ -32,8 +32,6 @@ void
CALLBACK
errFunc(void* userData, const char* msg, const char* param, UInt32 line)
{
-#pragma unused(userData)
-
fprintf(stderr, "%s", msg);
if (param != 0)
fprintf(stderr, ": \"%s\"", param);