Skip to content

[libc] Fix leftover LIBC_NAMESPACE after porting it #113960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions libc/src/math/cbrt.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
#ifndef LLVM_LIBC_SRC_MATH_CBRT_H
#define LLVM_LIBC_SRC_MATH_CBRT_H

namespace LIBC_NAMESPACE {
#include "src/__support/macros/config.h"

namespace LIBC_NAMESPACE_DECL {

double cbrt(double x);

} // namespace LIBC_NAMESPACE
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SRC_MATH_CBRT_H
4 changes: 2 additions & 2 deletions libc/src/stdio/gpu/fprintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

#include <stdarg.h>

namespace LIBC_NAMESPACE {
namespace LIBC_NAMESPACE_DECL {

LLVM_LIBC_FUNCTION(int, fprintf,
(::FILE *__restrict stream, const char *__restrict format,
Expand All @@ -29,4 +29,4 @@ LLVM_LIBC_FUNCTION(int, fprintf,
return ret_val;
}

} // namespace LIBC_NAMESPACE
} // namespace LIBC_NAMESPACE_DECL
4 changes: 2 additions & 2 deletions libc/src/stdio/gpu/printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

#include <stdarg.h>

namespace LIBC_NAMESPACE {
namespace LIBC_NAMESPACE_DECL {

LLVM_LIBC_FUNCTION(int, printf, (const char *__restrict format, ...)) {
va_list vlist;
Expand All @@ -26,4 +26,4 @@ LLVM_LIBC_FUNCTION(int, printf, (const char *__restrict format, ...)) {
return ret_val;
}

} // namespace LIBC_NAMESPACE
} // namespace LIBC_NAMESPACE_DECL
4 changes: 2 additions & 2 deletions libc/src/stdio/gpu/vfprintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "src/errno/libc_errno.h"
#include "src/stdio/gpu/vfprintf_utils.h"

namespace LIBC_NAMESPACE {
namespace LIBC_NAMESPACE_DECL {

LLVM_LIBC_FUNCTION(int, vfprintf,
(::FILE *__restrict stream, const char *__restrict format,
Expand All @@ -24,4 +24,4 @@ LLVM_LIBC_FUNCTION(int, vfprintf,
return ret_val;
}

} // namespace LIBC_NAMESPACE
} // namespace LIBC_NAMESPACE_DECL
5 changes: 3 additions & 2 deletions libc/src/stdio/gpu/vfprintf_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
#include "hdr/types/FILE.h"
#include "src/__support/RPC/rpc_client.h"
#include "src/__support/arg_list.h"
#include "src/__support/macros/config.h"
#include "src/stdio/gpu/file.h"
#include "src/string/string_utils.h"

namespace LIBC_NAMESPACE {
namespace LIBC_NAMESPACE_DECL {

template <uint16_t opcode>
LIBC_INLINE int vfprintf_impl(::FILE *__restrict file,
Expand Down Expand Up @@ -82,4 +83,4 @@ LIBC_INLINE int vfprintf_internal(::FILE *__restrict stream,
#endif
}

} // namespace LIBC_NAMESPACE
} // namespace LIBC_NAMESPACE_DECL
4 changes: 2 additions & 2 deletions libc/src/stdio/gpu/vprintf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "src/errno/libc_errno.h"
#include "src/stdio/gpu/vfprintf_utils.h"

namespace LIBC_NAMESPACE {
namespace LIBC_NAMESPACE_DECL {

LLVM_LIBC_FUNCTION(int, vprintf,
(const char *__restrict format, va_list vlist)) {
Expand All @@ -22,4 +22,4 @@ LLVM_LIBC_FUNCTION(int, vprintf,
return ret_val;
}

} // namespace LIBC_NAMESPACE
} // namespace LIBC_NAMESPACE_DECL
6 changes: 4 additions & 2 deletions libc/src/stdio/vsscanf.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
#ifndef LLVM_LIBC_SRC_STDIO_VSSCANF_H
#define LLVM_LIBC_SRC_STDIO_VSSCANF_H

#include "src/__support/macros/config.h"

#include <stdarg.h>

namespace LIBC_NAMESPACE {
namespace LIBC_NAMESPACE_DECL {

int vsscanf(const char *s, const char *format, va_list vlist);

} // namespace LIBC_NAMESPACE
} // namespace LIBC_NAMESPACE_DECL

#endif // LLVM_LIBC_SRC_STDIO_VSSCANF_H
Loading