- * Redistribution and use in source and binary forms, with or without
119
- * modification, are permitted provided that the following conditions
120
- * are met:
121
- *
122
- * 1. Redistributions of source code must retain the above copyright
123
- * notice, this list of conditions and the following disclaimer.
124
- * 2. Redistributions in binary form must reproduce the above
125
- * copyright notice, this list of conditions and the following
126
- * disclaimer in the documentation and/or other materials
127
- * provided with the distribution.
128
- *
129
- * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY
130
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
131
- * THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http:Jim_aioInit(interpJim_globInit(interpJim_fileInit(interpJim_clockInit(interparrayint argsLenJim Tcl. See htt3cl. See http://jim.berlios.dscript ?3cl. See http://jim.berlios.de/ */
132
2
#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */
133
3
#define JIM_TCL_COMPAT_H
134
4
#define TCL_LIBRARY "."
@@ -271,5 +141,248 @@
271
141
*
272
142
* THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY
273
143
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
274
- * THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http://jim.berlios.de/ */
275
-3cl. See http://jim.berlios.d
144
+ * THE IMPLIED WARRANTIES OF MERCHANTABILIfine/* No utf-8 support. 1 byte = 1 char */
145
+#define utf8_strlen(S, B) TCL_LIBRARY "."
146
+#define j
147
+#defineS, CP) (*(CP) = #define jim_eexecxec
148
+#define jim_eclockxec
149
+#define jim_ee TCL_PLATFORM_OS "windows"
150
+#define TCL_PLATFORM_PLATFORM "windows"
151
+#define TCL_PLAT/**
152
+ * Returns the length of the utf-8 sequence starting with 'c'.
153
+ *
154
+ * Returns 1-4, or -1 if this is not a valid start byte.
155
+ *
156
+ * Note that charlen=4 is not supported by the rest of the API.
157
+ */
158
+int utf8_charlen(int c);
159
+
160
+/**
161
+ * Returns the number of characters in the utf-8
162
+ * string of the given byte length.
163
+ *
164
+ * Any bytes which are not part of an valid utf-8
165
+ * sequence are treated as individual characters.
166
+ *
167
+ * The string *must* be null terminated.
168
+ *
169
+ * Does not support unicode code points > \uffff
170
+ */
171
+int utf8_strlen(bytelen);
172
+
173
+/**
174
+ * Returns the byte index of the given character in the utf-8 string.
175
+ *
176
+ * The string *must* be null terminated.
177
+ *
178
+ * This will return the byte length of a utf-8 string
179
+ * if given the char charindex);
180
+
181
+/**
182
+ * Returns the unicode codepoint corresponding to the
183
+ * utf-8 sequence 'str'.
184
+ *
185
+ * Stores the result in *uc and returns the number of bytes
186
+ * consumed.
187
+ *
188
+ * If 'str' is null terminated, then an invalid utf-8 sequence
189
+ * at the end of the string will be returned as individual bytes.
190
+ *
191
+ * If it is not null terminated, the length *must* be checked first.
192
+ *
193
+ * Does not support unicode c*uc);
194
+
195
+/**
196
+ * Returns the number of bytes before 'str' that the previous
197
+ * utf-8 character sequence starts (which may be the middle of a sequence).
198
+ *
199
+ * Looks back at most 'len' bytes backwards, which must be > 0.
200
+ * If no start char is found, returns -len
201
+ */
202
+int utf8_prev_len(
203
+/**
204
+ * Returns the upper-case variant of the given unicode codepoint.
205
+ *
206
+ * Does not support unicode code points > \uffff
207
+ */
208
+int utf8_upper(int uc);
209
+
210
+/**
211
+ * Returns the lower-case variant of the given unicode codepoint.
212
+ *
213
+ * NOTE: Use utf8_upper() in preference for case-insensitive matching.
+ * Redistribution and use in source and binary forms, with or without
233
+ * modification, are permitted provided that the following conditions
234
+ * are met:
235
+ *
236
+ * 1. Redistributions of source code must retain the above copyright
237
+ * notice, this list of conditions and the following disclaimer.
238
+ * 2. Redistributions in binary form must reproduce the above
239
+ * copyright notice, this list of conditions and the following
240
+ * disclaimer in the documentation and/or other materials
241
+ * provided with the distribution.
242
+ *
243
+ * THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY
244
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
245
+ * THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http:Jim_aioInit(interpJim_globInit(interpJim_fileInit(interpJim_clockInit(interparrayint argsLenJim Tcl. See htt3cl. See http://jim.berlios.dscript ?3cl. See http://jim.berlios.de/ */
246
+#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */
247
+#define JIM_TCL_COMPAT_H
248
+#define TCL_LIBRARY "."
249
+#define jim_ext_stdlib
250
+#define jimregexpxec
251
+#define jim_efilexec
252
+#define jim_eexecxec
253
+#define jim_eclockxec
254
+#define jim_ee TCL_PLATFORM_OS "windows"
255
+#define TCL_PLATFORM_PLATFORM "windows"
256
+#define TCL_PLATFORM_PATH_SEPARATOR ";"
257
+#define HAVE_MKDIR_ONE_ARG
258
+#define HAVE_SYSTEM
259
+#elif defined(__MINGW32__)
260
+#defi HAVE_DIRENT_H
261
+#define HAVE_UNISTD_H
262
+#define HAVE_UMASK
263
+#include elseSEPARATOR ":"
264
+#ifdef _ATFORM_PLATFORM "unix"
265
+#define TCL_PLATFORM_PATH_SEPARMKSTEMP
266
+#define HAVE_LINK
267
+#define HAVE_SYS_TIME_H
268
+#define HAVE_DITFORM "unix"
269
+#define TCL_PLATFndif
270
+#define JIM_VERS3cl. See http://jim.berlios.de/ */
271
+#define _GNU_SOURCEREFERENCES single source file,/* /**
* Redistribution and use in source and binary forms, with or without
119
* modification, are permitted provided that the following conditions
120
* are met:
121
*
122
* 1. Redistributions of source code must retain the above copyright
123
* notice, this list of conditions and the following disclaimer.
124
* 2. Redistributions in binary form must reproduce the above
125
* copyright notice, this list of conditions and the following
126
* disclaimer in the documentation and/or other materials
127
* provided with the distribution.
128
*
129
* THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY
130
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
131
* THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http:Jim_aioInit(interpJim_globInit(interpJim_fileInit(interpJim_clockInit(interparrayint argsLenJim Tcl. See htt3cl. See http://jim.berlios.dscript ?3cl. See http://jim.berlios.de/ */
132
#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */
133
#define JIM_TCL_COMPAT_H
134
#define TCL_LIBRARY "."
@@ -271,5 +141,248 @@
271
*
272
* THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY
273
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
274
* THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http://jim.berlios.de/ */
275
3cl. See http://jim.berlios.d
--- a/autosetup/jimsh0.c
+++ b/autosetup/jimsh0.c
@@ -1,134 +1,4 @@
1
3cl. See http://jim.berlios.de/ */
2
#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */
3
#define JIM_TCL_COMPAT_H
4
#define TCL_LIBRARY "."
@@ -271,5 +141,248 @@
141
*
142
* THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY
143
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
144
* THE IMPLIED WARRANTIES OF MERCHANTABILIfine/* No utf-8 support. 1 byte = 1 char */
145
#define utf8_strlen(S, B) TCL_LIBRARY "."
146
#define j
147
#defineS, CP) (*(CP) = #define jim_eexecxec
148
#define jim_eclockxec
149
#define jim_ee TCL_PLATFORM_OS "windows"
150
#define TCL_PLATFORM_PLATFORM "windows"
151
#define TCL_PLAT/**
152
* Returns the length of the utf-8 sequence starting with 'c'.
153
*
154
* Returns 1-4, or -1 if this is not a valid start byte.
155
*
156
* Note that charlen=4 is not supported by the rest of the API.
157
*/
158
int utf8_charlen(int c);
159
160
/**
161
* Returns the number of characters in the utf-8
162
* string of the given byte length.
163
*
164
* Any bytes which are not part of an valid utf-8
165
* sequence are treated as individual characters.
166
*
167
* The string *must* be null terminated.
168
*
169
* Does not support unicode code points > \uffff
170
*/
171
int utf8_strlen(bytelen);
172
173
/**
174
* Returns the byte index of the given character in the utf-8 string.
175
*
176
* The string *must* be null terminated.
177
*
178
* This will return the byte length of a utf-8 string
179
* if given the char charindex);
180
181
/**
182
* Returns the unicode codepoint corresponding to the
183
* utf-8 sequence 'str'.
184
*
185
* Stores the result in *uc and returns the number of bytes
186
* consumed.
187
*
188
* If 'str' is null terminated, then an invalid utf-8 sequence
189
* at the end of the string will be returned as individual bytes.
190
*
191
* If it is not null terminated, the length *must* be checked first.
192
*
193
* Does not support unicode c*uc);
194
195
/**
196
* Returns the number of bytes before 'str' that the previous
197
* utf-8 character sequence starts (which may be the middle of a sequence).
198
*
199
* Looks back at most 'len' bytes backwards, which must be > 0.
200
* If no start char is found, returns -len
201
*/
202
int utf8_prev_len(
203
/**
204
* Returns the upper-case variant of the given unicode codepoint.
205
*
206
* Does not support unicode code points > \uffff
207
*/
208
int utf8_upper(int uc);
209
210
/**
211
* Returns the lower-case variant of the given unicode codepoint.
212
*
213
* NOTE: Use utf8_upper() in preference for case-insensitive matching.
* Redistribution and use in source and binary forms, with or without
233
* modification, are permitted provided that the following conditions
234
* are met:
235
*
236
* 1. Redistributions of source code must retain the above copyright
237
* notice, this list of conditions and the following disclaimer.
238
* 2. Redistributions in binary form must reproduce the above
239
* copyright notice, this list of conditions and the following
240
* disclaimer in the documentation and/or other materials
241
* provided with the distribution.
242
*
243
* THIS SOFTWARE IS PROVIDED BY THE JIM TCL PROJECT ``AS IS'' AND ANY
244
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
245
* THE IMPLIED WARRANTIES OF MERCHANTABILI3cl. See http:Jim_aioInit(interpJim_globInit(interpJim_fileInit(interpJim_clockInit(interparrayint argsLenJim Tcl. See htt3cl. See http://jim.berlios.dscript ?3cl. See http://jim.berlios.de/ */
246
#define _GNU_SOURCEREFERENCES single source file,/* This is single source file, bootstrap version of Jim Tcl. See http://jim.tcl.tk/ */
247
#define JIM_TCL_COMPAT_H
248
#define TCL_LIBRARY "."
249
#define jim_ext_stdlib
250
#define jimregexpxec
251
#define jim_efilexec
252
#define jim_eexecxec
253
#define jim_eclockxec
254
#define jim_ee TCL_PLATFORM_OS "windows"
255
#define TCL_PLATFORM_PLATFORM "windows"
256
#define TCL_PLATFORM_PATH_SEPARATOR ";"
257
#define HAVE_MKDIR_ONE_ARG
258
#define HAVE_SYSTEM
259
#elif defined(__MINGW32__)
260
#defi HAVE_DIRENT_H
261
#define HAVE_UNISTD_H
262
#define HAVE_UMASK
263
#include elseSEPARATOR ":"
264
#ifdef _ATFORM_PLATFORM "unix"
265
#define TCL_PLATFORM_PATH_SEPARMKSTEMP
266
#define HAVE_LINK
267
#define HAVE_SYS_TIME_H
268
#define HAVE_DITFORM "unix"
269
#define TCL_PLATFndif
270
#define JIM_VERS3cl. See http://jim.berlios.de/ */
271
#define _GNU_SOURCEREFERENCES single source file,/* /**