standalone-ruby 1.4.2 → 1.5.0

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 (158) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +32 -22
  3. data/lib/data/bat-cmd/default_bat_cmd.txt +9 -9
  4. data/lib/data/c_compilers/tcc/include/_mingw.h +54 -0
  5. data/lib/data/c_compilers/tcc/include/assert.h +71 -0
  6. data/lib/data/c_compilers/tcc/include/conio.h +159 -0
  7. data/lib/data/c_compilers/tcc/include/ctype.h +232 -0
  8. data/lib/data/c_compilers/tcc/include/dir.h +26 -0
  9. data/lib/data/c_compilers/tcc/include/direct.h +95 -0
  10. data/lib/data/c_compilers/tcc/include/dirent.h +96 -0
  11. data/lib/data/c_compilers/tcc/include/dos.h +110 -0
  12. data/lib/data/c_compilers/tcc/include/errno.h +117 -0
  13. data/lib/data/c_compilers/tcc/include/excpt.h +20 -0
  14. data/lib/data/c_compilers/tcc/include/fcntl.h +135 -0
  15. data/lib/data/c_compilers/tcc/include/fenv.h +85 -0
  16. data/lib/data/c_compilers/tcc/include/float.h +224 -0
  17. data/lib/data/c_compilers/tcc/include/inttypes.h +275 -0
  18. data/lib/data/c_compilers/tcc/include/io.h +296 -0
  19. data/lib/data/c_compilers/tcc/include/limits.h +115 -0
  20. data/lib/data/c_compilers/tcc/include/locale.h +100 -0
  21. data/lib/data/c_compilers/tcc/include/malloc.h +87 -0
  22. data/lib/data/c_compilers/tcc/include/math.h +438 -0
  23. data/lib/data/c_compilers/tcc/include/mem.h +8 -0
  24. data/lib/data/c_compilers/tcc/include/memory.h +9 -0
  25. data/lib/data/c_compilers/tcc/include/process.h +158 -0
  26. data/lib/data/c_compilers/tcc/include/setjmp.h +72 -0
  27. data/lib/data/c_compilers/tcc/include/share.h +44 -0
  28. data/lib/data/c_compilers/tcc/include/signal.h +111 -0
  29. data/lib/data/c_compilers/tcc/include/stdarg.h +16 -0
  30. data/lib/data/c_compilers/tcc/include/stdbool.h +10 -0
  31. data/lib/data/c_compilers/tcc/include/stddef.h +26 -0
  32. data/lib/data/c_compilers/tcc/include/stdint.h +184 -0
  33. data/lib/data/c_compilers/tcc/include/stdio.h +413 -0
  34. data/lib/data/c_compilers/tcc/include/stdlib.h +482 -0
  35. data/lib/data/c_compilers/tcc/include/string.h +206 -0
  36. data/lib/data/c_compilers/tcc/include/sys/fcntl.h +8 -0
  37. data/lib/data/c_compilers/tcc/include/sys/file.h +9 -0
  38. data/lib/data/c_compilers/tcc/include/sys/locking.h +52 -0
  39. data/lib/data/c_compilers/tcc/include/sys/stat.h +190 -0
  40. data/lib/data/c_compilers/tcc/include/sys/time.h +3 -0
  41. data/lib/data/c_compilers/tcc/include/sys/timeb.h +82 -0
  42. data/lib/data/c_compilers/tcc/include/sys/types.h +118 -0
  43. data/lib/data/c_compilers/tcc/include/sys/unistd.h +9 -0
  44. data/lib/data/c_compilers/tcc/include/sys/utime.h +89 -0
  45. data/lib/data/c_compilers/tcc/include/tchar.h +367 -0
  46. data/lib/data/c_compilers/tcc/include/time.h +219 -0
  47. data/lib/data/c_compilers/tcc/include/unistd.h +10 -0
  48. data/lib/data/c_compilers/tcc/include/values.h +4 -0
  49. data/lib/data/c_compilers/tcc/include/varargs.h +11 -0
  50. data/lib/data/c_compilers/tcc/include/wchar.h +318 -0
  51. data/lib/data/c_compilers/tcc/include/wctype.h +127 -0
  52. data/lib/data/c_compilers/tcc/include/winapi/basetsd.h +119 -0
  53. data/lib/data/c_compilers/tcc/include/winapi/basetyps.h +144 -0
  54. data/lib/data/c_compilers/tcc/include/winapi/winbase.h +1852 -0
  55. data/lib/data/c_compilers/tcc/include/winapi/wincon.h +207 -0
  56. data/lib/data/c_compilers/tcc/include/winapi/windef.h +240 -0
  57. data/lib/data/c_compilers/tcc/include/winapi/windows.h +176 -0
  58. data/lib/data/c_compilers/tcc/include/winapi/winerror.h +1054 -0
  59. data/lib/data/c_compilers/tcc/include/winapi/wingdi.h +2843 -0
  60. data/lib/data/c_compilers/tcc/include/winapi/winnetwk.h +346 -0
  61. data/lib/data/c_compilers/tcc/include/winapi/winnls.h +651 -0
  62. data/lib/data/c_compilers/tcc/include/winapi/winnt.h +2667 -0
  63. data/lib/data/c_compilers/tcc/include/winapi/winreg.h +159 -0
  64. data/lib/data/c_compilers/tcc/include/winapi/winsvc.h +309 -0
  65. data/lib/data/c_compilers/tcc/include/winapi/winuser.h +3472 -0
  66. data/lib/data/c_compilers/tcc/include/winapi/winver.h +133 -0
  67. data/lib/data/c_compilers/tcc/lib/gdi32.def +337 -0
  68. data/lib/data/c_compilers/tcc/lib/kernel32.def +763 -0
  69. data/lib/data/c_compilers/tcc/lib/libtcc1.a +0 -0
  70. data/lib/data/c_compilers/tcc/lib/msvcrt.def +782 -0
  71. data/lib/data/c_compilers/tcc/lib/user32.def +654 -0
  72. data/lib/data/c_compilers/tcc/tcc.exe +0 -0
  73. data/lib/data/exe_templates/launcher_stub.c +30 -0
  74. data/lib/data/exe_templates/launcher_stub.cpp +31 -0
  75. data/lib/data/launcher_templates/vbs/default_vbs.txt +7 -0
  76. data/lib/data/launcher_templates/vbs/vbs_gui.txt +8 -0
  77. data/lib/data/resource_files/default.rc +17 -0
  78. data/lib/data/tcc/include/_mingw.h +54 -54
  79. data/lib/data/tcc/include/assert.h +71 -71
  80. data/lib/data/tcc/include/conio.h +159 -159
  81. data/lib/data/tcc/include/ctype.h +232 -232
  82. data/lib/data/tcc/include/dir.h +26 -26
  83. data/lib/data/tcc/include/direct.h +95 -95
  84. data/lib/data/tcc/include/dirent.h +96 -96
  85. data/lib/data/tcc/include/dos.h +110 -110
  86. data/lib/data/tcc/include/errno.h +117 -117
  87. data/lib/data/tcc/include/excpt.h +20 -20
  88. data/lib/data/tcc/include/fcntl.h +135 -135
  89. data/lib/data/tcc/include/fenv.h +85 -85
  90. data/lib/data/tcc/include/float.h +224 -224
  91. data/lib/data/tcc/include/inttypes.h +275 -275
  92. data/lib/data/tcc/include/io.h +296 -296
  93. data/lib/data/tcc/include/limits.h +115 -115
  94. data/lib/data/tcc/include/locale.h +100 -100
  95. data/lib/data/tcc/include/malloc.h +87 -87
  96. data/lib/data/tcc/include/math.h +438 -438
  97. data/lib/data/tcc/include/mem.h +8 -8
  98. data/lib/data/tcc/include/memory.h +9 -9
  99. data/lib/data/tcc/include/process.h +158 -158
  100. data/lib/data/tcc/include/setjmp.h +72 -72
  101. data/lib/data/tcc/include/share.h +44 -44
  102. data/lib/data/tcc/include/signal.h +111 -111
  103. data/lib/data/tcc/include/stdarg.h +16 -16
  104. data/lib/data/tcc/include/stdbool.h +10 -10
  105. data/lib/data/tcc/include/stddef.h +26 -26
  106. data/lib/data/tcc/include/stdint.h +184 -184
  107. data/lib/data/tcc/include/stdio.h +413 -413
  108. data/lib/data/tcc/include/stdlib.h +482 -482
  109. data/lib/data/tcc/include/string.h +206 -206
  110. data/lib/data/tcc/include/sys/fcntl.h +8 -8
  111. data/lib/data/tcc/include/sys/file.h +9 -9
  112. data/lib/data/tcc/include/sys/locking.h +52 -52
  113. data/lib/data/tcc/include/sys/stat.h +190 -190
  114. data/lib/data/tcc/include/sys/time.h +3 -3
  115. data/lib/data/tcc/include/sys/timeb.h +82 -82
  116. data/lib/data/tcc/include/sys/types.h +118 -118
  117. data/lib/data/tcc/include/sys/unistd.h +9 -9
  118. data/lib/data/tcc/include/sys/utime.h +89 -89
  119. data/lib/data/tcc/include/tchar.h +367 -367
  120. data/lib/data/tcc/include/time.h +219 -219
  121. data/lib/data/tcc/include/unistd.h +10 -10
  122. data/lib/data/tcc/include/values.h +4 -4
  123. data/lib/data/tcc/include/varargs.h +11 -11
  124. data/lib/data/tcc/include/wchar.h +318 -318
  125. data/lib/data/tcc/include/wctype.h +127 -127
  126. data/lib/data/tcc/include/winapi/basetsd.h +119 -119
  127. data/lib/data/tcc/include/winapi/basetyps.h +144 -144
  128. data/lib/data/tcc/include/winapi/winbase.h +1852 -1852
  129. data/lib/data/tcc/include/winapi/wincon.h +207 -207
  130. data/lib/data/tcc/include/winapi/windef.h +240 -240
  131. data/lib/data/tcc/include/winapi/windows.h +176 -176
  132. data/lib/data/tcc/include/winapi/winerror.h +1054 -1054
  133. data/lib/data/tcc/include/winapi/wingdi.h +2843 -2843
  134. data/lib/data/tcc/include/winapi/winnetwk.h +346 -346
  135. data/lib/data/tcc/include/winapi/winnls.h +651 -651
  136. data/lib/data/tcc/include/winapi/winnt.h +2667 -2667
  137. data/lib/data/tcc/include/winapi/winreg.h +159 -159
  138. data/lib/data/tcc/include/winapi/winsvc.h +309 -309
  139. data/lib/data/tcc/include/winapi/winuser.h +3472 -3472
  140. data/lib/data/tcc/include/winapi/winver.h +133 -133
  141. data/lib/data/tcc/lib/gdi32.def +337 -337
  142. data/lib/data/tcc/lib/kernel32.def +763 -763
  143. data/lib/data/tcc/lib/msvcrt.def +782 -782
  144. data/lib/data/tcc/lib/user32.def +654 -654
  145. data/lib/data/vbs/default_vbs.txt +7 -7
  146. data/lib/data/vbs/vbs_gui.txt +8 -8
  147. data/lib/displayer.rb +66 -0
  148. data/lib/exe_packer.rb +82 -0
  149. data/lib/launcher.rb +84 -0
  150. data/lib/launcher_handler.rb +53 -0
  151. data/lib/logger_helper.rb +24 -0
  152. data/lib/parameter_parser.rb +210 -0
  153. data/lib/ruby_copy.rb +26 -0
  154. data/lib/sfx_generator.rb +11 -0
  155. data/lib/standalone_ruby.rb +1 -1
  156. data/lib/utils/launcher_handler.rb +110 -110
  157. data/lib/version/version.rb +1 -1
  158. metadata +85 -3
@@ -1,219 +1,219 @@
1
- /*
2
- * time.h
3
- *
4
- * Date and time 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 _TIME_H_
28
- #define _TIME_H_
29
-
30
- /* All the headers include this file. */
31
- #include <_mingw.h>
32
-
33
- #define __need_wchar_t
34
- #define __need_size_t
35
- #ifndef RC_INVOKED
36
- #include <stddef.h>
37
- #endif /* Not RC_INVOKED */
38
-
39
- /*
40
- * Need a definition of time_t.
41
- */
42
- #include <sys/types.h>
43
-
44
- /*
45
- * Number of clock ticks per second. A clock tick is the unit by which
46
- * processor time is measured and is returned by 'clock'.
47
- */
48
- #define CLOCKS_PER_SEC ((clock_t)1000)
49
- #define CLK_TCK CLOCKS_PER_SEC
50
-
51
-
52
- #ifndef RC_INVOKED
53
-
54
- /*
55
- * A type for storing the current time and date. This is the number of
56
- * seconds since midnight Jan 1, 1970.
57
- * NOTE: Normally this is defined by the above include of sys/types.h
58
- */
59
- #ifndef _TIME_T_DEFINED
60
- typedef long time_t;
61
- #define _TIME_T_DEFINED
62
- #endif
63
-
64
- /*
65
- * A type for measuring processor time (in clock ticks).
66
- */
67
- #ifndef _CLOCK_T_DEFINED
68
- typedef long clock_t;
69
- #define _CLOCK_T_DEFINED
70
- #endif
71
-
72
-
73
- /*
74
- * A structure for storing all kinds of useful information about the
75
- * current (or another) time.
76
- */
77
- struct tm
78
- {
79
- int tm_sec; /* Seconds: 0-59 (K&R says 0-61?) */
80
- int tm_min; /* Minutes: 0-59 */
81
- int tm_hour; /* Hours since midnight: 0-23 */
82
- int tm_mday; /* Day of the month: 1-31 */
83
- int tm_mon; /* Months *since* january: 0-11 */
84
- int tm_year; /* Years since 1900 */
85
- int tm_wday; /* Days since Sunday (0-6) */
86
- int tm_yday; /* Days since Jan. 1: 0-365 */
87
- int tm_isdst; /* +1 Daylight Savings Time, 0 No DST,
88
- * -1 don't know */
89
- };
90
-
91
- #ifdef __cplusplus
92
- extern "C" {
93
- #endif
94
-
95
- clock_t clock (void);
96
- time_t time (time_t*);
97
- double difftime (time_t, time_t);
98
- time_t mktime (struct tm*);
99
-
100
- /*
101
- * These functions write to and return pointers to static buffers that may
102
- * be overwritten by other function calls. Yikes!
103
- *
104
- * NOTE: localtime, and perhaps the others of the four functions grouped
105
- * below may return NULL if their argument is not 'acceptable'. Also note
106
- * that calling asctime with a NULL pointer will produce an Invalid Page
107
- * Fault and crap out your program. Guess how I know. Hint: stat called on
108
- * a directory gives 'invalid' times in st_atime etc...
109
- */
110
- char* asctime (const struct tm*);
111
- char* ctime (const time_t*);
112
- struct tm* gmtime (const time_t*);
113
- struct tm* localtime (const time_t*);
114
-
115
-
116
- size_t strftime (char*, size_t, const char*, const struct tm*);
117
-
118
- size_t wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*);
119
-
120
- #ifndef __STRICT_ANSI__
121
- extern void _tzset (void);
122
-
123
- #ifndef _NO_OLDNAMES
124
- extern void tzset (void);
125
- #endif
126
-
127
- size_t strftime(char*, size_t, const char*, const struct tm*);
128
- char* _strdate(char*);
129
- char* _strtime(char*);
130
-
131
- #endif /* Not __STRICT_ANSI__ */
132
-
133
- /*
134
- * _daylight: non zero if daylight savings time is used.
135
- * _timezone: difference in seconds between GMT and local time.
136
- * _tzname: standard/daylight savings time zone names (an array with two
137
- * elements).
138
- */
139
- #ifdef __MSVCRT__
140
-
141
- /* These are for compatibility with pre-VC 5.0 suppied MSVCRT. */
142
- extern int* __p__daylight (void);
143
- extern long* __p__timezone (void);
144
- extern char** __p__tzname (void);
145
-
146
- __MINGW_IMPORT int _daylight;
147
- __MINGW_IMPORT long _timezone;
148
- __MINGW_IMPORT char *_tzname[2];
149
-
150
- #else /* not __MSVCRT (ie. crtdll) */
151
-
152
- #ifndef __DECLSPEC_SUPPORTED
153
-
154
- extern int* __imp__daylight_dll;
155
- extern long* __imp__timezone_dll;
156
- extern char** __imp__tzname;
157
-
158
- #define _daylight (*__imp__daylight_dll)
159
- #define _timezone (*__imp__timezone_dll)
160
- #define _tzname (__imp__tzname)
161
-
162
- #else /* __DECLSPEC_SUPPORTED */
163
-
164
- __MINGW_IMPORT int _daylight_dll;
165
- __MINGW_IMPORT long _timezone_dll;
166
- __MINGW_IMPORT char* _tzname[2];
167
-
168
- #define _daylight _daylight_dll
169
- #define _timezone _timezone_dll
170
-
171
- #endif /* __DECLSPEC_SUPPORTED */
172
-
173
- #endif /* not __MSVCRT__ */
174
-
175
- #ifndef _NO_OLDNAMES
176
-
177
- #ifdef __MSVCRT__
178
-
179
- /* These go in the oldnames import library for MSVCRT. */
180
- __MINGW_IMPORT int daylight;
181
- __MINGW_IMPORT long timezone;
182
- __MINGW_IMPORT char *tzname[2];
183
-
184
- #ifndef _WTIME_DEFINED
185
-
186
- /* wide function prototypes, also declared in wchar.h */
187
-
188
- wchar_t * _wasctime(const struct tm*);
189
- wchar_t * _wctime(const time_t*);
190
- wchar_t* _wstrdate(wchar_t*);
191
- wchar_t* _wstrtime(wchar_t*);
192
-
193
- #define _WTIME_DEFINED
194
- #endif /* _WTIME_DEFINED */
195
-
196
-
197
- #else /* not __MSVCRT__ */
198
-
199
- /* CRTDLL is royally messed up when it comes to these macros.
200
- TODO: import and alias these via oldnames import library instead
201
- of macros. */
202
-
203
- #define daylight _daylight
204
- /* NOTE: timezone not defined because it would conflict with sys/timeb.h.
205
- Also, tzname used to a be macro, but now it's in moldname. */
206
- __MINGW_IMPORT char *tzname[2];
207
-
208
- #endif /* not __MSVCRT__ */
209
-
210
- #endif /* Not _NO_OLDNAMES */
211
-
212
- #ifdef __cplusplus
213
- }
214
- #endif
215
-
216
- #endif /* Not RC_INVOKED */
217
-
218
- #endif /* Not _TIME_H_ */
219
-
1
+ /*
2
+ * time.h
3
+ *
4
+ * Date and time 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 _TIME_H_
28
+ #define _TIME_H_
29
+
30
+ /* All the headers include this file. */
31
+ #include <_mingw.h>
32
+
33
+ #define __need_wchar_t
34
+ #define __need_size_t
35
+ #ifndef RC_INVOKED
36
+ #include <stddef.h>
37
+ #endif /* Not RC_INVOKED */
38
+
39
+ /*
40
+ * Need a definition of time_t.
41
+ */
42
+ #include <sys/types.h>
43
+
44
+ /*
45
+ * Number of clock ticks per second. A clock tick is the unit by which
46
+ * processor time is measured and is returned by 'clock'.
47
+ */
48
+ #define CLOCKS_PER_SEC ((clock_t)1000)
49
+ #define CLK_TCK CLOCKS_PER_SEC
50
+
51
+
52
+ #ifndef RC_INVOKED
53
+
54
+ /*
55
+ * A type for storing the current time and date. This is the number of
56
+ * seconds since midnight Jan 1, 1970.
57
+ * NOTE: Normally this is defined by the above include of sys/types.h
58
+ */
59
+ #ifndef _TIME_T_DEFINED
60
+ typedef long time_t;
61
+ #define _TIME_T_DEFINED
62
+ #endif
63
+
64
+ /*
65
+ * A type for measuring processor time (in clock ticks).
66
+ */
67
+ #ifndef _CLOCK_T_DEFINED
68
+ typedef long clock_t;
69
+ #define _CLOCK_T_DEFINED
70
+ #endif
71
+
72
+
73
+ /*
74
+ * A structure for storing all kinds of useful information about the
75
+ * current (or another) time.
76
+ */
77
+ struct tm
78
+ {
79
+ int tm_sec; /* Seconds: 0-59 (K&R says 0-61?) */
80
+ int tm_min; /* Minutes: 0-59 */
81
+ int tm_hour; /* Hours since midnight: 0-23 */
82
+ int tm_mday; /* Day of the month: 1-31 */
83
+ int tm_mon; /* Months *since* january: 0-11 */
84
+ int tm_year; /* Years since 1900 */
85
+ int tm_wday; /* Days since Sunday (0-6) */
86
+ int tm_yday; /* Days since Jan. 1: 0-365 */
87
+ int tm_isdst; /* +1 Daylight Savings Time, 0 No DST,
88
+ * -1 don't know */
89
+ };
90
+
91
+ #ifdef __cplusplus
92
+ extern "C" {
93
+ #endif
94
+
95
+ clock_t clock (void);
96
+ time_t time (time_t*);
97
+ double difftime (time_t, time_t);
98
+ time_t mktime (struct tm*);
99
+
100
+ /*
101
+ * These functions write to and return pointers to static buffers that may
102
+ * be overwritten by other function calls. Yikes!
103
+ *
104
+ * NOTE: localtime, and perhaps the others of the four functions grouped
105
+ * below may return NULL if their argument is not 'acceptable'. Also note
106
+ * that calling asctime with a NULL pointer will produce an Invalid Page
107
+ * Fault and crap out your program. Guess how I know. Hint: stat called on
108
+ * a directory gives 'invalid' times in st_atime etc...
109
+ */
110
+ char* asctime (const struct tm*);
111
+ char* ctime (const time_t*);
112
+ struct tm* gmtime (const time_t*);
113
+ struct tm* localtime (const time_t*);
114
+
115
+
116
+ size_t strftime (char*, size_t, const char*, const struct tm*);
117
+
118
+ size_t wcsftime (wchar_t*, size_t, const wchar_t*, const struct tm*);
119
+
120
+ #ifndef __STRICT_ANSI__
121
+ extern void _tzset (void);
122
+
123
+ #ifndef _NO_OLDNAMES
124
+ extern void tzset (void);
125
+ #endif
126
+
127
+ size_t strftime(char*, size_t, const char*, const struct tm*);
128
+ char* _strdate(char*);
129
+ char* _strtime(char*);
130
+
131
+ #endif /* Not __STRICT_ANSI__ */
132
+
133
+ /*
134
+ * _daylight: non zero if daylight savings time is used.
135
+ * _timezone: difference in seconds between GMT and local time.
136
+ * _tzname: standard/daylight savings time zone names (an array with two
137
+ * elements).
138
+ */
139
+ #ifdef __MSVCRT__
140
+
141
+ /* These are for compatibility with pre-VC 5.0 suppied MSVCRT. */
142
+ extern int* __p__daylight (void);
143
+ extern long* __p__timezone (void);
144
+ extern char** __p__tzname (void);
145
+
146
+ __MINGW_IMPORT int _daylight;
147
+ __MINGW_IMPORT long _timezone;
148
+ __MINGW_IMPORT char *_tzname[2];
149
+
150
+ #else /* not __MSVCRT (ie. crtdll) */
151
+
152
+ #ifndef __DECLSPEC_SUPPORTED
153
+
154
+ extern int* __imp__daylight_dll;
155
+ extern long* __imp__timezone_dll;
156
+ extern char** __imp__tzname;
157
+
158
+ #define _daylight (*__imp__daylight_dll)
159
+ #define _timezone (*__imp__timezone_dll)
160
+ #define _tzname (__imp__tzname)
161
+
162
+ #else /* __DECLSPEC_SUPPORTED */
163
+
164
+ __MINGW_IMPORT int _daylight_dll;
165
+ __MINGW_IMPORT long _timezone_dll;
166
+ __MINGW_IMPORT char* _tzname[2];
167
+
168
+ #define _daylight _daylight_dll
169
+ #define _timezone _timezone_dll
170
+
171
+ #endif /* __DECLSPEC_SUPPORTED */
172
+
173
+ #endif /* not __MSVCRT__ */
174
+
175
+ #ifndef _NO_OLDNAMES
176
+
177
+ #ifdef __MSVCRT__
178
+
179
+ /* These go in the oldnames import library for MSVCRT. */
180
+ __MINGW_IMPORT int daylight;
181
+ __MINGW_IMPORT long timezone;
182
+ __MINGW_IMPORT char *tzname[2];
183
+
184
+ #ifndef _WTIME_DEFINED
185
+
186
+ /* wide function prototypes, also declared in wchar.h */
187
+
188
+ wchar_t * _wasctime(const struct tm*);
189
+ wchar_t * _wctime(const time_t*);
190
+ wchar_t* _wstrdate(wchar_t*);
191
+ wchar_t* _wstrtime(wchar_t*);
192
+
193
+ #define _WTIME_DEFINED
194
+ #endif /* _WTIME_DEFINED */
195
+
196
+
197
+ #else /* not __MSVCRT__ */
198
+
199
+ /* CRTDLL is royally messed up when it comes to these macros.
200
+ TODO: import and alias these via oldnames import library instead
201
+ of macros. */
202
+
203
+ #define daylight _daylight
204
+ /* NOTE: timezone not defined because it would conflict with sys/timeb.h.
205
+ Also, tzname used to a be macro, but now it's in moldname. */
206
+ __MINGW_IMPORT char *tzname[2];
207
+
208
+ #endif /* not __MSVCRT__ */
209
+
210
+ #endif /* Not _NO_OLDNAMES */
211
+
212
+ #ifdef __cplusplus
213
+ }
214
+ #endif
215
+
216
+ #endif /* Not RC_INVOKED */
217
+
218
+ #endif /* Not _TIME_H_ */
219
+
@@ -1,10 +1,10 @@
1
- /*
2
- * This file is part of the Mingw32 package.
3
- *
4
- * unistd.h maps (roughly) to io.h
5
- */
6
-
7
- #ifndef __STRICT_ANSI__
8
- #include <io.h>
9
- #endif
10
-
1
+ /*
2
+ * This file is part of the Mingw32 package.
3
+ *
4
+ * unistd.h maps (roughly) to io.h
5
+ */
6
+
7
+ #ifndef __STRICT_ANSI__
8
+ #include <io.h>
9
+ #endif
10
+
@@ -1,4 +1,4 @@
1
- /*
2
- * TODO: Nothing here yet. Should provide UNIX compatibility constants
3
- * comparible to those in limits.h and float.h.
4
- */
1
+ /*
2
+ * TODO: Nothing here yet. Should provide UNIX compatibility constants
3
+ * comparible to those in limits.h and float.h.
4
+ */
@@ -1,11 +1,11 @@
1
- #ifndef _VARARGS_H
2
- #define _VARARGS_H
3
-
4
- #include <stdarg.h>
5
-
6
- #define va_dcl
7
- #define va_alist __va_alist
8
- #undef va_start
9
- #define va_start(ap) ap = __builtin_varargs_start
10
-
11
- #endif
1
+ #ifndef _VARARGS_H
2
+ #define _VARARGS_H
3
+
4
+ #include <stdarg.h>
5
+
6
+ #define va_dcl
7
+ #define va_alist __va_alist
8
+ #undef va_start
9
+ #define va_start(ap) ap = __builtin_varargs_start
10
+
11
+ #endif