Logo Search packages:      
Sourcecode: jalv version File versions  Download package

uint32_t symap_try_map ( Symap map,
const char *  sym 

Map a string to a symbol ID if it is already mapped, otherwise return 0.

Definition at line 130 of file symap.c.

References SymapImpl::index, symap_search(), and SymapImpl::symbols.

      bool           exact;
      const uint32_t index = symap_search(map, sym, &exact);
      if (exact) {
            assert(!strcmp(map->symbols[map->index[index]], sym));
            return map->index[index];

      return 0;

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index