summaryrefslogtreecommitdiff
path: root/Build/source/libs/teckit/TLpatches/patch-03-warnings
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/teckit/TLpatches/patch-03-warnings')
-rw-r--r--Build/source/libs/teckit/TLpatches/patch-03-warnings57
1 files changed, 45 insertions, 12 deletions
diff --git a/Build/source/libs/teckit/TLpatches/patch-03-warnings b/Build/source/libs/teckit/TLpatches/patch-03-warnings
index eb36b57ca5b..01c8c457c8b 100644
--- a/Build/source/libs/teckit/TLpatches/patch-03-warnings
+++ b/Build/source/libs/teckit/TLpatches/patch-03-warnings
@@ -1,8 +1,6 @@
- Avoid more compiler warnings.
-
-diff -ur teckit-2.5.9/source/Compiler.cpp teckit-src/source/Compiler.cpp
---- teckit-2.5.9/source/Compiler.cpp Tue Mar 19 00:23:12 2019
-+++ teckit-src/source/Compiler.cpp Tue Mar 19 07:06:23 2019
+diff -ur teckit-2.5.10/source/Compiler.cpp teckit-src/source/Compiler.cpp
+--- teckit-2.5.10/source/Compiler.cpp Tue May 05 23:09:53 2020
++++ teckit-src/source/Compiler.cpp Wed May 06 09:00:33 2020
@@ -189,7 +189,7 @@
free(table);
}
@@ -13,9 +11,9 @@ diff -ur teckit-2.5.9/source/Compiler.cpp teckit-src/source/Compiler.cpp
TECkit_GetUnicodeName(UInt32 usv)
{
-diff -ur teckit-2.5.9/source/Public-headers/TECkit_Compiler.h teckit-src/source/Public-headers/TECkit_Compiler.h
---- teckit-2.5.9/source/Public-headers/TECkit_Compiler.h Tue Mar 19 00:23:12 2019
-+++ teckit-src/source/Public-headers/TECkit_Compiler.h Tue Mar 19 07:31:10 2019
+diff -ur teckit-2.5.10/source/Public-headers/TECkit_Compiler.h teckit-src/source/Public-headers/TECkit_Compiler.h
+--- teckit-2.5.10/source/Public-headers/TECkit_Compiler.h Tue May 05 23:09:53 2020
++++ teckit-src/source/Public-headers/TECkit_Compiler.h Wed May 06 09:07:39 2020
@@ -55,7 +58,7 @@
#define kCompilerOpts_Compress 0x00000010 /* generate compressed mapping table */
#define kCompilerOpts_XML 0x00000020 /* instead of a compiled binary table, generate an XML representation of the mapping */
@@ -34,10 +32,45 @@ diff -ur teckit-2.5.9/source/Public-headers/TECkit_Compiler.h teckit-src/source/
WINAPI EXPORTED
TECkit_GetUnicodeName(UInt32 usv);
/* returns the Unicode name of usv, if available, else NULL */
-
-diff -ur teckit-2.5.9/source/Sample-tools/TECkit_Compile.cpp teckit-src/source/Sample-tools/TECkit_Compile.cpp
---- teckit-2.5.9/source/Sample-tools/TECkit_Compile.cpp Tue Mar 19 00:23:12 2019
-+++ teckit-src/source/Sample-tools/TECkit_Compile.cpp Tue Mar 19 07:25:19 2019
+@@ -55,7 +58,7 @@
+ #define kCompilerOpts_Compress 0x00000010 /* generate compressed mapping table */
+ #define kCompilerOpts_XML 0x00000020 /* instead of a compiled binary table, generate an XML representation of the mapping */
+
+-typedef void (CALLBACK *TECkit_ErrorFn)(void* userData, char* msg, char* param, UInt32 line);
++typedef void (CALLBACK *TECkit_ErrorFn)(void* userData, const char* msg, const char* param, UInt32 line);
+
+ TECkit_Status
+ WINAPI EXPORTED
+@@ -74,7 +77,7 @@
+ TECkit_GetCompilerVersion();
+
+ /* new APIs for looking up Unicode names (as NUL-terminated C strings) */
+-char*
++const char*
+ WINAPI EXPORTED
+ TECkit_GetUnicodeName(UInt32 usv);
+ /* returns the Unicode name of usv, if available, else NULL */
+@@ -55,7 +58,7 @@
+ #define kCompilerOpts_Compress 0x00000010 /* generate compressed mapping table */
+ #define kCompilerOpts_XML 0x00000020 /* instead of a compiled binary table, generate an XML representation of the mapping */
+
+-typedef void (CALLBACK *TECkit_ErrorFn)(void* userData, char* msg, char* param, UInt32 line);
++typedef void (CALLBACK *TECkit_ErrorFn)(void* userData, const char* msg, const char* param, UInt32 line);
+
+ TECkit_Status
+ WINAPI EXPORTED
+@@ -74,7 +77,7 @@
+ TECkit_GetCompilerVersion();
+
+ /* new APIs for looking up Unicode names (as NUL-terminated C strings) */
+-char*
++const char*
+ WINAPI EXPORTED
+ TECkit_GetUnicodeName(UInt32 usv);
+ /* returns the Unicode name of usv, if available, else NULL */
+diff -ur teckit-2.5.10/source/Sample-tools/TECkit_Compile.cpp teckit-src/source/Sample-tools/TECkit_Compile.cpp
+--- teckit-2.5.10/source/Sample-tools/TECkit_Compile.cpp Tue May 05 23:09:53 2020
++++ teckit-src/source/Sample-tools/TECkit_Compile.cpp Wed May 06 09:05:20 2020
@@ -24,13 +24,13 @@
#endif