On Wed, Jul 23, 2025 at 7:48 PM Evan Cooney via Gcc <gcc@gcc.gnu.org> wrote: > > Hello GNU GCC Developers, > > My name is Evan Cooney and I'm a student at the University of Missouri. I > was reading the documentation for the #ifdef preprocessor macro and I think > I found a slight typo. It is in section 4.2.1 "Ifdef", paragraph 5 (the one > that starts with "The comment following the '#endif" is not required..."), > sentence 5. It says "It never affects which ‘#ifndef’ the ‘#endif’ > matches," in reference to writing the macro being tested after the #endif > without enclosing it in a comment. It seems like #ifndef should be replaced > with #ifdef because the paragraph doesn't mention #ifndef at all. I know > this is a pedantic, but gcc is an amazing project and I would like to help > it improve.
Thanks for the notice of the typo. I pushed https://gcc.gnu.org/pipermail/gcc-patches/2025-July/690501.html for the fix of the typo. Thanks, Andrew > > Thank you for all your work on GCC and the Free Software movement, > Evan Cooney