6
|
1 #include <stdbool.h>
|
|
2 #include <stddef.h>
|
|
3
|
|
4 struct place;
|
|
5
|
|
6
|
3
|
7 #define HOWMANY(arr) (sizeof(arr)/sizeof((arr)[0]))
|
|
8
|
|
9 void *domalloc(size_t len);
|
|
10 void *dorealloc(void *ptr, size_t len);
|
|
11
|
|
12 char *dostrdup(const char *s);
|
|
13 char *dostrdup2(const char *s, const char *t);
|
|
14 char *dostrdup3(const char *s, const char *t, const char *u);
|
|
15
|
8
|
16 /* in place.c */
|
6
|
17 void complain(const struct place *, const char *fmt, ...);
|
|
18 void complain_fail(void);
|
|
19 bool complain_failed(void);
|
|
20
|
|
21 /* in main.c */
|
3
|
22 void freestringlater(char *s);
|
|
23 void die(void);
|