bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] verify: adjust formatting to be more consistent


From: Jim Meyering
Subject: [PATCH] verify: adjust formatting to be more consistent
Date: Sun, 09 May 2010 12:05:04 +0200

No semantic change...

>From 212eef100b6b884c59fc512363b1234118fbc1e1 Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 9 May 2010 12:02:14 +0200
Subject: [PATCH] verify: adjust formatting to be more consistent

* lib/verify.h (_GL_GENSYM): Add a space before each of a few
argument-list '('s, and after one comma.
---
 ChangeLog    |    6 ++++++
 lib/verify.h |    6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 093e6ba..ca5dc36 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-05-09  Jim Meyering  <address@hidden>
+
+       verify: adjust formatting to be more consistent
+       * lib/verify.h (_GL_GENSYM): Add a space before each of a few
+       argument-list '('s, and after one comma.
+
 2010-05-09  Bruno Haible  <address@hidden>

        error: More reliable output on mingw.
diff --git a/lib/verify.h b/lib/verify.h
index a0849a8..4ad780c 100644
--- a/lib/verify.h
+++ b/lib/verify.h
@@ -71,7 +71,7 @@

        #define _GL_CONCAT0(x, y) x##y
        #define _GL_CONCAT(x, y) _GL_CONCAT0 (x, y)
-       extern struct {...} * _GL_CONCAT(dummy,__LINE__);
+       extern struct {...} * _GL_CONCAT (dummy, __LINE__);

      But this has the problem that two invocations of verify from
      within the same macro would collide, since the __LINE__ value
@@ -138,7 +138,7 @@

 /* Generate a symbol with the given prefix, making it unique if
    possible.  */
-# define _GL_GENSYM(prefix) _GL_CONCAT(prefix, _GL_COUNTER)
+# define _GL_GENSYM(prefix) _GL_CONCAT (prefix, _GL_COUNTER)

 /* Verify requirement R at compile-time, as an integer constant expression.
    Return 1.  */
@@ -158,6 +158,6 @@ template <int w>
    trailing ';'.  */

 # define verify(R) \
-    extern int (* _GL_GENSYM(verify_function) (void)) [verify_true (R)]
+    extern int (* _GL_GENSYM (verify_function) (void)) [verify_true (R)]

 #endif
--
1.7.1.166.gf2086




reply via email to

[Prev in Thread] Current Thread [Next in Thread]