Skip to content

Commit 60b9630

Browse files
committed
#703 attempt to fix this a better way
1 parent 7180e07 commit 60b9630

File tree

1 file changed

+20
-47
lines changed

1 file changed

+20
-47
lines changed

patches/flite-2.1.0_mingw-w64-fixes.patch

Lines changed: 20 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -47,52 +47,25 @@
4747
#define cst_snprintf snprintf
4848

4949
#if defined(__palmos__)
50-
--- lang/cmu_indic_lang/cmu_indic_lang.h.bak 2020-05-11 20:09:14.767028537 +0000
51-
+++ lang/cmu_indic_lang/cmu_indic_lang.h 2020-05-11 20:09:52.695315800 +0000
52-
@@ -57,5 +57,11 @@
53-
} /* extern "C" */
54-
#endif /* __cplusplus */
50+
--- ./src/utils/cst_tokenstream.c 2017-10-21 08:01:07.000000000 -0600
51+
+++ ../cst_tokenstream.c 2024-01-20 23:42:18.301601000 -0700
52+
@@ -267,7 +267,7 @@
53+
}
5554

56-
+#ifdef _WIN32
57-
+int ts_utf8_sequence_length(char c0);
58-
+#else
59-
+int ts_utf8_sequence_length(char c0);
60-
+#endif
61-
+
62-
#endif
55+
#ifdef _WIN32
56+
- __inline int ts_utf8_sequence_length(char c0)
57+
+ int ts_utf8_sequence_length(char c0)
58+
#else
59+
int ts_utf8_sequence_length(char c0)
60+
#endif
61+
--- ./src/utils/cst_val.c.bak 2024-01-20 23:54:46.864354500 -0700
62+
+++ ./src/utils/cst_val.c 2024-01-20 23:55:00.448412300 -0700
63+
@@ -476,7 +476,7 @@
64+
}
6365

64-
--- lang/cmu_indic_lang/cmu_indic_lang.c.bak 2020-05-11 20:09:18.039053308 +0000
65-
+++ lang/cmu_indic_lang/cmu_indic_lang.c 2020-05-11 20:11:17.127956086 +0000
66-
@@ -115,23 +115,16 @@
67-
#include "indic_tam_num_table.h"
68-
#include "indic_pan_num_table.h"
69-
70-
-
71-
-int ts_utf8_sequence_length(char c0);
72-
-// inline int utf8_sequence_length(char c0)
73-
-// {
74-
- // Get the expected length of UTF8 sequence given its most
75-
- // significant byte
76-
-// return (( 0xE5000000 >> (( c0 >> 3 ) & 0x1E )) & 3 ) + 1;
77-
-// }
78-
-
79-
-
80-
+#ifdef _WIN32
81-
+int ts_utf8_sequence_length(char c0)
82-
+{
83-
+ /* Get the expected length of UTF8 sequence given its most */
84-
+ /* significant byte */
85-
+ return (( 0xE5000000 >> (( c0 >> 3 ) & 0x1E )) & 3 ) + 1;
86-
+}
87-
+#else
88-
int ts_utf8_sequence_length(char c0);
89-
-// inline int utf8_sequence_length(char c0)
90-
-// {
91-
- // Get the expected length of UTF8 sequence given its most
92-
- // significant byte
93-
-// return (( 0xE5000000 >> (( c0 >> 3 ) & 0x1E )) & 3 ) + 1;
94-
-// }
95-
+#endif
96-
97-
int indic_digit_to_offset(const char *ind_digit)
98-
{
66+
#ifdef _WIN32
67+
-__inline int utf8_sequence_length(char c0)
68+
+int utf8_sequence_length(char c0)
69+
#else
70+
int utf8_sequence_length(char c0)
71+
#endif

0 commit comments

Comments
 (0)