@@ -4,7 +4,11 @@ def StdC : StandardSpec<"stdc"> {
44 PtrType StructTmPtr = PtrType<StructTmType>;
55 PtrType TimeTTypePtr = PtrType<TimeTType>;
66 NamedType ClockT = NamedType<"clock_t">;
7+ <<<<<<< HEAD
78 NamedType LocaleT = NamedType<"locale_t">;
9+ =======
10+ NamedType LocaleT : NamedType<"locale_t">;
11+ >>>>>>> a805b5fe17fa ([libc] Add `ctype.h` locale variants)
812
913 NamedType DivTType = NamedType<"div_t">;
1014 NamedType LDivTType = NamedType<"ldiv_t">;
@@ -108,6 +112,76 @@ def StdC : StandardSpec<"stdc"> {
108112 RetValSpec<IntType>,
109113 [ArgSpec<IntType>]
110114 >,
115+ FunctionSpec<
116+ "isalnum_l",
117+ RetValSpec<IntType>,
118+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
119+ >,
120+ FunctionSpec<
121+ "isalpha_l",
122+ RetValSpec<IntType>,
123+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
124+ >,
125+ FunctionSpec<
126+ "isblank_l",
127+ RetValSpec<IntType>,
128+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
129+ >,
130+ FunctionSpec<
131+ "iscntrl_l",
132+ RetValSpec<IntType>,
133+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
134+ >,
135+ FunctionSpec<
136+ "isdigit_l",
137+ RetValSpec<IntType>,
138+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
139+ >,
140+ FunctionSpec<
141+ "isgraph_l",
142+ RetValSpec<IntType>,
143+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
144+ >,
145+ FunctionSpec<
146+ "islower_l",
147+ RetValSpec<IntType>,
148+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
149+ >,
150+ FunctionSpec<
151+ "isprint_l",
152+ RetValSpec<IntType>,
153+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
154+ >,
155+ FunctionSpec<
156+ "ispunct_l",
157+ RetValSpec<IntType>,
158+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
159+ >,
160+ FunctionSpec<
161+ "isspace_l",
162+ RetValSpec<IntType>,
163+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
164+ >,
165+ FunctionSpec<
166+ "isupper_l",
167+ RetValSpec<IntType>,
168+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
169+ >,
170+ FunctionSpec<
171+ "isxdigit_l",
172+ RetValSpec<IntType>,
173+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
174+ >,
175+ FunctionSpec<
176+ "tolower_l",
177+ RetValSpec<IntType>,
178+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
179+ >,
180+ FunctionSpec<
181+ "toupper_l",
182+ RetValSpec<IntType>,
183+ [ArgSpec<IntType>, ArgSpec<LocaleT>]
184+ >,
111185 ]
112186 >;
113187
0 commit comments