wavelength 1.0.0
Loading...
Searching...
No Matches
symbol.h File Reference

Go to the source code of this file.

Functions

const char * LookupSymbol (const char *pszText)
 Find the interned copy of a symbol's text.
const char * AddSymbol (const char *pszText)
 Copy text into the symbol pool and enter the copy in the symbol table.

Function Documentation

◆ LookupSymbol()

const char * LookupSymbol ( const char * pszText)

Find the interned copy of a symbol's text.

Text that already lies in the symbol pool is its own interned copy. Other text is looked up in the symbol table, which the routine never adds to.

Parameters
pszTextThe text.
Returns
The interned copy, or null when the symbol table has no such text.
Ghidra address:
NTSC-U/C: 0x002971b8
Ghidra address:
PAL: 0x002a0dc8

◆ AddSymbol()

const char * AddSymbol ( const char * pszText)

Copy text into the symbol pool and enter the copy in the symbol table.

The caller first checks with LookupSymbol() that the text is not interned yet. The name is inferred.

Parameters
pszTextThe text.
Returns
The interned copy.
Ghidra address:
NTSC-U/C: 0x002972a0
Ghidra address:
PAL: 0x002a0eb0