@xnetx/tinyc-native-x86_64-w64-mingw32 0.1.2 → 0.2.0

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 (125) hide show
  1. package/natives/x86_64-w64-mingw32/toolchain/x86_64-w64-mingw32/tinyc.exe +0 -0
  2. package/package.json +1 -1
  3. package/sysroot/x86_64-w64-mingw32/include/libtcc.h +125 -116
  4. package/sysroot/x86_64-w64-mingw32/include/tinyc_io.h +131 -123
  5. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/_mingw.h +171 -171
  6. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/arm_neon.h +3585 -0
  7. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/assert.h +62 -62
  8. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx2intrin.h +93 -0
  9. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512bwintrin.h +128 -0
  10. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512cdintrin.h +31 -0
  11. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512dqintrin.h +123 -0
  12. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512fintrin.h +1075 -0
  13. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vbmiintrin.h +30 -0
  14. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vlintrin.h +1633 -0
  15. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avx512vnniintrin.h +33 -0
  16. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/avxintrin.h +675 -0
  17. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/conio.h +409 -409
  18. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/ctype.h +281 -281
  19. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dir.h +31 -31
  20. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/direct.h +68 -68
  21. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dirent.h +135 -135
  22. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/dos.h +55 -55
  23. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/emmintrin.h +213 -0
  24. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/errno.h +75 -75
  25. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/excpt.h +123 -123
  26. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/f16cintrin.h +29 -0
  27. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fcntl.h +52 -52
  28. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fenv.h +108 -108
  29. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/float.h +75 -75
  30. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/fmaintrin.h +141 -0
  31. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/immintrin.h +21 -0
  32. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/inttypes.h +297 -297
  33. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/io.h +418 -418
  34. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/iso646.h +36 -36
  35. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/limits.h +116 -116
  36. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/locale.h +91 -91
  37. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/malloc.h +181 -181
  38. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/math.h +497 -497
  39. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/mem.h +13 -13
  40. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/memory.h +40 -40
  41. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/process.h +176 -176
  42. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/riscv_vector.h +12334 -0
  43. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/conio_s.h +42 -42
  44. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/crtdbg_s.h +19 -19
  45. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/io_s.h +33 -33
  46. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/mbstring_s.h +52 -52
  47. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/search_s.h +25 -25
  48. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdio_s.h +145 -145
  49. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stdlib_s.h +67 -67
  50. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/stralign_s.h +30 -30
  51. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/string_s.h +41 -41
  52. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/sys/timeb_s.h +34 -34
  53. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/tchar_s.h +266 -266
  54. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/time_s.h +61 -61
  55. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sec_api/wchar_s.h +128 -128
  56. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/setjmp.h +199 -199
  57. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/share.h +28 -28
  58. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/signal.h +63 -63
  59. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/smmintrin.h +74 -0
  60. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdalign.h +16 -16
  61. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdarg.h +14 -14
  62. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdatomic.h +171 -171
  63. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdbool.h +11 -11
  64. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stddef.h +39 -39
  65. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdint.h +212 -212
  66. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdio.h +429 -429
  67. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdlib.h +606 -606
  68. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/stdnoreturn.h +7 -7
  69. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/string.h +164 -164
  70. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/fcntl.h +13 -13
  71. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/file.h +14 -14
  72. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/locking.h +30 -30
  73. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/stat.h +290 -290
  74. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/time.h +69 -69
  75. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/timeb.h +133 -133
  76. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/types.h +123 -123
  77. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/unistd.h +14 -14
  78. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/sys/utime.h +146 -146
  79. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcc/tcc_libm.h +618 -618
  80. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tccdefs.h +338 -338
  81. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tcclib.h +82 -82
  82. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tchar.h +1102 -1102
  83. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tgmath.h +89 -89
  84. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/time.h +287 -287
  85. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/tmmintrin.h +19 -0
  86. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/uchar.h +33 -33
  87. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/unistd.h +1 -1
  88. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/vadefs.h +11 -11
  89. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/values.h +4 -4
  90. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/varargs.h +12 -12
  91. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wchar.h +873 -873
  92. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/wctype.h +172 -172
  93. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetsd.h +149 -149
  94. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/basetyps.h +85 -85
  95. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/guiddef.h +156 -156
  96. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/poppack.h +8 -8
  97. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack1.h +8 -8
  98. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack2.h +8 -8
  99. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack4.h +8 -8
  100. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/pshpack8.h +8 -8
  101. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/qos.h +72 -72
  102. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/shellapi.h +59 -59
  103. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winbase.h +2966 -2966
  104. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wincon.h +309 -309
  105. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windef.h +293 -293
  106. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/windows.h +127 -127
  107. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winerror.h +3166 -3166
  108. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/wingdi.h +4080 -4080
  109. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnls.h +778 -778
  110. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winnt.h +5994 -5994
  111. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winreg.h +272 -272
  112. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winsock2.h +1474 -1474
  113. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winuser.h +5652 -5652
  114. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/winver.h +160 -160
  115. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2ipdef.h +21 -21
  116. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/winapi/ws2tcpip.h +391 -391
  117. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/include/xmmintrin.h +170 -0
  118. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/gdi32.def +337 -337
  119. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/kernel32.def +776 -776
  120. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/libtcc1.a +0 -0
  121. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/msvcrt.def +1320 -1320
  122. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/runmain.o +0 -0
  123. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/user32.def +658 -658
  124. package/sysroot/x86_64-w64-mingw32/lib/tcc/win32/lib/ws2_32.def +198 -198
  125. package/sysroot/x86_64-w64-mingw32/manifest.json +1 -1
@@ -1,68 +1,68 @@
1
- /**
2
- * This file has no copyright assigned and is placed in the Public Domain.
3
- * This file is part of the w64 mingw-runtime package.
4
- * No warranty is given; refer to the file DISCLAIMER within this package.
5
- */
6
- #ifndef _INC_DIRECT
7
- #define _INC_DIRECT
8
-
9
- #include <_mingw.h>
10
- #include <io.h>
11
-
12
- #pragma pack(push,_CRT_PACKING)
13
-
14
- #ifdef __cplusplus
15
- extern "C" {
16
- #endif
17
-
18
- #ifndef _DISKFREE_T_DEFINED
19
- #define _DISKFREE_T_DEFINED
20
- struct _diskfree_t {
21
- unsigned total_clusters;
22
- unsigned avail_clusters;
23
- unsigned sectors_per_cluster;
24
- unsigned bytes_per_sector;
25
- };
26
- #endif
27
-
28
- _CRTIMP char *__cdecl _getcwd(char *_DstBuf,int _SizeInBytes);
29
- _CRTIMP char *__cdecl _getdcwd(int _Drive,char *_DstBuf,int _SizeInBytes);
30
- char *__cdecl _getdcwd_nolock(int _Drive,char *_DstBuf,int _SizeInBytes);
31
- _CRTIMP int __cdecl _chdir(const char *_Path);
32
- _CRTIMP int __cdecl _mkdir(const char *_Path);
33
- _CRTIMP int __cdecl _rmdir(const char *_Path);
34
- _CRTIMP int __cdecl _chdrive(int _Drive);
35
- _CRTIMP int __cdecl _getdrive(void);
36
- _CRTIMP unsigned long __cdecl _getdrives(void);
37
-
38
- #ifndef _GETDISKFREE_DEFINED
39
- #define _GETDISKFREE_DEFINED
40
- _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
41
- #endif
42
-
43
- #ifndef _WDIRECT_DEFINED
44
- #define _WDIRECT_DEFINED
45
- _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
46
- _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
47
- wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
48
- _CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
49
- _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
50
- _CRTIMP int __cdecl _wrmdir(const wchar_t *_Path);
51
- #endif
52
-
53
- #ifndef NO_OLDNAMES
54
-
55
- #define diskfree_t _diskfree_t
56
-
57
- char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes);
58
- int __cdecl chdir(const char *_Path);
59
- int __cdecl mkdir(const char *_Path);
60
- int __cdecl rmdir(const char *_Path);
61
- #endif
62
-
63
- #ifdef __cplusplus
64
- }
65
- #endif
66
-
67
- #pragma pack(pop)
68
- #endif
1
+ /**
2
+ * This file has no copyright assigned and is placed in the Public Domain.
3
+ * This file is part of the w64 mingw-runtime package.
4
+ * No warranty is given; refer to the file DISCLAIMER within this package.
5
+ */
6
+ #ifndef _INC_DIRECT
7
+ #define _INC_DIRECT
8
+
9
+ #include <_mingw.h>
10
+ #include <io.h>
11
+
12
+ #pragma pack(push,_CRT_PACKING)
13
+
14
+ #ifdef __cplusplus
15
+ extern "C" {
16
+ #endif
17
+
18
+ #ifndef _DISKFREE_T_DEFINED
19
+ #define _DISKFREE_T_DEFINED
20
+ struct _diskfree_t {
21
+ unsigned total_clusters;
22
+ unsigned avail_clusters;
23
+ unsigned sectors_per_cluster;
24
+ unsigned bytes_per_sector;
25
+ };
26
+ #endif
27
+
28
+ _CRTIMP char *__cdecl _getcwd(char *_DstBuf,int _SizeInBytes);
29
+ _CRTIMP char *__cdecl _getdcwd(int _Drive,char *_DstBuf,int _SizeInBytes);
30
+ char *__cdecl _getdcwd_nolock(int _Drive,char *_DstBuf,int _SizeInBytes);
31
+ _CRTIMP int __cdecl _chdir(const char *_Path);
32
+ _CRTIMP int __cdecl _mkdir(const char *_Path);
33
+ _CRTIMP int __cdecl _rmdir(const char *_Path);
34
+ _CRTIMP int __cdecl _chdrive(int _Drive);
35
+ _CRTIMP int __cdecl _getdrive(void);
36
+ _CRTIMP unsigned long __cdecl _getdrives(void);
37
+
38
+ #ifndef _GETDISKFREE_DEFINED
39
+ #define _GETDISKFREE_DEFINED
40
+ _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
41
+ #endif
42
+
43
+ #ifndef _WDIRECT_DEFINED
44
+ #define _WDIRECT_DEFINED
45
+ _CRTIMP wchar_t *__cdecl _wgetcwd(wchar_t *_DstBuf,int _SizeInWords);
46
+ _CRTIMP wchar_t *__cdecl _wgetdcwd(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
47
+ wchar_t *__cdecl _wgetdcwd_nolock(int _Drive,wchar_t *_DstBuf,int _SizeInWords);
48
+ _CRTIMP int __cdecl _wchdir(const wchar_t *_Path);
49
+ _CRTIMP int __cdecl _wmkdir(const wchar_t *_Path);
50
+ _CRTIMP int __cdecl _wrmdir(const wchar_t *_Path);
51
+ #endif
52
+
53
+ #ifndef NO_OLDNAMES
54
+
55
+ #define diskfree_t _diskfree_t
56
+
57
+ char *__cdecl getcwd(char *_DstBuf,int _SizeInBytes);
58
+ int __cdecl chdir(const char *_Path);
59
+ int __cdecl mkdir(const char *_Path);
60
+ int __cdecl rmdir(const char *_Path);
61
+ #endif
62
+
63
+ #ifdef __cplusplus
64
+ }
65
+ #endif
66
+
67
+ #pragma pack(pop)
68
+ #endif
@@ -1,135 +1,135 @@
1
- /**
2
- * This file has no copyright assigned and is placed in the Public Domain.
3
- * This file is part of the w64 mingw-runtime package.
4
- * No warranty is given; refer to the file DISCLAIMER within this package.
5
- */
6
- /* All the headers include this file. */
7
- #include <_mingw.h>
8
-
9
- #ifndef __STRICT_ANSI__
10
-
11
- #ifndef _DIRENT_H_
12
- #define _DIRENT_H_
13
-
14
-
15
- #pragma pack(push,_CRT_PACKING)
16
-
17
- #include <io.h>
18
-
19
- #ifndef RC_INVOKED
20
-
21
- #ifdef __cplusplus
22
- extern "C" {
23
- #endif
24
-
25
- struct dirent
26
- {
27
- long d_ino; /* Always zero. */
28
- unsigned short d_reclen; /* Always zero. */
29
- unsigned short d_namlen; /* Length of name in d_name. */
30
- char* d_name; /* File name. */
31
- /* NOTE: The name in the dirent structure points to the name in the
32
- * finddata_t structure in the DIR. */
33
- };
34
-
35
- /*
36
- * This is an internal data structure. Good programmers will not use it
37
- * except as an argument to one of the functions below.
38
- * dd_stat field is now int (was short in older versions).
39
- */
40
- typedef struct
41
- {
42
- /* disk transfer area for this dir */
43
- struct _finddata_t dd_dta;
44
-
45
- /* dirent struct to return from dir (NOTE: this makes this thread
46
- * safe as long as only one thread uses a particular DIR struct at
47
- * a time) */
48
- struct dirent dd_dir;
49
-
50
- /* _findnext handle */
51
- long dd_handle;
52
-
53
- /*
54
- * Status of search:
55
- * 0 = not started yet (next entry to read is first entry)
56
- * -1 = off the end
57
- * positive = 0 based index of next entry
58
- */
59
- int dd_stat;
60
-
61
- /* given path for dir with search pattern (struct is extended) */
62
- char dd_name[1];
63
- } DIR;
64
-
65
- DIR* __cdecl opendir (const char*);
66
- struct dirent* __cdecl readdir (DIR*);
67
- int __cdecl closedir (DIR*);
68
- void __cdecl rewinddir (DIR*);
69
- long __cdecl telldir (DIR*);
70
- void __cdecl seekdir (DIR*, long);
71
-
72
-
73
- /* wide char versions */
74
-
75
- struct _wdirent
76
- {
77
- long d_ino; /* Always zero. */
78
- unsigned short d_reclen; /* Always zero. */
79
- unsigned short d_namlen; /* Length of name in d_name. */
80
- wchar_t* d_name; /* File name. */
81
- /* NOTE: The name in the dirent structure points to the name in the * wfinddata_t structure in the _WDIR. */
82
- };
83
-
84
- /*
85
- * This is an internal data structure. Good programmers will not use it
86
- * except as an argument to one of the functions below.
87
- */
88
- typedef struct
89
- {
90
- /* disk transfer area for this dir */
91
- struct _wfinddata_t dd_dta;
92
-
93
- /* dirent struct to return from dir (NOTE: this makes this thread
94
- * safe as long as only one thread uses a particular DIR struct at
95
- * a time) */
96
- struct _wdirent dd_dir;
97
-
98
- /* _findnext handle */
99
- long dd_handle;
100
-
101
- /*
102
- * Status of search:
103
- * 0 = not started yet (next entry to read is first entry)
104
- * -1 = off the end
105
- * positive = 0 based index of next entry
106
- */
107
- int dd_stat;
108
-
109
- /* given path for dir with search pattern (struct is extended) */
110
- wchar_t dd_name[1];
111
- } _WDIR;
112
-
113
-
114
-
115
- _WDIR* __cdecl _wopendir (const wchar_t*);
116
- struct _wdirent* __cdecl _wreaddir (_WDIR*);
117
- int __cdecl _wclosedir (_WDIR*);
118
- void __cdecl _wrewinddir (_WDIR*);
119
- long __cdecl _wtelldir (_WDIR*);
120
- void __cdecl _wseekdir (_WDIR*, long);
121
-
122
-
123
- #ifdef __cplusplus
124
- }
125
- #endif
126
-
127
- #endif /* Not RC_INVOKED */
128
-
129
- #pragma pack(pop)
130
-
131
- #endif /* Not _DIRENT_H_ */
132
-
133
-
134
- #endif /* Not __STRICT_ANSI__ */
135
-
1
+ /**
2
+ * This file has no copyright assigned and is placed in the Public Domain.
3
+ * This file is part of the w64 mingw-runtime package.
4
+ * No warranty is given; refer to the file DISCLAIMER within this package.
5
+ */
6
+ /* All the headers include this file. */
7
+ #include <_mingw.h>
8
+
9
+ #ifndef __STRICT_ANSI__
10
+
11
+ #ifndef _DIRENT_H_
12
+ #define _DIRENT_H_
13
+
14
+
15
+ #pragma pack(push,_CRT_PACKING)
16
+
17
+ #include <io.h>
18
+
19
+ #ifndef RC_INVOKED
20
+
21
+ #ifdef __cplusplus
22
+ extern "C" {
23
+ #endif
24
+
25
+ struct dirent
26
+ {
27
+ long d_ino; /* Always zero. */
28
+ unsigned short d_reclen; /* Always zero. */
29
+ unsigned short d_namlen; /* Length of name in d_name. */
30
+ char* d_name; /* File name. */
31
+ /* NOTE: The name in the dirent structure points to the name in the
32
+ * finddata_t structure in the DIR. */
33
+ };
34
+
35
+ /*
36
+ * This is an internal data structure. Good programmers will not use it
37
+ * except as an argument to one of the functions below.
38
+ * dd_stat field is now int (was short in older versions).
39
+ */
40
+ typedef struct
41
+ {
42
+ /* disk transfer area for this dir */
43
+ struct _finddata_t dd_dta;
44
+
45
+ /* dirent struct to return from dir (NOTE: this makes this thread
46
+ * safe as long as only one thread uses a particular DIR struct at
47
+ * a time) */
48
+ struct dirent dd_dir;
49
+
50
+ /* _findnext handle */
51
+ long dd_handle;
52
+
53
+ /*
54
+ * Status of search:
55
+ * 0 = not started yet (next entry to read is first entry)
56
+ * -1 = off the end
57
+ * positive = 0 based index of next entry
58
+ */
59
+ int dd_stat;
60
+
61
+ /* given path for dir with search pattern (struct is extended) */
62
+ char dd_name[1];
63
+ } DIR;
64
+
65
+ DIR* __cdecl opendir (const char*);
66
+ struct dirent* __cdecl readdir (DIR*);
67
+ int __cdecl closedir (DIR*);
68
+ void __cdecl rewinddir (DIR*);
69
+ long __cdecl telldir (DIR*);
70
+ void __cdecl seekdir (DIR*, long);
71
+
72
+
73
+ /* wide char versions */
74
+
75
+ struct _wdirent
76
+ {
77
+ long d_ino; /* Always zero. */
78
+ unsigned short d_reclen; /* Always zero. */
79
+ unsigned short d_namlen; /* Length of name in d_name. */
80
+ wchar_t* d_name; /* File name. */
81
+ /* NOTE: The name in the dirent structure points to the name in the * wfinddata_t structure in the _WDIR. */
82
+ };
83
+
84
+ /*
85
+ * This is an internal data structure. Good programmers will not use it
86
+ * except as an argument to one of the functions below.
87
+ */
88
+ typedef struct
89
+ {
90
+ /* disk transfer area for this dir */
91
+ struct _wfinddata_t dd_dta;
92
+
93
+ /* dirent struct to return from dir (NOTE: this makes this thread
94
+ * safe as long as only one thread uses a particular DIR struct at
95
+ * a time) */
96
+ struct _wdirent dd_dir;
97
+
98
+ /* _findnext handle */
99
+ long dd_handle;
100
+
101
+ /*
102
+ * Status of search:
103
+ * 0 = not started yet (next entry to read is first entry)
104
+ * -1 = off the end
105
+ * positive = 0 based index of next entry
106
+ */
107
+ int dd_stat;
108
+
109
+ /* given path for dir with search pattern (struct is extended) */
110
+ wchar_t dd_name[1];
111
+ } _WDIR;
112
+
113
+
114
+
115
+ _WDIR* __cdecl _wopendir (const wchar_t*);
116
+ struct _wdirent* __cdecl _wreaddir (_WDIR*);
117
+ int __cdecl _wclosedir (_WDIR*);
118
+ void __cdecl _wrewinddir (_WDIR*);
119
+ long __cdecl _wtelldir (_WDIR*);
120
+ void __cdecl _wseekdir (_WDIR*, long);
121
+
122
+
123
+ #ifdef __cplusplus
124
+ }
125
+ #endif
126
+
127
+ #endif /* Not RC_INVOKED */
128
+
129
+ #pragma pack(pop)
130
+
131
+ #endif /* Not _DIRENT_H_ */
132
+
133
+
134
+ #endif /* Not __STRICT_ANSI__ */
135
+
@@ -1,55 +1,55 @@
1
- /**
2
- * This file has no copyright assigned and is placed in the Public Domain.
3
- * This file is part of the w64 mingw-runtime package.
4
- * No warranty is given; refer to the file DISCLAIMER within this package.
5
- */
6
- #ifndef _INC_DOS
7
- #define _INC_DOS
8
-
9
- #include <_mingw.h>
10
- #include <io.h>
11
-
12
- #pragma pack(push,_CRT_PACKING)
13
-
14
- #ifdef __cplusplus
15
- extern "C" {
16
- #endif
17
-
18
- #ifndef _DISKFREE_T_DEFINED
19
- #define _DISKFREE_T_DEFINED
20
-
21
- struct _diskfree_t {
22
- unsigned total_clusters;
23
- unsigned avail_clusters;
24
- unsigned sectors_per_cluster;
25
- unsigned bytes_per_sector;
26
- };
27
- #endif
28
-
29
- #define _A_NORMAL 0x00
30
- #define _A_RDONLY 0x01
31
- #define _A_HIDDEN 0x02
32
- #define _A_SYSTEM 0x04
33
- #define _A_SUBDIR 0x10
34
- #define _A_ARCH 0x20
35
-
36
- #ifndef _GETDISKFREE_DEFINED
37
- #define _GETDISKFREE_DEFINED
38
- _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
39
- #endif
40
-
41
- #if (defined(_X86_) && !defined(__x86_64))
42
- void __cdecl _disable(void);
43
- void __cdecl _enable(void);
44
- #endif
45
-
46
- #ifndef NO_OLDNAMES
47
- #define diskfree_t _diskfree_t
48
- #endif
49
-
50
- #ifdef __cplusplus
51
- }
52
- #endif
53
-
54
- #pragma pack(pop)
55
- #endif
1
+ /**
2
+ * This file has no copyright assigned and is placed in the Public Domain.
3
+ * This file is part of the w64 mingw-runtime package.
4
+ * No warranty is given; refer to the file DISCLAIMER within this package.
5
+ */
6
+ #ifndef _INC_DOS
7
+ #define _INC_DOS
8
+
9
+ #include <_mingw.h>
10
+ #include <io.h>
11
+
12
+ #pragma pack(push,_CRT_PACKING)
13
+
14
+ #ifdef __cplusplus
15
+ extern "C" {
16
+ #endif
17
+
18
+ #ifndef _DISKFREE_T_DEFINED
19
+ #define _DISKFREE_T_DEFINED
20
+
21
+ struct _diskfree_t {
22
+ unsigned total_clusters;
23
+ unsigned avail_clusters;
24
+ unsigned sectors_per_cluster;
25
+ unsigned bytes_per_sector;
26
+ };
27
+ #endif
28
+
29
+ #define _A_NORMAL 0x00
30
+ #define _A_RDONLY 0x01
31
+ #define _A_HIDDEN 0x02
32
+ #define _A_SYSTEM 0x04
33
+ #define _A_SUBDIR 0x10
34
+ #define _A_ARCH 0x20
35
+
36
+ #ifndef _GETDISKFREE_DEFINED
37
+ #define _GETDISKFREE_DEFINED
38
+ _CRTIMP unsigned __cdecl _getdiskfree(unsigned _Drive,struct _diskfree_t *_DiskFree);
39
+ #endif
40
+
41
+ #if (defined(_X86_) && !defined(__x86_64))
42
+ void __cdecl _disable(void);
43
+ void __cdecl _enable(void);
44
+ #endif
45
+
46
+ #ifndef NO_OLDNAMES
47
+ #define diskfree_t _diskfree_t
48
+ #endif
49
+
50
+ #ifdef __cplusplus
51
+ }
52
+ #endif
53
+
54
+ #pragma pack(pop)
55
+ #endif