Skip to content

P2338R4 Freestanding Library: Character primitives and the C library #6356

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
Jul 21, 2023

Conversation

jensmaurer
Copy link
Member

  • sort table [tab:headers.cpp.fs] by section number

Fixes #6298
Fixes cplusplus/papers#1017

@jensmaurer jensmaurer added this to the post-2023-06 milestone Jun 27, 2023
Copy link
Contributor

@JohelEGP JohelEGP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The application of the following instruction is missing:

Please add the following feature test macros to [version.syn]:

Note that such application introduces merge conflicts with #6355, as pointed out:

This paper also assumes that LWG3753 and P2198 have been accepted and applied.

@jensmaurer jensmaurer force-pushed the motions-2023-06-lwg-12 branch from bd3e4d1 to e19ea42 Compare June 27, 2023 14:15
size_t strspn(const char* s1, const char* s2); // freestanding
const char* strstr(const char* s1, const char* s2); // freestanding; see \ref{library.c}
char* strstr(char* s1, const char* s2); // freestanding; see \ref{library.c}
char* strtok(char* s1, const char* s2); // freestanding
Copy link
Contributor

@frederick-vs-ja frederick-vs-ja Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strtok is now removed from freestanding library contents of C23 (see this documentation). Perhaps we need an LWG issue to strike strtok and wcstok.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being handled by a future paper.

Editorial notes:
- sort table [tab:headers.cpp.fs] by section number
@tkoeppe tkoeppe force-pushed the motions-2023-06-lwg-12 branch from e19ea42 to 9eaf064 Compare July 21, 2023 01:29
@tkoeppe tkoeppe merged commit b2cc526 into main Jul 21, 2023
@jensmaurer jensmaurer deleted the motions-2023-06-lwg-12 branch November 12, 2023 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants