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