annotate place.h @ 27:01c3a2088ab4

fix some more bugs
author David A. Holland
date Mon, 20 Dec 2010 05:01:18 -0500
parents 76da41da923f
children 76c114899f63
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
76da41da923f added macro table
David A. Holland
parents: 14
diff changeset
1 #include <stdbool.h>
12
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
2
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
3 enum places {
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
4 P_NOWHERE,
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
5 P_BUILTIN,
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
6 P_COMMANDLINE,
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
7 P_FILE,
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
8 };
8
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
9 struct place {
12
6c15ca895585 improve places more
David A. Holland
parents: 11
diff changeset
10 enum places type;
13
120629a5d6bf seenfile -> placefile (clearer)
David A. Holland
parents: 12
diff changeset
11 const struct placefile *file;
8
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
12 unsigned line;
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
13 unsigned column;
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
14 };
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
15
10
800f3a560a3b move seenfiles to place.c too
David A. Holland
parents: 8
diff changeset
16 void place_init(void);
800f3a560a3b move seenfiles to place.c too
David A. Holland
parents: 8
diff changeset
17 void place_cleanup(void);
800f3a560a3b move seenfiles to place.c too
David A. Holland
parents: 8
diff changeset
18
8
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
19 void place_setnowhere(struct place *p);
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
20 void place_setbuiltin(struct place *p, unsigned num);
14
David A. Holland
parents: 13
diff changeset
21 void place_setcommandline(struct place *p, unsigned word, unsigned column);
David A. Holland
parents: 13
diff changeset
22 void place_setfilestart(struct place *p, const struct placefile *pf);
8
97243badae69 split place stuff to its own file
David A. Holland
parents:
diff changeset
23
13
120629a5d6bf seenfile -> placefile (clearer)
David A. Holland
parents: 12
diff changeset
24 const struct placefile *place_addfile(const struct place *incplace,
120629a5d6bf seenfile -> placefile (clearer)
David A. Holland
parents: 12
diff changeset
25 const char *name, bool fromsystemdir);