standalone-ruby 1.5.1 → 1.5.3

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 (85) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +57 -48
  3. data/bin/standalone-ruby +5 -3
  4. data/lib/data/c_compilers/tcc/include/_mingw.h +54 -54
  5. data/lib/data/c_compilers/tcc/include/assert.h +71 -71
  6. data/lib/data/c_compilers/tcc/include/conio.h +159 -159
  7. data/lib/data/c_compilers/tcc/include/ctype.h +232 -232
  8. data/lib/data/c_compilers/tcc/include/dir.h +26 -26
  9. data/lib/data/c_compilers/tcc/include/direct.h +95 -95
  10. data/lib/data/c_compilers/tcc/include/dirent.h +96 -96
  11. data/lib/data/c_compilers/tcc/include/dos.h +110 -110
  12. data/lib/data/c_compilers/tcc/include/errno.h +117 -117
  13. data/lib/data/c_compilers/tcc/include/excpt.h +20 -20
  14. data/lib/data/c_compilers/tcc/include/fcntl.h +135 -135
  15. data/lib/data/c_compilers/tcc/include/fenv.h +85 -85
  16. data/lib/data/c_compilers/tcc/include/float.h +224 -224
  17. data/lib/data/c_compilers/tcc/include/inttypes.h +275 -275
  18. data/lib/data/c_compilers/tcc/include/io.h +296 -296
  19. data/lib/data/c_compilers/tcc/include/limits.h +115 -115
  20. data/lib/data/c_compilers/tcc/include/locale.h +100 -100
  21. data/lib/data/c_compilers/tcc/include/malloc.h +87 -87
  22. data/lib/data/c_compilers/tcc/include/math.h +438 -438
  23. data/lib/data/c_compilers/tcc/include/mem.h +8 -8
  24. data/lib/data/c_compilers/tcc/include/memory.h +9 -9
  25. data/lib/data/c_compilers/tcc/include/process.h +158 -158
  26. data/lib/data/c_compilers/tcc/include/setjmp.h +72 -72
  27. data/lib/data/c_compilers/tcc/include/share.h +44 -44
  28. data/lib/data/c_compilers/tcc/include/signal.h +111 -111
  29. data/lib/data/c_compilers/tcc/include/stdarg.h +16 -16
  30. data/lib/data/c_compilers/tcc/include/stdbool.h +10 -10
  31. data/lib/data/c_compilers/tcc/include/stddef.h +26 -26
  32. data/lib/data/c_compilers/tcc/include/stdint.h +184 -184
  33. data/lib/data/c_compilers/tcc/include/stdio.h +413 -413
  34. data/lib/data/c_compilers/tcc/include/stdlib.h +482 -482
  35. data/lib/data/c_compilers/tcc/include/string.h +206 -206
  36. data/lib/data/c_compilers/tcc/include/sys/fcntl.h +8 -8
  37. data/lib/data/c_compilers/tcc/include/sys/file.h +9 -9
  38. data/lib/data/c_compilers/tcc/include/sys/locking.h +52 -52
  39. data/lib/data/c_compilers/tcc/include/sys/stat.h +190 -190
  40. data/lib/data/c_compilers/tcc/include/sys/time.h +3 -3
  41. data/lib/data/c_compilers/tcc/include/sys/timeb.h +82 -82
  42. data/lib/data/c_compilers/tcc/include/sys/types.h +118 -118
  43. data/lib/data/c_compilers/tcc/include/sys/unistd.h +9 -9
  44. data/lib/data/c_compilers/tcc/include/sys/utime.h +89 -89
  45. data/lib/data/c_compilers/tcc/include/tchar.h +367 -367
  46. data/lib/data/c_compilers/tcc/include/time.h +219 -219
  47. data/lib/data/c_compilers/tcc/include/unistd.h +10 -10
  48. data/lib/data/c_compilers/tcc/include/values.h +4 -4
  49. data/lib/data/c_compilers/tcc/include/varargs.h +11 -11
  50. data/lib/data/c_compilers/tcc/include/wchar.h +318 -318
  51. data/lib/data/c_compilers/tcc/include/wctype.h +127 -127
  52. data/lib/data/c_compilers/tcc/include/winapi/basetsd.h +119 -119
  53. data/lib/data/c_compilers/tcc/include/winapi/basetyps.h +144 -144
  54. data/lib/data/c_compilers/tcc/include/winapi/winbase.h +1852 -1852
  55. data/lib/data/c_compilers/tcc/include/winapi/wincon.h +207 -207
  56. data/lib/data/c_compilers/tcc/include/winapi/windef.h +240 -240
  57. data/lib/data/c_compilers/tcc/include/winapi/windows.h +176 -176
  58. data/lib/data/c_compilers/tcc/include/winapi/winerror.h +1054 -1054
  59. data/lib/data/c_compilers/tcc/include/winapi/wingdi.h +2843 -2843
  60. data/lib/data/c_compilers/tcc/include/winapi/winnetwk.h +346 -346
  61. data/lib/data/c_compilers/tcc/include/winapi/winnls.h +651 -651
  62. data/lib/data/c_compilers/tcc/include/winapi/winnt.h +2667 -2667
  63. data/lib/data/c_compilers/tcc/include/winapi/winreg.h +159 -159
  64. data/lib/data/c_compilers/tcc/include/winapi/winsvc.h +309 -309
  65. data/lib/data/c_compilers/tcc/include/winapi/winuser.h +3472 -3472
  66. data/lib/data/c_compilers/tcc/include/winapi/winver.h +133 -133
  67. data/lib/data/c_compilers/tcc/lib/gdi32.def +337 -337
  68. data/lib/data/c_compilers/tcc/lib/kernel32.def +763 -763
  69. data/lib/data/c_compilers/tcc/lib/msvcrt.def +782 -782
  70. data/lib/data/c_compilers/tcc/lib/user32.def +654 -654
  71. data/lib/data/exe_templates/launcher_stub.c +29 -29
  72. data/lib/data/exe_templates/launcher_stub.cpp +31 -31
  73. data/lib/data/launcher_templates/vbs/default_vbs.txt +7 -7
  74. data/lib/data/launcher_templates/vbs/vbs_gui.txt +8 -8
  75. data/lib/data/resource_files/default.rc +17 -17
  76. data/lib/displayer.rb +60 -63
  77. data/lib/exe_packer.rb +72 -68
  78. data/lib/launcher.rb +57 -71
  79. data/lib/launcher_handler.rb +40 -40
  80. data/lib/parameter_parser.rb +218 -201
  81. data/lib/ruby_copy.rb +48 -20
  82. data/lib/standalone_ruby.rb +6 -6
  83. data/lib/version/version.rb +2 -2
  84. metadata +4 -5
  85. data/lib/sfx_generator.rb +0 -9
@@ -1,144 +1,144 @@
1
- #ifndef _BASETYPS_H
2
- #define _BASETYPS_H
3
- #if __GNUC__ >=3
4
- #pragma GCC system_header
5
- #endif
6
-
7
- #ifndef __OBJC__
8
- #ifdef __cplusplus
9
- #define EXTERN_C extern "C"
10
- #else
11
- #define EXTERN_C extern
12
- #endif /* __cplusplus */
13
- #define STDMETHODCALLTYPE __stdcall
14
- #define STDMETHODVCALLTYPE __cdecl
15
- #define STDAPICALLTYPE __stdcall
16
- #define STDAPIVCALLTYPE __cdecl
17
- #define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
18
- #define STDAPI_(t) EXTERN_C t STDAPICALLTYPE
19
- #define STDMETHODIMP HRESULT STDMETHODCALLTYPE
20
- #define STDMETHODIMP_(t) t STDMETHODCALLTYPE
21
- #define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
22
- #define STDAPIV_(t) EXTERN_C t STDAPIVCALLTYPE
23
- #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
24
- #define STDMETHODIMPV_(t) t STDMETHODVCALLTYPE
25
- #define interface struct
26
- #if defined(__cplusplus) && !defined(CINTERFACE)
27
- #define STDMETHOD(m) virtual HRESULT STDMETHODCALLTYPE m
28
- #define STDMETHOD_(t,m) virtual t STDMETHODCALLTYPE m
29
- #define PURE =0
30
- #define THIS_
31
- #define THIS void
32
- /*
33
- __attribute__((com_interface)) is obsolete in __GNUC__ >= 3
34
- g++ vtables are now COM-compatible by default
35
- */
36
- #if defined(__GNUC__) && __GNUC__ < 3 && !defined(NOCOMATTRIBUTE)
37
- #define DECLARE_INTERFACE(i) interface __attribute__((com_interface)) i
38
- #define DECLARE_INTERFACE_(i,b) interface __attribute__((com_interface)) i : public b
39
- #else
40
- #define DECLARE_INTERFACE(i) interface i
41
- #define DECLARE_INTERFACE_(i,b) interface i : public b
42
- #endif
43
- #else
44
- #define STDMETHOD(m) HRESULT(STDMETHODCALLTYPE *m)
45
- #define STDMETHOD_(t,m) t(STDMETHODCALLTYPE *m)
46
- #define PURE
47
- #define THIS_ INTERFACE *,
48
- #define THIS INTERFACE *
49
- #ifndef CONST_VTABLE
50
- #define CONST_VTABLE
51
- #endif
52
- #define DECLARE_INTERFACE(i) \
53
- typedef interface i { CONST_VTABLE struct i##Vtbl *lpVtbl; } i; \
54
- typedef CONST_VTABLE struct i##Vtbl i##Vtbl; \
55
- CONST_VTABLE struct i##Vtbl
56
- #define DECLARE_INTERFACE_(i,b) DECLARE_INTERFACE(i)
57
- #endif
58
- #define BEGIN_INTERFACE
59
- #define END_INTERFACE
60
-
61
- #define FWD_DECL(i) typedef interface i i
62
- #if defined(__cplusplus) && !defined(CINTERFACE)
63
- #define IENUM_THIS(T)
64
- #define IENUM_THIS_(T)
65
- #else
66
- #define IENUM_THIS(T) T*
67
- #define IENUM_THIS_(T) T*,
68
- #endif
69
- #define DECLARE_ENUMERATOR_(I,T) \
70
- DECLARE_INTERFACE_(I,IUnknown) \
71
- { \
72
- STDMETHOD(QueryInterface)(IENUM_THIS_(I) REFIID,PVOID*) PURE; \
73
- STDMETHOD_(ULONG,AddRef)(IENUM_THIS(I)) PURE; \
74
- STDMETHOD_(ULONG,Release)(IENUM_THIS(I)) PURE; \
75
- STDMETHOD(Next)(IENUM_THIS_(I) ULONG,T*,ULONG*) PURE; \
76
- STDMETHOD(Skip)(IENUM_THIS_(I) ULONG) PURE; \
77
- STDMETHOD(Reset)(IENUM_THIS(I)) PURE; \
78
- STDMETHOD(Clone)(IENUM_THIS_(I) I**) PURE; \
79
- }
80
- #define DECLARE_ENUMERATOR(T) DECLARE_ENUMERATOR_(IEnum##T,T)
81
-
82
- #endif /* __OBJC__ */
83
-
84
- #ifndef _GUID_DEFINED /* also defined in winnt.h */
85
- #define _GUID_DEFINED
86
- typedef struct _GUID
87
- {
88
- unsigned long Data1;
89
- unsigned short Data2;
90
- unsigned short Data3;
91
- unsigned char Data4[8];
92
- } GUID,*REFGUID,*LPGUID;
93
- #endif /* _GUID_DEFINED */
94
- #ifndef UUID_DEFINED
95
- #define UUID_DEFINED
96
- typedef GUID UUID;
97
- #endif /* UUID_DEFINED */
98
- typedef GUID IID;
99
- typedef GUID CLSID;
100
- typedef CLSID *LPCLSID;
101
- typedef IID *LPIID;
102
- typedef IID *REFIID;
103
- typedef CLSID *REFCLSID;
104
- typedef GUID FMTID;
105
- typedef FMTID *REFFMTID;
106
- typedef unsigned long error_status_t;
107
- #define uuid_t UUID
108
- typedef unsigned long PROPID;
109
-
110
- #ifndef _REFGUID_DEFINED
111
- #if defined (__cplusplus) && !defined (CINTERFACE)
112
- #define REFGUID const GUID&
113
- #define REFIID const IID&
114
- #define REFCLSID const CLSID&
115
- #else
116
- #define REFGUID const GUID* const
117
- #define REFIID const IID* const
118
- #define REFCLSID const CLSID* const
119
- #endif
120
- #define _REFGUID_DEFINED
121
- #define _REFGIID_DEFINED
122
- #define _REFCLSID_DEFINED
123
- #endif
124
- #ifndef GUID_SECTION
125
- #define GUID_SECTION ".text"
126
- #endif
127
- #ifdef __GNUC__
128
- #define GUID_SECT __attribute__ ((section (GUID_SECTION)))
129
- #else
130
- #define GUID_SECT
131
- #endif
132
- #if !defined(INITGUID) || (defined(INITGUID) && defined(__cplusplus))
133
- #define GUID_EXT EXTERN_C
134
- #else
135
- #define GUID_EXT
136
- #endif
137
- #ifdef INITGUID
138
- #define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n GUID_SECT = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
139
- #define DEFINE_OLEGUID(n,l,w1,w2) DEFINE_GUID(n,l,w1,w2,0xC0,0,0,0,0,0,0,0x46)
140
- #else
141
- #define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n
142
- #define DEFINE_OLEGUID(n,l,w1,w2) DEFINE_GUID(n,l,w1,w2,0xC0,0,0,0,0,0,0,0x46)
143
- #endif
144
- #endif
1
+ #ifndef _BASETYPS_H
2
+ #define _BASETYPS_H
3
+ #if __GNUC__ >=3
4
+ #pragma GCC system_header
5
+ #endif
6
+
7
+ #ifndef __OBJC__
8
+ #ifdef __cplusplus
9
+ #define EXTERN_C extern "C"
10
+ #else
11
+ #define EXTERN_C extern
12
+ #endif /* __cplusplus */
13
+ #define STDMETHODCALLTYPE __stdcall
14
+ #define STDMETHODVCALLTYPE __cdecl
15
+ #define STDAPICALLTYPE __stdcall
16
+ #define STDAPIVCALLTYPE __cdecl
17
+ #define STDAPI EXTERN_C HRESULT STDAPICALLTYPE
18
+ #define STDAPI_(t) EXTERN_C t STDAPICALLTYPE
19
+ #define STDMETHODIMP HRESULT STDMETHODCALLTYPE
20
+ #define STDMETHODIMP_(t) t STDMETHODCALLTYPE
21
+ #define STDAPIV EXTERN_C HRESULT STDAPIVCALLTYPE
22
+ #define STDAPIV_(t) EXTERN_C t STDAPIVCALLTYPE
23
+ #define STDMETHODIMPV HRESULT STDMETHODVCALLTYPE
24
+ #define STDMETHODIMPV_(t) t STDMETHODVCALLTYPE
25
+ #define interface struct
26
+ #if defined(__cplusplus) && !defined(CINTERFACE)
27
+ #define STDMETHOD(m) virtual HRESULT STDMETHODCALLTYPE m
28
+ #define STDMETHOD_(t,m) virtual t STDMETHODCALLTYPE m
29
+ #define PURE =0
30
+ #define THIS_
31
+ #define THIS void
32
+ /*
33
+ __attribute__((com_interface)) is obsolete in __GNUC__ >= 3
34
+ g++ vtables are now COM-compatible by default
35
+ */
36
+ #if defined(__GNUC__) && __GNUC__ < 3 && !defined(NOCOMATTRIBUTE)
37
+ #define DECLARE_INTERFACE(i) interface __attribute__((com_interface)) i
38
+ #define DECLARE_INTERFACE_(i,b) interface __attribute__((com_interface)) i : public b
39
+ #else
40
+ #define DECLARE_INTERFACE(i) interface i
41
+ #define DECLARE_INTERFACE_(i,b) interface i : public b
42
+ #endif
43
+ #else
44
+ #define STDMETHOD(m) HRESULT(STDMETHODCALLTYPE *m)
45
+ #define STDMETHOD_(t,m) t(STDMETHODCALLTYPE *m)
46
+ #define PURE
47
+ #define THIS_ INTERFACE *,
48
+ #define THIS INTERFACE *
49
+ #ifndef CONST_VTABLE
50
+ #define CONST_VTABLE
51
+ #endif
52
+ #define DECLARE_INTERFACE(i) \
53
+ typedef interface i { CONST_VTABLE struct i##Vtbl *lpVtbl; } i; \
54
+ typedef CONST_VTABLE struct i##Vtbl i##Vtbl; \
55
+ CONST_VTABLE struct i##Vtbl
56
+ #define DECLARE_INTERFACE_(i,b) DECLARE_INTERFACE(i)
57
+ #endif
58
+ #define BEGIN_INTERFACE
59
+ #define END_INTERFACE
60
+
61
+ #define FWD_DECL(i) typedef interface i i
62
+ #if defined(__cplusplus) && !defined(CINTERFACE)
63
+ #define IENUM_THIS(T)
64
+ #define IENUM_THIS_(T)
65
+ #else
66
+ #define IENUM_THIS(T) T*
67
+ #define IENUM_THIS_(T) T*,
68
+ #endif
69
+ #define DECLARE_ENUMERATOR_(I,T) \
70
+ DECLARE_INTERFACE_(I,IUnknown) \
71
+ { \
72
+ STDMETHOD(QueryInterface)(IENUM_THIS_(I) REFIID,PVOID*) PURE; \
73
+ STDMETHOD_(ULONG,AddRef)(IENUM_THIS(I)) PURE; \
74
+ STDMETHOD_(ULONG,Release)(IENUM_THIS(I)) PURE; \
75
+ STDMETHOD(Next)(IENUM_THIS_(I) ULONG,T*,ULONG*) PURE; \
76
+ STDMETHOD(Skip)(IENUM_THIS_(I) ULONG) PURE; \
77
+ STDMETHOD(Reset)(IENUM_THIS(I)) PURE; \
78
+ STDMETHOD(Clone)(IENUM_THIS_(I) I**) PURE; \
79
+ }
80
+ #define DECLARE_ENUMERATOR(T) DECLARE_ENUMERATOR_(IEnum##T,T)
81
+
82
+ #endif /* __OBJC__ */
83
+
84
+ #ifndef _GUID_DEFINED /* also defined in winnt.h */
85
+ #define _GUID_DEFINED
86
+ typedef struct _GUID
87
+ {
88
+ unsigned long Data1;
89
+ unsigned short Data2;
90
+ unsigned short Data3;
91
+ unsigned char Data4[8];
92
+ } GUID,*REFGUID,*LPGUID;
93
+ #endif /* _GUID_DEFINED */
94
+ #ifndef UUID_DEFINED
95
+ #define UUID_DEFINED
96
+ typedef GUID UUID;
97
+ #endif /* UUID_DEFINED */
98
+ typedef GUID IID;
99
+ typedef GUID CLSID;
100
+ typedef CLSID *LPCLSID;
101
+ typedef IID *LPIID;
102
+ typedef IID *REFIID;
103
+ typedef CLSID *REFCLSID;
104
+ typedef GUID FMTID;
105
+ typedef FMTID *REFFMTID;
106
+ typedef unsigned long error_status_t;
107
+ #define uuid_t UUID
108
+ typedef unsigned long PROPID;
109
+
110
+ #ifndef _REFGUID_DEFINED
111
+ #if defined (__cplusplus) && !defined (CINTERFACE)
112
+ #define REFGUID const GUID&
113
+ #define REFIID const IID&
114
+ #define REFCLSID const CLSID&
115
+ #else
116
+ #define REFGUID const GUID* const
117
+ #define REFIID const IID* const
118
+ #define REFCLSID const CLSID* const
119
+ #endif
120
+ #define _REFGUID_DEFINED
121
+ #define _REFGIID_DEFINED
122
+ #define _REFCLSID_DEFINED
123
+ #endif
124
+ #ifndef GUID_SECTION
125
+ #define GUID_SECTION ".text"
126
+ #endif
127
+ #ifdef __GNUC__
128
+ #define GUID_SECT __attribute__ ((section (GUID_SECTION)))
129
+ #else
130
+ #define GUID_SECT
131
+ #endif
132
+ #if !defined(INITGUID) || (defined(INITGUID) && defined(__cplusplus))
133
+ #define GUID_EXT EXTERN_C
134
+ #else
135
+ #define GUID_EXT
136
+ #endif
137
+ #ifdef INITGUID
138
+ #define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n GUID_SECT = {l,w1,w2,{b1,b2,b3,b4,b5,b6,b7,b8}}
139
+ #define DEFINE_OLEGUID(n,l,w1,w2) DEFINE_GUID(n,l,w1,w2,0xC0,0,0,0,0,0,0,0x46)
140
+ #else
141
+ #define DEFINE_GUID(n,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8) GUID_EXT const GUID n
142
+ #define DEFINE_OLEGUID(n,l,w1,w2) DEFINE_GUID(n,l,w1,w2,0xC0,0,0,0,0,0,0,0x46)
143
+ #endif
144
+ #endif