block: don't put spaces around :
[ironout.git] / block.h
blob9ed2cb28be73a3952c6adc067f80dc877d3fe15b
1 #ifndef _BLOCK_H
2 #define _BLOCK_H
4 #include "ast.h"
5 #include "name.h"
7 struct block_list {
8 struct block_list *next;
9 struct block *block;
12 struct block {
13 struct node *node;
14 struct block *parent;
15 struct block_list *_children;
16 struct hash *_names;
17 unsigned walked:1;
20 struct block *block_init(struct node *node);
21 void block_free(struct block *block);
22 struct block *block_find(struct block *block, long offset);
23 struct hash *block_names(struct block *block);
24 struct block_list *block_children(struct block *block);
25 struct block *block_defining(struct block *block, struct node *node);
26 struct name *block_lookup(struct block *block, struct node *node);
27 struct name *block_find_hier(struct block *block, char *location);
29 #endif