From: <ol...@us...> - 2011-06-03 13:24:34
|
Revision: 12730 http://swig.svn.sourceforge.net/swig/?rev=12730&view=rev Author: olly Date: 2011-06-03 13:24:28 +0000 (Fri, 03 Jun 2011) Log Message: ----------- Fix typo and a few indentation inconsistencies Modified Paths: -------------- trunk/Source/CParse/parser.y Modified: trunk/Source/CParse/parser.y =================================================================== --- trunk/Source/CParse/parser.y 2011-06-03 13:13:44 UTC (rev 12729) +++ trunk/Source/CParse/parser.y 2011-06-03 13:24:28 UTC (rev 12730) @@ -5024,7 +5024,7 @@ $$.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 @@ 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 @@ } ; -rawtype : type_qualifier type_right { +rawtype : type_qualifier type_right { $$ = $2; SwigType_push($$,$1); } @@ -5400,7 +5400,7 @@ 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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |