From ff11dec18c78a3d87b5345bfac018b0231cff21f Mon Sep 17 00:00:00 2001 From: marcobaye Date: Thu, 14 May 2020 10:35:54 +0000 Subject: [PATCH] tiny cleanup git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@164 4df02467-bbd4-4a76-a152-e7ce94205b78 --- src/tree.c | 2 +- src/tree.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tree.c b/src/tree.c index 9396098..c004112 100644 --- a/src/tree.c +++ b/src/tree.c @@ -178,7 +178,7 @@ int Tree_hard_scan(struct rwnode **result, struct rwnode **forest, int id_number // Call given function for each object of matching type in the given tree. // Calls itself recursively. -void dump_tree(struct rwnode *node, int id_number, void (*fn)(struct rwnode *, FILE *), FILE *env) +static void dump_tree(struct rwnode *node, int id_number, void (*fn)(struct rwnode *, FILE *), FILE *env) { if (node->id_number == id_number) diff --git a/src/tree.h b/src/tree.h index d2d9951..3469123 100644 --- a/src/tree.h +++ b/src/tree.h @@ -36,7 +36,7 @@ struct rwnode { hash_t hash_value; char *id_string; // name, zero-terminated void *body; // macro/symbol body - unsigned int id_number; // scope number + int id_number; // scope number }; @@ -54,7 +54,7 @@ extern int Tree_easy_scan(struct ronode *tree, void **node_body, struct dynabuf // If "create" is FALSE, store NULL. Returns whether item was created. extern int Tree_hard_scan(struct rwnode **result, struct rwnode **forest, int id_number, boolean create); // Calls given function for each node of each tree of given forest. -extern void Tree_dump_forest(struct rwnode **, int, void (*)(struct rwnode *, FILE *), FILE *); +extern void Tree_dump_forest(struct rwnode **, int id_number, void (*)(struct rwnode *, FILE *), FILE *); #endif