long GetStructSize (SymTable* Struct) /* Get the size of a struct or union */ { SymEntry* SizeSym = FindSizeOfScope (Struct); if (SizeSym == 0) { Error ("Size of struct/union is unknown"); return 0; } else { return GetSymVal (SizeSym); } }
long GetStructSize (SymTable* Struct) /* Get the size of a struct or union */ { SymEntry* Sym = SymFind (Struct, &SizeEntryName, SYM_FIND_EXISTING); if (Sym == 0) { Error ("Size of struct/union is unknown"); return 0; } else { return GetSymVal (Sym); } }
static bool GetDrVal( array_wlk_wlk *df, dr_val32 *val, int_32 *ret ) /*******************************************************************/ // extract the value from val { switch( val->val_class ) { case DR_VAL_INT: *ret = val->val.s; return( TRUE ); case DR_VAL_REF: if( DRConstValAT( val->val.ref, (uint_32*)ret ) ) { return( TRUE ); } else if( GetSymVal( df->ii, val->val.ref, df->lc, ret ) ) { return( TRUE ); } } return( FALSE ); }