standalone-ruby 1.5.0 → 1.5.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +53 -44
- data/bin/standalone-ruby +3 -3
- data/lib/data/c_compilers/tcc/include/_mingw.h +54 -54
- data/lib/data/c_compilers/tcc/include/assert.h +71 -71
- data/lib/data/c_compilers/tcc/include/conio.h +159 -159
- data/lib/data/c_compilers/tcc/include/ctype.h +232 -232
- data/lib/data/c_compilers/tcc/include/dir.h +26 -26
- data/lib/data/c_compilers/tcc/include/direct.h +95 -95
- data/lib/data/c_compilers/tcc/include/dirent.h +96 -96
- data/lib/data/c_compilers/tcc/include/dos.h +110 -110
- data/lib/data/c_compilers/tcc/include/errno.h +117 -117
- data/lib/data/c_compilers/tcc/include/excpt.h +20 -20
- data/lib/data/c_compilers/tcc/include/fcntl.h +135 -135
- data/lib/data/c_compilers/tcc/include/fenv.h +85 -85
- data/lib/data/c_compilers/tcc/include/float.h +224 -224
- data/lib/data/c_compilers/tcc/include/inttypes.h +275 -275
- data/lib/data/c_compilers/tcc/include/io.h +296 -296
- data/lib/data/c_compilers/tcc/include/limits.h +115 -115
- data/lib/data/c_compilers/tcc/include/locale.h +100 -100
- data/lib/data/c_compilers/tcc/include/malloc.h +87 -87
- data/lib/data/c_compilers/tcc/include/math.h +438 -438
- data/lib/data/c_compilers/tcc/include/mem.h +8 -8
- data/lib/data/c_compilers/tcc/include/memory.h +9 -9
- data/lib/data/c_compilers/tcc/include/process.h +158 -158
- data/lib/data/c_compilers/tcc/include/setjmp.h +72 -72
- data/lib/data/c_compilers/tcc/include/share.h +44 -44
- data/lib/data/c_compilers/tcc/include/signal.h +111 -111
- data/lib/data/c_compilers/tcc/include/stdarg.h +16 -16
- data/lib/data/c_compilers/tcc/include/stdbool.h +10 -10
- data/lib/data/c_compilers/tcc/include/stddef.h +26 -26
- data/lib/data/c_compilers/tcc/include/stdint.h +184 -184
- data/lib/data/c_compilers/tcc/include/stdio.h +413 -413
- data/lib/data/c_compilers/tcc/include/stdlib.h +482 -482
- data/lib/data/c_compilers/tcc/include/string.h +206 -206
- data/lib/data/c_compilers/tcc/include/sys/fcntl.h +8 -8
- data/lib/data/c_compilers/tcc/include/sys/file.h +9 -9
- data/lib/data/c_compilers/tcc/include/sys/locking.h +52 -52
- data/lib/data/c_compilers/tcc/include/sys/stat.h +190 -190
- data/lib/data/c_compilers/tcc/include/sys/time.h +3 -3
- data/lib/data/c_compilers/tcc/include/sys/timeb.h +82 -82
- data/lib/data/c_compilers/tcc/include/sys/types.h +118 -118
- data/lib/data/c_compilers/tcc/include/sys/unistd.h +9 -9
- data/lib/data/c_compilers/tcc/include/sys/utime.h +89 -89
- data/lib/data/c_compilers/tcc/include/tchar.h +367 -367
- data/lib/data/c_compilers/tcc/include/time.h +219 -219
- data/lib/data/c_compilers/tcc/include/unistd.h +10 -10
- data/lib/data/c_compilers/tcc/include/values.h +4 -4
- data/lib/data/c_compilers/tcc/include/varargs.h +11 -11
- data/lib/data/c_compilers/tcc/include/wchar.h +318 -318
- data/lib/data/c_compilers/tcc/include/wctype.h +127 -127
- data/lib/data/c_compilers/tcc/include/winapi/basetsd.h +119 -119
- data/lib/data/c_compilers/tcc/include/winapi/basetyps.h +144 -144
- data/lib/data/c_compilers/tcc/include/winapi/winbase.h +1852 -1852
- data/lib/data/c_compilers/tcc/include/winapi/wincon.h +207 -207
- data/lib/data/c_compilers/tcc/include/winapi/windef.h +240 -240
- data/lib/data/c_compilers/tcc/include/winapi/windows.h +176 -176
- data/lib/data/c_compilers/tcc/include/winapi/winerror.h +1054 -1054
- data/lib/data/c_compilers/tcc/include/winapi/wingdi.h +2843 -2843
- data/lib/data/c_compilers/tcc/include/winapi/winnetwk.h +346 -346
- data/lib/data/c_compilers/tcc/include/winapi/winnls.h +651 -651
- data/lib/data/c_compilers/tcc/include/winapi/winnt.h +2667 -2667
- data/lib/data/c_compilers/tcc/include/winapi/winreg.h +159 -159
- data/lib/data/c_compilers/tcc/include/winapi/winsvc.h +309 -309
- data/lib/data/c_compilers/tcc/include/winapi/winuser.h +3472 -3472
- data/lib/data/c_compilers/tcc/include/winapi/winver.h +133 -133
- data/lib/data/c_compilers/tcc/lib/gdi32.def +337 -337
- data/lib/data/c_compilers/tcc/lib/kernel32.def +763 -763
- data/lib/data/c_compilers/tcc/lib/msvcrt.def +782 -782
- data/lib/data/c_compilers/tcc/lib/user32.def +654 -654
- data/lib/data/exe_templates/launcher_stub.c +29 -29
- data/lib/data/exe_templates/launcher_stub.cpp +31 -31
- data/lib/data/launcher_templates/vbs/default_vbs.txt +7 -7
- data/lib/data/launcher_templates/vbs/vbs_gui.txt +8 -8
- data/lib/data/resource_files/default.rc +17 -17
- data/lib/displayer.rb +63 -65
- data/lib/exe_packer.rb +72 -82
- data/lib/launcher.rb +58 -84
- data/lib/launcher_handler.rb +40 -52
- data/lib/parameter_parser.rb +215 -210
- data/lib/ruby_copy.rb +48 -26
- data/lib/standalone_ruby.rb +6 -6
- data/lib/version/version.rb +2 -2
- metadata +3 -89
- data/lib/data/bat-cmd/default_bat_cmd.txt +0 -9
- data/lib/data/exe_template/launcher_stub.c +0 -30
- data/lib/data/exe_template/launcher_stub.cpp +0 -9
- data/lib/data/tcc/include/_mingw.h +0 -54
- data/lib/data/tcc/include/assert.h +0 -71
- data/lib/data/tcc/include/conio.h +0 -159
- data/lib/data/tcc/include/ctype.h +0 -232
- data/lib/data/tcc/include/dir.h +0 -26
- data/lib/data/tcc/include/direct.h +0 -95
- data/lib/data/tcc/include/dirent.h +0 -96
- data/lib/data/tcc/include/dos.h +0 -110
- data/lib/data/tcc/include/errno.h +0 -117
- data/lib/data/tcc/include/excpt.h +0 -20
- data/lib/data/tcc/include/fcntl.h +0 -135
- data/lib/data/tcc/include/fenv.h +0 -85
- data/lib/data/tcc/include/float.h +0 -224
- data/lib/data/tcc/include/inttypes.h +0 -275
- data/lib/data/tcc/include/io.h +0 -296
- data/lib/data/tcc/include/limits.h +0 -115
- data/lib/data/tcc/include/locale.h +0 -100
- data/lib/data/tcc/include/malloc.h +0 -87
- data/lib/data/tcc/include/math.h +0 -438
- data/lib/data/tcc/include/mem.h +0 -8
- data/lib/data/tcc/include/memory.h +0 -9
- data/lib/data/tcc/include/process.h +0 -158
- data/lib/data/tcc/include/setjmp.h +0 -72
- data/lib/data/tcc/include/share.h +0 -44
- data/lib/data/tcc/include/signal.h +0 -111
- data/lib/data/tcc/include/stdarg.h +0 -16
- data/lib/data/tcc/include/stdbool.h +0 -10
- data/lib/data/tcc/include/stddef.h +0 -26
- data/lib/data/tcc/include/stdint.h +0 -184
- data/lib/data/tcc/include/stdio.h +0 -413
- data/lib/data/tcc/include/stdlib.h +0 -482
- data/lib/data/tcc/include/string.h +0 -206
- data/lib/data/tcc/include/sys/fcntl.h +0 -8
- data/lib/data/tcc/include/sys/file.h +0 -9
- data/lib/data/tcc/include/sys/locking.h +0 -52
- data/lib/data/tcc/include/sys/stat.h +0 -190
- data/lib/data/tcc/include/sys/time.h +0 -3
- data/lib/data/tcc/include/sys/timeb.h +0 -82
- data/lib/data/tcc/include/sys/types.h +0 -118
- data/lib/data/tcc/include/sys/unistd.h +0 -9
- data/lib/data/tcc/include/sys/utime.h +0 -89
- data/lib/data/tcc/include/tchar.h +0 -367
- data/lib/data/tcc/include/time.h +0 -219
- data/lib/data/tcc/include/unistd.h +0 -10
- data/lib/data/tcc/include/values.h +0 -4
- data/lib/data/tcc/include/varargs.h +0 -11
- data/lib/data/tcc/include/wchar.h +0 -318
- data/lib/data/tcc/include/wctype.h +0 -127
- data/lib/data/tcc/include/winapi/basetsd.h +0 -119
- data/lib/data/tcc/include/winapi/basetyps.h +0 -144
- data/lib/data/tcc/include/winapi/winbase.h +0 -1852
- data/lib/data/tcc/include/winapi/wincon.h +0 -207
- data/lib/data/tcc/include/winapi/windef.h +0 -240
- data/lib/data/tcc/include/winapi/windows.h +0 -176
- data/lib/data/tcc/include/winapi/winerror.h +0 -1054
- data/lib/data/tcc/include/winapi/wingdi.h +0 -2843
- data/lib/data/tcc/include/winapi/winnetwk.h +0 -346
- data/lib/data/tcc/include/winapi/winnls.h +0 -651
- data/lib/data/tcc/include/winapi/winnt.h +0 -2667
- data/lib/data/tcc/include/winapi/winreg.h +0 -159
- data/lib/data/tcc/include/winapi/winsvc.h +0 -309
- data/lib/data/tcc/include/winapi/winuser.h +0 -3472
- data/lib/data/tcc/include/winapi/winver.h +0 -133
- data/lib/data/tcc/lib/gdi32.def +0 -337
- data/lib/data/tcc/lib/kernel32.def +0 -763
- data/lib/data/tcc/lib/libtcc1.a +0 -0
- data/lib/data/tcc/lib/msvcrt.def +0 -782
- data/lib/data/tcc/lib/user32.def +0 -654
- data/lib/data/tcc/tcc.exe +0 -0
- data/lib/data/tcc/tiny_impdef.exe +0 -0
- data/lib/data/tcc/tiny_libmaker.exe +0 -0
- data/lib/data/vbs/default_vbs.txt +0 -7
- data/lib/data/vbs/vbs_gui.txt +0 -8
- data/lib/logger_helper.rb +0 -24
- data/lib/sfx_generator.rb +0 -11
- data/lib/utils/config_generator.rb +0 -5
- data/lib/utils/displayer.rb +0 -64
- data/lib/utils/exe_packer.rb +0 -72
- data/lib/utils/launcher.rb +0 -77
- data/lib/utils/launcher_handler.rb +0 -111
- data/lib/utils/logger_helper.rb +0 -24
- data/lib/utils/parameter_parser.rb +0 -211
- data/lib/utils/ruby_copy.rb +0 -26
@@ -1,115 +1,115 @@
|
|
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_ */
|
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_ */
|
@@ -1,100 +1,100 @@
|
|
1
|
-
/*
|
2
|
-
* locale.h
|
3
|
-
*
|
4
|
-
* Functions and types for localization (ie. changing the appearance of
|
5
|
-
* output based on the standards of a certain country).
|
6
|
-
*
|
7
|
-
* This file is part of the Mingw32 package.
|
8
|
-
*
|
9
|
-
* Contributors:
|
10
|
-
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
|
11
|
-
*
|
12
|
-
* THIS SOFTWARE IS NOT COPYRIGHTED
|
13
|
-
*
|
14
|
-
* This source code is offered for use in the public domain. You may
|
15
|
-
* use, modify or distribute it freely.
|
16
|
-
*
|
17
|
-
* This code is distributed in the hope that it will be useful but
|
18
|
-
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
19
|
-
* DISCLAIMED. This includes but is not limited to warranties of
|
20
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
21
|
-
*
|
22
|
-
* $Revision: 1.2 $
|
23
|
-
* $Author: bellard $
|
24
|
-
* $Date: 2005/04/17 13:14:29 $
|
25
|
-
*
|
26
|
-
*/
|
27
|
-
|
28
|
-
#ifndef _LOCALE_H_
|
29
|
-
#define _LOCALE_H_
|
30
|
-
|
31
|
-
/* All the headers include this file. */
|
32
|
-
#include <_mingw.h>
|
33
|
-
|
34
|
-
/*
|
35
|
-
* NOTE: I have tried to test this, but I am limited by my knowledge of
|
36
|
-
* locale issues. The structure does not bomb if you look at the
|
37
|
-
* values, and 'decimal_point' even seems to be correct. But the
|
38
|
-
* rest of the values are, by default, not particularly useful
|
39
|
-
* (read meaningless and not related to the international settings
|
40
|
-
* of the system).
|
41
|
-
*/
|
42
|
-
|
43
|
-
#define LC_ALL 0
|
44
|
-
#define LC_COLLATE 1
|
45
|
-
#define LC_CTYPE 2
|
46
|
-
#define LC_MONETARY 3
|
47
|
-
#define LC_NUMERIC 4
|
48
|
-
#define LC_TIME 5
|
49
|
-
#define LC_MIN LC_ALL
|
50
|
-
#define LC_MAX LC_TIME
|
51
|
-
|
52
|
-
#ifndef RC_INVOKED
|
53
|
-
|
54
|
-
/*
|
55
|
-
* The structure returned by 'localeconv'.
|
56
|
-
*/
|
57
|
-
struct lconv
|
58
|
-
{
|
59
|
-
char* decimal_point;
|
60
|
-
char* thousands_sep;
|
61
|
-
char* grouping;
|
62
|
-
char* int_curr_symbol;
|
63
|
-
char* currency_symbol;
|
64
|
-
char* mon_decimal_point;
|
65
|
-
char* mon_thousands_sep;
|
66
|
-
char* mon_grouping;
|
67
|
-
char* positive_sign;
|
68
|
-
char* negative_sign;
|
69
|
-
char int_frac_digits;
|
70
|
-
char frac_digits;
|
71
|
-
char p_cs_precedes;
|
72
|
-
char p_sep_by_space;
|
73
|
-
char n_cs_precedes;
|
74
|
-
char n_sep_by_space;
|
75
|
-
char p_sign_posn;
|
76
|
-
char n_sign_posn;
|
77
|
-
};
|
78
|
-
|
79
|
-
#ifdef __cplusplus
|
80
|
-
extern "C" {
|
81
|
-
#endif
|
82
|
-
|
83
|
-
char* setlocale (int, const char*);
|
84
|
-
struct lconv* localeconv (void);
|
85
|
-
|
86
|
-
#ifndef _WLOCALE_DEFINED /* also declared in wchar.h */
|
87
|
-
# define __need_wchar_t
|
88
|
-
# include <stddef.h>
|
89
|
-
wchar_t* _wsetlocale(int, const wchar_t*);
|
90
|
-
# define _WLOCALE_DEFINED
|
91
|
-
#endif /* ndef _WLOCALE_DEFINED */
|
92
|
-
|
93
|
-
#ifdef __cplusplus
|
94
|
-
}
|
95
|
-
#endif
|
96
|
-
|
97
|
-
#endif /* Not RC_INVOKED */
|
98
|
-
|
99
|
-
#endif /* Not _LOCALE_H_ */
|
100
|
-
|
1
|
+
/*
|
2
|
+
* locale.h
|
3
|
+
*
|
4
|
+
* Functions and types for localization (ie. changing the appearance of
|
5
|
+
* output based on the standards of a certain country).
|
6
|
+
*
|
7
|
+
* This file is part of the Mingw32 package.
|
8
|
+
*
|
9
|
+
* Contributors:
|
10
|
+
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
|
11
|
+
*
|
12
|
+
* THIS SOFTWARE IS NOT COPYRIGHTED
|
13
|
+
*
|
14
|
+
* This source code is offered for use in the public domain. You may
|
15
|
+
* use, modify or distribute it freely.
|
16
|
+
*
|
17
|
+
* This code is distributed in the hope that it will be useful but
|
18
|
+
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
19
|
+
* DISCLAIMED. This includes but is not limited to warranties of
|
20
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
21
|
+
*
|
22
|
+
* $Revision: 1.2 $
|
23
|
+
* $Author: bellard $
|
24
|
+
* $Date: 2005/04/17 13:14:29 $
|
25
|
+
*
|
26
|
+
*/
|
27
|
+
|
28
|
+
#ifndef _LOCALE_H_
|
29
|
+
#define _LOCALE_H_
|
30
|
+
|
31
|
+
/* All the headers include this file. */
|
32
|
+
#include <_mingw.h>
|
33
|
+
|
34
|
+
/*
|
35
|
+
* NOTE: I have tried to test this, but I am limited by my knowledge of
|
36
|
+
* locale issues. The structure does not bomb if you look at the
|
37
|
+
* values, and 'decimal_point' even seems to be correct. But the
|
38
|
+
* rest of the values are, by default, not particularly useful
|
39
|
+
* (read meaningless and not related to the international settings
|
40
|
+
* of the system).
|
41
|
+
*/
|
42
|
+
|
43
|
+
#define LC_ALL 0
|
44
|
+
#define LC_COLLATE 1
|
45
|
+
#define LC_CTYPE 2
|
46
|
+
#define LC_MONETARY 3
|
47
|
+
#define LC_NUMERIC 4
|
48
|
+
#define LC_TIME 5
|
49
|
+
#define LC_MIN LC_ALL
|
50
|
+
#define LC_MAX LC_TIME
|
51
|
+
|
52
|
+
#ifndef RC_INVOKED
|
53
|
+
|
54
|
+
/*
|
55
|
+
* The structure returned by 'localeconv'.
|
56
|
+
*/
|
57
|
+
struct lconv
|
58
|
+
{
|
59
|
+
char* decimal_point;
|
60
|
+
char* thousands_sep;
|
61
|
+
char* grouping;
|
62
|
+
char* int_curr_symbol;
|
63
|
+
char* currency_symbol;
|
64
|
+
char* mon_decimal_point;
|
65
|
+
char* mon_thousands_sep;
|
66
|
+
char* mon_grouping;
|
67
|
+
char* positive_sign;
|
68
|
+
char* negative_sign;
|
69
|
+
char int_frac_digits;
|
70
|
+
char frac_digits;
|
71
|
+
char p_cs_precedes;
|
72
|
+
char p_sep_by_space;
|
73
|
+
char n_cs_precedes;
|
74
|
+
char n_sep_by_space;
|
75
|
+
char p_sign_posn;
|
76
|
+
char n_sign_posn;
|
77
|
+
};
|
78
|
+
|
79
|
+
#ifdef __cplusplus
|
80
|
+
extern "C" {
|
81
|
+
#endif
|
82
|
+
|
83
|
+
char* setlocale (int, const char*);
|
84
|
+
struct lconv* localeconv (void);
|
85
|
+
|
86
|
+
#ifndef _WLOCALE_DEFINED /* also declared in wchar.h */
|
87
|
+
# define __need_wchar_t
|
88
|
+
# include <stddef.h>
|
89
|
+
wchar_t* _wsetlocale(int, const wchar_t*);
|
90
|
+
# define _WLOCALE_DEFINED
|
91
|
+
#endif /* ndef _WLOCALE_DEFINED */
|
92
|
+
|
93
|
+
#ifdef __cplusplus
|
94
|
+
}
|
95
|
+
#endif
|
96
|
+
|
97
|
+
#endif /* Not RC_INVOKED */
|
98
|
+
|
99
|
+
#endif /* Not _LOCALE_H_ */
|
100
|
+
|
@@ -1,87 +1,87 @@
|
|
1
|
-
/*
|
2
|
-
* malloc.h
|
3
|
-
*
|
4
|
-
* Support for programs which want to use malloc.h to get memory management
|
5
|
-
* functions. Unless you absolutely need some of these functions and they are
|
6
|
-
* not in the ANSI headers you should use the ANSI standard header files
|
7
|
-
* instead.
|
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 __STRICT_ANSI__
|
31
|
-
|
32
|
-
#ifndef _MALLOC_H_
|
33
|
-
#define _MALLOC_H_
|
34
|
-
|
35
|
-
/* All the headers include this file. */
|
36
|
-
#include <_mingw.h>
|
37
|
-
|
38
|
-
#include <stdlib.h>
|
39
|
-
|
40
|
-
#ifndef RC_INVOKED
|
41
|
-
|
42
|
-
/*
|
43
|
-
* The structure used to walk through the heap with _heapwalk.
|
44
|
-
*/
|
45
|
-
typedef struct _heapinfo
|
46
|
-
{
|
47
|
-
int* _pentry;
|
48
|
-
size_t _size;
|
49
|
-
int _useflag;
|
50
|
-
} _HEAPINFO;
|
51
|
-
|
52
|
-
/* Values for _heapinfo.useflag */
|
53
|
-
#define _USEDENTRY 0
|
54
|
-
#define _FREEENTRY 1
|
55
|
-
|
56
|
-
#ifdef __cplusplus
|
57
|
-
extern "C" {
|
58
|
-
#endif
|
59
|
-
/*
|
60
|
-
The _heap* memory allocation functions are supported on NT
|
61
|
-
but not W9x. On latter, they always set errno to ENOSYS.
|
62
|
-
*/
|
63
|
-
int _heapwalk (_HEAPINFO*);
|
64
|
-
|
65
|
-
#ifndef _NO_OLDNAMES
|
66
|
-
int heapwalk (_HEAPINFO*);
|
67
|
-
#endif /* Not _NO_OLDNAMES */
|
68
|
-
|
69
|
-
int _heapchk (void); /* Verify heap integrety. */
|
70
|
-
int _heapmin (void); /* Return unused heap to the OS. */
|
71
|
-
int _heapset (unsigned int);
|
72
|
-
|
73
|
-
size_t _msize (void*);
|
74
|
-
size_t _get_sbh_threshold (void);
|
75
|
-
int _set_sbh_threshold (size_t);
|
76
|
-
void * _expand (void*, size_t);
|
77
|
-
|
78
|
-
#ifdef __cplusplus
|
79
|
-
}
|
80
|
-
#endif
|
81
|
-
|
82
|
-
#endif /* RC_INVOKED */
|
83
|
-
|
84
|
-
#endif /* Not _MALLOC_H_ */
|
85
|
-
|
86
|
-
#endif /* Not __STRICT_ANSI__ */
|
87
|
-
|
1
|
+
/*
|
2
|
+
* malloc.h
|
3
|
+
*
|
4
|
+
* Support for programs which want to use malloc.h to get memory management
|
5
|
+
* functions. Unless you absolutely need some of these functions and they are
|
6
|
+
* not in the ANSI headers you should use the ANSI standard header files
|
7
|
+
* instead.
|
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 __STRICT_ANSI__
|
31
|
+
|
32
|
+
#ifndef _MALLOC_H_
|
33
|
+
#define _MALLOC_H_
|
34
|
+
|
35
|
+
/* All the headers include this file. */
|
36
|
+
#include <_mingw.h>
|
37
|
+
|
38
|
+
#include <stdlib.h>
|
39
|
+
|
40
|
+
#ifndef RC_INVOKED
|
41
|
+
|
42
|
+
/*
|
43
|
+
* The structure used to walk through the heap with _heapwalk.
|
44
|
+
*/
|
45
|
+
typedef struct _heapinfo
|
46
|
+
{
|
47
|
+
int* _pentry;
|
48
|
+
size_t _size;
|
49
|
+
int _useflag;
|
50
|
+
} _HEAPINFO;
|
51
|
+
|
52
|
+
/* Values for _heapinfo.useflag */
|
53
|
+
#define _USEDENTRY 0
|
54
|
+
#define _FREEENTRY 1
|
55
|
+
|
56
|
+
#ifdef __cplusplus
|
57
|
+
extern "C" {
|
58
|
+
#endif
|
59
|
+
/*
|
60
|
+
The _heap* memory allocation functions are supported on NT
|
61
|
+
but not W9x. On latter, they always set errno to ENOSYS.
|
62
|
+
*/
|
63
|
+
int _heapwalk (_HEAPINFO*);
|
64
|
+
|
65
|
+
#ifndef _NO_OLDNAMES
|
66
|
+
int heapwalk (_HEAPINFO*);
|
67
|
+
#endif /* Not _NO_OLDNAMES */
|
68
|
+
|
69
|
+
int _heapchk (void); /* Verify heap integrety. */
|
70
|
+
int _heapmin (void); /* Return unused heap to the OS. */
|
71
|
+
int _heapset (unsigned int);
|
72
|
+
|
73
|
+
size_t _msize (void*);
|
74
|
+
size_t _get_sbh_threshold (void);
|
75
|
+
int _set_sbh_threshold (size_t);
|
76
|
+
void * _expand (void*, size_t);
|
77
|
+
|
78
|
+
#ifdef __cplusplus
|
79
|
+
}
|
80
|
+
#endif
|
81
|
+
|
82
|
+
#endif /* RC_INVOKED */
|
83
|
+
|
84
|
+
#endif /* Not _MALLOC_H_ */
|
85
|
+
|
86
|
+
#endif /* Not __STRICT_ANSI__ */
|
87
|
+
|