]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/patches/sed_msc.patch
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / patches / sed_msc.patch
1 diff -Nru ../release/sed-4.1.5/config_h.msc ./config_h.msc\r
2 --- ../release/sed-4.1.5/config_h.msc   1969-12-31 16:00:00.000000000 -0800\r
3 +++ ./config_h.msc      2006-09-28 19:34:18.620414300 -0700\r
4 @@ -0,0 +1,387 @@\r
5 +/* config_h.in.  Generated from configure.ac by autoheader. */\r
6 +/* config_h.msc.  Modified for Microsoft Visual Studio. */\r
7 +\r
8 +#define O_CREAT _O_CREAT\r
9 +#define O_EXCL _O_EXCL\r
10 +#define O_RDWR _O_RDWR\r
11 +\r
12 +#define popen _popen\r
13 +#define pclose _pclose\r
14 +#define alloca _alloca\r
15 +#define strcasecmp stricmp\r
16 +\r
17 +#define S_ISREG(x) (((x) & _S_IFMT) == _S_IFREG)\r
18 +\r
19 +#define HAVE_FCNTL_H 1\r
20 +\r
21 +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP\r
22 +   systems. This function is required for `alloca.c' support on those systems.\r
23 +   */\r
24 +#undef CRAY_STACKSEG_END\r
25 +\r
26 +/* Define to 1 if using `alloca.c'. */\r
27 +#undef C_ALLOCA\r
28 +\r
29 +/* Define to 1 if translation of program messages to the user's native\r
30 +   language is requested. */\r
31 +#undef ENABLE_NLS\r
32 +\r
33 +/* Define to 1 if you have `alloca', as a function or macro. */\r
34 +#define HAVE_ALLOCA 1\r
35 +\r
36 +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).\r
37 +   */\r
38 +#undef HAVE_ALLOCA_H\r
39 +\r
40 +/* Define to 1 if you have the <argz.h> header file. */\r
41 +#undef HAVE_ARGZ_H\r
42 +\r
43 +/* Define to 1 if you have the `bcopy' function. */\r
44 +#undef HAVE_BCOPY\r
45 +\r
46 +/* Define to 1 if you have the `btowc' function. */\r
47 +#undef HAVE_BTOWC\r
48 +\r
49 +/* Define to 1 if you have the `bzero' function. */\r
50 +#undef HAVE_BZERO\r
51 +\r
52 +/* Define if the GNU dcgettext() function is already present or preinstalled.\r
53 +   */\r
54 +#undef HAVE_DCGETTEXT\r
55 +\r
56 +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.\r
57 +   */\r
58 +#define HAVE_DIRENT_H 1\r
59 +\r
60 +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */\r
61 +#undef HAVE_DOPRNT\r
62 +\r
63 +/* Define to 1 if you have the <errno.h> header file. */\r
64 +#define HAVE_ERRNO_H 1\r
65 +\r
66 +/* Define to 1 if you have the `fchmod' function. */\r
67 +#undef HAVE_FCHMOD\r
68 +\r
69 +/* Define to 1 if you have the `fchown' function. */\r
70 +#undef HAVE_FCHOWN\r
71 +\r
72 +/* Define to 1 if you have the `feof_unlocked' function. */\r
73 +#undef HAVE_FEOF_UNLOCKED\r
74 +\r
75 +/* Define to 1 if you have the `fgets_unlocked' function. */\r
76 +#undef HAVE_FGETS_UNLOCKED\r
77 +\r
78 +/* Define to 1 if you have the `getcwd' function. */\r
79 +#define HAVE_GETCWD 1\r
80 +\r
81 +/* Define to 1 if you have the `getc_unlocked' function. */\r
82 +#undef HAVE_GETC_UNLOCKED\r
83 +\r
84 +/* Define to 1 if you have the `getegid' function. */\r
85 +#undef HAVE_GETEGID\r
86 +\r
87 +/* Define to 1 if you have the `geteuid' function. */\r
88 +#undef HAVE_GETEUID\r
89 +\r
90 +/* Define to 1 if you have the `getgid' function. */\r
91 +#undef HAVE_GETGID\r
92 +\r
93 +/* Define to 1 if you have the `getpagesize' function. */\r
94 +#undef HAVE_GETPAGESIZE\r
95 +\r
96 +/* Define if the GNU gettext() function is already present or preinstalled. */\r
97 +#undef HAVE_GETTEXT\r
98 +\r
99 +/* Define to 1 if you have the `getuid' function. */\r
100 +#undef HAVE_GETUID\r
101 +\r
102 +/* Define if you have the iconv() function. */\r
103 +#undef HAVE_ICONV\r
104 +\r
105 +/* Define to 1 if you have the <inttypes.h> header file. */\r
106 +#undef HAVE_INTTYPES_H\r
107 +\r
108 +/* Define to 1 if you have the <io.h> header file. */\r
109 +#define HAVE_IO_H 1\r
110 +\r
111 +/* Define to 1 if you have the `isascii' function. */\r
112 +#define HAVE_ISASCII 1\r
113 +\r
114 +/* Define to 1 if you have the `isatty' function. */\r
115 +#undef HAVE_ISATTY\r
116 +\r
117 +/* Define to 1 if you have the `isblank' function. */\r
118 +#undef HAVE_ISBLANK\r
119 +\r
120 +/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */\r
121 +#undef HAVE_LANGINFO_CODESET\r
122 +\r
123 +/* Define if your <locale.h> file defines LC_MESSAGES. */\r
124 +#define HAVE_LC_MESSAGES 1\r
125 +\r
126 +/* Define to 1 if you have the `regex' library (-lregex). */\r
127 +#undef HAVE_LIBREGEX\r
128 +\r
129 +/* Define to 1 if you have the <limits.h> header file. */\r
130 +#define HAVE_LIMITS_H 1\r
131 +\r
132 +/* Define to 1 if you have the <locale.h> header file. */\r
133 +#undef HAVE_LOCALE_H\r
134 +\r
135 +/* Define to 1 if you support file names longer than 14 characters. */\r
136 +#define HAVE_LONG_FILE_NAMES 1\r
137 +\r
138 +/* Define to 1 if you have the <malloc.h> header file. */\r
139 +#define HAVE_MALLOC_H 1\r
140 +\r
141 +/* Define to 1 if mbrtowc and mbstate_t are properly declared. */\r
142 +#undef HAVE_MBRTOWC\r
143 +\r
144 +/* Define to 1 if <wchar.h> declares mbstate_t. */\r
145 +#undef HAVE_MBSTATE_T\r
146 +\r
147 +/* Define to 1 if you have the <mcheck.h> header file. */\r
148 +#undef HAVE_MCHECK_H\r
149 +\r
150 +/* Define to 1 if you have the `memchr' function. */\r
151 +#define HAVE_MEMCHR 1\r
152 +\r
153 +/* Define to 1 if you have the `memcmp' function. */\r
154 +#define HAVE_MEMCMP 1\r
155 +\r
156 +/* Define to 1 if you have the `memcpy' function. */\r
157 +#define HAVE_MEMCPY 1\r
158 +\r
159 +/* Define to 1 if you have the `memmove' function. */\r
160 +#define HAVE_MEMMOVE 1\r
161 +\r
162 +/* Define to 1 if you have the <memory.h> header file. */\r
163 +#define HAVE_MEMORY_H 1\r
164 +\r
165 +/* Define to 1 if you have the `mempcpy' function. */\r
166 +#undef HAVE_MEMPCPY\r
167 +\r
168 +/* Define to 1 if you have the `memset' function. */\r
169 +#define HAVE_MEMSET 1\r
170 +\r
171 +/* Define to 1 if you have the `mkstemp' function. */\r
172 +#undef HAVE_MKSTEMP\r
173 +\r
174 +/* Define to 1 if you have a working `mmap' system call. */\r
175 +#undef HAVE_MMAP\r
176 +\r
177 +/* Define to 1 if you have the `munmap' function. */\r
178 +#undef HAVE_MUNMAP\r
179 +\r
180 +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */\r
181 +#undef HAVE_NDIR_H\r
182 +\r
183 +/* Define to 1 if you have the <nl_types.h> header file. */\r
184 +#undef HAVE_NL_TYPES_H\r
185 +\r
186 +/* Define to 1 if libc includes obstacks. */\r
187 +#undef HAVE_OBSTACK\r
188 +\r
189 +/* Define to 1 if you have the `pathconf' function. */\r
190 +#undef HAVE_PATHCONF\r
191 +\r
192 +/* Define to 1 if you have the `popen' function. */\r
193 +#define HAVE_POPEN 1\r
194 +\r
195 +/* Define to 1 if you have the `putenv' function. */\r
196 +#define HAVE_PUTENV 1\r
197 +\r
198 +/* Define to 1 if you have the <regex.h> header file. */\r
199 +#undef HAVE_REGEX_H\r
200 +\r
201 +/* Define to 1 if you have the `setenv' function. */\r
202 +#define HAVE_SETENV 1\r
203 +\r
204 +/* Define to 1 if you have the `setlocale' function. */\r
205 +#undef HAVE_SETLOCALE\r
206 +\r
207 +/* Define to 1 if you have the <stdarg.h> header file. */\r
208 +#define HAVE_STDARG_H 1\r
209 +\r
210 +/* Define to 1 if stdbool.h conforms to C99. */\r
211 +#undef HAVE_STDBOOL_H\r
212 +\r
213 +/* Define to 1 if you have the <stddef.h> header file. */\r
214 +#define HAVE_STDDEF_H 1\r
215 +\r
216 +/* Define to 1 if you have the <stdint.h> header file. */\r
217 +#undef HAVE_STDINT_H\r
218 +\r
219 +/* Define to 1 if you have the <stdlib.h> header file. */\r
220 +#define HAVE_STDLIB_H 1\r
221 +\r
222 +/* Define to 1 if you have the `stpcpy' function. */\r
223 +#undef HAVE_STPCPY\r
224 +\r
225 +/* Define to 1 if you have the `strcasecmp' function. */\r
226 +#undef HAVE_STRCASECMP\r
227 +\r
228 +/* Define to 1 if you have the `strchr' function. */\r
229 +#define HAVE_STRCHR 1\r
230 +\r
231 +/* Define to 1 if you have the `strdup' function. */\r
232 +#define HAVE_STRDUP 1\r
233 +\r
234 +/* Define to 1 if you have the `strerror' function. */\r
235 +#define HAVE_STRERROR 1\r
236 +\r
237 +/* Define to 1 if you have the <strings.h> header file. */\r
238 +#undef HAVE_STRINGS_H\r
239 +\r
240 +/* Define to 1 if you have the <string.h> header file. */\r
241 +#define HAVE_STRING_H 1\r
242 +\r
243 +/* Define to 1 if you have the `strtoul' function. */\r
244 +#define HAVE_STRTOUL 1\r
245 +\r
246 +/* Define to 1 if you have the `strverscmp' function. */\r
247 +#undef HAVE_STRVERSCMP\r
248 +\r
249 +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.\r
250 +   */\r
251 +#define HAVE_SYS_DIR_H 1\r
252 +\r
253 +/* Define to 1 if you have the <sys/file.h> header file. */\r
254 +#undef HAVE_SYS_FILE_H\r
255 +\r
256 +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.\r
257 +   */\r
258 +#define HAVE_SYS_NDIR_H 1\r
259 +\r
260 +/* Define to 1 if you have the <sys/param.h> header file. */\r
261 +#define HAVE_SYS_PARAM_H 1\r
262 +\r
263 +/* Define to 1 if you have the <sys/stat.h> header file. */\r
264 +#define HAVE_SYS_STAT_H 1\r
265 +\r
266 +/* Define to 1 if you have the <sys/types.h> header file. */\r
267 +#define HAVE_SYS_TYPES_H 1\r
268 +\r
269 +/* Define to 1 if you have the `tsearch' function. */\r
270 +#define HAVE_TSEARCH 1\r
271 +\r
272 +/* Define to 1 if you have the <unistd.h> header file. */\r
273 +#undef HAVE_UNISTD_H\r
274 +\r
275 +/* Define to 1 if you have the `vprintf' function. */\r
276 +#define HAVE_VPRINTF 1\r
277 +\r
278 +/* Define to 1 if you have the <wchar.h> header file. */\r
279 +#undef HAVE_WCHAR_H\r
280 +\r
281 +/* Define to 1 if you have the `wcrtomb' function. */\r
282 +#undef HAVE_WCRTOMB\r
283 +\r
284 +/* Define to 1 if you have the `wcscoll' function. */\r
285 +#undef HAVE_WCSCOLL\r
286 +\r
287 +/* Define to 1 if you have the <wctype.h> header file. */\r
288 +#undef HAVE_WCTYPE_H\r
289 +\r
290 +/* Define to 1 if the system has the type `_Bool'. */\r
291 +#undef HAVE__BOOL\r
292 +\r
293 +/* Define to 1 if you have the `__argz_count' function. */\r
294 +#undef HAVE___ARGZ_COUNT\r
295 +\r
296 +/* Define to 1 if you have the `__argz_next' function. */\r
297 +#undef HAVE___ARGZ_NEXT\r
298 +\r
299 +/* Define to 1 if you have the `__argz_stringify' function. */\r
300 +#undef HAVE___ARGZ_STRINGIFY\r
301 +\r
302 +/* Define as const if the declaration of iconv() needs const. */\r
303 +#undef ICONV_CONST\r
304 +\r
305 +/* Name of package */\r
306 +#define PACKAGE "sed"\r
307 +\r
308 +/* Define to the address where bug reports for this package should be sent. */\r
309 +#undef PACKAGE_BUGREPORT\r
310 +\r
311 +/* Define to the full name of this package. */\r
312 +#undef PACKAGE_NAME\r
313 +\r
314 +/* Define to the full name and version of this package. */\r
315 +#undef PACKAGE_STRING\r
316 +\r
317 +/* Define to the one symbol short name of this package. */\r
318 +#undef PACKAGE_TARNAME\r
319 +\r
320 +/* Define to the version of this package. */\r
321 +#undef PACKAGE_VERSION\r
322 +\r
323 +/* Define to the version of GNU sed whose features are supported by this sed.\r
324 +   */\r
325 +#define SED_FEATURE_VERSION "5.1"\r
326 +\r
327 +/* If using the C implementation of alloca, define if you know the\r
328 +   direction of stack growth for your system; otherwise it will be\r
329 +   automatically deduced at run-time.\r
330 +       STACK_DIRECTION > 0 => grows toward higher addresses\r
331 +       STACK_DIRECTION < 0 => grows toward lower addresses\r
332 +       STACK_DIRECTION = 0 => direction of growth unknown */\r
333 +#undef STACK_DIRECTION\r
334 +\r
335 +/* Define to 1 if you have the ANSI C header files. */\r
336 +#define STDC_HEADERS 1\r
337 +\r
338 +/* Version number of package */\r
339 +#define VERSION "4.1.5"\r
340 +\r
341 +/* Define to 1 if on AIX 3.\r
342 +   System headers sometimes define this.\r
343 +   We just want to avoid a redefinition error message.  */\r
344 +#ifndef _ALL_SOURCE\r
345 +# undef _ALL_SOURCE\r
346 +#endif\r
347 +\r
348 +/* Number of bits in a file offset, on hosts where this is settable. */\r
349 +#undef _FILE_OFFSET_BITS\r
350 +\r
351 +/* Enable GNU extensions on systems that have them.  */\r
352 +#ifndef _GNU_SOURCE\r
353 +# undef _GNU_SOURCE\r
354 +#endif\r
355 +\r
356 +/* Define for large files, on AIX-style hosts. */\r
357 +#undef _LARGE_FILES\r
358 +\r
359 +/* Define to 1 if on MINIX. */\r
360 +#undef _MINIX\r
361 +\r
362 +/* Define to 2 if the system does not provide POSIX.1 features except with\r
363 +   this defined. */\r
364 +#undef _POSIX_1_SOURCE\r
365 +\r
366 +/* Define to 1 if you need to in order for `stat' and other things to work. */\r
367 +#undef _POSIX_SOURCE\r
368 +\r
369 +/* Include BSD functions in regex, used by the testsuite */\r
370 +#undef _REGEX_RE_COMP\r
371 +\r
372 +/* Define to empty if `const' does not conform to ANSI C. */\r
373 +#undef const\r
374 +\r
375 +/* Define to `__inline__' or `__inline' if that's what the C compiler\r
376 +   calls it, or to nothing if 'inline' is not supported under any name.  */\r
377 +#ifndef __cplusplus\r
378 +#define inline __inline\r
379 +#endif\r
380 +\r
381 +/* Define to a type if <wchar.h> does not define. */\r
382 +#define mbstate_t int\r
383 +\r
384 +/* Define to `long' if <sys/types.h> does not define. */\r
385 +#undef off_t\r
386 +\r
387 +/* Define to `unsigned' if <sys/types.h> does not define. */\r
388 +#undef size_t\r
389 +\r
390 +/* Define to `int' if <sys/types.h> does not define. */\r
391 +#undef ssize_t\r
392 diff -Nru ../release/sed-4.1.5/config_h.msc~ ./config_h.msc~\r
393 --- ../release/sed-4.1.5/config_h.msc~  1969-12-31 16:00:00.000000000 -0800\r
394 +++ ./config_h.msc~     2006-09-28 13:56:59.922178500 -0700\r
395 @@ -0,0 +1,386 @@\r
396 +/* config_h.in.  Generated from configure.ac by autoheader.  */\r
397 +\r
398 +#define O_CREAT _O_CREAT\r
399 +#define O_EXCL _O_EXCL\r
400 +#define O_RDWR _O_RDWR\r
401 +\r
402 +#define popen _popen\r
403 +#define pclose _pclose\r
404 +#define alloca _alloca\r
405 +#define strcasecmp stricmp\r
406 +\r
407 +#define S_ISREG(x) (((x) & _S_IFMT) == _S_IFREG)\r
408 +\r
409 +#define HAVE_FCNTL_H 1\r
410 +\r
411 +/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP\r
412 +   systems. This function is required for `alloca.c' support on those systems.\r
413 +   */\r
414 +#undef CRAY_STACKSEG_END\r
415 +\r
416 +/* Define to 1 if using `alloca.c'. */\r
417 +#undef C_ALLOCA\r
418 +\r
419 +/* Define to 1 if translation of program messages to the user's native\r
420 +   language is requested. */\r
421 +#undef ENABLE_NLS\r
422 +\r
423 +/* Define to 1 if you have `alloca', as a function or macro. */\r
424 +#define HAVE_ALLOCA 1\r
425 +\r
426 +/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).\r
427 +   */\r
428 +#undef HAVE_ALLOCA_H\r
429 +\r
430 +/* Define to 1 if you have the <argz.h> header file. */\r
431 +#undef HAVE_ARGZ_H\r
432 +\r
433 +/* Define to 1 if you have the `bcopy' function. */\r
434 +#undef HAVE_BCOPY\r
435 +\r
436 +/* Define to 1 if you have the `btowc' function. */\r
437 +#undef HAVE_BTOWC\r
438 +\r
439 +/* Define to 1 if you have the `bzero' function. */\r
440 +#undef HAVE_BZERO\r
441 +\r
442 +/* Define if the GNU dcgettext() function is already present or preinstalled.\r
443 +   */\r
444 +#undef HAVE_DCGETTEXT\r
445 +\r
446 +/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.\r
447 +   */\r
448 +#define HAVE_DIRENT_H 1\r
449 +\r
450 +/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */\r
451 +#undef HAVE_DOPRNT\r
452 +\r
453 +/* Define to 1 if you have the <errno.h> header file. */\r
454 +#define HAVE_ERRNO_H 1\r
455 +\r
456 +/* Define to 1 if you have the `fchmod' function. */\r
457 +#undef HAVE_FCHMOD\r
458 +\r
459 +/* Define to 1 if you have the `fchown' function. */\r
460 +#undef HAVE_FCHOWN\r
461 +\r
462 +/* Define to 1 if you have the `feof_unlocked' function. */\r
463 +#undef HAVE_FEOF_UNLOCKED\r
464 +\r
465 +/* Define to 1 if you have the `fgets_unlocked' function. */\r
466 +#undef HAVE_FGETS_UNLOCKED\r
467 +\r
468 +/* Define to 1 if you have the `getcwd' function. */\r
469 +#define HAVE_GETCWD 1\r
470 +\r
471 +/* Define to 1 if you have the `getc_unlocked' function. */\r
472 +#undef HAVE_GETC_UNLOCKED\r
473 +\r
474 +/* Define to 1 if you have the `getegid' function. */\r
475 +#undef HAVE_GETEGID\r
476 +\r
477 +/* Define to 1 if you have the `geteuid' function. */\r
478 +#undef HAVE_GETEUID\r
479 +\r
480 +/* Define to 1 if you have the `getgid' function. */\r
481 +#undef HAVE_GETGID\r
482 +\r
483 +/* Define to 1 if you have the `getpagesize' function. */\r
484 +#undef HAVE_GETPAGESIZE\r
485 +\r
486 +/* Define if the GNU gettext() function is already present or preinstalled. */\r
487 +#undef HAVE_GETTEXT\r
488 +\r
489 +/* Define to 1 if you have the `getuid' function. */\r
490 +#undef HAVE_GETUID\r
491 +\r
492 +/* Define if you have the iconv() function. */\r
493 +#undef HAVE_ICONV\r
494 +\r
495 +/* Define to 1 if you have the <inttypes.h> header file. */\r
496 +#undef HAVE_INTTYPES_H\r
497 +\r
498 +/* Define to 1 if you have the <io.h> header file. */\r
499 +#define HAVE_IO_H 1\r
500 +\r
501 +/* Define to 1 if you have the `isascii' function. */\r
502 +#define HAVE_ISASCII 1\r
503 +\r
504 +/* Define to 1 if you have the `isatty' function. */\r
505 +#undef HAVE_ISATTY\r
506 +\r
507 +/* Define to 1 if you have the `isblank' function. */\r
508 +#undef HAVE_ISBLANK\r
509 +\r
510 +/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */\r
511 +#undef HAVE_LANGINFO_CODESET\r
512 +\r
513 +/* Define if your <locale.h> file defines LC_MESSAGES. */\r
514 +#define HAVE_LC_MESSAGES 1\r
515 +\r
516 +/* Define to 1 if you have the `regex' library (-lregex). */\r
517 +#undef HAVE_LIBREGEX\r
518 +\r
519 +/* Define to 1 if you have the <limits.h> header file. */\r
520 +#define HAVE_LIMITS_H 1\r
521 +\r
522 +/* Define to 1 if you have the <locale.h> header file. */\r
523 +#undef HAVE_LOCALE_H\r
524 +\r
525 +/* Define to 1 if you support file names longer than 14 characters. */\r
526 +#define HAVE_LONG_FILE_NAMES 1\r
527 +\r
528 +/* Define to 1 if you have the <malloc.h> header file. */\r
529 +#define HAVE_MALLOC_H 1\r
530 +\r
531 +/* Define to 1 if mbrtowc and mbstate_t are properly declared. */\r
532 +#undef HAVE_MBRTOWC\r
533 +\r
534 +/* Define to 1 if <wchar.h> declares mbstate_t. */\r
535 +#undef HAVE_MBSTATE_T\r
536 +\r
537 +/* Define to 1 if you have the <mcheck.h> header file. */\r
538 +#undef HAVE_MCHECK_H\r
539 +\r
540 +/* Define to 1 if you have the `memchr' function. */\r
541 +#define HAVE_MEMCHR 1\r
542 +\r
543 +/* Define to 1 if you have the `memcmp' function. */\r
544 +#define HAVE_MEMCMP 1\r
545 +\r
546 +/* Define to 1 if you have the `memcpy' function. */\r
547 +#define HAVE_MEMCPY 1\r
548 +\r
549 +/* Define to 1 if you have the `memmove' function. */\r
550 +#define HAVE_MEMMOVE 1\r
551 +\r
552 +/* Define to 1 if you have the <memory.h> header file. */\r
553 +#define HAVE_MEMORY_H 1\r
554 +\r
555 +/* Define to 1 if you have the `mempcpy' function. */\r
556 +#undef HAVE_MEMPCPY\r
557 +\r
558 +/* Define to 1 if you have the `memset' function. */\r
559 +#define HAVE_MEMSET 1\r
560 +\r
561 +/* Define to 1 if you have the `mkstemp' function. */\r
562 +#undef HAVE_MKSTEMP\r
563 +\r
564 +/* Define to 1 if you have a working `mmap' system call. */\r
565 +#undef HAVE_MMAP\r
566 +\r
567 +/* Define to 1 if you have the `munmap' function. */\r
568 +#undef HAVE_MUNMAP\r
569 +\r
570 +/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */\r
571 +#undef HAVE_NDIR_H\r
572 +\r
573 +/* Define to 1 if you have the <nl_types.h> header file. */\r
574 +#undef HAVE_NL_TYPES_H\r
575 +\r
576 +/* Define to 1 if libc includes obstacks. */\r
577 +#undef HAVE_OBSTACK\r
578 +\r
579 +/* Define to 1 if you have the `pathconf' function. */\r
580 +#undef HAVE_PATHCONF\r
581 +\r
582 +/* Define to 1 if you have the `popen' function. */\r
583 +#define HAVE_POPEN 1\r
584 +\r
585 +/* Define to 1 if you have the `putenv' function. */\r
586 +#define HAVE_PUTENV 1\r
587 +\r
588 +/* Define to 1 if you have the <regex.h> header file. */\r
589 +#undef HAVE_REGEX_H\r
590 +\r
591 +/* Define to 1 if you have the `setenv' function. */\r
592 +#define HAVE_SETENV 1\r
593 +\r
594 +/* Define to 1 if you have the `setlocale' function. */\r
595 +#undef HAVE_SETLOCALE\r
596 +\r
597 +/* Define to 1 if you have the <stdarg.h> header file. */\r
598 +#define HAVE_STDARG_H 1\r
599 +\r
600 +/* Define to 1 if stdbool.h conforms to C99. */\r
601 +#undef HAVE_STDBOOL_H\r
602 +\r
603 +/* Define to 1 if you have the <stddef.h> header file. */\r
604 +#define HAVE_STDDEF_H 1\r
605 +\r
606 +/* Define to 1 if you have the <stdint.h> header file. */\r
607 +#undef HAVE_STDINT_H\r
608 +\r
609 +/* Define to 1 if you have the <stdlib.h> header file. */\r
610 +#define HAVE_STDLIB_H 1\r
611 +\r
612 +/* Define to 1 if you have the `stpcpy' function. */\r
613 +#undef HAVE_STPCPY\r
614 +\r
615 +/* Define to 1 if you have the `strcasecmp' function. */\r
616 +#undef HAVE_STRCASECMP\r
617 +\r
618 +/* Define to 1 if you have the `strchr' function. */\r
619 +#define HAVE_STRCHR 1\r
620 +\r
621 +/* Define to 1 if you have the `strdup' function. */\r
622 +#define HAVE_STRDUP 1\r
623 +\r
624 +/* Define to 1 if you have the `strerror' function. */\r
625 +#define HAVE_STRERROR 1\r
626 +\r
627 +/* Define to 1 if you have the <strings.h> header file. */\r
628 +#undef HAVE_STRINGS_H\r
629 +\r
630 +/* Define to 1 if you have the <string.h> header file. */\r
631 +#define HAVE_STRING_H 1\r
632 +\r
633 +/* Define to 1 if you have the `strtoul' function. */\r
634 +#define HAVE_STRTOUL 1\r
635 +\r
636 +/* Define to 1 if you have the `strverscmp' function. */\r
637 +#undef HAVE_STRVERSCMP\r
638 +\r
639 +/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.\r
640 +   */\r
641 +#define HAVE_SYS_DIR_H 1\r
642 +\r
643 +/* Define to 1 if you have the <sys/file.h> header file. */\r
644 +#undef HAVE_SYS_FILE_H\r
645 +\r
646 +/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.\r
647 +   */\r
648 +#define HAVE_SYS_NDIR_H 1\r
649 +\r
650 +/* Define to 1 if you have the <sys/param.h> header file. */\r
651 +#define HAVE_SYS_PARAM_H 1\r
652 +\r
653 +/* Define to 1 if you have the <sys/stat.h> header file. */\r
654 +#define HAVE_SYS_STAT_H 1\r
655 +\r
656 +/* Define to 1 if you have the <sys/types.h> header file. */\r
657 +#define HAVE_SYS_TYPES_H 1\r
658 +\r
659 +/* Define to 1 if you have the `tsearch' function. */\r
660 +#define HAVE_TSEARCH 1\r
661 +\r
662 +/* Define to 1 if you have the <unistd.h> header file. */\r
663 +#undef HAVE_UNISTD_H\r
664 +\r
665 +/* Define to 1 if you have the `vprintf' function. */\r
666 +#define HAVE_VPRINTF 1\r
667 +\r
668 +/* Define to 1 if you have the <wchar.h> header file. */\r
669 +#undef HAVE_WCHAR_H\r
670 +\r
671 +/* Define to 1 if you have the `wcrtomb' function. */\r
672 +#undef HAVE_WCRTOMB\r
673 +\r
674 +/* Define to 1 if you have the `wcscoll' function. */\r
675 +#undef HAVE_WCSCOLL\r
676 +\r
677 +/* Define to 1 if you have the <wctype.h> header file. */\r
678 +#undef HAVE_WCTYPE_H\r
679 +\r
680 +/* Define to 1 if the system has the type `_Bool'. */\r
681 +#undef HAVE__BOOL\r
682 +\r
683 +/* Define to 1 if you have the `__argz_count' function. */\r
684 +#undef HAVE___ARGZ_COUNT\r
685 +\r
686 +/* Define to 1 if you have the `__argz_next' function. */\r
687 +#undef HAVE___ARGZ_NEXT\r
688 +\r
689 +/* Define to 1 if you have the `__argz_stringify' function. */\r
690 +#undef HAVE___ARGZ_STRINGIFY\r
691 +\r
692 +/* Define as const if the declaration of iconv() needs const. */\r
693 +#undef ICONV_CONST\r
694 +\r
695 +/* Name of package */\r
696 +#define PACKAGE "sed"\r
697 +\r
698 +/* Define to the address where bug reports for this package should be sent. */\r
699 +#undef PACKAGE_BUGREPORT\r
700 +\r
701 +/* Define to the full name of this package. */\r
702 +#undef PACKAGE_NAME\r
703 +\r
704 +/* Define to the full name and version of this package. */\r
705 +#undef PACKAGE_STRING\r
706 +\r
707 +/* Define to the one symbol short name of this package. */\r
708 +#undef PACKAGE_TARNAME\r
709 +\r
710 +/* Define to the version of this package. */\r
711 +#undef PACKAGE_VERSION\r
712 +\r
713 +/* Define to the version of GNU sed whose features are supported by this sed.\r
714 +   */\r
715 +#define SED_FEATURE_VERSION "5.1"\r
716 +\r
717 +/* If using the C implementation of alloca, define if you know the\r
718 +   direction of stack growth for your system; otherwise it will be\r
719 +   automatically deduced at run-time.\r
720 +       STACK_DIRECTION > 0 => grows toward higher addresses\r
721 +       STACK_DIRECTION < 0 => grows toward lower addresses\r
722 +       STACK_DIRECTION = 0 => direction of growth unknown */\r
723 +#undef STACK_DIRECTION\r
724 +\r
725 +/* Define to 1 if you have the ANSI C header files. */\r
726 +#define STDC_HEADERS 1\r
727 +\r
728 +/* Version number of package */\r
729 +#define VERSION "4.1.5"\r
730 +\r
731 +/* Define to 1 if on AIX 3.\r
732 +   System headers sometimes define this.\r
733 +   We just want to avoid a redefinition error message.  */\r
734 +#ifndef _ALL_SOURCE\r
735 +# undef _ALL_SOURCE\r
736 +#endif\r
737 +\r
738 +/* Number of bits in a file offset, on hosts where this is settable. */\r
739 +#undef _FILE_OFFSET_BITS\r
740 +\r
741 +/* Enable GNU extensions on systems that have them.  */\r
742 +#ifndef _GNU_SOURCE\r
743 +# undef _GNU_SOURCE\r
744 +#endif\r
745 +\r
746 +/* Define for large files, on AIX-style hosts. */\r
747 +#undef _LARGE_FILES\r
748 +\r
749 +/* Define to 1 if on MINIX. */\r
750 +#undef _MINIX\r
751 +\r
752 +/* Define to 2 if the system does not provide POSIX.1 features except with\r
753 +   this defined. */\r
754 +#undef _POSIX_1_SOURCE\r
755 +\r
756 +/* Define to 1 if you need to in order for `stat' and other things to work. */\r
757 +#undef _POSIX_SOURCE\r
758 +\r
759 +/* Include BSD functions in regex, used by the testsuite */\r
760 +#undef _REGEX_RE_COMP\r
761 +\r
762 +/* Define to empty if `const' does not conform to ANSI C. */\r
763 +#undef const\r
764 +\r
765 +/* Define to `__inline__' or `__inline' if that's what the C compiler\r
766 +   calls it, or to nothing if 'inline' is not supported under any name.  */\r
767 +#ifndef __cplusplus\r
768 +#define inline __inline\r
769 +#endif\r
770 +\r
771 +/* Define to a type if <wchar.h> does not define. */\r
772 +#define mbstate_t int\r
773 +\r
774 +/* Define to `long' if <sys/types.h> does not define. */\r
775 +#undef off_t\r
776 +\r
777 +/* Define to `unsigned' if <sys/types.h> does not define. */\r
778 +#undef size_t\r
779 +\r
780 +/* Define to `int' if <sys/types.h> does not define. */\r
781 +#undef ssize_t\r
782 diff -Nru ../release/sed-4.1.5/lib/Makefile.msc ./lib/Makefile.msc\r
783 --- ../release/sed-4.1.5/lib/Makefile.msc       1969-12-31 16:00:00.000000000 -0800\r
784 +++ ./lib/Makefile.msc  2006-09-28 19:10:18.880835600 -0700\r
785 @@ -0,0 +1,20 @@\r
786 +SOURCES=getline.c getopt.c getopt1.c mkstemp.c obstack.c regex.c strverscmp.c utils.c\r
787 +\r
788 +OBJECTS=$(SOURCES:.c=.obj)\r
789 +\r
790 +CFLAGS=-I.. -I. -DBOOTSTRAP -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DHAVE_CONFIG_H \r
791 +\r
792 +all : libsed.lib\r
793 +\r
794 +install :\r
795 +\r
796 +clean :\r
797 +       del $(OBJECTS) regex.h libsed.lib *~ 2>nul\r
798 +\r
799 +regex.h : regex_.h\r
800 +       copy /b $**+nul $@\r
801 +\r
802 +$(OBJECTS) : ..\config.h\r
803 +\r
804 +libsed.lib : regex.h $(OBJECTS)\r
805 +       lib /out:$@ $(OBJECTS)\r
806 diff -Nru ../release/sed-4.1.5/lib/regcomp.c ./lib/regcomp.c\r
807 --- ../release/sed-4.1.5/lib/regcomp.c  2005-12-06 00:46:51.000000000 -0800\r
808 +++ ./lib/regcomp.c     2006-09-28 04:36:14.084476200 -0700\r
809 @@ -506,11 +506,7 @@\r
810     from either regcomp or regexec.   We don't use PREG here.  */\r
811  \r
812  size_t\r
813 -regerror (errcode, preg, errbuf, errbuf_size)\r
814 -    int errcode;\r
815 -    const regex_t *__restrict preg;\r
816 -    char *__restrict errbuf;\r
817 -    size_t errbuf_size;\r
818 +regerror (int errcode, const regex_t *__restrict preg, char *__restrict errbuf, size_t errbuf_size)\r
819  {\r
820    const char *msg;\r
821    size_t msg_size;\r
822 diff -Nru ../release/sed-4.1.5/lib/regex_internal.h ./lib/regex_internal.h\r
823 --- ../release/sed-4.1.5/lib/regex_internal.h   2005-12-06 00:50:56.000000000 -0800\r
824 +++ ./lib/regex_internal.h      2006-09-28 04:33:10.987210800 -0700\r
825 @@ -410,7 +410,9 @@\r
826  #define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))\r
827  #define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))\r
828  \r
829 +#ifdef HAVE_ALLOCA_H\r
830  #include <alloca.h>\r
831 +#endif\r
832  \r
833  #ifndef _LIBC\r
834  # if HAVE_ALLOCA\r
835 diff -Nru ../release/sed-4.1.5/lib/regexec.c ./lib/regexec.c\r
836 --- ../release/sed-4.1.5/lib/regexec.c  2005-12-06 00:46:56.000000000 -0800\r
837 +++ ./lib/regexec.c     2006-09-28 04:50:51.101314600 -0700\r
838 @@ -18,6 +18,12 @@\r
839     Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA\r
840     02111-1307 USA.  */\r
841  \r
842 +#ifdef BOOTSTRAP\r
843 +#define bool int\r
844 +#define true 1\r
845 +#define false 0\r
846 +#endif\r
847 +\r
848  static reg_errcode_t match_ctx_init (re_match_context_t *cache, int eflags,\r
849                                      int n) internal_function;\r
850  static void match_ctx_clean (re_match_context_t *mctx) internal_function;\r
851 @@ -2894,7 +2900,7 @@\r
852               sizeof (re_dfastate_t *) * (path->alloc - old_alloc));\r
853      }\r
854  \r
855 -  str_idx = path->next_idx ?: top_str;\r
856 +  str_idx = path->next_idx ? path->next_idx : top_str;\r
857  \r
858    /* Temporary modify MCTX.  */\r
859    backup_state_log = mctx->state_log;\r
860 diff -Nru ../release/sed-4.1.5/Makefile.msc ./Makefile.msc\r
861 --- ../release/sed-4.1.5/Makefile.msc   1969-12-31 16:00:00.000000000 -0800\r
862 +++ ./Makefile.msc      2006-09-28 19:10:18.552737900 -0700\r
863 @@ -0,0 +1,17 @@\r
864 +DIRS=lib sed\r
865 +\r
866 +all : config.h\r
867 +\r
868 +dummy_target :\r
869 +\r
870 +install : dummy_target\r
871 +\r
872 +all install :\r
873 +       @for %%i in ( $(DIRS) ) do @( cd %%i & nmake /nologo -f Makefile.msc $@ & cd .. )\r
874 +\r
875 +clean :\r
876 +       del config.h *~ 2>nul\r
877 +       @for %%i in ( $(DIRS) ) do @( cd %%i & nmake /nologo -f Makefile.msc $@ & cd .. )\r
878 +\r
879 +config.h : config_h.msc\r
880 +       copy /b $**+nul $@\r
881 diff -Nru ../release/sed-4.1.5/sed/compile.c ./sed/compile.c\r
882 --- ../release/sed-4.1.5/sed/compile.c  2006-02-03 01:06:26.000000000 -0800\r
883 +++ ./sed/compile.c     2006-09-28 05:48:12.636140800 -0700\r
884 @@ -451,9 +451,7 @@\r
885  \r
886  static int snarf_char_class P_((struct buffer *b, mbstate_t *cur_stat));\r
887  static int\r
888 -snarf_char_class(b, cur_stat)\r
889 -  struct buffer *b;\r
890 -  mbstate_t *cur_stat;\r
891 +snarf_char_class(struct buffer *b, mbstate_t *cur_stat)\r
892  {\r
893    int ch;\r
894    int state = 0;\r
895 @@ -531,9 +529,7 @@\r
896  \r
897  static struct buffer *match_slash P_((int slash, bool regex));\r
898  static struct buffer *\r
899 -match_slash(slash, regex)\r
900 -  int slash;\r
901 -  bool regex;\r
902 +match_slash(int slash, bool regex)\r
903  {\r
904    struct buffer *b;\r
905    int ch;\r
906 diff -Nru ../release/sed-4.1.5/sed/Makefile.msc ./sed/Makefile.msc\r
907 --- ../release/sed-4.1.5/sed/Makefile.msc       1969-12-31 16:00:00.000000000 -0800\r
908 +++ ./sed/Makefile.msc  2006-09-28 19:10:19.193309600 -0700\r
909 @@ -0,0 +1,18 @@\r
910 +SOURCES=sed.c compile.c execute.c regexp.c fmt.c mbcs.c\r
911 +\r
912 +OBJECTS=$(SOURCES:.c=.obj)\r
913 +\r
914 +CFLAGS=-I.. -I. -I../lib -DBOOTSTRAP -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DHAVE_CONFIG_H \r
915 +\r
916 +all : sed.exe\r
917 +\r
918 +install :\r
919 +       copy sed.exe ..\..\..\bin\r
920 +\r
921 +clean :\r
922 +       del $(OBJECTS) sed.exe *~ 2>nul\r
923 +\r
924 +$(OBJECTS) : ..\config.h\r
925 +\r
926 +sed.exe : $(OBJECTS)\r
927 +       link /out:sed.exe /subsystem:console /opt:ref $(OBJECTS) ..\lib\libsed.lib\r