mirror of
https://github.com/PDP-10/its.git
synced 2026-01-27 04:32:08 +00:00
Remove functions from C compiler that are already in the C library.
This commit is contained in:
@@ -5,6 +5,5 @@ l c33.stk
|
||||
l c34.stk
|
||||
l c35.stk
|
||||
l c91.stk
|
||||
l c94.stk
|
||||
l c95.stk
|
||||
o _c.bin
|
||||
|
||||
@@ -7,6 +7,5 @@ l c24.stk
|
||||
l c25.stk
|
||||
l c26.stk
|
||||
l c91.stk
|
||||
l c92.stk
|
||||
l c95.stk
|
||||
o _lp.bin
|
||||
|
||||
@@ -2,8 +2,6 @@ x c/clib
|
||||
l c41.stk
|
||||
l c42.stk
|
||||
l c43.stk
|
||||
l c92.stk
|
||||
l c93.stk
|
||||
l c94.stk
|
||||
l c95.stk
|
||||
o _m.bin
|
||||
|
||||
@@ -439,46 +439,3 @@ tclass (x, y) int x, y;
|
||||
*p1 = 77;
|
||||
if (y != 77) error (5500);
|
||||
}
|
||||
|
||||
/**********************************************************************
|
||||
|
||||
output routines
|
||||
|
||||
**********************************************************************/
|
||||
|
||||
cprint (fmt, x1, x2) char fmt[], x1[], x2[];
|
||||
|
||||
{int *argp, x, c;
|
||||
char *s;
|
||||
|
||||
argp = &x1; /* argument pointer */
|
||||
while (c = *fmt++)
|
||||
{if (c != '%') putchar (c);
|
||||
else
|
||||
{x = *argp++;
|
||||
switch (c = *fmt++) {
|
||||
|
||||
case 'd': /* decimal */
|
||||
if (x<0) {x= -x; putchar ('-');}
|
||||
cprd (x);
|
||||
break;
|
||||
|
||||
case 's': /* string */
|
||||
s = x;
|
||||
while (c = *s++) putchar (c);
|
||||
break;
|
||||
|
||||
default: putchar (c);
|
||||
argp--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
cprd (n)
|
||||
|
||||
{int a;
|
||||
if (a=n/10) cprd (a);
|
||||
putchar (n%10+'0');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user