view place.h @ 12:6c15ca895585

improve places more
author David A. Holland
date Sun, 19 Dec 2010 19:39:26 -0500
parents b9d50e786322
children 120629a5d6bf
line wrap: on
line source


enum places {
	P_NOWHERE,
	P_BUILTIN,
	P_COMMANDLINE,
	P_FILE,
};
struct place {
	enum places type;
	struct seenfile *file;
	unsigned line;
	unsigned column;
};

void place_init(void);
void place_cleanup(void);

void place_setnowhere(struct place *p);
void place_setbuiltin(struct place *p, unsigned num);
void place_setcommandline(struct place *p, unsigned word);

struct seenfile *place_seen_file(const struct place *p, char *name, bool fromsystemdir);