view place.h @ 11:b9d50e786322

simplify places
author David A. Holland
date Sun, 19 Dec 2010 19:30:24 -0500
parents 800f3a560a3b
children 6c15ca895585
line wrap: on
line source

struct place {
	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);