@@ -29,169 +29,6 @@ endif()
29
29
add_subdirectory (printf_core )
30
30
add_subdirectory (scanf_core )
31
31
32
- add_entrypoint_object (
33
- clearerr
34
- SRCS
35
- clearerr.cpp
36
- HDRS
37
- clearerr.h
38
- DEPENDS
39
- libc.include.stdio
40
- libc.src.__support.File.file
41
- libc.src.__support.File.platform_file
42
- )
43
-
44
- add_entrypoint_object (
45
- clearerr_unlocked
46
- SRCS
47
- clearerr_unlocked.cpp
48
- HDRS
49
- clearerr_unlocked.h
50
- DEPENDS
51
- libc.include.stdio
52
- libc.src.__support.File.file
53
- libc.src.__support.File.platform_file
54
- )
55
-
56
- add_entrypoint_object (
57
- feof
58
- SRCS
59
- feof.cpp
60
- HDRS
61
- feof.h
62
- DEPENDS
63
- libc.include.stdio
64
- libc.src.__support.File.file
65
- libc.src.__support.File.platform_file
66
- )
67
-
68
- add_entrypoint_object (
69
- feof_unlocked
70
- SRCS
71
- feof_unlocked.cpp
72
- HDRS
73
- feof_unlocked.h
74
- DEPENDS
75
- libc.include.stdio
76
- libc.src.__support.File.file
77
- libc.src.__support.File.platform_file
78
- )
79
-
80
- add_entrypoint_object (
81
- ferror
82
- SRCS
83
- ferror.cpp
84
- HDRS
85
- ferror.h
86
- DEPENDS
87
- libc.include.stdio
88
- libc.src.__support.File.file
89
- libc.src.__support.File.platform_file
90
- )
91
-
92
- add_entrypoint_object (
93
- ferror_unlocked
94
- SRCS
95
- ferror_unlocked.cpp
96
- HDRS
97
- ferror_unlocked.h
98
- DEPENDS
99
- libc.include.stdio
100
- libc.src.__support.File.file
101
- libc.src.__support.File.platform_file
102
- )
103
-
104
- add_entrypoint_object (
105
- fgetc
106
- SRCS
107
- fgetc.cpp
108
- HDRS
109
- fgetc.h
110
- DEPENDS
111
- libc.src.errno.errno
112
- libc.include.stdio
113
- libc.src.__support.File.file
114
- libc.src.__support.File.platform_file
115
- )
116
-
117
- add_entrypoint_object (
118
- fgetc_unlocked
119
- SRCS
120
- fgetc_unlocked.cpp
121
- HDRS
122
- fgetc_unlocked.h
123
- DEPENDS
124
- libc.src.errno.errno
125
- libc.include.stdio
126
- libc.src.__support.File.file
127
- libc.src.__support.File.platform_file
128
- )
129
-
130
- add_entrypoint_object (
131
- getc
132
- SRCS
133
- getc.cpp
134
- HDRS
135
- getc.h
136
- DEPENDS
137
- libc.src.errno.errno
138
- libc.include.stdio
139
- libc.src.__support.File.file
140
- libc.src.__support.File.platform_file
141
- )
142
-
143
- add_entrypoint_object (
144
- getc_unlocked
145
- SRCS
146
- getc_unlocked.cpp
147
- HDRS
148
- getc_unlocked.h
149
- DEPENDS
150
- libc.src.errno.errno
151
- libc.include.stdio
152
- libc.src.__support.File.file
153
- libc.src.__support.File.platform_file
154
- )
155
-
156
- add_entrypoint_object (
157
- getchar
158
- SRCS
159
- getchar.cpp
160
- HDRS
161
- getchar.h
162
- DEPENDS
163
- libc.src.errno.errno
164
- libc.include.stdio
165
- libc.src.__support.File.file
166
- libc.src.__support.File.platform_file
167
- )
168
-
169
- add_entrypoint_object (
170
- getchar_unlocked
171
- SRCS
172
- getc_unlocked.cpp
173
- HDRS
174
- getc_unlocked.h
175
- DEPENDS
176
- libc.src.errno.errno
177
- libc.include.stdio
178
- libc.src.__support.File.file
179
- libc.src.__support.File.platform_file
180
- )
181
-
182
- add_entrypoint_object (
183
- fgets
184
- SRCS
185
- fgets.cpp
186
- HDRS
187
- fgets.h
188
- DEPENDS
189
- libc.src.errno.errno
190
- libc.include.stdio
191
- libc.src.__support.File.file
192
- libc.src.__support.File.platform_file
193
- )
194
-
195
32
add_entrypoint_object (
196
33
fflush
197
34
SRCS
@@ -470,6 +307,9 @@ add_entrypoint_object(
470
307
)
471
308
472
309
# These entrypoints have multiple potential implementations.
310
+ add_stdio_entrypoint_object (feof )
311
+ add_stdio_entrypoint_object (ferror )
312
+ add_stdio_entrypoint_object (clearerr )
473
313
add_stdio_entrypoint_object (fopen )
474
314
add_stdio_entrypoint_object (fclose )
475
315
add_stdio_entrypoint_object (fread_unlocked )
@@ -481,6 +321,13 @@ add_stdio_entrypoint_object(fwrite)
481
321
add_stdio_entrypoint_object (fputc )
482
322
add_stdio_entrypoint_object (putc )
483
323
add_stdio_entrypoint_object (putchar )
324
+ add_stdio_entrypoint_object (fgetc )
325
+ add_stdio_entrypoint_object (fgetc_unlocked )
326
+ add_stdio_entrypoint_object (getc )
327
+ add_stdio_entrypoint_object (getc_unlocked )
328
+ add_stdio_entrypoint_object (getchar )
329
+ add_stdio_entrypoint_object (getchar_unlocked )
330
+ add_stdio_entrypoint_object (fgets )
484
331
add_stdio_entrypoint_object (stdin )
485
332
add_stdio_entrypoint_object (stdout )
486
333
add_stdio_entrypoint_object (stderr )
0 commit comments