@@ -219,8 +219,8 @@ libc_support_library(
219
219
name = "__support_arg_list" ,
220
220
hdrs = ["src/__support/arg_list.h" ],
221
221
deps = [
222
- ":libc_root" ,
223
222
":__support_common" ,
223
+ ":libc_root" ,
224
224
],
225
225
)
226
226
@@ -231,11 +231,11 @@ libc_support_library(
231
231
"src/__support/ryu_constants.h" ,
232
232
],
233
233
deps = [
234
+ ":__support_common" ,
234
235
":__support_cpp_type_traits" ,
235
236
":__support_fputil_fp_bits" ,
236
- ":__support_uint" ,
237
237
":__support_libc_assert" ,
238
- ":__support_common " ,
238
+ ":__support_uint " ,
239
239
":libc_root" ,
240
240
],
241
241
)
@@ -306,11 +306,11 @@ libc_support_library(
306
306
name = "__support_integer_to_string" ,
307
307
hdrs = ["src/__support/integer_to_string.h" ],
308
308
deps = [
309
- ":__support_cpp_type_traits " ,
309
+ ":__support_common " ,
310
310
":__support_cpp_optional" ,
311
311
":__support_cpp_span" ,
312
312
":__support_cpp_string_view" ,
313
- ":__support_common " ,
313
+ ":__support_cpp_type_traits " ,
314
314
":libc_root" ,
315
315
],
316
316
)
@@ -319,10 +319,10 @@ libc_support_library(
319
319
name = "__support_libc_assert" ,
320
320
hdrs = ["src/__support/libc_assert.h" ],
321
321
deps = [
322
- ":__support_osutil_io" ,
323
- ":__support_osutil_quick_exit" ,
324
322
":__support_integer_to_string" ,
325
323
":__support_macros_attributes" ,
324
+ ":__support_osutil_io" ,
325
+ ":__support_osutil_quick_exit" ,
326
326
":libc_root" ,
327
327
],
328
328
)
@@ -662,8 +662,8 @@ libc_support_library(
662
662
deps = [
663
663
":__support_common" ,
664
664
":__support_osutil_syscall" ,
665
- ":string_utils" ,
666
665
":libc_root" ,
666
+ ":string_utils" ,
667
667
],
668
668
)
669
669
@@ -680,7 +680,6 @@ libc_support_library(
680
680
],
681
681
)
682
682
683
-
684
683
############################### errno targets ################################
685
684
686
685
libc_function (
@@ -2073,65 +2072,64 @@ libc_support_library(
2073
2072
],
2074
2073
)
2075
2074
2076
-
2077
2075
libc_support_library (
2078
2076
name = "printf_parser" ,
2079
- hdrs = ["src/stdio/printf_core/parser.h" ],
2080
2077
srcs = ["src/stdio/printf_core/parser.cpp" ],
2078
+ hdrs = ["src/stdio/printf_core/parser.h" ],
2081
2079
deps = [
2082
- ":printf_core_structs" ,
2083
- ":printf_config" ,
2080
+ ":__support_arg_list" ,
2081
+ ":__support_common" ,
2082
+ ":__support_cpp_bit" ,
2083
+ ":__support_cpp_optional" ,
2084
2084
":__support_cpp_string_view" ,
2085
2085
":__support_cpp_type_traits" ,
2086
- ":__support_cpp_optional" ,
2087
- ":__support_cpp_bit" ,
2088
- ":__support_fputil_fp_bits" ,
2089
- ":__support_arg_list" ,
2090
2086
":__support_ctype_utils" ,
2087
+ ":__support_fputil_fp_bits" ,
2091
2088
":__support_str_to_integer" ,
2092
- ":__support_common" ,
2093
2089
":libc_root" ,
2090
+ ":printf_config" ,
2091
+ ":printf_core_structs" ,
2094
2092
],
2095
2093
)
2096
2094
2097
2095
# Only used for testing.
2098
2096
libc_support_library (
2099
2097
name = "printf_mock_parser" ,
2100
- hdrs = ["src/stdio/printf_core/parser.h" ],
2101
2098
srcs = ["src/stdio/printf_core/parser.cpp" ],
2099
+ hdrs = ["src/stdio/printf_core/parser.h" ],
2100
+ copts = ["-DLIBC_COPT_MOCK_ARG_LIST" ],
2102
2101
deps = [
2103
- ":printf_core_structs" ,
2104
- ":printf_config" ,
2102
+ ":__support_arg_list" ,
2103
+ ":__support_common" ,
2104
+ ":__support_cpp_bit" ,
2105
+ ":__support_cpp_optional" ,
2105
2106
":__support_cpp_string_view" ,
2106
2107
":__support_cpp_type_traits" ,
2107
- ":__support_cpp_optional" ,
2108
- ":__support_cpp_bit" ,
2109
- ":__support_fputil_fp_bits" ,
2110
- ":__support_arg_list" ,
2111
2108
":__support_ctype_utils" ,
2109
+ ":__support_fputil_fp_bits" ,
2112
2110
":__support_str_to_integer" ,
2113
- ":__support_common" ,
2114
2111
":libc_root" ,
2112
+ ":printf_config" ,
2113
+ ":printf_core_structs" ,
2115
2114
],
2116
- copts = ["-DLIBC_COPT_MOCK_ARG_LIST" ],
2117
2115
)
2118
2116
2119
2117
libc_support_library (
2120
2118
name = "printf_string_writer" ,
2121
- hdrs = ["src/stdio/printf_core/string_writer.h" ],
2122
2119
srcs = ["src/stdio/printf_core/string_writer.cpp" ],
2120
+ hdrs = ["src/stdio/printf_core/string_writer.h" ],
2123
2121
deps = [
2124
2122
":__support_cpp_string_view" ,
2125
- ":string_memory_utils" ,
2126
- ":printf_core_structs" ,
2127
2123
":libc_root" ,
2124
+ ":printf_core_structs" ,
2125
+ ":string_memory_utils" ,
2128
2126
],
2129
2127
)
2130
2128
2131
2129
libc_support_library (
2132
2130
name = "printf_writer" ,
2133
- hdrs = ["src/stdio/printf_core/writer.h" ],
2134
2131
srcs = ["src/stdio/printf_core/writer.cpp" ],
2132
+ hdrs = ["src/stdio/printf_core/writer.h" ],
2135
2133
deps = [
2136
2134
":__support_cpp_string_view" ,
2137
2135
":libc_root" ,
@@ -2140,49 +2138,49 @@ libc_support_library(
2140
2138
2141
2139
libc_support_library (
2142
2140
name = "printf_converter" ,
2141
+ srcs = ["src/stdio/printf_core/converter.cpp" ],
2143
2142
hdrs = [
2143
+ "src/stdio/printf_core/char_converter.h" ,
2144
2144
"src/stdio/printf_core/converter.h" ,
2145
- "src/stdio/printf_core/converter_utils.h" ,
2146
2145
"src/stdio/printf_core/converter_atlas.h" ,
2147
- "src/stdio/printf_core/string_converter.h" ,
2148
- "src/stdio/printf_core/char_converter.h" ,
2146
+ "src/stdio/printf_core/converter_utils.h" ,
2147
+ "src/stdio/printf_core/float_dec_converter.h" ,
2148
+ "src/stdio/printf_core/float_hex_converter.h" ,
2149
+ "src/stdio/printf_core/float_inf_nan_converter.h" ,
2149
2150
"src/stdio/printf_core/int_converter.h" ,
2150
2151
"src/stdio/printf_core/ptr_converter.h" ,
2152
+ "src/stdio/printf_core/string_converter.h" ,
2151
2153
"src/stdio/printf_core/write_int_converter.h" ,
2152
- "src/stdio/printf_core/float_inf_nan_converter.h" ,
2153
- "src/stdio/printf_core/float_hex_converter.h" ,
2154
- "src/stdio/printf_core/float_dec_converter.h" ,
2155
2154
],
2156
- srcs = ["src/stdio/printf_core/converter.cpp" ],
2157
2155
deps = [
2158
- ":printf_writer" ,
2159
- ":printf_core_structs" ,
2160
- ":__support_cpp_string_view" ,
2156
+ ":__support_common" ,
2161
2157
":__support_cpp_limits" ,
2162
2158
":__support_cpp_span" ,
2163
- ":__support_fputil_fp_bits" ,
2159
+ ":__support_cpp_string_view" ,
2160
+ ":__support_float_to_string" ,
2164
2161
":__support_fputil_fenv_impl" ,
2162
+ ":__support_fputil_fp_bits" ,
2163
+ ":__support_integer_to_string" ,
2165
2164
":__support_libc_assert" ,
2166
2165
":__support_uint" ,
2167
2166
":__support_uint128" ,
2168
- ":__support_integer_to_string" ,
2169
- ":__support_float_to_string" ,
2170
- ":__support_common" ,
2171
2167
":libc_root" ,
2168
+ ":printf_core_structs" ,
2169
+ ":printf_writer" ,
2172
2170
],
2173
2171
)
2174
2172
2175
2173
libc_support_library (
2176
2174
name = "printf_main" ,
2177
- hdrs = ["src/stdio/printf_core/printf_main.h" ],
2178
2175
srcs = ["src/stdio/printf_core/printf_main.cpp" ],
2176
+ hdrs = ["src/stdio/printf_core/printf_main.h" ],
2179
2177
deps = [
2180
- ":printf_parser" ,
2181
- ":printf_converter" ,
2182
- ":printf_writer" ,
2183
- ":printf_core_structs" ,
2184
2178
":__support_arg_list" ,
2185
2179
":libc_root" ,
2180
+ ":printf_converter" ,
2181
+ ":printf_core_structs" ,
2182
+ ":printf_parser" ,
2183
+ ":printf_writer" ,
2186
2184
],
2187
2185
)
2188
2186
@@ -2192,10 +2190,10 @@ libc_function(
2192
2190
hdrs = ["src/stdio/sprintf.h" ],
2193
2191
deps = [
2194
2192
":__support_arg_list" ,
2193
+ ":errno" ,
2195
2194
":printf_main" ,
2196
2195
":printf_string_writer" ,
2197
2196
":printf_writer" ,
2198
- ":errno" ,
2199
2197
],
2200
2198
)
2201
2199
@@ -2205,9 +2203,9 @@ libc_function(
2205
2203
hdrs = ["src/stdio/snprintf.h" ],
2206
2204
deps = [
2207
2205
":__support_arg_list" ,
2206
+ ":errno" ,
2208
2207
":printf_main" ,
2209
2208
":printf_string_writer" ,
2210
2209
":printf_writer" ,
2211
- ":errno" ,
2212
2210
],
2213
2211
)
0 commit comments