… | |
… | |
27 | * nasty system dependent stuff is contained here, with the program |
27 | * nasty system dependent stuff is contained here, with the program |
28 | * calling these functions. |
28 | * calling these functions. |
29 | */ |
29 | */ |
30 | |
30 | |
31 | |
31 | |
32 | #ifdef WIN32 /* ---win32 exclude/include headers */ |
|
|
33 | # include "process.h" |
|
|
34 | # define pid_t int /* we include it non global, because there is a redefinition in python.h */ |
|
|
35 | #else |
|
|
36 | # include <ctype.h> |
32 | #include <ctype.h> |
37 | # include <sys/stat.h> |
33 | #include <sys/stat.h> |
38 | # include <sys/wait.h> |
34 | #include <sys/wait.h> |
39 | |
35 | |
40 | # include <sys/param.h> |
36 | #include <sys/param.h> |
41 | # include <stdio.h> |
37 | #include <stdio.h> |
42 | |
38 | |
43 | /* Need to pull in the HAVE_... values somehow */ |
39 | /* Need to pull in the HAVE_... values somehow */ |
44 | |
40 | |
45 | /* win32 reminder: always put this in a ifndef win32 block */ |
|
|
46 | # include <autoconf.h> |
41 | #include <autoconf.h> |
47 | #endif |
|
|
48 | |
42 | |
49 | |
43 | |
50 | #ifdef HAVE_STDLIB_H |
44 | #ifdef HAVE_STDLIB_H |
51 | # include <stdlib.h> |
45 | # include <stdlib.h> |
52 | #endif |
46 | #endif |
… | |
… | |
382 | * then it opens it and returns the file-pointer. |
376 | * then it opens it and returns the file-pointer. |
383 | */ |
377 | */ |
384 | FILE * |
378 | FILE * |
385 | open_and_uncompress (const char *name, int flag, int *compressed) |
379 | open_and_uncompress (const char *name, int flag, int *compressed) |
386 | { |
380 | { |
387 | size_t i; |
|
|
388 | FILE *fp; |
|
|
389 | |
|
|
390 | *compressed = 0; |
381 | *compressed = 0; |
391 | return fopen (name, "r"); |
382 | return fopen (name, "r"); |
392 | } |
383 | } |
393 | |
384 | |
394 | /* |
385 | /* |