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:
parent
b0ffa0b48f
commit
f9ec0e8f06
1 changed files with 14 additions and 14 deletions
|
|
@ -5024,7 +5024,7 @@ notso_direct_declarator : idcolon {
|
|||
$$.have_parms = 0;
|
||||
}
|
||||
|
||||
/* This generate a shift-reduce conflict with constructors */
|
||||
/* This generates a shift-reduce conflict with constructors */
|
||||
| LPAREN idcolon RPAREN {
|
||||
$$.id = Char($2);
|
||||
$$.type = 0;
|
||||
|
|
@ -5335,26 +5335,26 @@ direct_abstract_declarator : direct_abstract_declarator LBRACKET RBRACKET {
|
|||
|
||||
|
||||
pointer : STAR type_qualifier pointer {
|
||||
$$ = NewStringEmpty();
|
||||
SwigType_add_pointer($$);
|
||||
SwigType_push($$,$2);
|
||||
SwigType_push($$,$3);
|
||||
Delete($3);
|
||||
$$ = NewStringEmpty();
|
||||
SwigType_add_pointer($$);
|
||||
SwigType_push($$,$2);
|
||||
SwigType_push($$,$3);
|
||||
Delete($3);
|
||||
}
|
||||
| STAR pointer {
|
||||
$$ = NewStringEmpty();
|
||||
SwigType_add_pointer($$);
|
||||
SwigType_push($$,$2);
|
||||
Delete($2);
|
||||
}
|
||||
}
|
||||
| STAR type_qualifier {
|
||||
$$ = NewStringEmpty();
|
||||
SwigType_add_pointer($$);
|
||||
SwigType_push($$,$2);
|
||||
$$ = NewStringEmpty();
|
||||
SwigType_add_pointer($$);
|
||||
SwigType_push($$,$2);
|
||||
}
|
||||
| STAR {
|
||||
$$ = NewStringEmpty();
|
||||
SwigType_add_pointer($$);
|
||||
$$ = NewStringEmpty();
|
||||
SwigType_add_pointer($$);
|
||||
}
|
||||
;
|
||||
|
||||
|
|
@ -5382,7 +5382,7 @@ type : rawtype {
|
|||
}
|
||||
;
|
||||
|
||||
rawtype : type_qualifier type_right {
|
||||
rawtype : type_qualifier type_right {
|
||||
$$ = $2;
|
||||
SwigType_push($$,$1);
|
||||
}
|
||||
|
|
@ -5400,7 +5400,7 @@ rawtype : type_qualifier type_right {
|
|||
|
||||
type_right : primitive_type { $$ = $1;
|
||||
/* Printf(stdout,"primitive = '%s'\n", $$);*/
|
||||
}
|
||||
}
|
||||
| TYPE_BOOL { $$ = $1; }
|
||||
| TYPE_VOID { $$ = $1; }
|
||||
| TYPE_TYPEDEF template_decl { $$ = NewStringf("%s%s",$1,$2); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue