]> git.draconx.ca Git - gob-dx.git/blobdiff - src/parse.y
Release 0.93.5
[gob-dx.git] / src / parse.y
index 17ab2644b5c59afc5226e431d5694a2e2c78a4d8..f052991ab74f9e93db1be921efe0c17d6a132e15 100644 (file)
@@ -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($<id>1);
                                g_free($<id>3);
-                               g_string_free($<cbuf>3,TRUE);
-                               yyerror(_("parse error"));
+                               g_string_free($<cbuf>5,TRUE);
+                               yyerror(_("parse error "
+                                         "(untyped blocks must be init or "
+                                         "class_init)"));
                                YYERROR;
                        }
                                                }