Remove "unnecessary" whitespace from some tests.
authorCarl Worth <cworth@cworth.org>
Thu, 20 May 2010 21:05:37 +0000 (14:05 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 20 May 2010 21:05:37 +0000 (14:05 -0700)
This whitespace was not part of anything being tested, and it
introduces differences (that we don't actually care about) between the
output of "gcc -E" and glcpp.

Just eliminate this extra whitespace to reduce spurious test-case
failures.

tests/015-define-object-with-parens.c
tests/016-define-func-1-arg.c
tests/020-define-func-2-arg-multi.c
tests/023-define-extra-whitespace.c
tests/032-define-func-self-recurse.c
tests/033-define-func-self-compose.c
tests/035-define-func-self-compose-non-func-multi-token-argument.c

index 10bf7e31a34126cce9c8bfbb9d216090be6d9004..558da9c617bdf8a3e2b33cb581e6a9c7c37d9a77 100644 (file)
@@ -1,4 +1,4 @@
-#define foo ( ) 1
+#define foo ()1
 foo()
-#define bar () 2
-bar( )
+#define bar ()2
+bar()
index dea38d1fedd24e9e1ffbc51b0bce8c5500994268..a2e2404c7c1e162cbb6030b7306f17d84af4ffe2 100644 (file)
@@ -1,2 +1,2 @@
-#define foo(x) ((x) + 1)
+#define foo(x) ((x)+1)
 foo(bar)
index 253421139d44abbe9cfb8375ab346cd2b213bc38..3049ad15465c804cb94be8a4a2c361c208ff6e4b 100644 (file)
@@ -1,2 +1,2 @@
-#define foo(x,y) x, two fish, red fish, y
+#define foo(x,y) x,two fish,red fish,y
 foo(one fish, blue fish)
index 375355a17d94fc84aacde95249152174aa60bf7f..7ebfed6516c6f09f11fb94945a4aa4c969ef0381 100644 (file)
@@ -3,6 +3,6 @@
  # define  twoargs( x , y ) x y 
        #       define  threeargs(      a       ,       b       ,       c       ) a b c 
 noargs ( ) 
- onearg ( 2 ) 
-       twoargs ( 3 , 4 ) 
+onearg ( 2 ) 
+twoargs ( 3 , 4 ) 
 threeargs ( 5 , 6 , 7 ) 
index 60d8526c0aaac638734223b5a657ca5eb0a97b4c..b3ac70f499c750b3a2509bfaac65a0b7dd24d550 100644 (file)
@@ -1,2 +1,2 @@
-#define foo(a) foo(2 * (a))
+#define foo(a) foo(2*(a))
 foo(3)
index 8abaaf6be950f749a49f3c95b10341668aeb8a0d..f65e48286cf9ed0cd31686e753e2359946d4083e 100644 (file)
@@ -1,2 +1,2 @@
-#define foo(a) foo(2 * (a))
+#define foo(a) foo(2*(a))
 foo(foo(3))
index 9955219470c2ec8ca87a3915591cbdbb35916eaa..c307fbe830f7200a089ffb4c67a9c5c0bc7d9b7e 100644 (file)
@@ -1,2 +1,2 @@
 #define foo(bar) bar
-foo(1 + foo)
+foo(1+foo)