C-23とは何? わかりやすく解説 Weblio辞書 (original) (raw)

C言語 > C23 (C言語)

原文と比べた結果、この記事には多数の(または内容の大部分に影響ある)誤訳があることが判明しています。情報の利用には注意してください。 正確な表現に改訳できる方を求めています。 (2024年11月)

C23ISO/IEC 9899:2024)とは、C言語の現在のオープン標準であり、C17(英語版)(ISO/IEC 9899:2018)の後継規格である[1]。2016年にC2xとして非公式に策定が開始され[2]、2024年10月31日に発行された[3]。発行された規格に最も近い自由に入手できる草案はN3220である(<#利用可能な文書>を参照)[4]。C2x草案の最初のWG14会議は2019年10月に開催され[5]新型コロナウイルス感染症の世界的流行によって2020年は仮想リモート会議として開催され、その後、2024年まで様々な遠隔会議が継続的に開催された。

C23では、__STDC_VERSION__の値が201710Lから202311Lに変更される。一般名の「C17」や「C23」はISO規格識別子の年(9899:2018と9899:2024)ではなく、規格発行前に固定されるこれらの値を反映している。

機能

C23の最新の作業草案に統合された変更点は以下の通りである[6]

標準ライブラリ

新規関数

利用可能な文書

C17などの他のC言語の標準規格と同様に、C23のISOの公式規格書は自由に入手することはできない。
C23の仕様が確定する前の最後の作業草案は2023年4月1日付のN3096である[6]。この草案の後の数カ月間、2023年7日9日付の作業草案N3149と2024年2月22日付の公式標準草案N3219が作成されるまでに数百の変更[71]が行われた[71][72]。これら以降の草案は非公開である[71][72]
標準草案N3219が発表されたのと同日、新たな作業草案N3220[4]が公開された。この草案は公式には将来のC言語の標準である「C2Y」の草案であると説明[72]されているが、付随する「編集者レポート」では、N3219との違いは付録Kの1つの脚注の修正だけであると明記されている[72]

参考文献

脚注

  1. ^History of C”. cppreference.com (2022年6月27日). October 19, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  2. ^WG14-N2086: C2x Charter”. open-std.org (2016年9月20日). December 22, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  3. ^ISO/IEC PRF 9899”. iso.org. September 19, 2024時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  4. ^ a bISO/IEC 9899:2024 (en) — N3220 working draft”. open-std.org (2024年2月22日). 2024年11月10日閲覧。
  5. ^WG14-N2437: Agenda for October 2019”. open-std.org (2019年10月21日). March 5, 2021時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  6. ^ a bWG14-N3096: Draft for ISO/IEC 9899:2024”. open-std.org (April 1, 2023). April 2, 2023時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  7. ^WG14-N2897: memset_explicit()”. open-std.org (2021年12月27日). October 25, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  8. ^WG14-N2349: Toward more efficient string copying and concatenation”. open-std.org (2019年3月18日). September 30, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  9. ^WG14-N2353: strdup() and strndup()”. open-std.org (2019年3月18日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  10. ^WG14-N2974: Queryable pointer alignment”. open-std.org (2022年4月15日). October 13, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  11. ^ a b c d e f g h i j kWG14-N3022: Modern Bit Utilities”. open-std.org (2022年7月6日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  12. ^WG14-N2833: Add timegm() as non-optional part of time.h”. open-std.org (2021年10月7日). December 1, 2021時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  13. ^ See N3096 § B.11 for a useful overview. The functions were added in separate documents: N2488, its updated versions, and its refs.
  14. ^ a b cWG14-N2630: formatted input/output of binary integer numbers”. open-std.org (2021年1月1日). December 14, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  15. ^WG14-N3020: Qualifier-preserving standard library functions”. open-std.org (2022年6月13日). October 13, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  16. ^ a bWG14-N2645: Add support for preprocessing directives #elifdef and #elifndef”. open-std.org (2020年1月25日). November 28, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  17. ^GCC 12 Adds Support For New #elifdef #elifndef Directives”. phoronix (May 12, 2021). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  18. ^WG14-N3017: #embed - a scannable, tooling-friendly binary resource inclusion mechanism”. open-std.org (2022年6月27日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  19. ^WG14-N2686: #warning”. open-std.org (2022年7月22日). November 28, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  20. ^WG14-N2799: __has_include for C”. open-std.org (2021年8月30日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  21. ^WG14-N2553: Querying attribute support”. open-std.org (2020年8月4日). October 14, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  22. ^WG14-N3033: Comma omission and comma deletion”. open-std.org (2022年7月20日). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  23. ^ a bWR14-N3042: Introduce the nullptr constant”. open-std.org (2022年7月22日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  24. ^WG14-N2763: Adding a Fundamental Type for N-bit integers”. open-std.org (2021年6月21日). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  25. ^WG14-N3035: _BitInt Fixes”. open-std.org (2022年7月21日). October 13, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  26. ^WG14-N2867: Checked N-Bit Integers”. open-std.org (2021年11月28日). December 14, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  27. ^WG14-N2778: Variably-Modified Types”. open-std.org (2021年7月11日). December 22, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  28. ^WG14-N2607: Compatibility of Pointers to Arrays with Qualifiers”. open-std.org (2020年10月31日). October 13, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  29. ^WG14-N2899: Not-so-magic - typeof for C”. open-std.org (2022年1月21日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  30. ^WG14-N3007: Type inference for object definitions”. open-std.org (2022年6月10日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  31. ^WG14-N3037: Improved Rules for Tag Compatibility (updates N3032)”. 2024年11月10日閲覧。
  32. ^C23 is Finished: Here is What is on the Menu” (英語). The Pasture (31 July 2022). 2024年11月10日閲覧。
  33. ^WG14-N2775: Literal suffixes for bit-precise integers”. open-std.org (2021年7月13日). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  34. ^WG14-N2549: Allow for binary integer constants”. open-std.org (2020年7月30日). December 22, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  35. ^WG14-N2626: Digit separators”. open-std.org (2020年12月15日). December 19, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  36. ^WG14-N3030: Enhancements to Enumerations”. open-std.org (2022年7月19日). November 26, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  37. ^WG14-N3029: Improved Normal Enumerations”. open-std.org (2022年7月19日). January 29, 2023時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  38. ^WG14-N2935: Make false and true first-class language features”. open-std.org (2022年2月15日). November 21, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  39. ^WG14-N2934: Revise spelling of keywords”. open-std.org (2022年2月15日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  40. ^WG14-N2508: Free Positioning of Labels Inside Compound Statements”. open-std.org (2020年3月28日). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  41. ^WG14-N2510: Allowing unnamed parameters in a function definition”. open-std.org (2020年4月9日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  42. ^WG14-N2900: Consistent, Warningless, and Intuitive Initialization with {}”. open-std.org (2022年1月1日). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  43. ^WG14-N2975: Relax requirements for variadic parameter lists”. open-std.org (2022年4月15日). November 28, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  44. ^WG14-N2335: Attributes in C”. open-std.org (2019年3月9日). October 26, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  45. ^ a bUnsequenced functions”. open-std.org. 2024年7月18日閲覧。
  46. ^WG14-N2265: Harmonizing static_assert with C++”. open-std.org (2018年7月6日). March 28, 2023時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  47. ^Labels at the end of compound statements (C compatibility)” (2022年1月13日). 2024年11月10日閲覧。
  48. ^WG14-N2334: The deprecated attribute”. open-std.org (2019年1月22日). October 19, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  49. ^WG14-N2408: The fallthrough attribute”. open-std.org (2019年8月11日). December 25, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  50. ^WG14-N2270: The maybe_unused attribute”. open-std.org (2018年7月6日). December 25, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  51. ^WG14-N2267: The nodiscard attribute”. open-std.org (2018年7月6日). October 19, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  52. ^WG14-N2554: Minor attribute wording cleanups”. open-std.org (2020年8月4日). November 28, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  53. ^WG14-N2764: The noreturn attribute”. open-std.org (2021年6月21日). December 25, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  54. ^WG14-N2557: Allow Duplicate Attributes”. open-std.org (2020年9月1日). November 28, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  55. ^WG14-N2418: Adding the u8 character prefix”. open-std.org (2019年9月2日). January 13, 2023時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  56. ^What is the point of the UTF-8 character literals proposed for C++17?” (英語). Stack Overflow. 2024年11月10日閲覧。
  57. ^WG14-N2341: ISO/IEC TS 18661-2 - Floating-point extensions for C - Part 2: Decimal floating-point arithmetic”. open-std.org (February 26, 2019). November 21, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  58. ^WG14-N2601: Annex X - IEC 60559 interchange and extended types”. open-std.org (October 15, 2020). October 14, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  59. ^WG14-N3018: The constexpr specifier for object definitions”. open-std.org (2022年7月6日). December 24, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  60. ^WG14-N2653: char8_t: A type for UTF-8 characters and strings (Revision 1)”. open-std.org (2021年6月4日). May 27, 2023時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  61. ^WG14-N2728: char16_t & char32_t string literals shall be UTF-16 & UTF-32”. open-std.org (2021年5月15日). May 27, 2023時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  62. ^WG14-N3038: Introduce storage-class specifiers for compound literals”. open-std.org (2022年7月21日). November 26, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  63. ^WG14-N2940: Removing trigraphs??!”. open-std.org (2022年3月2日). October 26, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  64. ^WG14-N2432: Remove support for function definitions with identifier lists proposal”. open-std.org (September 25, 2019). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  65. ^WG14-N2841: No function declarators without prototypes”. open-std.org (2021年10月10日). November 12, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  66. ^WG14-N2412: Two's complement sign representation”. open-std.org (August 11, 2019). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  67. ^WG14-N2993: Make *_HAS_SUBNORM be obsolescent”. open-std.org (2022年6月6日). December 5, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  68. ^GCC 9 Release Notes”. GNU Project. December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  69. ^Clang 9.0 - add new language mode for C2x”. LLVM Project Repository (May 14, 2019). December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  70. ^Pelles C - major changes between 10.00 and 11.00”. smorgasbordet.com. December 27, 2022時点のオリジナルよりアーカイブ。2024年11月10日閲覧。
  71. ^ a b cN3150 - Editor's Report, Post January-February 2023 Meeting”. open-std.org (2023年7月8日). 2024年11月10日閲覧。
  72. ^ a b c d eN3221 - Editor's Report, Post January 2024 Meeting”. open-std.org (2024年2月15日). 2024年11月10日閲覧。

関連項目

外部リンク