]> git.buserror.net Git - polintos/scott/priv.git/blobdiff - idlcomp/main.cc
idlcomp: valgrind fixes
[polintos/scott/priv.git] / idlcomp / main.cc
index a38319fc93e4fb943997f66c4d99a7d7fb0cd96d..a02453cad2a8f9b3de8b18f4f4f89a7db7c76df2 100644 (file)
@@ -129,8 +129,8 @@ const char *cmdname, *output_dir, *cur_input_file = "<none>", *output_ns_name;
 list<const char *> inputs;
 list<NameSpaceRef> nspace_stack;
 Language *first_lang, *output_lang;
-Interface *System_Object;
-Struct *System_VStruct;
+InterfaceRef System_Object;
+StructRef System_VStruct;
 AutoReleasePool autorelease_pool;
 
 void print_usage()
@@ -787,6 +787,7 @@ int main(int argc, const char **argv)
 {
        int ret = run_idlc(argc, argv);
        autorelease_pool.clean();
+
        return ret;
 }
 
@@ -797,7 +798,7 @@ extern "C" int yywrap()
 
 extern char *yytext;
 
-void idl_error(char *s)
+void idl_error(const char *s)
 {
        if (strlen(yytext))
                fprintf(stderr, "%s:%d: %s at \"%s\".\n", cur_input_file, curline, s, yytext);