summaryrefslogtreecommitdiff
path: root/glcpp-parse.y
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-05-25 15:04:32 -0700
committerCarl Worth <cworth@cworth.org>2010-05-25 15:04:32 -0700
commit9fb8b7a495c9dc6f9a62cf82300fae5925af92fc (patch)
tree622648ad7c965b94608a2f4d6d05dfb9963e348f /glcpp-parse.y
parent808401fd79eea9fa2c965f9f235a753c0cb0d920 (diff)
Make the lexer pass whitespace through (as OTHER tokens) for text lines.
With this change, we can recreate the original text-line input exactly. Previously we were inserting a space between every pair of tokens so our output had a lot more whitespace than our input. With this change, we can drop the "-b" option to diff and match the input exactly.
Diffstat (limited to 'glcpp-parse.y')
-rw-r--r--glcpp-parse.y2
1 files changed, 0 insertions, 2 deletions
diff --git a/glcpp-parse.y b/glcpp-parse.y
index 991b8a0..957421b 100644
--- a/glcpp-parse.y
+++ b/glcpp-parse.y
@@ -517,8 +517,6 @@ _token_list_print (token_list_t *list)
for (node = list->head; node; node = node->next) {
_token_print (node->token);
- if (node->next)
- printf (" ");
}
}