annotate place.h @ 12:6c15ca895585

improve places more
author David A. Holland
date Sun, 19 Dec 2010 19:39:26 -0500
parents b9d50e786322
children 120629a5d6bf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
1
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
2 enum places {
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
3 P_NOWHERE,
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
4 P_BUILTIN,
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
5 P_COMMANDLINE,
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
6 P_FILE,
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
7 };
8
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
8 struct place {
12
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
9 enum places type;
8
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
10 struct seenfile *file;
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
11 unsigned line;
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
12 unsigned column;
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
13 };
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
14
10
800f3a560a3b move seenfiles to place.c too
David A. Holland
parents: 8
diff changeset
15 void place_init(void);
800f3a560a3b move seenfiles to place.c too
David A. Holland
parents: 8
diff changeset
16 void place_cleanup(void);
800f3a560a3b move seenfiles to place.c too
David A. Holland
parents: 8
diff changeset
17
8
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
18 void place_setnowhere(struct place *p);
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
19 void place_setbuiltin(struct place *p, unsigned num);
11
b9d50e786322 simplify places
David A. Holland
parents: 10
diff changeset
20 void place_setcommandline(struct place *p, unsigned word);
8
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
21
10
800f3a560a3b move seenfiles to place.c too
David A. Holland
parents: 8
diff changeset
22 struct seenfile *place_seen_file(const struct place *p, char *name, bool fromsystemdir);