diff options
author | Alexander Smirnov <alex@ydb.tech> | 2024-07-08 15:54:05 +0000 |
---|---|---|
committer | Alexander Smirnov <alex@ydb.tech> | 2024-07-08 15:54:05 +0000 |
commit | fc7be18c76af2e700641f3598c4856baeef1428e (patch) | |
tree | 11dbca45eb321c3a4dd08b12152acc6ef5dd3fa9 /contrib/tools/bison/src/location.h | |
parent | ec0e7ed6da6fb317741fd8468602949a1362eca5 (diff) | |
parent | c92cb9d3a19331916f0c274d80e67f02a62caa9b (diff) | |
download | ydb-fc7be18c76af2e700641f3598c4856baeef1428e.tar.gz |
Merge branch 'rightlib' into mergelibs-240708-1553
Diffstat (limited to 'contrib/tools/bison/src/location.h')
-rw-r--r-- | contrib/tools/bison/src/location.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/tools/bison/src/location.h b/contrib/tools/bison/src/location.h index 9c6e53c190..39e0507d96 100644 --- a/contrib/tools/bison/src/location.h +++ b/contrib/tools/bison/src/location.h @@ -1,6 +1,7 @@ /* Locations for Bison - Copyright (C) 2002, 2004-2013 Free Software Foundation, Inc. + Copyright (C) 2002, 2004-2015, 2018-2019 Free Software Foundation, + Inc. This file is part of Bison, the GNU Compiler Compiler. @@ -107,7 +108,7 @@ void location_compute (location *loc, Warning: uses quotearg's slot 3. */ unsigned location_print (location loc, FILE *out); -/* Free any allocated ressources and close any open file handles that are +/* Free any allocated resources and close any open file handles that are left-over by the usage of location_caret. */ void cleanup_caret (void); @@ -125,6 +126,9 @@ location_cmp (location a, location b) return res; } +/* Whether this is the empty location. */ +bool location_empty (location loc); + /* LOC_STR must be formatted as 'file:line.column', it will be modified. */ void boundary_set_from_string (boundary *bound, char *loc_str); |