Mercurial > ~dholland > hg > tradcpp > index.cgi
diff utils.h @ 6:0601b6e8e53d
checkpoint - can find files
author | David A. Holland |
---|---|
date | Sun, 19 Dec 2010 18:55:51 -0500 |
parents | bfa97d43197e |
children | 97243badae69 |
line wrap: on
line diff
--- a/utils.h Sun Dec 19 17:53:49 2010 -0500 +++ b/utils.h Sun Dec 19 18:55:51 2010 -0500 @@ -1,3 +1,9 @@ +#include <stdbool.h> +#include <stddef.h> + +struct place; + + #define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0])) void *domalloc(size_t len); @@ -7,5 +13,11 @@ char *dostrdup2(const char *s, const char *t); char *dostrdup3(const char *s, const char *t, const char *u); +/* in files.c */ +void complain(const struct place *, const char *fmt, ...); +void complain_fail(void); +bool complain_failed(void); + +/* in main.c */ void freestringlater(char *s); void die(void);