comparison place.h @ 185:16b4451e34b8

Add the ability to output line numbers, sort of. It is enabled with the intentionally undocumented -p option (similar to -P but reversed sense) and it might be vaguely useful but only prints the line number when the file changes and may not get the line numbers right.
author David A. Holland
date Fri, 12 Jun 2015 03:59:36 -0400
parents 4c3375895c6e
children 3a25180d3a5c
comparison
equal deleted inserted replaced
184:d359d9b86327 185:16b4451e34b8
53 void place_setcommandline(struct place *p, unsigned word, unsigned column); 53 void place_setcommandline(struct place *p, unsigned word, unsigned column);
54 void place_setfilestart(struct place *p, const struct placefile *pf); 54 void place_setfilestart(struct place *p, const struct placefile *pf);
55 55
56 const char *place_getname(const struct place *); 56 const char *place_getname(const struct place *);
57 const char *place_getparsedir(const struct place *incplace); 57 const char *place_getparsedir(const struct place *incplace);
58 bool place_eq(const struct place *, const struct place *);
59 bool place_samefile(const struct place *, const struct place *);
58 60
59 void place_changefile(struct place *p, const char *name); 61 void place_changefile(struct place *p, const char *name);
60 62
61 const struct placefile *place_addfile(const struct place *incplace, 63 const struct placefile *place_addfile(const struct place *incplace,
62 const char *name, bool fromsystemdir); 64 const char *name, bool fromsystemdir);