qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] HACKING: remove bogus restrictions
@ 2012-08-28 16:01 Michael S. Tsirkin
  2012-08-28 16:07 ` Michael S. Tsirkin
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Michael S. Tsirkin @ 2012-08-28 16:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: Blue Swirl, Peter Maydell, Anthony Liguori, Stefan Hajnoczi,
	Michael S. Tsirkin

We copied HACKING from libvirt but it has some bogus stuff:
neither underscore capital, double underscore, or underscore 't' suffixes
are reserved in Posix/C: this appears to be based on misreading of the
C standard. Using sane prefixes is enough to avoid conflicts.

These rules are also widely violated in our codebase,
and it does not make sense to rework it all, apparently for
no benefit.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
 HACKING | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/HACKING b/HACKING
index 471cf1d..0a941fc 100644
--- a/HACKING
+++ b/HACKING
@@ -69,10 +69,6 @@ it points to, or it is aliased to another pointer that is.
 2.3. Typedefs
 Typedefs are used to eliminate the redundant 'struct' keyword.
 
-2.4. Reserved namespaces in C and POSIX
-Underscore capital, double underscore, and underscore 't' suffixes should be
-avoided.
-
 3. Low level memory management
 
 Use of the malloc/free/realloc/calloc/valloc/memalign/posix_memalign
-- 
MST

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

end of thread, other threads:[~2012-08-28 17:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-28 16:01 [Qemu-devel] [PATCH] HACKING: remove bogus restrictions Michael S. Tsirkin
2012-08-28 16:07 ` Michael S. Tsirkin
2012-08-28 16:24 ` Peter Maydell
2012-08-28 17:18   ` Michael S. Tsirkin
2012-08-28 17:23     ` Peter Maydell
2012-08-28 17:32       ` Michael S. Tsirkin
2012-08-28 17:46         ` Peter Maydell
2012-08-28 18:00           ` Michael S. Tsirkin
2012-08-28 17:27     ` malc
2012-08-28 17:13 ` Blue Swirl
2012-08-28 17:21   ` Michael S. Tsirkin
2012-08-28 17:25     ` Blue Swirl
2012-08-28 17:27     ` Peter Maydell
2012-08-28 17:33       ` malc
2012-08-28 17:35         ` Michael S. Tsirkin
2012-08-28 17:34       ` Michael S. Tsirkin
2012-08-28 17:33 ` Andreas Färber

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 NNTP newsgroup(s).