[libc] Move b* string functions to strings.h

Traditionally these functions are exposed in string*s*.h not string.h

Differential Revision: https://reviews.llvm.org/D141237
This commit is contained in:
Alex Brachet 2023-01-09 20:16:20 +00:00
parent c6dcbed2e5
commit dc1b614bb8
3 changed files with 28 additions and 3 deletions

View File

@ -95,6 +95,15 @@ add_gen_header(
.llvm-libc-types.size_t
)
add_gen_header(
strings
DEF_FILE strings.h.def
GEN_HDR strings.h
DEPENDS
.llvm_libc_common_h
.llvm-libc-types.size_t
)
add_gen_header(
time
DEF_FILE time.h.def

View File

@ -0,0 +1,16 @@
//===-- C standard library header strings.h -------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_STRINGS_H
#define LLVM_LIBC_STRINGS_H
#include <__llvm-libc-common.h>
%%public_api()
#endif // LLVM_LIBC_STRINGS_H

View File

@ -1,6 +1,6 @@
def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> {
HeaderSpec String = HeaderSpec<
"string.h",
HeaderSpec Strings = HeaderSpec<
"strings.h",
[], // Macros
[], // Types
[], // Enumerations
@ -52,7 +52,7 @@ def LLVMLibcExt : StandardSpec<"llvm_libc_ext"> {
>;
let Headers = [
String,
Strings,
Sched,
Assert,
];