Ejemplo n.º 1
0
/**
 * get the size of a symbol
 *
 * @param[in] sem is the semantic table where symbols and structures are define
 * @param[in] s the symbol
 * @param[in] surface the surface of the structure (may be necessary beause some structures have length info in the data)
 * @returns size of the structure
 *
 * <b>Examples (from test suite):</b>
 * @snippet spec/def_spec.h testGetSize
 */
size_t _d_get_symbol_size(SemTable *sem,Symbol s,void *surface) {
    Structure st = _sem_get_symbol_structure(sem,s);
    return _d_get_structure_size(sem,st,surface);
}
Ejemplo n.º 2
0
/**
 * get the size of a symbol
 *
 * @param[in] symbols a symbol def tree containing symbol definitions
 * @param[in] structures a structure def tree containing structure definitions
 * @param[in] s the symbol
 * @param[in] surface the surface of the structure (may be necessary beause some structures have length info in the data)
 * @returns size of the structure
 *
 * <b>Examples (from test suite):</b>
 * @snippet spec/def_spec.h testGetSize
 */
size_t _d_get_symbol_size(T *symbols,T *structures,Symbol s,void *surface) {
    Structure st = _d_get_symbol_structure(symbols,s);
    return _d_get_structure_size(symbols,structures,st,surface);
}