diff options
author | Paul Smith <psmith@gnu.org> | 2006-02-10 05:29:00 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2006-02-10 05:29:00 +0000 |
commit | 5a7a42cfce638f52f702b4d317c45c7186b8c0b4 (patch) | |
tree | f212e35eac087bedeb88d64d96fb5a4c8c25d08c /make.h | |
parent | d0c4e92f1145110793ffb04596019a864c88d2fc (diff) | |
download | gunmake-5a7a42cfce638f52f702b4d317c45c7186b8c0b4.tar.gz |
- New code capability: a read-only string cache. Start of solution for
Savannah bug #15182, but not much uses it yet. Coming shortly.
- Added short-circuiting $(and ..) and $(or ...) functions.
Diffstat (limited to 'make.h')
-rw-r--r-- | make.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -382,7 +382,7 @@ extern int unixy_shell; struct floc { - char *filenm; + const char *filenm; unsigned long lineno; }; #define NILF ((struct floc *)0) @@ -465,6 +465,13 @@ extern void close_stdout PARAMS ((void)); extern char *strip_whitespace PARAMS ((const char **begpp, const char **endpp)); +/* String caching */ +extern void strcache_init PARAMS ((void)); +extern void strcache_print_stats PARAMS ((const char *prefix)); +extern int strcache_iscached PARAMS ((const char *str)); +extern const char *strcache_add PARAMS ((const char *str)); +extern const char *strcache_add_len PARAMS ((const char *str, int len)); +extern int strcache_setbufsize PARAMS ((int size)); #ifdef HAVE_VFORK_H # include <vfork.h> |