Example #1
0
static void addSectionSymbol( owl_section_handle section, const char *name ) {
//****************************************************************************

    section->sym = OWLSymbolInit( section->file, name );
    OWLSymbolDefine( section->file->symbol_table, section->sym, section, 0, OWL_TYPE_SECTION, OWL_SYM_GLOBAL );
    section->sym->x.section = section;
}
Example #2
0
void OWLENTRY OWLFileSymbol( owl_file_handle file, const char *name ) {
//*********************************************************************

    owl_symbol_handle sym;

    assert( name != NULL );
    sym = OWLSymbolInit( file, name );
    OWLSymbolDefine( file->symbol_table, sym, NULL, 0, OWL_TYPE_FILE, OWL_SYM_GLOBAL );
    sym->x.file = file;
}