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);
|
18
|
19 char *dostrndup(const char *s, size_t len);
|
|
20
|
|
21 size_t notrailingws(char *buf, size_t len);
|
|
22 bool is_identifier(const char *str);
|
3
|
23
|
8
|
24 /* in place.c */
|
6
|
25 void complain(const struct place *, const char *fmt, ...);
|
|
26 void complain_fail(void);
|
|
27 bool complain_failed(void);
|
|
28
|
|
29 /* in main.c */
|
3
|
30 void freestringlater(char *s);
|
|
31 void die(void);
|