summaryrefslogtreecommitdiff
path: root/src/location.h
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-09-25 07:32:33 +0200
committerAkim Demaille <akim.demaille@gmail.com>2021-09-25 08:03:22 +0200
commit028df02a9fd60a489caaed066e5b07f96e029878 (patch)
treedf0c9fe9c7e10c032d4ea2b06b037db95d62abe9 /src/location.h
parent71dfc86d58c2276fde3bea2a32646eed4e95fe5c (diff)
downloadbison-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.h5
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_ */