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;
|
8
|
10 struct seenfile *file;
|
|
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);
|
11
|
20 void place_setcommandline(struct place *p, unsigned word);
|
8
|
21
|
10
|
22 struct seenfile *place_seen_file(const struct place *p, char *name, bool fromsystemdir);
|