Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison place.h @ 203:3a25180d3a5c
Abort on line numbering or column numbering overflow.
Line numbers are limited to values that fit in "unsigned int". Also
reject input lines longer than 2^32-1 characters. It seems reasonable
to presume that any input that violates these constraints is someone
screwing around and not a serious attempt to compile or preprocess
anything useful. Done in response to n2129, but without getting into
any of the silliness found there.
author | David A. Holland |
---|---|
date | Tue, 01 Aug 2017 14:51:04 -0400 |
parents | 16b4451e34b8 |
children |
comparison
equal
deleted
inserted
replaced
202:e200cb46ab23 | 203:3a25180d3a5c |
---|---|
51 void place_setnowhere(struct place *p); | 51 void place_setnowhere(struct place *p); |
52 void place_setbuiltin(struct place *p, unsigned num); | 52 void place_setbuiltin(struct place *p, unsigned num); |
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 void place_addcolumns(struct place *, unsigned cols); | |
57 void place_addlines(struct place *, unsigned lines); | |
58 | |
56 const char *place_getname(const struct place *); | 59 const char *place_getname(const struct place *); |
57 const char *place_getparsedir(const struct place *incplace); | 60 const char *place_getparsedir(const struct place *incplace); |
58 bool place_eq(const struct place *, const struct place *); | 61 bool place_eq(const struct place *, const struct place *); |
59 bool place_samefile(const struct place *, const struct place *); | 62 bool place_samefile(const struct place *, const struct place *); |
60 | 63 |