public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* #pragma once usage
@ 2021-02-26 19:10 Adhemerval Zanella
  2021-02-26 21:09 ` Zack Weinberg
  0 siblings, 1 reply; 2+ messages in thread
From: Adhemerval Zanella @ 2021-02-26 19:10 UTC (permalink / raw)
  To: GNU C Library, Vivek Das Mohapatra

Reviewing the dlmopen shared patchset, it propose the use of '#pragma once' on
some tests header instead of include guards. I don't see an impending reason to
not use it, however I would like to check if there any issue I am not seeing.

Besides being non standard features, it also does not really fit our requirement
for exported headers, which usually add other headers and these check the include 
guards from 'parent' to emit an error if the these internal headers are included
directly.

However, I don't see why we can't start to use on glibc code itself (including
tests), at least to simplify some internal guards.  I haven't tested it, specially
on some headers that might be used on preprocessor mode to create constants by 
some scripts.

Is there any other issues that might prevent its internal usage?

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-26 21:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-26 19:10 #pragma once usage Adhemerval Zanella
2021-02-26 21:09 ` Zack Weinberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).