summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-11-13 08:55:40 -0500
committerAdrian Thurston <thurston@complang.org>2015-11-13 08:55:40 -0500
commit2649f69523a6d551447b1a4dcb51ba541508e348 (patch)
treefc8fa5d5603dd52351da115ba05a328e6b687dcb /src/tree.c
parent5182f76980bde6ba75f62247f9775e7da51e91b3 (diff)
downloadcolm-2649f69523a6d551447b1a4dcb51ba541508e348.tar.gz
when tokens come from strings, init with a default location
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tree.c b/src/tree.c
index 55a3599d..8652e26e 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -1615,7 +1615,7 @@ static location_t *loc_search_kid( program_t *prg, kid_t *kid )
return res;
}
-location_t *loc_search( program_t *prg, tree_t *tree )
+static location_t *loc_search( program_t *prg, tree_t *tree )
{
location_t *res = 0;
if ( tree->tokdata != 0 && tree->tokdata->location != 0 )