Skip to content

Commit 81cab33

Browse files
authored
Platform: further modularise ucrt
Add a couple of submodules for these modules to further modularise the headers. This might expose additional APIs now as some of these headers would not have been indirectly included and wind up in the wrong module.
1 parent cb7982d commit 81cab33

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

stdlib/public/Platform/ucrt.modulemap

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ module ucrt [system] {
3535
export *
3636
}
3737

38+
module float {
39+
header "float.h"
40+
export *
41+
}
42+
3843
module inttypes {
3944
header "inttypes.h"
4045
export *
@@ -102,6 +107,11 @@ module ucrt [system] {
102107
export *
103108
}
104109

110+
module timeb {
111+
header "sys/timeb.h"
112+
export *
113+
}
114+
105115
module types {
106116
header "sys/types.h"
107117
export *
@@ -120,8 +130,8 @@ module ucrt [system] {
120130
export *
121131
}
122132

123-
module process {
124-
header "process.h"
133+
module dos {
134+
header "dos.h"
125135
export *
126136
}
127137

@@ -130,6 +140,21 @@ module ucrt [system] {
130140
export *
131141
}
132142

143+
module minmax {
144+
header "minmax.h"
145+
export *
146+
}
147+
148+
module multibyte {
149+
header "mbstring.h"
150+
export *
151+
}
152+
153+
module process {
154+
header "process.h"
155+
export *
156+
}
157+
133158
module wchar {
134159
header "wchar.h"
135160
export *
@@ -153,11 +178,21 @@ module corecrt [system] {
153178
export *
154179
}
155180

181+
module malloc {
182+
header "corecrt_malloc.h"
183+
export *
184+
}
185+
156186
module math {
157187
header "corecrt_math.h"
158188
export *
159189
}
160190

191+
module share {
192+
header "corecrt_share.h"
193+
export *
194+
}
195+
161196
module stdio {
162197
header "corecrt_wstdio.h"
163198
export *

0 commit comments

Comments
 (0)