From: sater Date: Mon, 26 Nov 1984 10:50:46 +0000 (+0000) Subject: Added support for the fmt_id and fmt_ilb macros X-Git-Tag: release-5-5~5977 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=0a00b80726d92c9b480a776938f763abb002bd99;p=ack.git Added support for the fmt_id and fmt_ilb macros --- diff --git a/mach/proto/cg/fillem.c b/mach/proto/cg/fillem.c index e56c038cf..074d4454a 100644 --- a/mach/proto/cg/fillem.c +++ b/mach/proto/cg/fillem.c @@ -44,6 +44,20 @@ static char rcsid2[] = "$Header$"; #define newplb newilb #endif +#ifdef fmt_id +#ifdef id_first +It is an error to define both fmt_id and id_first. +Read the documentation. +#endif +#endif + +#ifdef fmt_ilb +#ifdef ilb_fmt +It is an error to define both fmt_ilb and ilb_fmt. +Read the documentation. +#endif +#endif + /* segment types for switchseg() */ #define SEGTXT 0 #define SEGCON 1 @@ -479,7 +493,11 @@ char *strarg(t) { switch (t) { case sp_ilb1: case sp_ilb2: +#ifdef fmt_ilb + fmt_ilb(procno,((int) argval),argstr); +#else sprintf(argstr,ilb_fmt,procno,(int)argval); +#endif break; case sp_dlb1: case sp_dlb2: @@ -490,10 +508,14 @@ char *strarg(t) { break; case sp_dnam: case sp_pnam: +#ifdef fmt_id + fmt_id(str,argstr); +#else p = argstr; if (strsiz < 8 || str[0] == id_first) *p++ = id_first; sprintf(p,"%.*s",strsiz,str); +#endif break; case sp_doff: strarg(offtyp);