summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-09-08 20:41:44 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-09-08 20:48:44 -0700
commitc383c570c67e0ede0d3aa0ce08961d5745e7764d (patch)
treedd317d4b4e860df3518ee1cf48852ec3609a21b6 /build-aux
parent8defcee49be881f8c7b8327f07b988fbe5c7171d (diff)
downloadcoreutils-c383c570c67e0ede0d3aa0ce08961d5745e7764d.tar.xz
maint: avoid file-scope names of the form _[a-z]*
The C standard says this isn't portable, if you include standard include files. * build-aux/gen-single-binary.sh: * src/coreutils-arch.c (single_binary_main_arch) (single_binary_main_uname): * src/coreutils-dir.c (single_binary_main_ls) (_single_binary_main_dir): * src/coreutils-vdir.c (single_binary_main_ls) (_single_binary_main_vdir): * src/coreutils.c (SINGLE_BINARY_PROGRAM): Remove leading _ from single_binary prefix. * src/numfmt.c (round_style): Rename from _round. All uses changed. (inval_style): Rename from _invalid. All uses changed.
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/gen-single-binary.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/gen-single-binary.sh b/build-aux/gen-single-binary.sh
index 1128f40c6..4e07cfdaa 100755
--- a/build-aux/gen-single-binary.sh
+++ b/build-aux/gen-single-binary.sh
@@ -90,9 +90,9 @@ for cmd in $ALL_PROGRAMS; do
# CFLAGS
# Hack any other program defining a main() replacing its main by
- # _single_binary_main_$PROGRAM_NAME.
- echo "${base}_CFLAGS = \"-Dmain=_single_binary_main_${cmd} (int, char **);" \
- " int _single_binary_main_${cmd}\" " \
+ # single_binary_main_$PROGRAM_NAME.
+ echo "${base}_CFLAGS = \"-Dmain=single_binary_main_${cmd} (int, char **);" \
+ " int single_binary_main_${cmd}\" " \
"-Dusage=_usage_${cmd} \$(src_coreutils_CFLAGS)"
var=src_${cmd}_CFLAGS
eval "value=\$$var"