Lines Matching refs:object
25 * compiler and loader for the architecture independent makefile object format
150 Sfio_t* fp; /* object file pointer */
162 static struct Object_s /* object global state */
172 } object;
175 * old object format compatibility
191 typedef struct OLD_header_s /* old make object file header */
200 typedef struct OLD_trailer_s /* old make object file trailer */
206 long size; /* total sizeof object file */
269 static OLD_header_t old_stamp = /* old object header is fixed */
288 * initialize the object ccode tables
294 if (!object.initialized)
296 object.initialized = 1;
297 object.a2n = ccmap(CC_ASCII, CC_NATIVE);
298 object.n2a = ccmap(CC_NATIVE, CC_ASCII);
303 * read canonical 0 terminated string from object file
312 ccmapstr(object.a2n, s, sfvalue(sp));
326 if (map = object.n2a)
392 if (map = object.n2a)
469 if (!object.garbage)
779 * initialize the object globals
787 * create the object temporary file
796 error(ERROR_SYSTEM|1, "%s: cannot create temporary object file", state.tmpfile);
805 error(ERROR_SYSTEM|3, "%s: object file header write error", state.tmpfile);
811 if (sp = object.pp)
813 object.pp = 0;
833 error(ERROR_SYSTEM|3, "%s: object file optional header write error", state.tmpfile);
859 error(ERROR_SYSTEM|3, "%s: object file variable write error", state.tmpfile);
871 if ((100 * object.garbage / (object.rules ? object.rules : 1) < PCTGARBAGE && !(state.test & 0x00008000)))
872 object.garbage = 0;
874 if (object.garbage)
920 error(ERROR_SYSTEM|3, "%s: object file rule write error", state.tmpfile);
941 error(ERROR_SYSTEM|3, "%s: object file prerequisite write error", state.tmpfile);
954 if (object.n2a)
993 error(ERROR_SYSTEM|3, "%s: temporary object file header write error", state.tmpfile);
996 * commit to the temporary object and clean up
1002 error(1, "%s: object file not recompiled", objfile);
1031 sfprintf(state.mam.out, "%sexec %s : compile into %s object\n", state.mam.label, state.mam.dynamic ? mamname(r) : null, error_info.id);
1034 if (state.stateview == 0 && object.garbage && object.garbage > cs.rules)
1035 message((-1, "%d%% [%d/%d] state file garbage collection recovery", (object.garbage - cs.rules) * 100 / object.garbage, object.garbage - cs.rules, object.garbage));
1045 if (object.pp)
1055 sfputu(object.pp, COMP_NSEC);
1056 sfputu(object.pp, tmxnsec(r->time));
1057 putstring(object.pp, r->name, 0);
1058 sfputu(object.pp, type);
1059 sfputu(object.pp, tmxsec(r->time));
1060 putstring(object.pp, unbound(r), 0);
1064 sfstrclose(object.pp);
1065 object.pp = 0;
1069 object.pp = sfstropen();
1155 * return the object file name
1171 edit(sp, state.makefile, dir, KEEP, external.object);
1215 ccmapstr(object.a2n, s, n);
1220 * initialize object state
1226 object.garbage = object.rules = 0;
1230 * check if file is loadable object
1371 object.options = strdup(s);
1488 if (!object.options)
1489 object.options = (char*)null;
1490 if (!streq(object.options, s))
1492 error(state.exec || state.mam.out ? -1 : 1, "%s: options changed from \"%s\" to \"%s\"", objfile, object.options, s);
1500 * empty object files are ok
1505 error(1, "%s: cannot stat object file", objfile);
1614 if (lowres && !object.lowres)
1616 object.lowres = 1;
2204 error(1, "%s: pre-%s make object corruption repaired", objfile, corrupt);
2234 object.garbage += garbage;
2235 object.rules += rules;
2356 error(ERROR_SYSTEM|2, "%s: object file io error", objfile);
2359 error(1, "%s: not a %s object file", objfile, version);