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