Jens Gustedt's Blog

Có thể bạn quan tâm

  • October 7, 2025

    Alias and references as localized macros

    Since the last meeting of the C committee I am struggling with the idea of aliases as they are proposed in a long series of papers by JeanHeyd. Transparent Aliases I am struggling with this for several reasons, but most importantly is that I have the impression that it is a heavy gun pointed on Continue reading

    C2y, eĿlipsis, preprocessor
  • September 5, 2025

    Modern C, C23 edition, now in print

    At last, the new edition is now also available in print and e-pub versions, the contents is the same as described in the previous article. Find all the details at https://gustedt.gitlabpages.inria.fr/modern-c/ Continue reading

    C23, Modern C
  • June 30, 2025

    The provenance memory model for C

    [The wordpress markdown inclusion does a very bad job, it seems, there have been some idiotic formatting errors. I hope that these are fixed, now.] Continue reading

    C17, C23, compiler optimization, Modern C
  • April 6, 2025

    Make C string literals const?

    Martin Uecker has started a new initiative to ensure a better const contract for C2y: change the type of string literals to a const-qualified base type, much as it is already the case in C++. Compilers support this since a very long time; some of them have this as default, some provide command line switches Continue reading

    C2y
  • March 29, 2025

    A diagram of C23 basic types

    This week on the C committee mailing list we had a discussion about how C’s types are organized into different categories. At the end I came up with a diagram with that organization. It basically translates the section “6.2.5 Types” of the C23 standard into a graph of inclusions. Sorry, it is probably a little Continue reading

    C23, integers
  • March 10, 2025

    Contracts for C

    C++ seems to finally converge with their contracts proposal, https://wg21.link/p2900. I decided to give it a try and come up with ideas how such a thing would look for C. This is in early stages, not a full proposal yet, and still would need implementation by some of the major compilers. In particular, the C++ Continue reading

    C2x, ellipsis, eĿlipsis, macros, preprocessor, syntax define
  • February 13, 2025

    Preprocessor meta-quotes with eĿlipsis

    The new revision of eĿlipsis (20250219) has a lot of cleanups, bugfixes etc, but one thing I’d like to emphasize is a new feature that I’d call meta-quotes in lack for a better idea of a name that implement exemption of tokens from macro replacement. So in C that would interact with translation phase 4. Continue reading

    C23, ellipsis, eĿlipsis, macros define
  • January 6, 2025

    Simple defer, ready to use

    With this post I will concentrate on the here and now: how to use C’s future lifesaving defer feature with existing tools and compilers. Continue reading

    C23, C2x, macros define
  • October 15, 2024

    The C23 edition of Modern C

    The C23 edition of Modern C is now available for free download from https://hal.inria.fr/hal-02383654 And as before a dedicated page for the book may be found at https://gustedt.gitlabpages.inria.fr/modern-c/ where you also may find a link to download the code examples that come with the book. Continue reading

    C23, integers, language, Modern C
  • September 11, 2024

    Braiding the spaghetti: implementing defer in the preprocessor

    I already talked about a proposal for an extension of the C language calleddefer, that is prospected to either be published in a technicalspecification or the next revision, C2Y, of the C standard: EĿlipsis now implements a simple form of this feature by mixing some specific preprocessor extensions (in particular counters) with the usual macro Continue reading

    C23, eĿlipsis, preprocessor
Next Page

About Me

Jens Gustedt

Modern C

Recent Posts

  • Alias and references as localized macros
  • Modern C, C23 edition, now in print
  • The provenance memory model for C
  • Make C string literals const?
  • A diagram of C23 basic types

Newsletter

Type your email…

subscribe

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Jens Gustedt's Blog
    • Join 223 other subscribers Sign me up
    • Already have a WordPress.com account? Log in now.
    • Jens Gustedt's Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
Design a site like this with WordPress.comGet started

Từ khóa » C Wg14