view place.h @ 10:800f3a560a3b

move seenfiles to place.c too
author David A. Holland
date Sun, 19 Dec 2010 19:27:14 -0500
parents 97243badae69
children b9d50e786322
line wrap: on
line source

struct place {
	struct seenfile *file;
	unsigned line;
	unsigned column;
};

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

struct place *place_gettemporary(void);
void place_puttemporary(struct place *p);
struct place *place_create(void);
struct place *place_clone(const struct place *p);
void place_destroy(struct place *);
void place_setnowhere(struct place *p);
void place_setbuiltin(struct place *p, unsigned num);
void place_setcommandline(struct place *p, unsigned column);

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