Skip to content

Commit f8e8c8c

Browse files
committed
add TODOs in function implementations.
1 parent 859fc63 commit f8e8c8c

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

libc/src/nl_types/catclose.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
namespace LIBC_NAMESPACE_DECL {
1515

1616
LLVM_LIBC_FUNCTION(int, catclose, ([[maybe_unused]] nl_catd catalog)) {
17-
// Message catalogs are not implemented. Return error regardless of input.
17+
// TODO: Add implementation for message catalogs. For now, return error
18+
// regardless of input.
1819
return -1;
1920
}
2021

libc/src/nl_types/catgets.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ LLVM_LIBC_FUNCTION(char *, catgets,
1717
([[maybe_unused]] nl_catd catalog,
1818
[[maybe_unused]] int set_number,
1919
[[maybe_unused]] int message_number, const char *message)) {
20-
// Message catalogs are not implemented.
21-
// Return backup message regardless of input.
20+
// TODO: Add implementation for message catalogs. For now, return backup
21+
// message regardless of input.
2222
return const_cast<char *>(message);
2323
}
2424

libc/src/nl_types/catopen.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ namespace LIBC_NAMESPACE_DECL {
1717
LLVM_LIBC_FUNCTION(nl_catd, catopen,
1818
([[maybe_unused]] const char *name,
1919
[[maybe_unused]] int flag)) {
20-
// Message catalogs are not implemented. Return error regardless of input.
20+
// TODO: Add implementation for message catalogs. For now, return error
21+
// regardless of input.
2122
libc_errno = EINVAL;
2223
return reinterpret_cast<nl_catd>(-1);
2324
}

0 commit comments

Comments
 (0)