X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/4f7cfa972623842e64e3a8468696f1f6f40fd202..509cf0693fc440c71bdd3e71ea8947a6b4eb0bcf:/src/parse.y diff --git a/src/parse.y b/src/parse.y index 17ab264..f052991 100644 --- a/src/parse.y +++ b/src/parse.y @@ -167,7 +167,7 @@ push_function(int scope, int method, char *oid, char *id, node = new_method(scope, method, type, oid, gtktypes, flags, id, funcargs, onerror, defreturn, c_cbuf, line_no, - ccode_line, vararg); + ccode_line, vararg, method_unique_id++); if(cbuf) g_string_free(cbuf, @@ -871,8 +871,10 @@ method: SIGNAL flags fullsigtype type TOKEN '(' funcargs ')' returnvals codenoc } else { g_free($1); g_free($3); - g_string_free($3,TRUE); - yyerror(_("parse error")); + g_string_free($5,TRUE); + yyerror(_("parse error " + "(untyped blocks must be init or " + "class_init)")); YYERROR; } }