]>
Commit | Line | Data |
---|---|---|
afb2d346 JB |
1 | --- liblouisutdml-2.6.0/liblouisutdml/louisutdml.h.orig 2015-05-07 14:31:31.000000000 +0200 |
2 | +++ liblouisutdml-2.6.0/liblouisutdml/louisutdml.h 2017-07-18 19:59:35.241446536 +0200 | |
afb2d346 JB |
3 | @@ -428,5 +429,5 @@ |
4 | ||
5 | void logWidecharBuf(logLevels level, const char *msg, const widechar *wbuf, int wlen); | |
6 | ||
7 | -// void logMessage(logLevels level, const char *format, ...); | |
8 | +void logMessage(logLevels level, const char *format, ...); | |
9 | #endif /*louisutdml_h */ | |
fe90311d JB |
10 | --- liblouisutdml-2.7.0/liblouisutdml/louisutdml.h.orig 2017-09-20 13:58:06.000000000 +0200 |
11 | +++ liblouisutdml-2.7.0/liblouisutdml/louisutdml.h 2018-12-21 05:27:44.631849763 +0100 | |
12 | @@ -117,7 +117,7 @@ | |
13 | utf8 = 0, | |
14 | utf16, | |
15 | utf32, | |
16 | - ascii8 | |
17 | + // ascii8 = EncodingType::ascii8 | |
18 | } Encoding; | |
19 | ||
20 | typedef enum | |
21 | --- liblouisutdml-2.7.0/liblouisutdml/readconfig.c.orig 2018-12-21 05:29:37.038515146 +0100 | |
22 | +++ liblouisutdml-2.7.0/liblouisutdml/readconfig.c 2018-12-21 05:29:43.175181743 +0100 | |
23 | @@ -65,7 +65,7 @@ | |
24 | char *value2; | |
25 | int value2Length; | |
26 | } | |
27 | -FileInfo; | |
28 | +ConfFileInfo; | |
29 | ||
30 | static char pathEnd[2]; | |
31 | static double paperWidth; | |
32 | @@ -78,7 +78,7 @@ | |
33 | static int fatalErrorCount = 0; | |
34 | ||
35 | static void | |
36 | -configureError (FileInfo * nested, char *format, ...) | |
37 | +configureError (ConfFileInfo * nested, char *format, ...) | |
38 | { | |
39 | char buffer[1024]; | |
40 | va_list arguments; | |
41 | @@ -215,7 +215,7 @@ | |
42 | } | |
43 | ||
44 | static char * | |
45 | -findTable (FileInfo * nested) | |
46 | +findTable (ConfFileInfo * nested) | |
47 | { | |
48 | char trialPath[MAXNAMELEN]; | |
49 | char filePath[MAXNAMELEN]; | |
50 | @@ -253,7 +253,7 @@ | |
51 | } | |
52 | ||
53 | static int | |
54 | -controlCharValue (FileInfo * nested) | |
55 | +controlCharValue (ConfFileInfo * nested) | |
56 | { | |
57 | /*Decode centrol characters*/ | |
58 | int k = 0; | |
59 | @@ -295,13 +295,13 @@ | |
60 | return 1; | |
61 | } | |
62 | ||
63 | -static int compileConfig (FileInfo * nested); | |
64 | +static int compileConfig (ConfFileInfo * nested); | |
65 | ||
66 | int | |
67 | config_compileSettings (const char *fileName) | |
68 | { | |
69 | /*Compile an input file or string */ | |
70 | - FileInfo nested; | |
71 | + ConfFileInfo nested; | |
72 | char completePath[MAXNAMELEN]; | |
73 | if (!*fileName) | |
74 | return 1; /*Probably run with defaults */ | |
75 | @@ -329,7 +329,7 @@ | |
76 | } | |
77 | ||
78 | static int | |
79 | -getLine (FileInfo * nested) | |
80 | +getLine (ConfFileInfo * nested) | |
81 | { | |
82 | int lineLen = 0; | |
83 | int ch; | |
84 | @@ -369,7 +369,7 @@ | |
85 | } | |
86 | ||
87 | static int | |
88 | -parseLine (FileInfo * nested) | |
89 | +parseLine (ConfFileInfo * nested) | |
90 | { | |
91 | char *curchar = NULL; | |
92 | int ch = 0; | |
93 | @@ -468,7 +468,7 @@ | |
94 | } | |
95 | ||
96 | static int | |
97 | -checkActions (FileInfo * nested, const char **actions) | |
98 | +checkActions (ConfFileInfo * nested, const char **actions) | |
99 | { | |
100 | int actionNum = find_action (actions, nested->action); | |
101 | if (actionNum == -1) | |
102 | @@ -477,7 +477,7 @@ | |
103 | } | |
104 | ||
105 | static int | |
106 | -checkValues (FileInfo * nested, const char **values) | |
107 | +checkValues (ConfFileInfo * nested, const char **values) | |
108 | { | |
109 | int k; | |
110 | for (k = 0; values[k]; k += 2) | |
111 | @@ -494,7 +494,7 @@ | |
112 | } | |
113 | ||
114 | static unsigned int | |
115 | -hexValue (FileInfo * nested, const char *digits) | |
116 | +hexValue (ConfFileInfo * nested, const char *digits) | |
117 | { | |
118 | int length = strlen (digits); | |
119 | int k; | |
120 | @@ -520,7 +520,7 @@ | |
121 | } | |
122 | ||
123 | static unsigned int | |
124 | -convertValue (FileInfo * nested, const char *number) | |
125 | +convertValue (ConfFileInfo * nested, const char *number) | |
126 | { | |
127 | if (number[0] == '0' && number[1] == 'x') | |
128 | return hexValue (nested, &number[2]); | |
129 | @@ -534,7 +534,7 @@ | |
130 | } | |
131 | ||
132 | static int | |
133 | -orValues (FileInfo * nested, const char **values) | |
134 | +orValues (ConfFileInfo * nested, const char **values) | |
135 | { | |
136 | int result = 0; | |
137 | int k; | |
138 | @@ -564,7 +564,7 @@ | |
139 | } | |
140 | ||
141 | static int | |
142 | -checkSubActions (FileInfo * nested, const char **mainActions, const char | |
143 | +checkSubActions (ConfFileInfo * nested, const char **mainActions, const char | |
144 | **subActions) | |
145 | { | |
146 | int subAction; | |
147 | @@ -588,7 +588,7 @@ | |
148 | } | |
afb2d346 | 149 | |
fe90311d JB |
150 | static int |
151 | -compileConfig (FileInfo * nested) | |
152 | +compileConfig (ConfFileInfo * nested) | |
153 | { | |
154 | static const char *mainActions[] = { | |
155 | "outputFormat", | |
156 | --- liblouisutdml-2.7.0/liblouisutdml/semantics.c.orig 2017-09-20 13:58:06.000000000 +0200 | |
157 | +++ liblouisutdml-2.7.0/liblouisutdml/semantics.c 2018-12-21 05:30:17.571848019 +0100 | |
158 | @@ -47,7 +47,7 @@ | |
159 | int unedited; | |
160 | char line[5 * MAXNAMELEN]; | |
161 | } | |
162 | -FileInfo; | |
163 | +SemFileInfo; | |
164 | ||
165 | #define HASHSIZE 383 | |
166 | #define MAXINSERTS 256 | |
167 | @@ -91,10 +91,10 @@ | |
168 | static int errorCount = 0; | |
169 | static const xmlChar *rootName; | |
170 | static xmlXPathContext *xpathCtx = NULL; | |
171 | -static int registerNamespaces (FileInfo * Nested, xmlXPathContextPtr | |
172 | +static int registerNamespaces (SemFileInfo * Nested, xmlXPathContextPtr | |
173 | xpathCtx, const xmlChar * nsList); | |
afb2d346 | 174 | static void |
fe90311d JB |
175 | -semanticError (FileInfo * nested, char *format, ...) |
176 | +semanticError (SemFileInfo * nested, char *format, ...) | |
177 | { | |
178 | char buffer[MAXNAMELEN]; | |
179 | va_list arguments; | |
180 | @@ -342,7 +342,7 @@ | |
181 | } | |
182 | ||
183 | static widechar | |
184 | -hexValue (FileInfo * nested, const xmlChar * digits, int length) | |
185 | +hexValue (SemFileInfo * nested, const xmlChar * digits, int length) | |
afb2d346 JB |
186 | { |
187 | int k; | |
fe90311d JB |
188 | unsigned int binaryValue = 0; |
189 | @@ -367,7 +367,7 @@ | |
190 | } | |
191 | ||
192 | static InsertsType * | |
193 | -encodeInsertions (FileInfo * nested, xmlChar * insertions, int length) | |
194 | +encodeInsertions (SemFileInfo * nested, xmlChar * insertions, int length) | |
195 | { | |
196 | int k = 0; | |
197 | int prevk = 0; | |
198 | @@ -642,7 +642,7 @@ | |
199 | return -1; | |
200 | } | |
201 | static int | |
202 | -compileLine (FileInfo * nested) | |
203 | +compileLine (SemFileInfo * nested) | |
204 | { | |
205 | char *curchar = NULL; | |
206 | int ch = 0; | |
207 | @@ -835,7 +835,7 @@ | |
208 | } | |
209 | ||
210 | static int | |
211 | -getALine (FileInfo * nested) | |
212 | +getALine (SemFileInfo * nested) | |
213 | { | |
214 | /*Read a line of chars from an input file */ | |
215 | int ch; | |
216 | @@ -867,7 +867,7 @@ | |
217 | sem_compileFile (const char *fileName) | |
218 | { | |
219 | /*Compile an input file */ | |
220 | - FileInfo nested; | |
221 | + SemFileInfo nested; | |
222 | char completePath[MAXNAMELEN]; | |
223 | int haveAppended = 0; | |
224 | logMessage(LOG_INFO, "Begin sem_compileFile: fileName=%s", fileName); | |
225 | @@ -1025,7 +1025,7 @@ | |
226 | * Returns 1 on success and 0 on failure. | |
227 | */ | |
228 | static int | |
229 | -registerNamespaces (FileInfo * nested, xmlXPathContextPtr xpathCtx, const | |
230 | +registerNamespaces (SemFileInfo * nested, xmlXPathContextPtr xpathCtx, const | |
231 | xmlChar * nsList) | |
232 | { | |
233 | xmlChar *nsListDup; |