style: fix comments and more debug trace

* src/location.c, src/symtab.h, src/symtab.c: here.
This commit is contained in:
Akim Demaille
2020-08-05 07:56:14 +02:00
parent 7d4a4300c2
commit 6aae4a7378
5 changed files with 20 additions and 12 deletions

View File

@@ -155,7 +155,9 @@ int
location_print (location loc, FILE *out)
{
int res = 0;
if (trace_flag & trace_locations)
if (location_empty (loc))
res += fprintf (out, "(empty location)");
else if (trace_flag & trace_locations)
{
res += boundary_print (&loc.start, out);
res += fprintf (out, "-");