Fix typo and a few indentation inconsistencies

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2011-06-03 13:24:28 +00:00
commit f9ec0e8f06

View file

@ -5024,7 +5024,7 @@ notso_direct_declarator : idcolon {
$$.have_parms = 0; $$.have_parms = 0;
} }
/* This generate a shift-reduce conflict with constructors */ /* This generates a shift-reduce conflict with constructors */
| LPAREN idcolon RPAREN { | LPAREN idcolon RPAREN {
$$.id = Char($2); $$.id = Char($2);
$$.type = 0; $$.type = 0;
@ -5335,26 +5335,26 @@ direct_abstract_declarator : direct_abstract_declarator LBRACKET RBRACKET {
pointer : STAR type_qualifier pointer { pointer : STAR type_qualifier pointer {
$$ = NewStringEmpty(); $$ = NewStringEmpty();
SwigType_add_pointer($$); SwigType_add_pointer($$);
SwigType_push($$,$2); SwigType_push($$,$2);
SwigType_push($$,$3); SwigType_push($$,$3);
Delete($3); Delete($3);
} }
| STAR pointer { | STAR pointer {
$$ = NewStringEmpty(); $$ = NewStringEmpty();
SwigType_add_pointer($$); SwigType_add_pointer($$);
SwigType_push($$,$2); SwigType_push($$,$2);
Delete($2); Delete($2);
} }
| STAR type_qualifier { | STAR type_qualifier {
$$ = NewStringEmpty(); $$ = NewStringEmpty();
SwigType_add_pointer($$); SwigType_add_pointer($$);
SwigType_push($$,$2); SwigType_push($$,$2);
} }
| STAR { | STAR {
$$ = NewStringEmpty(); $$ = NewStringEmpty();
SwigType_add_pointer($$); SwigType_add_pointer($$);
} }
; ;
@ -5382,7 +5382,7 @@ type : rawtype {
} }
; ;
rawtype : type_qualifier type_right { rawtype : type_qualifier type_right {
$$ = $2; $$ = $2;
SwigType_push($$,$1); SwigType_push($$,$1);
} }
@ -5400,7 +5400,7 @@ rawtype : type_qualifier type_right {
type_right : primitive_type { $$ = $1; type_right : primitive_type { $$ = $1;
/* Printf(stdout,"primitive = '%s'\n", $$);*/ /* Printf(stdout,"primitive = '%s'\n", $$);*/
} }
| TYPE_BOOL { $$ = $1; } | TYPE_BOOL { $$ = $1; }
| TYPE_VOID { $$ = $1; } | TYPE_VOID { $$ = $1; }
| TYPE_TYPEDEF template_decl { $$ = NewStringf("%s%s",$1,$2); } | TYPE_TYPEDEF template_decl { $$ = NewStringf("%s%s",$1,$2); }