From 76652d5d02b31941ec085435f62b6c955d7e63d3 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 18 Sep 2002 04:35:52 +0000 Subject: Add some indexing to the manual. Fix a few simple casting warnings, etc. --- ChangeLog | 6 ++++++ doc/make.texi | 2 ++ function.c | 2 +- hash.c | 4 ++++ signame.c | 3 +-- 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index e67c819..6eb5691 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,12 @@ the root and make the root's variable list the parent of our variable list. +2002-09-13 Paul D. Smith + + * doc/make.texi (MAKE Variable): Add some indexing for "+". + + * hash.c (round_up_2): Get rid of a warning. + 2002-09-12 Paul D. Smith * Makefile.am (loadavg_SOURCES, loadavg.c): Tiptoe around automake diff --git a/doc/make.texi b/doc/make.texi index 2389ca0..0593f19 100644 --- a/doc/make.texi +++ b/doc/make.texi @@ -3653,6 +3653,7 @@ is @samp{cd subdir && /bin/make}. If you use a special version of executed for recursive invocations. @cindex @code{cd} (shell command) +@cindex +, and commands As a special feature, using the variable @code{MAKE} in the commands of a rule alters the effects of the @samp{-t} (@samp{--touch}), @samp{-n} (@samp{--just-print}), or @samp{-q} (@w{@samp{--question}}) option. @@ -6932,6 +6933,7 @@ target that is not up to date. It is an error to use more than one of these three flags in the same invocation of @code{make}. +@cindex +, and command execution The @samp{-n}, @samp{-t}, and @samp{-q} options do not affect command lines that begin with @samp{+} characters or contain the strings @samp{$(MAKE)} or @samp{$@{MAKE@}}. Note that only the line containing diff --git a/function.c b/function.c index 06b23d2..d773735 100644 --- a/function.c +++ b/function.c @@ -1837,7 +1837,7 @@ expand_builtin_function (o, argc, argv, entry_p) char **argv; struct function_table_entry *entry_p; { - if (argc < entry_p->minimum_args) + if (argc < (int)entry_p->minimum_args) fatal (reading_file, _("Insufficient number of arguments (%d) to function `%s'"), argc, entry_p->name); diff --git a/hash.c b/hash.c index 2e37df2..9083b60 100644 --- a/hash.c +++ b/hash.c @@ -359,7 +359,11 @@ round_up_2 (n) n |= (n >> 4); n |= (n >> 8); n |= (n >> 16); + +#if !defined(HAVE_LIMITS_H) || ULONG_MAX > 4294967295 + /* We only need this on systems where unsigned long is >32 bits. */ n |= (n >> 32); +#endif return n + 1; } diff --git a/signame.c b/signame.c index f7128df..051d544 100644 --- a/signame.c +++ b/signame.c @@ -86,9 +86,8 @@ static int signame_init () { int i; - char *u = _("unknown signal"); - undoc = xstrdup(u); + undoc = xstrdup (_("unknown signal")); /* Initialize signal names. */ for (i = 0; i < NSIG; i++) -- cgit v1.2.3