Lines Matching refs:block
39 static void block_initialize_namespace (struct block *block,
47 contained_in (const struct block *a, const struct block *b) in contained_in()
60 block_function (const struct block *bl) in block_function()
77 struct block *b; in blockvector_for_pc_sect()
138 struct block *
153 struct block *
167 block_scope (const struct block *block) in block_scope() argument
169 for (; block != NULL; block = BLOCK_SUPERBLOCK (block)) in block_scope()
171 if (BLOCK_NAMESPACE (block) != NULL in block_scope()
172 && BLOCK_NAMESPACE (block)->scope != NULL) in block_scope()
173 return BLOCK_NAMESPACE (block)->scope; in block_scope()
184 block_set_scope (struct block *block, const char *scope, in block_set_scope() argument
187 block_initialize_namespace (block, obstack); in block_set_scope()
189 BLOCK_NAMESPACE (block)->scope = scope; in block_set_scope()
202 block_using (const struct block *block) in block_using() argument
204 const struct block *static_block = block_static_block (block); in block_using()
218 block_set_using (struct block *block, in block_set_using() argument
222 block_initialize_namespace (block, obstack); in block_set_using()
224 BLOCK_NAMESPACE (block)->using = using; in block_set_using()
231 block_initialize_namespace (struct block *block, struct obstack *obstack) in block_initialize_namespace() argument
233 if (BLOCK_NAMESPACE (block) == NULL) in block_initialize_namespace()
235 BLOCK_NAMESPACE (block) in block_initialize_namespace()
237 BLOCK_NAMESPACE (block)->scope = NULL; in block_initialize_namespace()
238 BLOCK_NAMESPACE (block)->using = NULL; in block_initialize_namespace()
245 const struct block *
246 block_static_block (const struct block *block) in block_static_block() argument
248 if (block == NULL || BLOCK_SUPERBLOCK (block) == NULL) in block_static_block()
251 while (BLOCK_SUPERBLOCK (BLOCK_SUPERBLOCK (block)) != NULL) in block_static_block()
252 block = BLOCK_SUPERBLOCK (block); in block_static_block()
254 return block; in block_static_block()
260 const struct block *
261 block_global_block (const struct block *block) in block_global_block() argument
263 if (block == NULL) in block_global_block()
266 while (BLOCK_SUPERBLOCK (block) != NULL) in block_global_block()
267 block = BLOCK_SUPERBLOCK (block); in block_global_block()
269 return block; in block_global_block()
281 struct block *
284 struct block *bl = obstack_alloc (obstack, sizeof (struct block)); in allocate_block()