view place.h @ 13:120629a5d6bf

seenfile -> placefile (clearer)
author David A. Holland
date Sun, 19 Dec 2010 19:49:43 -0500
parents 6c15ca895585
children 5045b9678bb0
line wrap: on
line source


enum places {
	P_NOWHERE,
	P_BUILTIN,
	P_COMMANDLINE,
	P_FILE,
};
struct place {
	enum places type;
	const struct placefile *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);

const struct placefile *place_addfile(const struct place *incplace,
				      const char *name, bool fromsystemdir);