17
|
1 #include <stdbool.h>
|
12
|
2
|
|
3 enum places {
|
|
4 P_NOWHERE,
|
|
5 P_BUILTIN,
|
|
6 P_COMMANDLINE,
|
|
7 P_FILE,
|
|
8 };
|
8
|
9 struct place {
|
12
|
10 enum places type;
|
13
|
11 const struct placefile *file;
|
8
|
12 unsigned line;
|
|
13 unsigned column;
|
|
14 };
|
|
15
|
10
|
16 void place_init(void);
|
|
17 void place_cleanup(void);
|
|
18
|
8
|
19 void place_setnowhere(struct place *p);
|
|
20 void place_setbuiltin(struct place *p, unsigned num);
|
14
|
21 void place_setcommandline(struct place *p, unsigned word, unsigned column);
|
|
22 void place_setfilestart(struct place *p, const struct placefile *pf);
|
8
|
23
|
13
|
24 const struct placefile *place_addfile(const struct place *incplace,
|
|
25 const char *name, bool fromsystemdir);
|