File tree Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -1693,7 +1693,7 @@ static String *add_qualifier_to_declarator(SwigType *type, SwigType *qualifier)
1693
1693
%type <decl> abstract_declarator direct_abstract_declarator ctor_end ;
1694
1694
%type <tmap> typemap_type ;
1695
1695
%type <str> idcolon idcolontail idcolonnt idcolontailnt idtemplate idtemplatetemplate stringbrace stringbracesemi ;
1696
- %type <str> string stringnum stringnumbrace wstring ;
1696
+ %type <str> string stringnum wstring ;
1697
1697
%type <tparms> template_parms ;
1698
1698
%type <dtype> cpp_end cpp_vend ;
1699
1699
%type <intvalue> rename_namewarn ;
@@ -7327,12 +7327,12 @@ options : LPAREN kwargs RPAREN {
7327
7327
7328
7328
7329
7329
/* Keyword arguments */
7330
- kwargs : idstring EQUAL stringnumbrace {
7330
+ kwargs : idstring EQUAL stringnum {
7331
7331
$$ = NewHash();
7332
7332
Setattr ($$," name" ,$1 );
7333
7333
Setattr ($$," value" ,$3 );
7334
7334
}
7335
- | idstring EQUAL stringnumbrace COMMA kwargs {
7335
+ | idstring EQUAL stringnum COMMA kwargs {
7336
7336
$$ = NewHash();
7337
7337
Setattr ($$," name" ,$1 );
7338
7338
Setattr ($$," value" ,$3 );
@@ -7366,26 +7366,6 @@ stringnum : string {
7366
7366
}
7367
7367
;
7368
7368
7369
- stringnumbrace : string {
7370
- $$ = $1 ;
7371
- }
7372
- | LBRACE {
7373
- /* Assign exact typemap contents */
7374
- String *code;
7375
- skip_balanced (' {' ,' }' );
7376
- Delitem (scanner_ccode,0 );
7377
- Delitem (scanner_ccode,DOH_END);
7378
- code = Copy(scanner_ccode);
7379
- $$ = code;
7380
- }
7381
- | HBLOCK {
7382
- $$ = $1 ;
7383
- }
7384
- | exprnum {
7385
- $$ = Char($1 .val);
7386
- }
7387
- ;
7388
-
7389
7369
empty : ;
7390
7370
7391
7371
%%
You can’t perform that action at this time.
0 commit comments