view place.h @ 9:1fbcbd58742e

move destroyall to array.h
author David A. Holland
date Sun, 19 Dec 2010 19:19:02 -0500
parents 97243badae69
children 800f3a560a3b
line wrap: on
line source

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

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);

/* in files.c */
const char *seenfile_getname(const struct seenfile *file);
const struct place *seenfile_getincludeplace(const struct seenfile *file);