summaryrefslogtreecommitdiffabout
path: root/src
authorSergey Poznyakoff <gray@gnu.org.ua>2011-10-09 21:29:22 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-10-09 21:29:22 (GMT)
commitca94bd309cb7dc9d33e4c06d95b6fc44714ffe9d (patch) (side-by-side diff)
treedc5e36de0666ee90fc9a559198e20aec2aad6d66 /src
parenta43d8894bc5bed439265dd3984898c22c8df857b (diff)
downloadcflow-ca94bd309cb7dc9d33e4c06d95b6fc44714ffe9d.tar.gz
cflow-ca94bd309cb7dc9d33e4c06d95b6fc44714ffe9d.tar.bz2
Complement a43d8894.
* src/parser.c (save_token): Hanlde [ and ]. Do not enforce space after ). * tests/fdecl.at: Reflect changes in spacing. * tests/knr.at: Likewise. * tests/multi.at: Likewise. * tests/pwrapper.at: Likewise. * tests/struct00.at: Likewise. * tests/struct01.at: Likewise.
Diffstat (limited to 'src') (more/less context) (ignore whitespace changes)
-rw-r--r--src/parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.c b/src/parser.c
index 0b524fc..ae3c75b 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -249,8 +249,10 @@ save_token(TOKSTK *tokptr)
need_space = 0;
break;
case ')':
+ case '[':
+ case ']':
obstack_1grow(&text_stk, tokptr->type);
- need_space = 1;
+ need_space = 0;
break;
default:
if (verbose)

Return to:

Send suggestions and report system problems to the System administrator.