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
|
16
|
9 extern const char ws[];
|
|
10 extern const char alnum[];
|
|
11
|
|
12
|
3
|
13 void *domalloc(size_t len);
|
|
14 void *dorealloc(void *ptr, size_t len);
|
|
15
|
|
16 char *dostrdup(const char *s);
|
|
17 char *dostrdup2(const char *s, const char *t);
|
|
18 char *dostrdup3(const char *s, const char *t, const char *u);
|
|
19
|
8
|
20 /* in place.c */
|
6
|
21 void complain(const struct place *, const char *fmt, ...);
|
|
22 void complain_fail(void);
|
|
23 bool complain_failed(void);
|
|
24
|
|
25 /* in main.c */
|
3
|
26 void freestringlater(char *s);
|
|
27 void die(void);
|