View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001921 | 1003.1(2024)/Issue8 | Shell and Utilities | public | 2025-04-29 05:57 | 2025-05-01 16:06 |
Reporter | dannyniu | Assigned To | |||
Priority | normal | Severity | Editorial | Type | Enhancement Request |
Status | Closed | Resolution | Future Enhancement | ||
Name | DannyNiu/NJF | ||||
Organization | Individual | ||||
User Reference | |||||
Section | C17, or C2* for whatever revision of C standard to be supported by POSIX. | ||||
Page Number | Not the current issue. | ||||
Line Number | Not the current issue. | ||||
Interp Status | --- | ||||
Final Accepted Text | |||||
Summary | 0001921: A future C compilation interface needs to support "#embed" | ||||
Description | The current version of the standard (Issue8/SUSv5/POSIX-2024) specifies the C compiler named "c17", which is a minor revision of "c11" that contains only editorials and clarifications and no normative changes. The current version of the C standard - C23 supports the "#embed" preprocessing directive that explodes the content of a file into the source code in the form of comma-separated list of byte values; C23 also specifies that a mechanism similar to but distinct from that for the "include" mechanism be used for searching embed files. | ||||
Desired Action | This text is taken from GCC manual. It's a multi-character directive, if standard developer desire a single-letter directive, this may be changed: <dl> <dt>--embed-dir=dir</dt> <dd> Append dir directory to the list of searched directories for #embed preprocessing directive or __has_embed macro. There are no default directories for #embed. ... </dd> | ||||
Tags | No tags attached. |
|
We can't add this feature as a requirement in the c17 utility since this feature is not required by the 2017 C Standard. When we start work on the next revision we will align POSIX with the C Standard that is current at that time. Since the 2023 version of the standard contains this feature, it is already on the agenda for the next revision. Therefore, this bug is closed. |
Date Modified | Username | Field | Change |
---|---|---|---|
2025-04-29 05:57 | dannyniu | New Issue | |
2025-05-01 16:05 | Don Cragun | Note Added: 0007169 | |
2025-05-01 16:06 | Don Cragun | Status | New => Closed |
2025-05-01 16:06 | Don Cragun | Resolution | Open => Future Enhancement |
2025-05-01 16:06 | Don Cragun | Interp Status | => --- |