standalone-ruby 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/lib/displayer.rb +2 -4
  4. data/lib/exe_packer.rb +1 -15
  5. data/lib/launcher.rb +4 -17
  6. data/lib/launcher_handler.rb +0 -12
  7. data/lib/parameter_parser.rb +0 -9
  8. data/lib/ruby_copy.rb +0 -6
  9. data/lib/sfx_generator.rb +0 -2
  10. data/lib/version/version.rb +1 -1
  11. metadata +2 -87
  12. data/lib/data/bat-cmd/default_bat_cmd.txt +0 -9
  13. data/lib/data/exe_template/launcher_stub.c +0 -30
  14. data/lib/data/exe_template/launcher_stub.cpp +0 -9
  15. data/lib/data/tcc/include/_mingw.h +0 -54
  16. data/lib/data/tcc/include/assert.h +0 -71
  17. data/lib/data/tcc/include/conio.h +0 -159
  18. data/lib/data/tcc/include/ctype.h +0 -232
  19. data/lib/data/tcc/include/dir.h +0 -26
  20. data/lib/data/tcc/include/direct.h +0 -95
  21. data/lib/data/tcc/include/dirent.h +0 -96
  22. data/lib/data/tcc/include/dos.h +0 -110
  23. data/lib/data/tcc/include/errno.h +0 -117
  24. data/lib/data/tcc/include/excpt.h +0 -20
  25. data/lib/data/tcc/include/fcntl.h +0 -135
  26. data/lib/data/tcc/include/fenv.h +0 -85
  27. data/lib/data/tcc/include/float.h +0 -224
  28. data/lib/data/tcc/include/inttypes.h +0 -275
  29. data/lib/data/tcc/include/io.h +0 -296
  30. data/lib/data/tcc/include/limits.h +0 -115
  31. data/lib/data/tcc/include/locale.h +0 -100
  32. data/lib/data/tcc/include/malloc.h +0 -87
  33. data/lib/data/tcc/include/math.h +0 -438
  34. data/lib/data/tcc/include/mem.h +0 -8
  35. data/lib/data/tcc/include/memory.h +0 -9
  36. data/lib/data/tcc/include/process.h +0 -158
  37. data/lib/data/tcc/include/setjmp.h +0 -72
  38. data/lib/data/tcc/include/share.h +0 -44
  39. data/lib/data/tcc/include/signal.h +0 -111
  40. data/lib/data/tcc/include/stdarg.h +0 -16
  41. data/lib/data/tcc/include/stdbool.h +0 -10
  42. data/lib/data/tcc/include/stddef.h +0 -26
  43. data/lib/data/tcc/include/stdint.h +0 -184
  44. data/lib/data/tcc/include/stdio.h +0 -413
  45. data/lib/data/tcc/include/stdlib.h +0 -482
  46. data/lib/data/tcc/include/string.h +0 -206
  47. data/lib/data/tcc/include/sys/fcntl.h +0 -8
  48. data/lib/data/tcc/include/sys/file.h +0 -9
  49. data/lib/data/tcc/include/sys/locking.h +0 -52
  50. data/lib/data/tcc/include/sys/stat.h +0 -190
  51. data/lib/data/tcc/include/sys/time.h +0 -3
  52. data/lib/data/tcc/include/sys/timeb.h +0 -82
  53. data/lib/data/tcc/include/sys/types.h +0 -118
  54. data/lib/data/tcc/include/sys/unistd.h +0 -9
  55. data/lib/data/tcc/include/sys/utime.h +0 -89
  56. data/lib/data/tcc/include/tchar.h +0 -367
  57. data/lib/data/tcc/include/time.h +0 -219
  58. data/lib/data/tcc/include/unistd.h +0 -10
  59. data/lib/data/tcc/include/values.h +0 -4
  60. data/lib/data/tcc/include/varargs.h +0 -11
  61. data/lib/data/tcc/include/wchar.h +0 -318
  62. data/lib/data/tcc/include/wctype.h +0 -127
  63. data/lib/data/tcc/include/winapi/basetsd.h +0 -119
  64. data/lib/data/tcc/include/winapi/basetyps.h +0 -144
  65. data/lib/data/tcc/include/winapi/winbase.h +0 -1852
  66. data/lib/data/tcc/include/winapi/wincon.h +0 -207
  67. data/lib/data/tcc/include/winapi/windef.h +0 -240
  68. data/lib/data/tcc/include/winapi/windows.h +0 -176
  69. data/lib/data/tcc/include/winapi/winerror.h +0 -1054
  70. data/lib/data/tcc/include/winapi/wingdi.h +0 -2843
  71. data/lib/data/tcc/include/winapi/winnetwk.h +0 -346
  72. data/lib/data/tcc/include/winapi/winnls.h +0 -651
  73. data/lib/data/tcc/include/winapi/winnt.h +0 -2667
  74. data/lib/data/tcc/include/winapi/winreg.h +0 -159
  75. data/lib/data/tcc/include/winapi/winsvc.h +0 -309
  76. data/lib/data/tcc/include/winapi/winuser.h +0 -3472
  77. data/lib/data/tcc/include/winapi/winver.h +0 -133
  78. data/lib/data/tcc/lib/gdi32.def +0 -337
  79. data/lib/data/tcc/lib/kernel32.def +0 -763
  80. data/lib/data/tcc/lib/libtcc1.a +0 -0
  81. data/lib/data/tcc/lib/msvcrt.def +0 -782
  82. data/lib/data/tcc/lib/user32.def +0 -654
  83. data/lib/data/tcc/tcc.exe +0 -0
  84. data/lib/data/tcc/tiny_impdef.exe +0 -0
  85. data/lib/data/tcc/tiny_libmaker.exe +0 -0
  86. data/lib/data/vbs/default_vbs.txt +0 -7
  87. data/lib/data/vbs/vbs_gui.txt +0 -8
  88. data/lib/logger_helper.rb +0 -24
  89. data/lib/utils/config_generator.rb +0 -5
  90. data/lib/utils/displayer.rb +0 -64
  91. data/lib/utils/exe_packer.rb +0 -72
  92. data/lib/utils/launcher.rb +0 -77
  93. data/lib/utils/launcher_handler.rb +0 -111
  94. data/lib/utils/logger_helper.rb +0 -24
  95. data/lib/utils/parameter_parser.rb +0 -211
  96. data/lib/utils/ruby_copy.rb +0 -26
@@ -1,275 +0,0 @@
1
- /* 7.8 Format conversion of integer types <inttypes.h> */
2
-
3
- #ifndef _INTTYPES_H
4
- #define _INTTYPES_H
5
-
6
- #include <stdint.h>
7
- #define __need_wchar_t
8
- #include <stddef.h>
9
-
10
- #ifdef __cplusplus
11
- extern "C" {
12
- #endif
13
-
14
- typedef struct {
15
- intmax_t quot;
16
- intmax_t rem;
17
- } imaxdiv_t;
18
-
19
- #if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
20
-
21
- /* 7.8.1 Macros for format specifiers
22
- *
23
- * MS runtime does not yet understand C9x standard "ll"
24
- * length specifier. It appears to treat "ll" as "l".
25
- * The non-standard I64 length specifier causes warning in GCC,
26
- * but understood by MS runtime functions.
27
- */
28
-
29
- /* fprintf macros for signed types */
30
- #define PRId8 "d"
31
- #define PRId16 "d"
32
- #define PRId32 "d"
33
- #define PRId64 "I64d"
34
-
35
- #define PRIdLEAST8 "d"
36
- #define PRIdLEAST16 "d"
37
- #define PRIdLEAST32 "d"
38
- #define PRIdLEAST64 "I64d"
39
-
40
- #define PRIdFAST8 "d"
41
- #define PRIdFAST16 "d"
42
- #define PRIdFAST32 "d"
43
- #define PRIdFAST64 "I64d"
44
-
45
- #define PRIdMAX "I64d"
46
- #define PRIdPTR "d"
47
-
48
- #define PRIi8 "i"
49
- #define PRIi16 "i"
50
- #define PRIi32 "i"
51
- #define PRIi64 "I64i"
52
-
53
- #define PRIiLEAST8 "i"
54
- #define PRIiLEAST16 "i"
55
- #define PRIiLEAST32 "i"
56
- #define PRIiLEAST64 "I64i"
57
-
58
- #define PRIiFAST8 "i"
59
- #define PRIiFAST16 "i"
60
- #define PRIiFAST32 "i"
61
- #define PRIiFAST64 "I64i"
62
-
63
- #define PRIiMAX "I64i"
64
- #define PRIiPTR "i"
65
-
66
- #define PRIo8 "o"
67
- #define PRIo16 "o"
68
- #define PRIo32 "o"
69
- #define PRIo64 "I64o"
70
-
71
- #define PRIoLEAST8 "o"
72
- #define PRIoLEAST16 "o"
73
- #define PRIoLEAST32 "o"
74
- #define PRIoLEAST64 "I64o"
75
-
76
- #define PRIoFAST8 "o"
77
- #define PRIoFAST16 "o"
78
- #define PRIoFAST32 "o"
79
- #define PRIoFAST64 "I64o"
80
-
81
- #define PRIoMAX "I64o"
82
-
83
- #define PRIoPTR "o"
84
-
85
- /* fprintf macros for unsigned types */
86
- #define PRIu8 "u"
87
- #define PRIu16 "u"
88
- #define PRIu32 "u"
89
- #define PRIu64 "I64u"
90
-
91
-
92
- #define PRIuLEAST8 "u"
93
- #define PRIuLEAST16 "u"
94
- #define PRIuLEAST32 "u"
95
- #define PRIuLEAST64 "I64u"
96
-
97
- #define PRIuFAST8 "u"
98
- #define PRIuFAST16 "u"
99
- #define PRIuFAST32 "u"
100
- #define PRIuFAST64 "I64u"
101
-
102
- #define PRIuMAX "I64u"
103
- #define PRIuPTR "u"
104
-
105
- #define PRIx8 "x"
106
- #define PRIx16 "x"
107
- #define PRIx32 "x"
108
- #define PRIx64 "I64x"
109
-
110
- #define PRIxLEAST8 "x"
111
- #define PRIxLEAST16 "x"
112
- #define PRIxLEAST32 "x"
113
- #define PRIxLEAST64 "I64x"
114
-
115
- #define PRIxFAST8 "x"
116
- #define PRIxFAST16 "x"
117
- #define PRIxFAST32 "x"
118
- #define PRIxFAST64 "I64x"
119
-
120
- #define PRIxMAX "I64x"
121
- #define PRIxPTR "x"
122
-
123
- #define PRIX8 "X"
124
- #define PRIX16 "X"
125
- #define PRIX32 "X"
126
- #define PRIX64 "I64X"
127
-
128
- #define PRIXLEAST8 "X"
129
- #define PRIXLEAST16 "X"
130
- #define PRIXLEAST32 "X"
131
- #define PRIXLEAST64 "I64X"
132
-
133
- #define PRIXFAST8 "X"
134
- #define PRIXFAST16 "X"
135
- #define PRIXFAST32 "X"
136
- #define PRIXFAST64 "I64X"
137
-
138
- #define PRIXMAX "I64X"
139
- #define PRIXPTR "X"
140
-
141
- /*
142
- * fscanf macros for signed int types
143
- * NOTE: if 32-bit int is used for int_fast8_t and int_fast16_t
144
- * (see stdint.h, 7.18.1.3), FAST8 and FAST16 should have
145
- * no length identifiers
146
- */
147
-
148
- #define SCNd16 "hd"
149
- #define SCNd32 "d"
150
- #define SCNd64 "I64d"
151
-
152
- #define SCNdLEAST16 "hd"
153
- #define SCNdLEAST32 "d"
154
- #define SCNdLEAST64 "I64d"
155
-
156
- #define SCNdFAST16 "hd"
157
- #define SCNdFAST32 "d"
158
- #define SCNdFAST64 "I64d"
159
-
160
- #define SCNdMAX "I64d"
161
- #define SCNdPTR "d"
162
-
163
- #define SCNi16 "hi"
164
- #define SCNi32 "i"
165
- #define SCNi64 "I64i"
166
-
167
- #define SCNiLEAST16 "hi"
168
- #define SCNiLEAST32 "i"
169
- #define SCNiLEAST64 "I64i"
170
-
171
- #define SCNiFAST16 "hi"
172
- #define SCNiFAST32 "i"
173
- #define SCNiFAST64 "I64i"
174
-
175
- #define SCNiMAX "I64i"
176
- #define SCNiPTR "i"
177
-
178
- #define SCNo16 "ho"
179
- #define SCNo32 "o"
180
- #define SCNo64 "I64o"
181
-
182
- #define SCNoLEAST16 "ho"
183
- #define SCNoLEAST32 "o"
184
- #define SCNoLEAST64 "I64o"
185
-
186
- #define SCNoFAST16 "ho"
187
- #define SCNoFAST32 "o"
188
- #define SCNoFAST64 "I64o"
189
-
190
- #define SCNoMAX "I64o"
191
- #define SCNoPTR "o"
192
-
193
- #define SCNx16 "hx"
194
- #define SCNx32 "x"
195
- #define SCNx64 "I64x"
196
-
197
- #define SCNxLEAST16 "hx"
198
- #define SCNxLEAST32 "x"
199
- #define SCNxLEAST64 "I64x"
200
-
201
- #define SCNxFAST16 "hx"
202
- #define SCNxFAST32 "x"
203
- #define SCNxFAST64 "I64x"
204
-
205
- #define SCNxMAX "I64x"
206
- #define SCNxPTR "x"
207
-
208
-
209
- /* fscanf macros for unsigned int types */
210
-
211
- #define SCNu16 "hu"
212
- #define SCNu32 "u"
213
- #define SCNu64 "I64u"
214
-
215
- #define SCNuLEAST16 "hu"
216
- #define SCNuLEAST32 "u"
217
- #define SCNuLEAST64 "I64u"
218
-
219
- #define SCNuFAST16 "hu"
220
- #define SCNuFAST32 "u"
221
- #define SCNuFAST64 "I64u"
222
-
223
- #define SCNuMAX "I64u"
224
- #define SCNuPTR "u"
225
-
226
- #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
227
- /*
228
- * no length modifier for char types prior to C9x
229
- * MS runtime scanf appears to treat "hh" as "h"
230
- */
231
-
232
- /* signed char */
233
- #define SCNd8 "hhd"
234
- #define SCNdLEAST8 "hhd"
235
- #define SCNdFAST8 "hhd"
236
-
237
- #define SCNi8 "hhi"
238
- #define SCNiLEAST8 "hhi"
239
- #define SCNiFAST8 "hhi"
240
-
241
- #define SCNo8 "hho"
242
- #define SCNoLEAST8 "hho"
243
- #define SCNoFAST8 "hho"
244
-
245
- #define SCNx8 "hhx"
246
- #define SCNxLEAST8 "hhx"
247
- #define SCNxFAST8 "hhx"
248
-
249
- /* unsigned char */
250
- #define SCNu8 "hhu"
251
- #define SCNuLEAST8 "hhu"
252
- #define SCNuFAST8 "hhu"
253
- #endif /* __STDC_VERSION__ >= 199901 */
254
-
255
- #endif /* !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) */
256
-
257
- extern inline intmax_t imaxabs (intmax_t j)
258
- {return (j >= 0 ? j : -j);}
259
- imaxdiv_t imaxdiv (intmax_t numer, intmax_t denom);
260
-
261
- /* 7.8.2 Conversion functions for greatest-width integer types */
262
-
263
- intmax_t strtoimax (const char* __restrict__ nptr, char** __restrict__ endptr, int base);
264
- uintmax_t strtoumax (const char* __restrict__ nptr, char** __restrict__ endptr, int base);
265
-
266
- intmax_t wcstoimax (const wchar_t* __restrict__ nptr, wchar_t** __restrict__ endptr,
267
- int base);
268
- uintmax_t wcstoumax (const wchar_t* __restrict__ nptr, wchar_t** __restrict__ endptr,
269
- int base);
270
-
271
- #ifdef __cplusplus
272
- }
273
- #endif
274
-
275
- #endif /* ndef _INTTYPES_H */
@@ -1,296 +0,0 @@
1
- /*
2
- * io.h
3
- *
4
- * System level I/O functions and types.
5
- *
6
- * This file is part of the Mingw32 package.
7
- *
8
- * Contributors:
9
- * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
10
- *
11
- * THIS SOFTWARE IS NOT COPYRIGHTED
12
- *
13
- * This source code is offered for use in the public domain. You may
14
- * use, modify or distribute it freely.
15
- *
16
- * This code is distributed in the hope that it will be useful but
17
- * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
18
- * DISCLAIMED. This includes but is not limited to warranties of
19
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
- *
21
- * $Revision: 1.2 $
22
- * $Author: bellard $
23
- * $Date: 2005/04/17 13:14:29 $
24
- *
25
- */
26
-
27
- #ifndef __STRICT_ANSI__
28
-
29
- #ifndef _IO_H_
30
- #define _IO_H_
31
-
32
- /* All the headers include this file. */
33
- #include <_mingw.h>
34
-
35
- /* We need the definition of FILE anyway... */
36
- #include <stdio.h>
37
-
38
- /* MSVC's io.h contains the stuff from dir.h, so I will too.
39
- * NOTE: This also defines off_t, the file offset type, through
40
- * an inclusion of sys/types.h */
41
- #ifndef __STRICT_ANSI__
42
-
43
- #include <sys/types.h> /* To get time_t. */
44
-
45
- /*
46
- * Attributes of files as returned by _findfirst et al.
47
- */
48
- #define _A_NORMAL 0x00000000
49
- #define _A_RDONLY 0x00000001
50
- #define _A_HIDDEN 0x00000002
51
- #define _A_SYSTEM 0x00000004
52
- #define _A_VOLID 0x00000008
53
- #define _A_SUBDIR 0x00000010
54
- #define _A_ARCH 0x00000020
55
-
56
-
57
- #ifndef RC_INVOKED
58
-
59
- #ifndef _FSIZE_T_DEFINED
60
- typedef unsigned long _fsize_t;
61
- #define _FSIZE_T_DEFINED
62
- #endif
63
-
64
- /*
65
- * The following structure is filled in by _findfirst or _findnext when
66
- * they succeed in finding a match.
67
- */
68
- struct _finddata_t
69
- {
70
- unsigned attrib; /* Attributes, see constants above. */
71
- time_t time_create;
72
- time_t time_access; /* always midnight local time */
73
- time_t time_write;
74
- _fsize_t size;
75
- char name[FILENAME_MAX]; /* may include spaces. */
76
- };
77
-
78
- struct _finddatai64_t {
79
- unsigned attrib;
80
- time_t time_create;
81
- time_t time_access;
82
- time_t time_write;
83
- __int64 size;
84
- char name[FILENAME_MAX];
85
- };
86
-
87
-
88
- #ifndef _WFINDDATA_T_DEFINED
89
- struct _wfinddata_t {
90
- unsigned attrib;
91
- time_t time_create; /* -1 for FAT file systems */
92
- time_t time_access; /* -1 for FAT file systems */
93
- time_t time_write;
94
- _fsize_t size;
95
- wchar_t name[FILENAME_MAX]; /* may include spaces. */
96
- };
97
- struct _wfinddatai64_t {
98
- unsigned attrib;
99
- time_t time_create;
100
- time_t time_access;
101
- time_t time_write;
102
- __int64 size;
103
- wchar_t name[FILENAME_MAX];
104
- };
105
-
106
- #define _WFINDDATA_T_DEFINED
107
- #endif
108
-
109
- #ifdef __cplusplus
110
- extern "C" {
111
- #endif
112
-
113
- /*
114
- * Functions for searching for files. _findfirst returns -1 if no match
115
- * is found. Otherwise it returns a handle to be used in _findnext and
116
- * _findclose calls. _findnext also returns -1 if no match could be found,
117
- * and 0 if a match was found. Call _findclose when you are finished.
118
- */
119
- int _findfirst (const char*, struct _finddata_t*);
120
- int _findnext (int, struct _finddata_t*);
121
- int _findclose (int);
122
-
123
- int _chdir (const char*);
124
- char* _getcwd (char*, int);
125
- int _mkdir (const char*);
126
- char* _mktemp (char*);
127
- int _rmdir (const char*);
128
-
129
-
130
- #ifdef __MSVCRT__
131
- __int64 _filelengthi64(int);
132
- long _findfirsti64(const char*, struct _finddatai64_t*);
133
- int _findnexti64(long, struct _finddatai64_t*);
134
- __int64 _lseeki64(int, __int64, int);
135
- __int64 _telli64(int);
136
- #endif /* __MSVCRT__ */
137
-
138
-
139
- #ifndef _NO_OLDNAMES
140
-
141
- #ifndef _UWIN
142
- int chdir (const char*);
143
- char* getcwd (char*, int);
144
- int mkdir (const char*);
145
- char* mktemp (char*);
146
- int rmdir (const char*);
147
- #endif /* _UWIN */
148
-
149
- #endif /* Not _NO_OLDNAMES */
150
-
151
- #ifdef __cplusplus
152
- }
153
- #endif
154
-
155
- #endif /* Not RC_INVOKED */
156
-
157
- #endif /* Not __STRICT_ANSI__ */
158
-
159
- /* TODO: Maximum number of open handles has not been tested, I just set
160
- * it the same as FOPEN_MAX. */
161
- #define HANDLE_MAX FOPEN_MAX
162
-
163
-
164
- /* Some defines for _access nAccessMode (MS doesn't define them, but
165
- * it doesn't seem to hurt to add them). */
166
- #define F_OK 0 /* Check for file existence */
167
- #define X_OK 1 /* Check for execute permission. */
168
- #define W_OK 2 /* Check for write permission */
169
- #define R_OK 4 /* Check for read permission */
170
-
171
- #ifndef RC_INVOKED
172
-
173
- #ifdef __cplusplus
174
- extern "C" {
175
- #endif
176
-
177
- int _access (const char*, int);
178
- int _chsize (int, long);
179
- int _close (int);
180
- int _commit(int);
181
-
182
- /* NOTE: The only significant bit in unPermissions appears to be bit 7 (0x80),
183
- * the "owner write permission" bit (on FAT). */
184
- int _creat (const char*, unsigned);
185
-
186
- int _dup (int);
187
- int _dup2 (int, int);
188
- long _filelength (int);
189
- int _fileno (FILE*);
190
- long _get_osfhandle (int);
191
- int _isatty (int);
192
-
193
- /* In a very odd turn of events this function is excluded from those
194
- * files which define _STREAM_COMPAT. This is required in order to
195
- * build GNU libio because of a conflict with _eof in streambuf.h
196
- * line 107. Actually I might just be able to change the name of
197
- * the enum member in streambuf.h... we'll see. TODO */
198
- #ifndef _STREAM_COMPAT
199
- int _eof (int);
200
- #endif
201
-
202
- /* LK_... locking commands defined in sys/locking.h. */
203
- int _locking (int, int, long);
204
-
205
- long _lseek (int, long, int);
206
-
207
- /* Optional third argument is unsigned unPermissions. */
208
- int _open (const char*, int, ...);
209
-
210
- int _open_osfhandle (long, int);
211
- int _pipe (int *, unsigned int, int);
212
- int _read (int, void*, unsigned int);
213
-
214
- /* SH_... flags for nShFlags defined in share.h
215
- * Optional fourth argument is unsigned unPermissions */
216
- int _sopen (const char*, int, int, ...);
217
-
218
- long _tell (int);
219
- /* Should umask be in sys/stat.h and/or sys/types.h instead? */
220
- int _umask (int);
221
- int _unlink (const char*);
222
- int _write (int, const void*, unsigned int);
223
-
224
- /* Wide character versions. Also declared in wchar.h. */
225
- /* Not in crtdll.dll */
226
- #if !defined (_WIO_DEFINED)
227
- #if defined (__MSVCRT__)
228
- int _waccess(const wchar_t*, int);
229
- int _wchmod(const wchar_t*, int);
230
- int _wcreat(const wchar_t*, int);
231
- long _wfindfirst(wchar_t*, struct _wfinddata_t*);
232
- int _wfindnext(long, struct _wfinddata_t *);
233
- int _wunlink(const wchar_t*);
234
- int _wopen(const wchar_t*, int, ...);
235
- int _wsopen(const wchar_t*, int, int, ...);
236
- wchar_t * _wmktemp(wchar_t*);
237
- long _wfindfirsti64(const wchar_t*, struct _wfinddatai64_t*);
238
- int _wfindnexti64(long, struct _wfinddatai64_t*);
239
- #endif /* defined (__MSVCRT__) */
240
- #define _WIO_DEFINED
241
- #endif /* _WIO_DEFINED */
242
-
243
- #ifndef _NO_OLDNAMES
244
- /*
245
- * Non-underscored versions of non-ANSI functions to improve portability.
246
- * These functions live in libmoldname.a.
247
- */
248
-
249
- #ifndef _UWIN
250
- int access (const char*, int);
251
- int chsize (int, long );
252
- int close (int);
253
- int creat (const char*, int);
254
- int dup (int);
255
- int dup2 (int, int);
256
- int eof (int);
257
- long filelength (int);
258
- int fileno (FILE*);
259
- int isatty (int);
260
- long lseek (int, long, int);
261
- int open (const char*, int, ...);
262
- int read (int, void*, unsigned int);
263
- int sopen (const char*, int, int, ...);
264
- long tell (int);
265
- int umask (int);
266
- int unlink (const char*);
267
- int write (int, const void*, unsigned int);
268
- #endif /* _UWIN */
269
-
270
- /* Wide character versions. Also declared in wchar.h. */
271
- /* Where do these live? Not in libmoldname.a nor in libmsvcrt.a */
272
- #if 0
273
- int waccess(const wchar_t *, int);
274
- int wchmod(const wchar_t *, int);
275
- int wcreat(const wchar_t *, int);
276
- long wfindfirst(wchar_t *, struct _wfinddata_t *);
277
- int wfindnext(long, struct _wfinddata_t *);
278
- int wunlink(const wchar_t *);
279
- int wrename(const wchar_t *, const wchar_t *);
280
- int wopen(const wchar_t *, int, ...);
281
- int wsopen(const wchar_t *, int, int, ...);
282
- wchar_t * wmktemp(wchar_t *);
283
- #endif
284
-
285
- #endif /* Not _NO_OLDNAMES */
286
-
287
- #ifdef __cplusplus
288
- }
289
- #endif
290
-
291
- #endif /* Not RC_INVOKED */
292
-
293
- #endif /* _IO_H_ not defined */
294
-
295
- #endif /* Not strict ANSI */
296
-
@@ -1,115 +0,0 @@
1
- /*
2
- * limits.h
3
- *
4
- * Defines constants for the sizes of integral types.
5
- *
6
- * NOTE: GCC should supply a version of this header and it should be safe to
7
- * use that version instead of this one (maybe safer).
8
- *
9
- * This file is part of the Mingw32 package.
10
- *
11
- * Contributors:
12
- * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
13
- *
14
- * THIS SOFTWARE IS NOT COPYRIGHTED
15
- *
16
- * This source code is offered for use in the public domain. You may
17
- * use, modify or distribute it freely.
18
- *
19
- * This code is distributed in the hope that it will be useful but
20
- * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
21
- * DISCLAIMED. This includes but is not limited to warranties of
22
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23
- *
24
- * $Revision: 1.2 $
25
- * $Author: bellard $
26
- * $Date: 2005/04/17 13:14:29 $
27
- *
28
- */
29
-
30
- #ifndef _LIMITS_H_
31
- #define _LIMITS_H_
32
-
33
- /* All the headers include this file. */
34
- #include <_mingw.h>
35
-
36
- /*
37
- * File system limits
38
- *
39
- * TODO: NAME_MAX and OPEN_MAX are file system limits or not? Are they the
40
- * same as FILENAME_MAX and FOPEN_MAX from stdio.h?
41
- * NOTE: Apparently the actual size of PATH_MAX is 260, but a space is
42
- * required for the NUL. TODO: Test?
43
- */
44
- #define PATH_MAX (259)
45
-
46
- /*
47
- * Characteristics of the char data type.
48
- *
49
- * TODO: Is MB_LEN_MAX correct?
50
- */
51
- #define CHAR_BIT 8
52
- #define MB_LEN_MAX 2
53
-
54
- #define SCHAR_MIN (-128)
55
- #define SCHAR_MAX 127
56
-
57
- #define UCHAR_MAX 255
58
-
59
- /* TODO: Is this safe? I think it might just be testing the preprocessor,
60
- * not the compiler itself... */
61
- #if ('\x80' < 0)
62
- #define CHAR_MIN SCHAR_MIN
63
- #define CHAR_MAX SCHAR_MAX
64
- #else
65
- #define CHAR_MIN 0
66
- #define CHAR_MAX UCHAR_MAX
67
- #endif
68
-
69
- /*
70
- * Maximum and minimum values for ints.
71
- */
72
- #define INT_MAX 2147483647
73
- #define INT_MIN (-INT_MAX-1)
74
-
75
- #define UINT_MAX 0xffffffff
76
-
77
- /*
78
- * Maximum and minimum values for shorts.
79
- */
80
- #define SHRT_MAX 32767
81
- #define SHRT_MIN (-SHRT_MAX-1)
82
-
83
- #define USHRT_MAX 0xffff
84
-
85
- /*
86
- * Maximum and minimum values for longs and unsigned longs.
87
- *
88
- * TODO: This is not correct for Alphas, which have 64 bit longs.
89
- */
90
- #define LONG_MAX 2147483647L
91
-
92
- #define LONG_MIN (-LONG_MAX-1)
93
-
94
- #define ULONG_MAX 0xffffffffUL
95
-
96
-
97
- /*
98
- * The GNU C compiler also allows 'long long int'
99
- */
100
- #if !defined(__STRICT_ANSI__) && defined(__GNUC__)
101
-
102
- #define LONG_LONG_MAX 9223372036854775807LL
103
- #define LONG_LONG_MIN (-LONG_LONG_MAX-1)
104
-
105
- #define ULONG_LONG_MAX (2ULL * LONG_LONG_MAX + 1)
106
-
107
- /* ISO C9x macro names */
108
- #define LLONG_MAX LONG_LONG_MAX
109
- #define LLONG_MIN LONG_LONG_MIN
110
- #define ULLONG_MAX ULONG_LONG_MAX
111
-
112
- #endif /* Not Strict ANSI and GNU C compiler */
113
-
114
-
115
- #endif /* not _LIMITS_H_ */