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,95 +1,95 @@
1
- /*
2
- * direct.h
3
- *
4
- * Functions for manipulating paths and directories (included from io.h)
5
- * plus functions for setting the current drive.
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 __STRICT_ANSI__
29
-
30
- #ifndef _DIRECT_H_
31
- #define _DIRECT_H_
32
-
33
- /* All the headers include this file. */
34
- #include <_mingw.h>
35
-
36
- #define __need_wchar_t
37
- #ifndef RC_INVOKED
38
- #include <stddef.h>
39
- #endif /* Not RC_INVOKED */
40
-
41
- #include <io.h>
42
-
43
- #ifndef RC_INVOKED
44
-
45
- #ifdef __cplusplus
46
- extern "C" {
47
- #endif
48
-
49
- #ifndef _DISKFREE_T_DEFINED
50
- /* needed by _getdiskfree (also in dos.h) */
51
- struct _diskfree_t {
52
- unsigned total_clusters;
53
- unsigned avail_clusters;
54
- unsigned sectors_per_cluster;
55
- unsigned bytes_per_sector;
56
- };
57
- #define _DISKFREE_T_DEFINED
58
- #endif
59
-
60
- /*
61
- * You really shouldn't be using these. Use the Win32 API functions instead.
62
- * However, it does make it easier to port older code.
63
- */
64
- int _getdrive (void);
65
- unsigned long _getdrives(void);
66
- int _chdrive (int);
67
- char* _getdcwd (int, char*, int);
68
- unsigned _getdiskfree (unsigned, struct _diskfree_t *);
69
-
70
- #ifndef _NO_OLDNAMES
71
- # define diskfree_t _diskfree_t
72
- #endif
73
-
74
- #ifndef _WDIRECT_DEFINED
75
- /* wide character versions. Also in wchar.h */
76
- #ifdef __MSVCRT__
77
- int _wchdir(const wchar_t*);
78
- wchar_t* _wgetcwd(wchar_t*, int);
79
- wchar_t* _wgetdcwd(int, wchar_t*, int);
80
- int _wmkdir(const wchar_t*);
81
- int _wrmdir(const wchar_t*);
82
- #endif /* __MSVCRT__ */
83
- #define _WDIRECT_DEFINED
84
- #endif
85
-
86
- #ifdef __cplusplus
87
- }
88
- #endif
89
-
90
- #endif /* Not RC_INVOKED */
91
-
92
- #endif /* Not _DIRECT_H_ */
93
-
94
- #endif /* Not __STRICT_ANSI__ */
95
-
1
+ /*
2
+ * direct.h
3
+ *
4
+ * Functions for manipulating paths and directories (included from io.h)
5
+ * plus functions for setting the current drive.
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 __STRICT_ANSI__
29
+
30
+ #ifndef _DIRECT_H_
31
+ #define _DIRECT_H_
32
+
33
+ /* All the headers include this file. */
34
+ #include <_mingw.h>
35
+
36
+ #define __need_wchar_t
37
+ #ifndef RC_INVOKED
38
+ #include <stddef.h>
39
+ #endif /* Not RC_INVOKED */
40
+
41
+ #include <io.h>
42
+
43
+ #ifndef RC_INVOKED
44
+
45
+ #ifdef __cplusplus
46
+ extern "C" {
47
+ #endif
48
+
49
+ #ifndef _DISKFREE_T_DEFINED
50
+ /* needed by _getdiskfree (also in dos.h) */
51
+ struct _diskfree_t {
52
+ unsigned total_clusters;
53
+ unsigned avail_clusters;
54
+ unsigned sectors_per_cluster;
55
+ unsigned bytes_per_sector;
56
+ };
57
+ #define _DISKFREE_T_DEFINED
58
+ #endif
59
+
60
+ /*
61
+ * You really shouldn't be using these. Use the Win32 API functions instead.
62
+ * However, it does make it easier to port older code.
63
+ */
64
+ int _getdrive (void);
65
+ unsigned long _getdrives(void);
66
+ int _chdrive (int);
67
+ char* _getdcwd (int, char*, int);
68
+ unsigned _getdiskfree (unsigned, struct _diskfree_t *);
69
+
70
+ #ifndef _NO_OLDNAMES
71
+ # define diskfree_t _diskfree_t
72
+ #endif
73
+
74
+ #ifndef _WDIRECT_DEFINED
75
+ /* wide character versions. Also in wchar.h */
76
+ #ifdef __MSVCRT__
77
+ int _wchdir(const wchar_t*);
78
+ wchar_t* _wgetcwd(wchar_t*, int);
79
+ wchar_t* _wgetdcwd(int, wchar_t*, int);
80
+ int _wmkdir(const wchar_t*);
81
+ int _wrmdir(const wchar_t*);
82
+ #endif /* __MSVCRT__ */
83
+ #define _WDIRECT_DEFINED
84
+ #endif
85
+
86
+ #ifdef __cplusplus
87
+ }
88
+ #endif
89
+
90
+ #endif /* Not RC_INVOKED */
91
+
92
+ #endif /* Not _DIRECT_H_ */
93
+
94
+ #endif /* Not __STRICT_ANSI__ */
95
+
@@ -1,96 +1,96 @@
1
- /*
2
- * DIRENT.H (formerly DIRLIB.H)
3
- *
4
- * by M. J. Weinstein Released to public domain 1-Jan-89
5
- *
6
- * Because I have heard that this feature (opendir, readdir, closedir)
7
- * it so useful for programmers coming from UNIX or attempting to port
8
- * UNIX code, and because it is reasonably light weight, I have included
9
- * it in the Mingw32 package. I have also added an implementation of
10
- * rewinddir, seekdir and telldir.
11
- * - Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
12
- *
13
- * This code is distributed in the hope that is will be useful but
14
- * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
15
- * DISCLAIMED. This includeds but is not limited to warranties of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
- *
18
- * $Revision: 1.2 $
19
- * $Author: bellard $
20
- * $Date: 2005/04/17 13:14:29 $
21
- *
22
- */
23
-
24
- #ifndef __STRICT_ANSI__
25
-
26
- #ifndef _DIRENT_H_
27
- #define _DIRENT_H_
28
-
29
- /* All the headers include this file. */
30
- #include <_mingw.h>
31
-
32
- #include <io.h>
33
-
34
- #ifndef RC_INVOKED
35
-
36
- #ifdef __cplusplus
37
- extern "C" {
38
- #endif
39
-
40
- struct dirent
41
- {
42
- long d_ino; /* Always zero. */
43
- unsigned short d_reclen; /* Always zero. */
44
- unsigned short d_namlen; /* Length of name in d_name. */
45
- char* d_name; /* File name. */
46
- /* NOTE: The name in the dirent structure points to the name in the
47
- * finddata_t structure in the DIR. */
48
- };
49
-
50
- /*
51
- * This is an internal data structure. Good programmers will not use it
52
- * except as an argument to one of the functions below.
53
- */
54
- typedef struct
55
- {
56
- /* disk transfer area for this dir */
57
- struct _finddata_t dd_dta;
58
-
59
- /* dirent struct to return from dir (NOTE: this makes this thread
60
- * safe as long as only one thread uses a particular DIR struct at
61
- * a time) */
62
- struct dirent dd_dir;
63
-
64
- /* _findnext handle */
65
- long dd_handle;
66
-
67
- /*
68
- * Status of search:
69
- * 0 = not started yet (next entry to read is first entry)
70
- * -1 = off the end
71
- * positive = 0 based index of next entry
72
- */
73
- short dd_stat;
74
-
75
- /* given path for dir with search pattern (struct is extended) */
76
- char dd_name[1];
77
- } DIR;
78
-
79
-
80
- DIR* opendir (const char*);
81
- struct dirent* readdir (DIR*);
82
- int closedir (DIR*);
83
- void rewinddir (DIR*);
84
- long telldir (DIR*);
85
- void seekdir (DIR*, long);
86
-
87
- #ifdef __cplusplus
88
- }
89
- #endif
90
-
91
- #endif /* Not RC_INVOKED */
92
-
93
- #endif /* Not _DIRENT_H_ */
94
-
95
- #endif /* Not __STRICT_ANSI__ */
96
-
1
+ /*
2
+ * DIRENT.H (formerly DIRLIB.H)
3
+ *
4
+ * by M. J. Weinstein Released to public domain 1-Jan-89
5
+ *
6
+ * Because I have heard that this feature (opendir, readdir, closedir)
7
+ * it so useful for programmers coming from UNIX or attempting to port
8
+ * UNIX code, and because it is reasonably light weight, I have included
9
+ * it in the Mingw32 package. I have also added an implementation of
10
+ * rewinddir, seekdir and telldir.
11
+ * - Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
12
+ *
13
+ * This code is distributed in the hope that is will be useful but
14
+ * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
15
+ * DISCLAIMED. This includeds but is not limited to warranties of
16
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
+ *
18
+ * $Revision: 1.2 $
19
+ * $Author: bellard $
20
+ * $Date: 2005/04/17 13:14:29 $
21
+ *
22
+ */
23
+
24
+ #ifndef __STRICT_ANSI__
25
+
26
+ #ifndef _DIRENT_H_
27
+ #define _DIRENT_H_
28
+
29
+ /* All the headers include this file. */
30
+ #include <_mingw.h>
31
+
32
+ #include <io.h>
33
+
34
+ #ifndef RC_INVOKED
35
+
36
+ #ifdef __cplusplus
37
+ extern "C" {
38
+ #endif
39
+
40
+ struct dirent
41
+ {
42
+ long d_ino; /* Always zero. */
43
+ unsigned short d_reclen; /* Always zero. */
44
+ unsigned short d_namlen; /* Length of name in d_name. */
45
+ char* d_name; /* File name. */
46
+ /* NOTE: The name in the dirent structure points to the name in the
47
+ * finddata_t structure in the DIR. */
48
+ };
49
+
50
+ /*
51
+ * This is an internal data structure. Good programmers will not use it
52
+ * except as an argument to one of the functions below.
53
+ */
54
+ typedef struct
55
+ {
56
+ /* disk transfer area for this dir */
57
+ struct _finddata_t dd_dta;
58
+
59
+ /* dirent struct to return from dir (NOTE: this makes this thread
60
+ * safe as long as only one thread uses a particular DIR struct at
61
+ * a time) */
62
+ struct dirent dd_dir;
63
+
64
+ /* _findnext handle */
65
+ long dd_handle;
66
+
67
+ /*
68
+ * Status of search:
69
+ * 0 = not started yet (next entry to read is first entry)
70
+ * -1 = off the end
71
+ * positive = 0 based index of next entry
72
+ */
73
+ short dd_stat;
74
+
75
+ /* given path for dir with search pattern (struct is extended) */
76
+ char dd_name[1];
77
+ } DIR;
78
+
79
+
80
+ DIR* opendir (const char*);
81
+ struct dirent* readdir (DIR*);
82
+ int closedir (DIR*);
83
+ void rewinddir (DIR*);
84
+ long telldir (DIR*);
85
+ void seekdir (DIR*, long);
86
+
87
+ #ifdef __cplusplus
88
+ }
89
+ #endif
90
+
91
+ #endif /* Not RC_INVOKED */
92
+
93
+ #endif /* Not _DIRENT_H_ */
94
+
95
+ #endif /* Not __STRICT_ANSI__ */
96
+
@@ -1,110 +1,110 @@
1
- /*
2
- * dos.h
3
- *
4
- * DOS-specific functions and structures.
5
- *
6
- * This file is part of the Mingw32 package.
7
- *
8
- * Contributors:
9
- * Created by J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
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 _DOS_H_
30
- #define _DOS_H_
31
-
32
- /* All the headers include this file. */
33
- #include <_mingw.h>
34
-
35
- #define __need_wchar_t
36
- #ifndef RC_INVOKED
37
- #include <stddef.h>
38
- #endif /* Not RC_INVOKED */
39
-
40
- /* For DOS file attributes */
41
- #include <io.h>
42
-
43
- #ifndef RC_INVOKED
44
-
45
- #ifdef __cplusplus
46
- extern "C" {
47
- #endif
48
-
49
- #ifndef __MSVCRT__ /* these are in CRTDLL, but not MSVCRT */
50
- #ifndef __DECLSPEC_SUPPORTED
51
- extern unsigned int *__imp__basemajor_dll;
52
- extern unsigned int *__imp__baseminor_dll;
53
- extern unsigned int *__imp__baseversion_dll;
54
- extern unsigned int *__imp__osmajor_dll;
55
- extern unsigned int *__imp__osminor_dll;
56
- extern unsigned int *__imp__osmode_dll;
57
-
58
- #define _basemajor (*__imp__basemajor_dll)
59
- #define _baseminor (*__imp__baseminor_dll)
60
- #define _baseversion (*__imp__baseversion_dll)
61
- #define _osmajor (*__imp__osmajor_dll)
62
- #define _osminor (*__imp__osminor_dll)
63
- #define _osmode (*__imp__osmode_dll)
64
-
65
- #else /* __DECLSPEC_SUPPORTED */
66
-
67
- __MINGW_IMPORT unsigned int _basemajor_dll;
68
- __MINGW_IMPORT unsigned int _baseminor_dll;
69
- __MINGW_IMPORT unsigned int _baseversion_dll;
70
- __MINGW_IMPORT unsigned int _osmajor_dll;
71
- __MINGW_IMPORT unsigned int _osminor_dll;
72
- __MINGW_IMPORT unsigned int _osmode_dll;
73
-
74
- #define _basemajor _basemajor_dll
75
- #define _baseminor _baseminor_dll
76
- #define _baseversion _baseversion_dll
77
- #define _osmajor _osmajor_dll
78
- #define _osminor _osminor_dll
79
- #define _osmode _osmode_dll
80
-
81
- #endif /* __DECLSPEC_SUPPORTED */
82
- #endif /* ! __MSVCRT__ */
83
-
84
- #ifndef _DISKFREE_T_DEFINED
85
- /* needed by _getdiskfree (also in direct.h) */
86
- struct _diskfree_t {
87
- unsigned total_clusters;
88
- unsigned avail_clusters;
89
- unsigned sectors_per_cluster;
90
- unsigned bytes_per_sector;
91
- };
92
- #define _DISKFREE_T_DEFINED
93
- #endif
94
-
95
- unsigned _getdiskfree (unsigned, struct _diskfree_t *);
96
-
97
- #ifndef _NO_OLDNAMES
98
- # define diskfree_t _diskfree_t
99
- #endif
100
-
101
- #ifdef __cplusplus
102
- }
103
- #endif
104
-
105
- #endif /* Not RC_INVOKED */
106
-
107
- #endif /* Not _DOS_H_ */
108
-
109
- #endif /* Not __STRICT_ANSI__ */
110
-
1
+ /*
2
+ * dos.h
3
+ *
4
+ * DOS-specific functions and structures.
5
+ *
6
+ * This file is part of the Mingw32 package.
7
+ *
8
+ * Contributors:
9
+ * Created by J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
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 _DOS_H_
30
+ #define _DOS_H_
31
+
32
+ /* All the headers include this file. */
33
+ #include <_mingw.h>
34
+
35
+ #define __need_wchar_t
36
+ #ifndef RC_INVOKED
37
+ #include <stddef.h>
38
+ #endif /* Not RC_INVOKED */
39
+
40
+ /* For DOS file attributes */
41
+ #include <io.h>
42
+
43
+ #ifndef RC_INVOKED
44
+
45
+ #ifdef __cplusplus
46
+ extern "C" {
47
+ #endif
48
+
49
+ #ifndef __MSVCRT__ /* these are in CRTDLL, but not MSVCRT */
50
+ #ifndef __DECLSPEC_SUPPORTED
51
+ extern unsigned int *__imp__basemajor_dll;
52
+ extern unsigned int *__imp__baseminor_dll;
53
+ extern unsigned int *__imp__baseversion_dll;
54
+ extern unsigned int *__imp__osmajor_dll;
55
+ extern unsigned int *__imp__osminor_dll;
56
+ extern unsigned int *__imp__osmode_dll;
57
+
58
+ #define _basemajor (*__imp__basemajor_dll)
59
+ #define _baseminor (*__imp__baseminor_dll)
60
+ #define _baseversion (*__imp__baseversion_dll)
61
+ #define _osmajor (*__imp__osmajor_dll)
62
+ #define _osminor (*__imp__osminor_dll)
63
+ #define _osmode (*__imp__osmode_dll)
64
+
65
+ #else /* __DECLSPEC_SUPPORTED */
66
+
67
+ __MINGW_IMPORT unsigned int _basemajor_dll;
68
+ __MINGW_IMPORT unsigned int _baseminor_dll;
69
+ __MINGW_IMPORT unsigned int _baseversion_dll;
70
+ __MINGW_IMPORT unsigned int _osmajor_dll;
71
+ __MINGW_IMPORT unsigned int _osminor_dll;
72
+ __MINGW_IMPORT unsigned int _osmode_dll;
73
+
74
+ #define _basemajor _basemajor_dll
75
+ #define _baseminor _baseminor_dll
76
+ #define _baseversion _baseversion_dll
77
+ #define _osmajor _osmajor_dll
78
+ #define _osminor _osminor_dll
79
+ #define _osmode _osmode_dll
80
+
81
+ #endif /* __DECLSPEC_SUPPORTED */
82
+ #endif /* ! __MSVCRT__ */
83
+
84
+ #ifndef _DISKFREE_T_DEFINED
85
+ /* needed by _getdiskfree (also in direct.h) */
86
+ struct _diskfree_t {
87
+ unsigned total_clusters;
88
+ unsigned avail_clusters;
89
+ unsigned sectors_per_cluster;
90
+ unsigned bytes_per_sector;
91
+ };
92
+ #define _DISKFREE_T_DEFINED
93
+ #endif
94
+
95
+ unsigned _getdiskfree (unsigned, struct _diskfree_t *);
96
+
97
+ #ifndef _NO_OLDNAMES
98
+ # define diskfree_t _diskfree_t
99
+ #endif
100
+
101
+ #ifdef __cplusplus
102
+ }
103
+ #endif
104
+
105
+ #endif /* Not RC_INVOKED */
106
+
107
+ #endif /* Not _DOS_H_ */
108
+
109
+ #endif /* Not __STRICT_ANSI__ */
110
+