|Purpose:||Remove functions from the library function list|
|Format:||UNLIBRARY [/Q /R file... (function ...)] function...|
|function||One or more library functions to remove from memory.|
|file||One or more files from which to read library functions to be undefined.|
TCC maintains a list of the functions that you have defined. The UNLIBRARY command will remove functions from that list. UNLIBRARY supports wildcards in the function name.
To remove the function DDIR:
To remove all the functions:
To remove all the functions that begin with "DD":
You can delete all matching library functions except for those specified by enclosing the exceptions in parentheses. For example, to remove all functions beginning with "f" except for func1 and func2:
unlibrary (func1 func2) f*
If you keep functions in a file that can be loaded with the LIBRARY /R command, you can remove the functions by using the UNLIBRARY /R command with the same file name:
unlibrary /r function.lst
This is much faster than removing each function individually in a batch file, and can be more selective than using UNLIBRARY *.
|/Q||Prevents UNLIBRARY from displaying an error message if one or more of the library functions do not exist. This option is most useful in batch files, for removing a group of functions when some of the functions may not have been defined.|
|/R||Read the list of functions to remove from a file. The file format should be the same format as that used by the LIBRARY /R command. You can use multiple files with one UNLIBRARY /R command by placing the names on the command line, separated by spaces:|
unlibrary /r function1.lst function2.lst