diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2021-09-25 07:32:33 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2021-09-25 08:03:22 +0200 |
commit | 028df02a9fd60a489caaed066e5b07f96e029878 (patch) | |
tree | df0c9fe9c7e10c032d4ea2b06b037db95d62abe9 /src/location.h | |
parent | 71dfc86d58c2276fde3bea2a32646eed4e95fe5c (diff) | |
download | bison-028df02a9fd60a489caaed066e5b07f96e029878.tar.gz |
avoid using atoi
* cfg.mk: Disable sc_indent as auto indent is too invasive for now.
Enable sc_prohibit_atoi_atof, except where we don't care.
* src/location.c, src/muscle-tab.c: Use strtol instead of atoi.
Diffstat (limited to 'src/location.h')
-rw-r--r-- | src/location.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/location.h b/src/location.h index af21c70f..6e356b81 100644 --- a/src/location.h +++ b/src/location.h @@ -146,8 +146,9 @@ location_cmp (location a, location b) /* Whether this is the empty location. */ bool location_empty (location loc); -/* STR must be formatted as 'file:line.column@byte' or 'file:line.column', - it will be modified. */ +/* STR must be formatted as 'file:line.column@byte' or 'file:line.column'. + It may be '<command line>:3.-1@-1', with -1 to denote no-column/no-byte. + STR will be modified. */ void boundary_set_from_string (boundary *bound, char *str); #endif /* ! defined LOCATION_H_ */ |