Developer Guide
Page 1055
...Example: This example creates a temporary folder, adds a locked symbol to it */ HeapWalk( H_WALK_SYM ); /* dump symbol table to the link port (see HeapWalk), looks up the same symbol just added and finally deletes the temporary folder which ...deletes everything in the folder including the locked symbol. DerefSym(hsym1)->Flags |= SF_LOCK; /* to show FolderDel will still delete it , dumps the symbol table to link port */ /* lookup same symbol we just added */ hsym2 = FindSymInFolder( symName+5, foldName+5 ); /* HSYMs better match! */ if (hsym1 != hsym2) ER_THROW( FIRST_INTERNAL_ERR ); ...
...Example: This example creates a temporary folder, adds a locked symbol to it */ HeapWalk( H_WALK_SYM ); /* dump symbol table to the link port (see HeapWalk), looks up the same symbol just added and finally deletes the temporary folder which ...deletes everything in the folder including the locked symbol. DerefSym(hsym1)->Flags |= SF_LOCK; /* to show FolderDel will still delete it , dumps the symbol table to link port */ /* lookup same symbol we just added */ hsym2 = FindSymInFolder( symName+5, foldName+5 ); /* HSYMs better match! */ if (hsym1 != hsym2) ER_THROW( FIRST_INTERNAL_ERR ); ...
Developer Guide
Page 1065
symbol[1] Flags & (SF_LOCK|SF_INUSE)) == 0) { TRY HSymDel(hSym); /* delete it */ nLeft--; Appendix A: System Routines - Symbol Table Utilities 1023 HSymDel (continued) Example: /* Clear the single letter variables (A . . . SYM_ENTRY *pSym; short nLeft; for Distribution Beta Version January 26, 2001 BYTE symbol[] = {0, 0, 0}; ONERR ENDTRY } } } return nLeft; } TI-89 / TI-92 Plus Developer Guide Not for (nLeft=26, symbol[1] = 'a'; Z) in the current folder and return the number that could not be deleted. */ short clearAtoZ( void ) { HSYM hSym;
symbol[1] Flags & (SF_LOCK|SF_INUSE)) == 0) { TRY HSymDel(hSym); /* delete it */ nLeft--; Appendix A: System Routines - Symbol Table Utilities 1023 HSymDel (continued) Example: /* Clear the single letter variables (A . . . SYM_ENTRY *pSym; short nLeft; for Distribution Beta Version January 26, 2001 BYTE symbol[] = {0, 0, 0}; ONERR ENDTRY } } } return nLeft; } TI-89 / TI-92 Plus Developer Guide Not for (nLeft=26, symbol[1] = 'a'; Z) in the current folder and return the number that could not be deleted. */ short clearAtoZ( void ) { HSYM hSym;