00001 #ifndef __MK_DSPSymbols_H___ 00002 #define __MK_DSPSymbols_H___ 00003 /* Copyright 1988-1992, NeXT Inc. All rights reserved. */ 00004 00005 #import "dsp_structs.h" 00006 00007 int DSPSetCurrentSymbolTable(int theIndex); 00008 /* 00009 * Set symbol table to specifed index, creating 00010 * a new table, if necessary. Index is zero-based. 00011 */ 00012 00013 void DSPClearSymbolTable(void); 00014 /* 00015 * Clear current symbol table. 00016 */ 00017 00018 void DSPFreeSymbolTable(void); 00019 /* 00020 * Free current symbol table. 00021 * DSPSymbol pointers entered into the table are not freed since they 00022 * belong to a DSPLoadSpec struct elsewhere. 00023 */ 00024 00025 int DSPEnterSymbol(char *sym, DSPSymbol *val); 00026 /* 00027 * Makes a current symbol table entry for a given string and stores the value. 00028 * Returns 0 for inserted, nonzero for updated previous value. 00029 * On the first call, the symbol table is created if necessary. 00030 * Case is preserved. 00031 */ 00032 00033 int DSPLookupSymbol(char *sym, DSPSymbol **val); 00034 /* 00035 * Gets symbol associated with string sym (normally its name). 00036 * Returns FALSE for found (no error), TRUE for not found. 00037 * Case matters. Uses current symbol table. 00038 */ 00039 00040 #endif