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,159 +1,159 @@
|
|
1
|
-
/* A conio implementation for Mingw/Dev-C++.
|
2
|
-
*
|
3
|
-
* Written by:
|
4
|
-
* Hongli Lai <hongli@telekabel.nl>
|
5
|
-
* tkorrovi <tkorrovi@altavista.net> on 2002/02/26.
|
6
|
-
* Andrew Westcott <ajwestco@users.sourceforge.net>
|
7
|
-
*
|
8
|
-
* Offered for use in the public domain without any warranty.
|
9
|
-
*/
|
10
|
-
|
11
|
-
#ifndef _CONIO_H_
|
12
|
-
#define _CONIO_H_
|
13
|
-
|
14
|
-
|
15
|
-
#include <stdio.h>
|
16
|
-
|
17
|
-
#ifdef __cplusplus
|
18
|
-
extern "C" {
|
19
|
-
#endif
|
20
|
-
|
21
|
-
#define BLINK 0
|
22
|
-
|
23
|
-
typedef enum
|
24
|
-
{
|
25
|
-
BLACK,
|
26
|
-
BLUE,
|
27
|
-
GREEN,
|
28
|
-
CYAN,
|
29
|
-
RED,
|
30
|
-
MAGENTA,
|
31
|
-
BROWN,
|
32
|
-
LIGHTGRAY,
|
33
|
-
DARKGRAY,
|
34
|
-
LIGHTBLUE,
|
35
|
-
LIGHTGREEN,
|
36
|
-
LIGHTCYAN,
|
37
|
-
LIGHTRED,
|
38
|
-
LIGHTMAGENTA,
|
39
|
-
YELLOW,
|
40
|
-
WHITE
|
41
|
-
} COLORS;
|
42
|
-
|
43
|
-
|
44
|
-
#define cgets _cgets
|
45
|
-
#define cprintf _cprintf
|
46
|
-
#define cputs _cputs
|
47
|
-
#define cscanf _cscanf
|
48
|
-
#define ScreenClear clrscr
|
49
|
-
|
50
|
-
/* blinkvideo */
|
51
|
-
|
52
|
-
void clreol (void);
|
53
|
-
void clrscr (void);
|
54
|
-
|
55
|
-
int _conio_gettext (int left, int top, int right, int bottom,
|
56
|
-
char *str);
|
57
|
-
/* _conio_kbhit */
|
58
|
-
|
59
|
-
void delline (void);
|
60
|
-
|
61
|
-
/* gettextinfo */
|
62
|
-
void gotoxy(int x, int y);
|
63
|
-
/*
|
64
|
-
highvideo
|
65
|
-
insline
|
66
|
-
intensevideo
|
67
|
-
lowvideo
|
68
|
-
movetext
|
69
|
-
normvideo
|
70
|
-
*/
|
71
|
-
|
72
|
-
void puttext (int left, int top, int right, int bottom, char *str);
|
73
|
-
|
74
|
-
// Screen Variables
|
75
|
-
|
76
|
-
/* ScreenCols
|
77
|
-
ScreenGetChar
|
78
|
-
ScreenGetCursor
|
79
|
-
ScreenMode
|
80
|
-
ScreenPutChar
|
81
|
-
ScreenPutString
|
82
|
-
ScreenRetrieve
|
83
|
-
ScreenRows
|
84
|
-
ScreenSetCursor
|
85
|
-
ScreenUpdate
|
86
|
-
ScreenUpdateLine
|
87
|
-
ScreenVisualBell
|
88
|
-
_set_screen_lines */
|
89
|
-
|
90
|
-
void _setcursortype (int type);
|
91
|
-
|
92
|
-
void textattr (int _attr);
|
93
|
-
|
94
|
-
void textbackground (int color);
|
95
|
-
|
96
|
-
void textcolor (int color);
|
97
|
-
|
98
|
-
/* textmode */
|
99
|
-
|
100
|
-
int wherex (void);
|
101
|
-
|
102
|
-
int wherey (void);
|
103
|
-
|
104
|
-
/* window */
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
/* The code below was part of Mingw's conio.h */
|
109
|
-
/*
|
110
|
-
* conio.h
|
111
|
-
*
|
112
|
-
* Low level console I/O functions. Pretty please try to use the ANSI
|
113
|
-
* standard ones if you are writing new code.
|
114
|
-
*
|
115
|
-
* This file is part of the Mingw32 package.
|
116
|
-
*
|
117
|
-
* Contributors:
|
118
|
-
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
|
119
|
-
*
|
120
|
-
* THIS SOFTWARE IS NOT COPYRIGHTED
|
121
|
-
*
|
122
|
-
* This source code is offered for use in the public domain. You may
|
123
|
-
* use, modify or distribute it freely.
|
124
|
-
*
|
125
|
-
* This code is distributed in the hope that it will be useful but
|
126
|
-
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
127
|
-
* DISCLAMED. This includes but is not limited to warranties of
|
128
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
129
|
-
*
|
130
|
-
* $Revision: 1.2 $
|
131
|
-
* $Author: bellard $
|
132
|
-
* $Date: 2005/04/17 13:14:29 $
|
133
|
-
*
|
134
|
-
*/
|
135
|
-
|
136
|
-
char* _cgets (char*);
|
137
|
-
int _cprintf (const char*, ...);
|
138
|
-
int _cputs (const char*);
|
139
|
-
int _cscanf (char*, ...);
|
140
|
-
|
141
|
-
int _getch (void);
|
142
|
-
int _getche (void);
|
143
|
-
int _kbhit (void);
|
144
|
-
int _putch (int);
|
145
|
-
int _ungetch (int);
|
146
|
-
|
147
|
-
|
148
|
-
int getch (void);
|
149
|
-
int getche (void);
|
150
|
-
int kbhit (void);
|
151
|
-
int putch (int);
|
152
|
-
int ungetch (int);
|
153
|
-
|
154
|
-
|
155
|
-
#ifdef __cplusplus
|
156
|
-
}
|
157
|
-
#endif
|
158
|
-
|
159
|
-
#endif /* _CONIO_H_ */
|
1
|
+
/* A conio implementation for Mingw/Dev-C++.
|
2
|
+
*
|
3
|
+
* Written by:
|
4
|
+
* Hongli Lai <hongli@telekabel.nl>
|
5
|
+
* tkorrovi <tkorrovi@altavista.net> on 2002/02/26.
|
6
|
+
* Andrew Westcott <ajwestco@users.sourceforge.net>
|
7
|
+
*
|
8
|
+
* Offered for use in the public domain without any warranty.
|
9
|
+
*/
|
10
|
+
|
11
|
+
#ifndef _CONIO_H_
|
12
|
+
#define _CONIO_H_
|
13
|
+
|
14
|
+
|
15
|
+
#include <stdio.h>
|
16
|
+
|
17
|
+
#ifdef __cplusplus
|
18
|
+
extern "C" {
|
19
|
+
#endif
|
20
|
+
|
21
|
+
#define BLINK 0
|
22
|
+
|
23
|
+
typedef enum
|
24
|
+
{
|
25
|
+
BLACK,
|
26
|
+
BLUE,
|
27
|
+
GREEN,
|
28
|
+
CYAN,
|
29
|
+
RED,
|
30
|
+
MAGENTA,
|
31
|
+
BROWN,
|
32
|
+
LIGHTGRAY,
|
33
|
+
DARKGRAY,
|
34
|
+
LIGHTBLUE,
|
35
|
+
LIGHTGREEN,
|
36
|
+
LIGHTCYAN,
|
37
|
+
LIGHTRED,
|
38
|
+
LIGHTMAGENTA,
|
39
|
+
YELLOW,
|
40
|
+
WHITE
|
41
|
+
} COLORS;
|
42
|
+
|
43
|
+
|
44
|
+
#define cgets _cgets
|
45
|
+
#define cprintf _cprintf
|
46
|
+
#define cputs _cputs
|
47
|
+
#define cscanf _cscanf
|
48
|
+
#define ScreenClear clrscr
|
49
|
+
|
50
|
+
/* blinkvideo */
|
51
|
+
|
52
|
+
void clreol (void);
|
53
|
+
void clrscr (void);
|
54
|
+
|
55
|
+
int _conio_gettext (int left, int top, int right, int bottom,
|
56
|
+
char *str);
|
57
|
+
/* _conio_kbhit */
|
58
|
+
|
59
|
+
void delline (void);
|
60
|
+
|
61
|
+
/* gettextinfo */
|
62
|
+
void gotoxy(int x, int y);
|
63
|
+
/*
|
64
|
+
highvideo
|
65
|
+
insline
|
66
|
+
intensevideo
|
67
|
+
lowvideo
|
68
|
+
movetext
|
69
|
+
normvideo
|
70
|
+
*/
|
71
|
+
|
72
|
+
void puttext (int left, int top, int right, int bottom, char *str);
|
73
|
+
|
74
|
+
// Screen Variables
|
75
|
+
|
76
|
+
/* ScreenCols
|
77
|
+
ScreenGetChar
|
78
|
+
ScreenGetCursor
|
79
|
+
ScreenMode
|
80
|
+
ScreenPutChar
|
81
|
+
ScreenPutString
|
82
|
+
ScreenRetrieve
|
83
|
+
ScreenRows
|
84
|
+
ScreenSetCursor
|
85
|
+
ScreenUpdate
|
86
|
+
ScreenUpdateLine
|
87
|
+
ScreenVisualBell
|
88
|
+
_set_screen_lines */
|
89
|
+
|
90
|
+
void _setcursortype (int type);
|
91
|
+
|
92
|
+
void textattr (int _attr);
|
93
|
+
|
94
|
+
void textbackground (int color);
|
95
|
+
|
96
|
+
void textcolor (int color);
|
97
|
+
|
98
|
+
/* textmode */
|
99
|
+
|
100
|
+
int wherex (void);
|
101
|
+
|
102
|
+
int wherey (void);
|
103
|
+
|
104
|
+
/* window */
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
/* The code below was part of Mingw's conio.h */
|
109
|
+
/*
|
110
|
+
* conio.h
|
111
|
+
*
|
112
|
+
* Low level console I/O functions. Pretty please try to use the ANSI
|
113
|
+
* standard ones if you are writing new code.
|
114
|
+
*
|
115
|
+
* This file is part of the Mingw32 package.
|
116
|
+
*
|
117
|
+
* Contributors:
|
118
|
+
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
|
119
|
+
*
|
120
|
+
* THIS SOFTWARE IS NOT COPYRIGHTED
|
121
|
+
*
|
122
|
+
* This source code is offered for use in the public domain. You may
|
123
|
+
* use, modify or distribute it freely.
|
124
|
+
*
|
125
|
+
* This code is distributed in the hope that it will be useful but
|
126
|
+
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
127
|
+
* DISCLAMED. This includes but is not limited to warranties of
|
128
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
129
|
+
*
|
130
|
+
* $Revision: 1.2 $
|
131
|
+
* $Author: bellard $
|
132
|
+
* $Date: 2005/04/17 13:14:29 $
|
133
|
+
*
|
134
|
+
*/
|
135
|
+
|
136
|
+
char* _cgets (char*);
|
137
|
+
int _cprintf (const char*, ...);
|
138
|
+
int _cputs (const char*);
|
139
|
+
int _cscanf (char*, ...);
|
140
|
+
|
141
|
+
int _getch (void);
|
142
|
+
int _getche (void);
|
143
|
+
int _kbhit (void);
|
144
|
+
int _putch (int);
|
145
|
+
int _ungetch (int);
|
146
|
+
|
147
|
+
|
148
|
+
int getch (void);
|
149
|
+
int getche (void);
|
150
|
+
int kbhit (void);
|
151
|
+
int putch (int);
|
152
|
+
int ungetch (int);
|
153
|
+
|
154
|
+
|
155
|
+
#ifdef __cplusplus
|
156
|
+
}
|
157
|
+
#endif
|
158
|
+
|
159
|
+
#endif /* _CONIO_H_ */
|