@@ -51,264 +51,264 @@ module _musl [system] {
51
51
// Headers that can be overridden by Clang or libc++; in this case what we do is
52
52
// we create an underscored module to wrap the actual header, then have the
53
53
// module with the nicer name include a forwarding header from _modules. This
54
- // ensures that e.g. `import stdc_float ` will result in pulling in the Clang
54
+ // ensures that e.g. `import float_h ` will result in pulling in the Clang
55
55
// or libc++ versions as expected.
56
56
57
- module _stdc_assert [system] {
57
+ module _assert [system] {
58
58
textual header "assert.h"
59
59
}
60
- module stdc_assert [system] {
61
- header "_modules/stdc_assert .h"
60
+ module assert_h [system] {
61
+ header "_modules/assert_h .h"
62
62
export *
63
63
}
64
64
65
- module _stdc_complex [system] {
65
+ module _complex [system] {
66
66
header "complex.h"
67
67
export *
68
68
}
69
- module stdc_complex [system] {
70
- header "_modules/stdc_complex .h"
69
+ module complex_h [system] {
70
+ header "_modules/complex_h .h"
71
71
export *
72
72
}
73
73
74
- module _stdc_ctype [system] {
74
+ module _ctype [system] {
75
75
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
76
76
header "ctype.h"
77
77
export *
78
78
}
79
- module stdc_ctype [system] {
80
- header "_modules/stdc_ctype .h"
79
+ module ctype_h [system] {
80
+ header "_modules/ctype_h .h"
81
81
export *
82
82
}
83
83
84
- module _stdc_errno [system] {
84
+ module _errno [system] {
85
85
config_macros _GNU_SOURCE
86
86
header "errno.h"
87
87
export *
88
88
}
89
- module stdc_errno [system] {
90
- header "_modules/stdc_errno .h"
89
+ module errno_h [system] {
90
+ header "_modules/errno_h .h"
91
91
export *
92
92
}
93
93
94
- module _stdc_fenv [system] {
94
+ module _fenv [system] {
95
95
header "fenv.h"
96
96
export *
97
97
}
98
- module stdc_fenv [system] {
99
- header "_modules/stdc_fenv .h"
98
+ module fenv_h [system] {
99
+ header "_modules/fenv_h .h"
100
100
export *
101
101
}
102
102
103
- module _stdc_float [system] {
103
+ module _float [system] {
104
104
header "float.h"
105
105
export *
106
106
}
107
- module stdc_float [system] {
108
- header "_modules/stdc_float .h"
107
+ module float_h [system] {
108
+ header "_modules/float_h .h"
109
109
export *
110
110
}
111
111
112
- module _stdc_inttypes [system] {
112
+ module _inttypes [system] {
113
113
header "inttypes.h"
114
114
export *
115
115
}
116
- module stdc_inttypes [system] {
117
- header "_modules/stdc_inttypes .h"
118
- use stdc_stdint
116
+ module inttypes_h [system] {
117
+ header "_modules/inttypes_h .h"
118
+ use stdint_h
119
119
export *
120
120
}
121
121
122
- module _stdc_iso646 [system] {
122
+ module _iso646 [system] {
123
123
header "iso646.h"
124
124
export *
125
125
}
126
- module stdc_iso646 [system] {
127
- header "_modules/stdc_iso646 .h"
126
+ module iso646_h [system] {
127
+ header "_modules/iso646_h .h"
128
128
export *
129
129
}
130
130
131
- module _stdc_limits [system] {
131
+ module _limits [system] {
132
132
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
133
133
header "limits.h"
134
134
export *
135
135
}
136
- module stdc_limits [system] {
137
- header "_modules/stdc_limits .h"
136
+ module limits_h [system] {
137
+ header "_modules/limits_h .h"
138
138
export *
139
139
}
140
140
141
- module _stdc_locale [system] {
141
+ module _locale [system] {
142
142
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
143
143
header "locale.h"
144
144
export *
145
145
}
146
- module stdc_locale [system] {
147
- header "_modules/stdc_locale .h"
146
+ module locale_h [system] {
147
+ header "_modules/locale_h .h"
148
148
export *
149
149
}
150
150
151
- module _stdc_math [system] {
151
+ module _math [system] {
152
152
config_macros _BSD_SOURCE, _GNU_SOURCE, _XOPEN_SOURCE
153
153
header "math.h"
154
154
export *
155
155
}
156
- module stdc_math [system] {
157
- header "_modules/stdc_math .h"
156
+ module math_h [system] {
157
+ header "_modules/math_h .h"
158
158
export *
159
159
}
160
160
161
- module _stdc_setjmp [system] {
161
+ module _setjmp [system] {
162
162
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
163
163
header "setjmp.h"
164
164
export *
165
165
}
166
- module stdc_setjmp [system] {
167
- header "_modules/stdc_setjmp .h"
166
+ module setjmp_h [system] {
167
+ header "_modules/setjmp_h .h"
168
168
export *
169
169
}
170
170
171
- module _stdc_stdalign [system] {
171
+ module _stdalign [system] {
172
172
header "stdalign.h"
173
173
export *
174
174
}
175
- module stdc_stdalign [system] {
176
- header "_modules/stdc_stdalign .h"
175
+ module stdalign_h [system] {
176
+ header "_modules/stdalign_h .h"
177
177
export *
178
178
}
179
179
180
- module _stdc_stdarg [system] {
180
+ module _stdarg [system] {
181
181
header "stdarg.h"
182
182
export *
183
183
}
184
- module stdc_stdarg [system] {
185
- header "_modules/stdc_stdarg .h"
184
+ module stdarg_h [system] {
185
+ header "_modules/stdarg_h .h"
186
186
export *
187
187
}
188
188
189
- module _stdc_stdatomic [system] {
189
+ module _stdatomic [system] {
190
190
header "stdatomic.h"
191
191
export *
192
192
}
193
- module stdc_stdatomic [system] {
194
- header "_modules/stdc_stdatomic .h"
193
+ module stdatomic_h [system] {
194
+ header "_modules/stdatomic_h .h"
195
195
export *
196
196
}
197
197
198
- module _stdc_stdbool [system] {
198
+ module _stdbool [system] {
199
199
header "stdbool.h"
200
200
export *
201
201
}
202
- module stdc_stdbool [system] {
203
- header "_modules/stdc_stdbool .h"
202
+ module stdbool_h [system] {
203
+ header "_modules/stdbool_h .h"
204
204
export *
205
205
}
206
206
207
- module _stdc_stddef [system] {
207
+ module _stddef [system] {
208
208
header "stddef.h"
209
209
export *
210
210
}
211
- module stdc_stddef [system] {
212
- header "_modules/stdc_stddef .h"
211
+ module stddef_h [system] {
212
+ header "_modules/stddef_h .h"
213
213
export *
214
214
}
215
215
216
- module _stdc_stdint [system] {
216
+ module _stdint [system] {
217
217
header "stdint.h"
218
218
export *
219
219
}
220
- module stdc_stdint [system] {
221
- header "_modules/stdc_stdint .h"
220
+ module stdint_h [system] {
221
+ header "_modules/stdint_h .h"
222
222
export *
223
223
}
224
224
225
- module _stdc_stdio [system] {
225
+ module _stdio [system] {
226
226
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
227
227
header "stdio.h"
228
228
export *
229
229
}
230
- module stdc_stdio [system] {
231
- header "_modules/stdc_stdio .h"
230
+ module stdio_h [system] {
231
+ header "_modules/stdio_h .h"
232
232
export *
233
233
}
234
234
235
- module _stdc_stdlib [system] {
235
+ module _stdlib [system] {
236
236
config_macros _BSD_SOURCE, _GNU_SOURCE, _LARGEFILE64_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
237
237
header "stdlib.h"
238
238
export *
239
239
}
240
- module stdc_stdlib [system] {
241
- header "_modules/stdc_stdlib .h"
240
+ module stdlib_h [system] {
241
+ header "_modules/stdlib_h .h"
242
242
export *
243
243
}
244
244
245
- module _stdc_string [system] {
245
+ module _string [system] {
246
246
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
247
247
header "string.h"
248
248
export *
249
249
}
250
- module stdc_string [system] {
251
- header "_modules/stdc_string .h"
250
+ module string_h [system] {
251
+ header "_modules/string_h .h"
252
252
export *
253
253
}
254
254
255
- module _stdc_tgmath [system] {
255
+ module _tgmath [system] {
256
256
header "tgmath.h"
257
257
export *
258
258
}
259
- module stdc_tgmath [system] {
260
- header "_modules/stdc_tgmath .h"
259
+ module tgmath_h [system] {
260
+ header "_modules/tgmath_h .h"
261
261
export *
262
262
}
263
263
264
- module _stdc_uchar [system] {
264
+ module _uchar [system] {
265
265
header "uchar.h"
266
266
export *
267
267
}
268
- module stdc_uchar [system] {
269
- header "_modules/stdc_uchar .h"
268
+ module uchar_h [system] {
269
+ header "_modules/uchar_h .h"
270
270
export *
271
271
}
272
272
273
- module _stdc_wchar [system] {
273
+ module _wchar [system] {
274
274
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
275
275
header "wchar.h"
276
276
export *
277
277
}
278
- module stdc_wchar [system] {
279
- header "_modules/stdc_wchar .h"
278
+ module wchar_h [system] {
279
+ header "_modules/wchar_h .h"
280
280
export *
281
281
}
282
282
283
- module _stdc_wctype [system] {
283
+ module _wctype [system] {
284
284
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
285
285
header "wctype.h"
286
286
export *
287
287
}
288
- module stdc_wctype [system] {
289
- header "_modules/stdc_wctype .h"
288
+ module wctype_h [system] {
289
+ header "_modules/wctype_h .h"
290
290
export *
291
291
}
292
292
293
293
// C library headers
294
- module stdc_time [system] {
294
+ module time_h [system] {
295
295
config_macros _POSIX_SOURCE, _POSIX_C_SOURCE, _XOPEN_SOURCE, _GNU_SOURCE, _BSD_SOURCE
296
296
header "time.h"
297
297
export *
298
298
}
299
299
300
- module stdc_signal [system] {
300
+ module signal_h [system] {
301
301
config_macros _BSD_SOURCE, _GNU_SOURCE, _POSIX_C_SOURCE, _POSIX_SOURCE, _XOPEN_SOURCE
302
302
header "signal.h"
303
303
export *
304
304
}
305
305
306
- module stdc_stdnoreturn [system] {
306
+ module stdnoreturn_h [system] {
307
307
header "stdnoreturn.h"
308
308
export *
309
309
}
310
310
311
- module stdc_threads [system] {
311
+ module threads_h [system] {
312
312
header "threads.h"
313
313
export *
314
314
}
0 commit comments