Skip to content

Commit

Permalink
Fix typo and a few indentation inconsistencies
Browse files Browse the repository at this point in the history
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12730 626c5289-ae23-0410-ae9c-e8d60b6d4f22
  • Loading branch information
ojwb committed Jun 3, 2011
1 parent b0ffa0b commit f9ec0e8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions Source/CParse/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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($$);
}
;

Expand Down Expand Up @@ -5382,7 +5382,7 @@ type : rawtype {
}
;

rawtype : type_qualifier type_right {
rawtype : type_qualifier type_right {
$$ = $2;
SwigType_push($$,$1);
}
Expand All @@ -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); }
Expand Down

0 comments on commit f9ec0e8

Please sign in to comment.