mirror of
https://github.com/uffejakobsen/acme.git
synced 2024-11-26 15:49:18 +00:00
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:
parent
7c732fca59
commit
ff11dec18c
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user