diff options
author | Jilles Tjoelker <jilles@FreeBSD.org> | 2010-12-08 22:13:27 +0000 |
---|---|---|
committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2010-12-08 22:13:27 +0000 |
commit | 1866e8ababa28cd33eb1faba53b91c1b04ca5888 (patch) | |
tree | 17dc56a2ef06f0e22433da78a60be1e36d438c82 /usr.bin | |
parent | ee65f30a14245fc2045b6c2b08433de109751841 (diff) | |
download | src-1866e8ababa28cd33eb1faba53b91c1b04ca5888.tar.gz src-1866e8ababa28cd33eb1faba53b91c1b04ca5888.zip |
printf: Remove support for building as a csh builtin.
The #define BUILTIN was for building as a csh (not tcsh) builtin.
Given that csh was replaced by tcsh years ago there is no point in keeping
this.
The #define SHELL is for building as an sh builtin and is in active use.
This commit does not change the /bin/sh and /usr/bin/printf binaries.
Notes
Notes:
svn path=/head/; revision=216310
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/printf/printf.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/usr.bin/printf/printf.c b/usr.bin/printf/printf.c index 4ac23c65fb38..55cfcc859f51 100644 --- a/usr.bin/printf/printf.c +++ b/usr.bin/printf/printf.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. */ -#if !defined(BUILTIN) && !defined(SHELL) +#ifndef SHELL #ifndef lint static char const copyright[] = "@(#) Copyright (c) 1989, 1993\n\ @@ -69,9 +69,7 @@ static const char rcsid[] = #define warnx3(a, b, c) warnx(a, b, c) #endif -#ifndef BUILTIN #include <locale.h> -#endif #define PF(f, func) do { \ char *b = NULL; \ @@ -105,17 +103,13 @@ static void usage(void); static char **gargv; int -#ifdef BUILTIN -progprintf(int argc, char *argv[]) -#else main(int argc, char *argv[]) -#endif { size_t len; int ch, chopped, end, rval; char *format, *fmt, *start; -#if !defined(BUILTIN) && !defined(SHELL) +#ifndef SHELL (void) setlocale(LC_NUMERIC, ""); #endif #ifdef SHELL |