diff options
-rw-r--r-- | Source/CParse/parser.y | 16 | ||||
-rw-r--r-- | Source/Modules/overload.cxx | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/Source/CParse/parser.y b/Source/CParse/parser.y index cea0fd0e1..8c8724944 100644 --- a/Source/CParse/parser.y +++ b/Source/CParse/parser.y @@ -1785,23 +1785,23 @@ program : interface { Setattr($1,"module",module_node); top = $1; } - | PARSETYPE parm SEMI { + | PARSETYPE parm END { top = Copy(Getattr($2,"type")); Delete($2); } | PARSETYPE error { top = 0; } - | PARSEPARM parm SEMI { + | PARSEPARM parm END { top = $2; } | PARSEPARM error { top = 0; } - | PARSEPARMS LPAREN parms RPAREN SEMI { + | PARSEPARMS LPAREN parms RPAREN END { top = $3; } - | PARSEPARMS error SEMI { + | PARSEPARMS error { top = 0; } ; @@ -7473,7 +7473,7 @@ empty : ; SwigType *Swig_cparse_type(String *s) { String *ns; - ns = NewStringf("%s;",s); + ns = NewString(s); Seek(ns,0,SEEK_SET); scanner_file(ns); top = 0; @@ -7486,7 +7486,7 @@ SwigType *Swig_cparse_type(String *s) { Parm *Swig_cparse_parm(String *s) { String *ns; - ns = NewStringf("%s;",s); + ns = NewString(s); Seek(ns,0,SEEK_SET); scanner_file(ns); top = 0; @@ -7502,9 +7502,9 @@ ParmList *Swig_cparse_parms(String *s, Node *file_line_node) { String *ns; char *cs = Char(s); if (cs && cs[0] != '(') { - ns = NewStringf("(%s);",s); + ns = NewStringf("(%s)",s); } else { - ns = NewStringf("%s;",s); + ns = NewString(s); } Setfile(ns, Getfile(file_line_node)); Setline(ns, Getline(file_line_node)); diff --git a/Source/Modules/overload.cxx b/Source/Modules/overload.cxx index e3f4f586b..f6cd213ee 100644 --- a/Source/Modules/overload.cxx +++ b/Source/Modules/overload.cxx @@ -565,7 +565,7 @@ String *Swig_overload_dispatch_cast(Node *n, const_String_or_char_ptr fmt, int * "Overloaded method %s with no explicit typecheck typemap for arg %d of type '%s'\n", Swig_name_decl(n), j, SwigType_str(Getattr(pj, "type"), 0)); Swig_warning(WARN_TYPEMAP_TYPECHECK_UNDEF, Getfile(ni), Getline(ni), - "Dispatching calls to this method may not work correctly, see: https://www.swig.org/Doc4.1/Typemaps.html#Typemaps_overloading\n"); + "Dispatching calls to this method may not work correctly, see the 'Typemaps and Overloading' section in Typemaps chapter of the documentation\n"); } Parm *pj1 = Getattr(pj, "tmap:in:next"); if (pj1) @@ -841,7 +841,7 @@ String *Swig_overload_dispatch(Node *n, const_String_or_char_ptr fmt, int *maxar "Overloaded method %s with no explicit typecheck typemap for arg %d of type '%s'\n", Swig_name_decl(n), j, SwigType_str(Getattr(pj, "type"), 0)); Swig_warning(WARN_TYPEMAP_TYPECHECK_UNDEF, Getfile(ni), Getline(ni), - "Dispatching calls to this method may not work correctly, see: https://www.swig.org/Doc4.1/Typemaps.html#Typemaps_overloading\n"); + "Dispatching calls to this method may not work correctly, see the 'Typemaps and Overloading' section in Typemaps chapter of the documentation\n"); } Parm *pk = Getattr(pj, "tmap:in:next"); if (pk) |