void dumpobj(void) { bout = Bopen(outfile, OWRITE); if(bout == nil) { flusherrors(); print("can't create %s: %r\n", outfile); errorexit(); } Bprint(bout, "go object %s %s %s\n", getgoos(), thestring, getgoversion()); Bprint(bout, " exports automatically generated from\n"); Bprint(bout, " %s in package \"%s\"\n", curio.infile, localpkg->name); dumpexport(); Bprint(bout, "\n!\n"); outhist(bout); // add nil plist w AEND to catch // auto-generated trampolines, data newplist(); dumpglobls(); dumptypestructs(); dumpdata(); dumpfuncs(); Bterm(bout); }
void dumpobj(void) { bout = Bopen(outfile, OWRITE); if(bout == nil) fatal("cant open %s", outfile); Bprint(bout, "%s\n", thestring); Bprint(bout, " exports automatically generated from\n"); Bprint(bout, " %s in package \"%s\"\n", curio.infile, localpkg->name); dumpexport(); Bprint(bout, "\n!\n"); outhist(bout); // add nil plist w AEND to catch // auto-generated trampolines, data newplist(); dumpglobls(); dumptypestructs(); dumpdata(); dumpfuncs(); Bterm(bout); }