standalone-ruby 1.4.2 → 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 (95) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +36 -22
  3. data/lib/data/{tcc → c_compilers/tcc}/include/_mingw.h +54 -54
  4. data/lib/data/{tcc → c_compilers/tcc}/include/assert.h +71 -71
  5. data/lib/data/{tcc → c_compilers/tcc}/include/conio.h +159 -159
  6. data/lib/data/{tcc → c_compilers/tcc}/include/ctype.h +232 -232
  7. data/lib/data/{tcc → c_compilers/tcc}/include/dir.h +26 -26
  8. data/lib/data/{tcc → c_compilers/tcc}/include/direct.h +95 -95
  9. data/lib/data/{tcc → c_compilers/tcc}/include/dirent.h +96 -96
  10. data/lib/data/{tcc → c_compilers/tcc}/include/dos.h +110 -110
  11. data/lib/data/{tcc → c_compilers/tcc}/include/errno.h +117 -117
  12. data/lib/data/{tcc → c_compilers/tcc}/include/excpt.h +20 -20
  13. data/lib/data/{tcc → c_compilers/tcc}/include/fcntl.h +135 -135
  14. data/lib/data/{tcc → c_compilers/tcc}/include/fenv.h +85 -85
  15. data/lib/data/{tcc → c_compilers/tcc}/include/float.h +224 -224
  16. data/lib/data/{tcc → c_compilers/tcc}/include/inttypes.h +275 -275
  17. data/lib/data/{tcc → c_compilers/tcc}/include/io.h +296 -296
  18. data/lib/data/{tcc → c_compilers/tcc}/include/limits.h +115 -115
  19. data/lib/data/{tcc → c_compilers/tcc}/include/locale.h +100 -100
  20. data/lib/data/{tcc → c_compilers/tcc}/include/malloc.h +87 -87
  21. data/lib/data/{tcc → c_compilers/tcc}/include/math.h +438 -438
  22. data/lib/data/{tcc → c_compilers/tcc}/include/mem.h +8 -8
  23. data/lib/data/{tcc → c_compilers/tcc}/include/memory.h +9 -9
  24. data/lib/data/{tcc → c_compilers/tcc}/include/process.h +158 -158
  25. data/lib/data/{tcc → c_compilers/tcc}/include/setjmp.h +72 -72
  26. data/lib/data/{tcc → c_compilers/tcc}/include/share.h +44 -44
  27. data/lib/data/{tcc → c_compilers/tcc}/include/signal.h +111 -111
  28. data/lib/data/{tcc → c_compilers/tcc}/include/stdarg.h +16 -16
  29. data/lib/data/{tcc → c_compilers/tcc}/include/stdbool.h +10 -10
  30. data/lib/data/{tcc → c_compilers/tcc}/include/stddef.h +26 -26
  31. data/lib/data/{tcc → c_compilers/tcc}/include/stdint.h +184 -184
  32. data/lib/data/{tcc → c_compilers/tcc}/include/stdio.h +413 -413
  33. data/lib/data/{tcc → c_compilers/tcc}/include/stdlib.h +482 -482
  34. data/lib/data/{tcc → c_compilers/tcc}/include/string.h +206 -206
  35. data/lib/data/{tcc → c_compilers/tcc}/include/sys/fcntl.h +8 -8
  36. data/lib/data/{tcc → c_compilers/tcc}/include/sys/file.h +9 -9
  37. data/lib/data/{tcc → c_compilers/tcc}/include/sys/locking.h +52 -52
  38. data/lib/data/{tcc → c_compilers/tcc}/include/sys/stat.h +190 -190
  39. data/lib/data/{tcc → c_compilers/tcc}/include/sys/time.h +3 -3
  40. data/lib/data/{tcc → c_compilers/tcc}/include/sys/timeb.h +82 -82
  41. data/lib/data/{tcc → c_compilers/tcc}/include/sys/types.h +118 -118
  42. data/lib/data/{tcc/include → c_compilers/tcc/include/sys}/unistd.h +9 -10
  43. data/lib/data/{tcc → c_compilers/tcc}/include/sys/utime.h +89 -89
  44. data/lib/data/{tcc → c_compilers/tcc}/include/tchar.h +367 -367
  45. data/lib/data/{tcc → c_compilers/tcc}/include/time.h +219 -219
  46. data/lib/data/{tcc/include/sys → c_compilers/tcc/include}/unistd.h +10 -9
  47. data/lib/data/{tcc → c_compilers/tcc}/include/values.h +4 -4
  48. data/lib/data/{tcc → c_compilers/tcc}/include/varargs.h +11 -11
  49. data/lib/data/{tcc → c_compilers/tcc}/include/wchar.h +318 -318
  50. data/lib/data/{tcc → c_compilers/tcc}/include/wctype.h +127 -127
  51. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/basetsd.h +119 -119
  52. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/basetyps.h +144 -144
  53. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winbase.h +1852 -1852
  54. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/wincon.h +207 -207
  55. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/windef.h +240 -240
  56. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/windows.h +176 -176
  57. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winerror.h +1054 -1054
  58. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/wingdi.h +2843 -2843
  59. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winnetwk.h +346 -346
  60. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winnls.h +651 -651
  61. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winnt.h +2667 -2667
  62. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winreg.h +159 -159
  63. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winsvc.h +309 -309
  64. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winuser.h +3472 -3472
  65. data/lib/data/{tcc → c_compilers/tcc}/include/winapi/winver.h +133 -133
  66. data/lib/data/{tcc → c_compilers/tcc}/lib/gdi32.def +337 -337
  67. data/lib/data/{tcc → c_compilers/tcc}/lib/kernel32.def +763 -763
  68. data/lib/data/{tcc → c_compilers/tcc}/lib/msvcrt.def +782 -782
  69. data/lib/data/{tcc → c_compilers/tcc}/lib/user32.def +654 -654
  70. data/lib/data/{exe_template → exe_templates}/launcher_stub.c +2 -2
  71. data/lib/data/exe_templates/launcher_stub.cpp +31 -0
  72. data/lib/data/{vbs → launcher_templates/vbs}/default_vbs.txt +7 -7
  73. data/lib/data/{vbs → launcher_templates/vbs}/vbs_gui.txt +8 -8
  74. data/lib/data/resource_files/default.rc +17 -0
  75. data/lib/{utils/displayer.rb → displayer.rb} +6 -6
  76. data/lib/exe_packer.rb +68 -0
  77. data/lib/{utils/launcher.rb → launcher.rb} +18 -24
  78. data/lib/launcher_handler.rb +41 -0
  79. data/lib/parameter_parser.rb +201 -0
  80. data/lib/{utils/ruby_copy.rb → ruby_copy.rb} +0 -6
  81. data/lib/sfx_generator.rb +9 -0
  82. data/lib/standalone_ruby.rb +1 -1
  83. data/lib/version/version.rb +1 -1
  84. metadata +84 -87
  85. data/lib/data/bat-cmd/default_bat_cmd.txt +0 -9
  86. data/lib/data/exe_template/launcher_stub.cpp +0 -9
  87. data/lib/data/tcc/tiny_impdef.exe +0 -0
  88. data/lib/data/tcc/tiny_libmaker.exe +0 -0
  89. data/lib/utils/config_generator.rb +0 -5
  90. data/lib/utils/exe_packer.rb +0 -72
  91. data/lib/utils/launcher_handler.rb +0 -111
  92. data/lib/utils/logger_helper.rb +0 -24
  93. data/lib/utils/parameter_parser.rb +0 -211
  94. /data/lib/data/{tcc → c_compilers/tcc}/lib/libtcc1.a +0 -0
  95. /data/lib/data/{tcc → c_compilers/tcc}/tcc.exe +0 -0
@@ -1,8 +1,8 @@
1
- /*
2
- * This file is part of the Mingw32 package.
3
- *
4
- * mem.h maps to string.h
5
- */
6
- #ifndef __STRICT_ANSI__
7
- #include <string.h>
8
- #endif
1
+ /*
2
+ * This file is part of the Mingw32 package.
3
+ *
4
+ * mem.h maps to string.h
5
+ */
6
+ #ifndef __STRICT_ANSI__
7
+ #include <string.h>
8
+ #endif
@@ -1,9 +1,9 @@
1
- /*
2
- * This file is part of the Mingw32 package.
3
- *
4
- * memory.h maps to the standard string.h header.
5
- */
6
- #ifndef __STRICT_ANSI__
7
- #include <string.h>
8
- #endif
9
-
1
+ /*
2
+ * This file is part of the Mingw32 package.
3
+ *
4
+ * memory.h maps to the standard string.h header.
5
+ */
6
+ #ifndef __STRICT_ANSI__
7
+ #include <string.h>
8
+ #endif
9
+
@@ -1,158 +1,158 @@
1
- /*
2
- * process.h
3
- *
4
- * Function calls for spawning child processes.
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 _PROCESS_H_
30
- #define _PROCESS_H_
31
-
32
- /* All the headers include this file. */
33
- #include <_mingw.h>
34
-
35
- /* Includes a definition of _pid_t and pid_t */
36
- #include <sys/types.h>
37
-
38
- /*
39
- * Constants for cwait actions.
40
- * Obsolete for Win32.
41
- */
42
- #define _WAIT_CHILD 0
43
- #define _WAIT_GRANDCHILD 1
44
-
45
- #ifndef _NO_OLDNAMES
46
- #define WAIT_CHILD _WAIT_CHILD
47
- #define WAIT_GRANDCHILD _WAIT_GRANDCHILD
48
- #endif /* Not _NO_OLDNAMES */
49
-
50
- /*
51
- * Mode constants for spawn functions.
52
- */
53
- #define _P_WAIT 0
54
- #define _P_NOWAIT 1
55
- #define _P_OVERLAY 2
56
- #define _OLD_P_OVERLAY _P_OVERLAY
57
- #define _P_NOWAITO 3
58
- #define _P_DETACH 4
59
-
60
- #ifndef _NO_OLDNAMES
61
- #define P_WAIT _P_WAIT
62
- #define P_NOWAIT _P_NOWAIT
63
- #define P_OVERLAY _P_OVERLAY
64
- #define OLD_P_OVERLAY _OLD_P_OVERLAY
65
- #define P_NOWAITO _P_NOWAITO
66
- #define P_DETACH _P_DETACH
67
- #endif /* Not _NO_OLDNAMES */
68
-
69
-
70
- #ifndef RC_INVOKED
71
-
72
- #ifdef __cplusplus
73
- extern "C" {
74
- #endif
75
-
76
- void _cexit(void);
77
- void _c_exit(void);
78
-
79
- int _cwait (int*, _pid_t, int);
80
-
81
- _pid_t _getpid(void);
82
-
83
- int _execl (const char*, const char*, ...);
84
- int _execle (const char*, const char*, ...);
85
- int _execlp (const char*, const char*, ...);
86
- int _execlpe (const char*, const char*, ...);
87
- int _execv (const char*, char* const*);
88
- int _execve (const char*, char* const*, char* const*);
89
- int _execvp (const char*, char* const*);
90
- int _execvpe (const char*, char* const*, char* const*);
91
-
92
- int _spawnl (int, const char*, const char*, ...);
93
- int _spawnle (int, const char*, const char*, ...);
94
- int _spawnlp (int, const char*, const char*, ...);
95
- int _spawnlpe (int, const char*, const char*, ...);
96
- int _spawnv (int, const char*, char* const*);
97
- int _spawnve (int, const char*, char* const*, char* const*);
98
- int _spawnvp (int, const char*, char* const*);
99
- int _spawnvpe (int, const char*, char* const*, char* const*);
100
-
101
- /*
102
- * The functions _beginthreadex and _endthreadex are not provided by CRTDLL.
103
- * They are provided by MSVCRT.
104
- *
105
- * NOTE: Apparently _endthread calls CloseHandle on the handle of the thread,
106
- * making for race conditions if you are not careful. Basically you have to
107
- * make sure that no-one is going to do *anything* with the thread handle
108
- * after the thread calls _endthread or returns from the thread function.
109
- *
110
- * NOTE: No old names for these functions. Use the underscore.
111
- */
112
- unsigned long
113
- _beginthread (void (*)(void *), unsigned, void*);
114
- void _endthread (void);
115
-
116
- #ifdef __MSVCRT__
117
- unsigned long
118
- _beginthreadex (void *, unsigned, unsigned (__stdcall *) (void *),
119
- void*, unsigned, unsigned*);
120
- void _endthreadex (unsigned);
121
- #endif
122
-
123
-
124
- #ifndef _NO_OLDNAMES
125
- /*
126
- * Functions without the leading underscore, for portability. These functions
127
- * live in liboldnames.a.
128
- */
129
- int cwait (int*, pid_t, int);
130
- pid_t getpid (void);
131
- int execl (const char*, const char*, ...);
132
- int execle (const char*, const char*, ...);
133
- int execlp (const char*, const char*, ...);
134
- int execlpe (const char*, const char*, ...);
135
- int execv (const char*, char* const*);
136
- int execve (const char*, char* const*, char* const*);
137
- int execvp (const char*, char* const*);
138
- int execvpe (const char*, char* const*, char* const*);
139
- int spawnl (int, const char*, const char*, ...);
140
- int spawnle (int, const char*, const char*, ...);
141
- int spawnlp (int, const char*, const char*, ...);
142
- int spawnlpe (int, const char*, const char*, ...);
143
- int spawnv (int, const char*, char* const*);
144
- int spawnve (int, const char*, char* const*, char* const*);
145
- int spawnvp (int, const char*, char* const*);
146
- int spawnvpe (int, const char*, char* const*, char* const*);
147
- #endif /* Not _NO_OLDNAMES */
148
-
149
- #ifdef __cplusplus
150
- }
151
- #endif
152
-
153
- #endif /* Not RC_INVOKED */
154
-
155
- #endif /* _PROCESS_H_ not defined */
156
-
157
- #endif /* Not __STRICT_ANSI__ */
158
-
1
+ /*
2
+ * process.h
3
+ *
4
+ * Function calls for spawning child processes.
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 _PROCESS_H_
30
+ #define _PROCESS_H_
31
+
32
+ /* All the headers include this file. */
33
+ #include <_mingw.h>
34
+
35
+ /* Includes a definition of _pid_t and pid_t */
36
+ #include <sys/types.h>
37
+
38
+ /*
39
+ * Constants for cwait actions.
40
+ * Obsolete for Win32.
41
+ */
42
+ #define _WAIT_CHILD 0
43
+ #define _WAIT_GRANDCHILD 1
44
+
45
+ #ifndef _NO_OLDNAMES
46
+ #define WAIT_CHILD _WAIT_CHILD
47
+ #define WAIT_GRANDCHILD _WAIT_GRANDCHILD
48
+ #endif /* Not _NO_OLDNAMES */
49
+
50
+ /*
51
+ * Mode constants for spawn functions.
52
+ */
53
+ #define _P_WAIT 0
54
+ #define _P_NOWAIT 1
55
+ #define _P_OVERLAY 2
56
+ #define _OLD_P_OVERLAY _P_OVERLAY
57
+ #define _P_NOWAITO 3
58
+ #define _P_DETACH 4
59
+
60
+ #ifndef _NO_OLDNAMES
61
+ #define P_WAIT _P_WAIT
62
+ #define P_NOWAIT _P_NOWAIT
63
+ #define P_OVERLAY _P_OVERLAY
64
+ #define OLD_P_OVERLAY _OLD_P_OVERLAY
65
+ #define P_NOWAITO _P_NOWAITO
66
+ #define P_DETACH _P_DETACH
67
+ #endif /* Not _NO_OLDNAMES */
68
+
69
+
70
+ #ifndef RC_INVOKED
71
+
72
+ #ifdef __cplusplus
73
+ extern "C" {
74
+ #endif
75
+
76
+ void _cexit(void);
77
+ void _c_exit(void);
78
+
79
+ int _cwait (int*, _pid_t, int);
80
+
81
+ _pid_t _getpid(void);
82
+
83
+ int _execl (const char*, const char*, ...);
84
+ int _execle (const char*, const char*, ...);
85
+ int _execlp (const char*, const char*, ...);
86
+ int _execlpe (const char*, const char*, ...);
87
+ int _execv (const char*, char* const*);
88
+ int _execve (const char*, char* const*, char* const*);
89
+ int _execvp (const char*, char* const*);
90
+ int _execvpe (const char*, char* const*, char* const*);
91
+
92
+ int _spawnl (int, const char*, const char*, ...);
93
+ int _spawnle (int, const char*, const char*, ...);
94
+ int _spawnlp (int, const char*, const char*, ...);
95
+ int _spawnlpe (int, const char*, const char*, ...);
96
+ int _spawnv (int, const char*, char* const*);
97
+ int _spawnve (int, const char*, char* const*, char* const*);
98
+ int _spawnvp (int, const char*, char* const*);
99
+ int _spawnvpe (int, const char*, char* const*, char* const*);
100
+
101
+ /*
102
+ * The functions _beginthreadex and _endthreadex are not provided by CRTDLL.
103
+ * They are provided by MSVCRT.
104
+ *
105
+ * NOTE: Apparently _endthread calls CloseHandle on the handle of the thread,
106
+ * making for race conditions if you are not careful. Basically you have to
107
+ * make sure that no-one is going to do *anything* with the thread handle
108
+ * after the thread calls _endthread or returns from the thread function.
109
+ *
110
+ * NOTE: No old names for these functions. Use the underscore.
111
+ */
112
+ unsigned long
113
+ _beginthread (void (*)(void *), unsigned, void*);
114
+ void _endthread (void);
115
+
116
+ #ifdef __MSVCRT__
117
+ unsigned long
118
+ _beginthreadex (void *, unsigned, unsigned (__stdcall *) (void *),
119
+ void*, unsigned, unsigned*);
120
+ void _endthreadex (unsigned);
121
+ #endif
122
+
123
+
124
+ #ifndef _NO_OLDNAMES
125
+ /*
126
+ * Functions without the leading underscore, for portability. These functions
127
+ * live in liboldnames.a.
128
+ */
129
+ int cwait (int*, pid_t, int);
130
+ pid_t getpid (void);
131
+ int execl (const char*, const char*, ...);
132
+ int execle (const char*, const char*, ...);
133
+ int execlp (const char*, const char*, ...);
134
+ int execlpe (const char*, const char*, ...);
135
+ int execv (const char*, char* const*);
136
+ int execve (const char*, char* const*, char* const*);
137
+ int execvp (const char*, char* const*);
138
+ int execvpe (const char*, char* const*, char* const*);
139
+ int spawnl (int, const char*, const char*, ...);
140
+ int spawnle (int, const char*, const char*, ...);
141
+ int spawnlp (int, const char*, const char*, ...);
142
+ int spawnlpe (int, const char*, const char*, ...);
143
+ int spawnv (int, const char*, char* const*);
144
+ int spawnve (int, const char*, char* const*, char* const*);
145
+ int spawnvp (int, const char*, char* const*);
146
+ int spawnvpe (int, const char*, char* const*, char* const*);
147
+ #endif /* Not _NO_OLDNAMES */
148
+
149
+ #ifdef __cplusplus
150
+ }
151
+ #endif
152
+
153
+ #endif /* Not RC_INVOKED */
154
+
155
+ #endif /* _PROCESS_H_ not defined */
156
+
157
+ #endif /* Not __STRICT_ANSI__ */
158
+
@@ -1,72 +1,72 @@
1
- /*
2
- * setjmp.h
3
- *
4
- * Declarations supporting setjmp and longjump, a method for avoiding
5
- * the normal function call return sequence. (Bleah!)
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 _SETJMP_H_
29
- #define _SETJMP_H_
30
-
31
- /* All the headers include this file. */
32
- #include <_mingw.h>
33
-
34
- #ifndef RC_INVOKED
35
-
36
- #ifdef __cplusplus
37
- extern "C" {
38
- #endif
39
-
40
- /*
41
- * The buffer used by setjmp to store the information used by longjmp
42
- * to perform it's evil goto-like work. The size of this buffer was
43
- * determined through experimentation; it's contents are a mystery.
44
- * NOTE: This was determined on an i386 (actually a Pentium). The
45
- * contents could be different on an Alpha or something else.
46
- */
47
- #define _JBLEN 16
48
- #define _JBTYPE int
49
- typedef _JBTYPE jmp_buf[_JBLEN];
50
-
51
- /*
52
- * The function provided by CRTDLL which appears to do the actual work
53
- * of setjmp.
54
- */
55
- int _setjmp (jmp_buf);
56
-
57
- #define setjmp(x) _setjmp(x)
58
-
59
- /*
60
- * Return to the last setjmp call and act as if setjmp had returned
61
- * nVal (which had better be non-zero!).
62
- */
63
- void longjmp (jmp_buf, int);
64
-
65
- #ifdef __cplusplus
66
- }
67
- #endif
68
-
69
- #endif /* Not RC_INVOKED */
70
-
71
- #endif /* Not _SETJMP_H_ */
72
-
1
+ /*
2
+ * setjmp.h
3
+ *
4
+ * Declarations supporting setjmp and longjump, a method for avoiding
5
+ * the normal function call return sequence. (Bleah!)
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 _SETJMP_H_
29
+ #define _SETJMP_H_
30
+
31
+ /* All the headers include this file. */
32
+ #include <_mingw.h>
33
+
34
+ #ifndef RC_INVOKED
35
+
36
+ #ifdef __cplusplus
37
+ extern "C" {
38
+ #endif
39
+
40
+ /*
41
+ * The buffer used by setjmp to store the information used by longjmp
42
+ * to perform it's evil goto-like work. The size of this buffer was
43
+ * determined through experimentation; it's contents are a mystery.
44
+ * NOTE: This was determined on an i386 (actually a Pentium). The
45
+ * contents could be different on an Alpha or something else.
46
+ */
47
+ #define _JBLEN 16
48
+ #define _JBTYPE int
49
+ typedef _JBTYPE jmp_buf[_JBLEN];
50
+
51
+ /*
52
+ * The function provided by CRTDLL which appears to do the actual work
53
+ * of setjmp.
54
+ */
55
+ int _setjmp (jmp_buf);
56
+
57
+ #define setjmp(x) _setjmp(x)
58
+
59
+ /*
60
+ * Return to the last setjmp call and act as if setjmp had returned
61
+ * nVal (which had better be non-zero!).
62
+ */
63
+ void longjmp (jmp_buf, int);
64
+
65
+ #ifdef __cplusplus
66
+ }
67
+ #endif
68
+
69
+ #endif /* Not RC_INVOKED */
70
+
71
+ #endif /* Not _SETJMP_H_ */
72
+
@@ -1,44 +1,44 @@
1
- /*
2
- * share.h
3
- *
4
- * Constants for file sharing functions.
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 _SHARE_H_
30
- #define _SHARE_H_
31
-
32
- /* All the headers include this file. */
33
- #include <_mingw.h>
34
-
35
- #define SH_COMPAT 0x00 /* Compatibility */
36
- #define SH_DENYRW 0x10 /* Deny read/write */
37
- #define SH_DENYWR 0x20 /* Deny write */
38
- #define SH_DENYRD 0x30 /* Deny read */
39
- #define SH_DENYNO 0x40 /* Deny nothing */
40
-
41
- #endif /* Not _SHARE_H_ */
42
-
43
- #endif /* Not __STRICT_ANSI__ */
44
-
1
+ /*
2
+ * share.h
3
+ *
4
+ * Constants for file sharing functions.
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 _SHARE_H_
30
+ #define _SHARE_H_
31
+
32
+ /* All the headers include this file. */
33
+ #include <_mingw.h>
34
+
35
+ #define SH_COMPAT 0x00 /* Compatibility */
36
+ #define SH_DENYRW 0x10 /* Deny read/write */
37
+ #define SH_DENYWR 0x20 /* Deny write */
38
+ #define SH_DENYRD 0x30 /* Deny read */
39
+ #define SH_DENYNO 0x40 /* Deny nothing */
40
+
41
+ #endif /* Not _SHARE_H_ */
42
+
43
+ #endif /* Not __STRICT_ANSI__ */
44
+