summaryrefslogtreecommitdiff
path: root/make.h
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2011-02-21 07:30:11 +0000
committerPaul Smith <psmith@gnu.org>2011-02-21 07:30:11 +0000
commit1454a04f81708850353dbdc0807a099c5aaab55b (patch)
tree4f414cb592087bed30a3563174c554f155a229f6 /make.h
parentae2ab76faca93cad3059808b14d02f5565275e31 (diff)
* Fixups to the make man page
* Minor syntax cleanups in the manual * In non-maintainer mode set NDEBUG to disable assert() * Performance improvements in strcache: Build Info 1000 2000 4000 3.82 -g 2.61s 8.85s 33.52s 3.82 -O2 1.90s 7.62s 27.82s New -g (with asserts) 1.03s 2.31s 5.79s New -O2 (no asserts) 0.65s 1.50s 3.52s
Diffstat (limited to 'make.h')
-rw-r--r--make.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/make.h b/make.h
index ea282df6..ea44ee4d 100644
--- a/make.h
+++ b/make.h
@@ -43,6 +43,12 @@ char *alloca ();
# endif
#endif
+/* Disable assert() unless we're a maintainer.
+ Some asserts are compute-intensive. */
+#ifndef MAKE_MAINTAINER_MODE
+# define NDEBUG 1
+#endif
+
#ifdef CRAY
/* This must happen before #include <signal.h> so
@@ -60,13 +66,12 @@ char *alloca ();
#include <signal.h>
#include <stdio.h>
#include <ctype.h>
+
#ifdef HAVE_SYS_TIMEB_H
/* SCO 3.2 "devsys 4.2" has a prototype for `ftime' in <time.h> that bombs
- unless <sys/timeb.h> has been included first. Does every system have a
- <sys/timeb.h>? If any does not, configure should check for it. */
+ unless <sys/timeb.h> has been included first. */
# include <sys/timeb.h>
#endif
-
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>
@@ -456,8 +461,8 @@ void strcache_init (void);
void strcache_print_stats (const char *prefix);
int strcache_iscached (const char *str);
const char *strcache_add (const char *str);
-const char *strcache_add_len (const char *str, int len);
-int strcache_setbufsize (int size);
+const char *strcache_add_len (const char *str, unsigned int len);
+int strcache_setbufsize (unsigned int size);
#ifdef HAVE_VFORK_H
# include <vfork.h>