Skip to content

Commit

Permalink
Make lo and hi unsigned so that 0..4294967295 doesn't claim that the
Browse files Browse the repository at this point in the history
 range is reversed.  (This probably exposes a new class of errors.)
Add a place to store the filename, in case we get around to handling
 multiple input files.
  • Loading branch information
fenner committed Dec 7, 2006
1 parent 90c1299 commit ad2e41d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions common.h
Original file line number Diff line number Diff line change
@@ -1,16 1,17 @@
/*
* Bill's ABNF Parser
* $Fenner: abnf-parser/common.h,v 1.7 2002/08/08 05:24:45 fenner Exp $
* $Fenner: abnf-parser/common.h,v 1.8 2004/10/11 17:14:11 fenner Exp $
*/

struct range {
int lo;
int hi;
unsigned int lo;
unsigned int hi;
};

struct rule {
char *name; /* as defined or used */
char *lowername; /* for hash key */
char *file; /* filename of definition */
int line; /* line of definition */
struct object *rule; /* definition */
int used; /* was it referenced? */
Expand Down

0 comments on commit ad2e41d

Please sign in to comment.