tiny cleanup

git-svn-id: https://svn.code.sf.net/p/acme-crossass/code-0/trunk@164 4df02467-bbd4-4a76-a152-e7ce94205b78
This commit is contained in:
marcobaye 2020-05-14 10:35:54 +00:00
parent 7c732fca59
commit ff11dec18c
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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