From ea83bba5aad7ea3d22e1e05e697b152bd0499edd Mon Sep 17 00:00:00 2001 From: joerg Date: Sun, 10 Dec 1995 15:40:42 +0000 Subject: Move out some of the shell builtin bogosity from printf's source to sh's builtin/bltin.h. --- usr.bin/printf/printf.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'usr.bin/printf') diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 9c8e9e0..d370d98 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -48,26 +48,13 @@ static char sccsid[] = "@(#)printf.c 8.1 (Berkeley) 7/20/93"; #include #include #include -#ifdef SHELL -#define EOF -1 -#else #include -#endif #include #include -/* - * XXX - * This *has* to go away. TK. - */ #ifdef SHELL #define main printfcmd -#define warnx(a, b, c) { \ - char buf[64]; \ - (void)sprintf(buf, sizeof(buf), a, b, c); \ - error(buf); \ -} -#include "../../bin/sh/bltin/bltin.h" +#include "bltin/bltin.h" #endif #define PF(f, func) { \ -- cgit v1.1