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,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