diff options
author | joerg <joerg@FreeBSD.org> | 1995-12-10 15:40:42 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1995-12-10 15:40:42 +0000 |
commit | ea83bba5aad7ea3d22e1e05e697b152bd0499edd (patch) | |
tree | a0f11b5039efb3135f27770ff6fd7ba6c33f476d /usr.bin/printf/printf.c | |
parent | 301bf81931342bb2bc5bff496f58308fcbc64ab6 (diff) | |
download | FreeBSD-src-ea83bba5aad7ea3d22e1e05e697b152bd0499edd.zip FreeBSD-src-ea83bba5aad7ea3d22e1e05e697b152bd0499edd.tar.gz |
Move out some of the shell builtin bogosity from printf's source to
sh's builtin/bltin.h.
Diffstat (limited to 'usr.bin/printf/printf.c')
-rw-r--r-- | usr.bin/printf/printf.c | 15 |
1 files changed, 1 insertions, 14 deletions
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 <err.h> #include <errno.h> #include <limits.h> -#ifdef SHELL -#define EOF -1 -#else #include <stdio.h> -#endif #include <stdlib.h> #include <string.h> -/* - * 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) { \ |