Lines 282-292
Link Here
|
282 |
/* Check whether given attribute has specific form. */ |
282 |
/* Check whether given attribute has specific form. */ |
283 |
extern int dwarf_hasform (Dwarf_Attribute *attr, unsigned int search_form); |
283 |
extern int dwarf_hasform (Dwarf_Attribute *attr, unsigned int search_form); |
284 |
|
284 |
|
|
|
285 |
#ifndef __OPTIMIZE__ |
285 |
/* Return attribute code of given attribute. */ |
286 |
/* Return attribute code of given attribute. */ |
286 |
extern unsigned int dwarf_whatattr (Dwarf_Attribute *attr); |
287 |
extern unsigned int dwarf_whatattr (Dwarf_Attribute *attr); |
287 |
|
288 |
|
288 |
/* Return form code of given attribute. */ |
289 |
/* Return form code of given attribute. */ |
289 |
extern unsigned int dwarf_whatform (Dwarf_Attribute *attr); |
290 |
extern unsigned int dwarf_whatform (Dwarf_Attribute *attr); |
|
|
291 |
#endif /* !Optimize. */ |
290 |
|
292 |
|
291 |
|
293 |
|
292 |
/* Return string associated with given attribute. */ |
294 |
/* Return string associated with given attribute. */ |
Lines 624-637
Link Here
|
624 |
/* Inline optimizations. */ |
626 |
/* Inline optimizations. */ |
625 |
#ifdef __OPTIMIZE__ |
627 |
#ifdef __OPTIMIZE__ |
626 |
/* Return attribute code of given attribute. */ |
628 |
/* Return attribute code of given attribute. */ |
627 |
extern inline unsigned int |
629 |
inline unsigned int |
628 |
dwarf_whatattr (Dwarf_Attribute *attr) |
630 |
dwarf_whatattr (Dwarf_Attribute *attr) |
629 |
{ |
631 |
{ |
630 |
return attr == NULL ? 0 : attr->code; |
632 |
return attr == NULL ? 0 : attr->code; |
631 |
} |
633 |
} |
632 |
|
634 |
|
633 |
/* Return attribute code of given attribute. */ |
635 |
/* Return form code of given attribute. */ |
634 |
extern inline unsigned int |
636 |
inline unsigned int |
635 |
dwarf_whatform (Dwarf_Attribute *attr) |
637 |
dwarf_whatform (Dwarf_Attribute *attr) |
636 |
{ |
638 |
{ |
637 |
return attr == NULL ? 0 : attr->form; |
639 |
return attr == NULL ? 0 : attr->form; |