os/persistentdata/persistentstorage/sqlite3api/TEST/TCL/tcldistribution/generic/tclLoadNone.c
Update contrib.
4 * This procedure provides a version of the TclLoadFile for use
5 * in systems that don't support dynamic loading; it just returns
8 * Copyright (c) 1995-1997 Sun Microsystems, Inc.
10 * See the file "license.terms" for information on usage and redistribution
11 * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13 * RCS: @(#) $Id: tclLoadNone.c,v 1.11 2002/07/18 16:26:03 vincentdarley Exp $
19 *----------------------------------------------------------------------
23 * This procedure is called to carry out dynamic loading of binary
24 * code; it is intended for use only on systems that don't support
25 * dynamic loading (it returns an error).
28 * The result is TCL_ERROR, and an error message is left in
29 * the interp's result.
34 *----------------------------------------------------------------------
38 TclpDlopen(interp, pathPtr, loadHandle, unloadProcPtr)
39 Tcl_Interp *interp; /* Used for error reporting. */
40 Tcl_Obj *pathPtr; /* Name of the file containing the desired
42 Tcl_LoadHandle *loadHandle; /* Filled with token for dynamically loaded
43 * file which will be passed back to
44 * (*unloadProcPtr)() to unload the file. */
45 Tcl_FSUnloadFileProc **unloadProcPtr;
46 /* Filled with address of Tcl_FSUnloadFileProc
47 * function which should be used for
51 "dynamic loading is not currently available on this system",
57 *----------------------------------------------------------------------
61 * Looks up a symbol, by name, through a handle associated with
62 * a previously loaded piece of code (shared library).
65 * Returns a pointer to the function associated with 'symbol' if
66 * it is found. Otherwise returns NULL and may leave an error
67 * message in the interp's result.
69 *----------------------------------------------------------------------
72 TclpFindSymbol(interp, loadHandle, symbol)
74 Tcl_LoadHandle loadHandle;
81 *----------------------------------------------------------------------
83 * TclGuessPackageName --
85 * If the "load" command is invoked without providing a package
86 * name, this procedure is invoked to try to figure it out.
89 * Always returns 0 to indicate that we couldn't figure out a
90 * package name; generic code will then try to guess the package
91 * from the file name. A return value of 1 would have meant that
92 * we figured out the package name and put it in bufPtr.
97 *----------------------------------------------------------------------
101 TclGuessPackageName(fileName, bufPtr)
102 CONST char *fileName; /* Name of file containing package (already
103 * translated to local form if needed). */
104 Tcl_DString *bufPtr; /* Initialized empty dstring. Append
105 * package name to this if possible. */
111 *----------------------------------------------------------------------
115 * This procedure is called to carry out dynamic unloading of binary
116 * code; it is intended for use only on systems that don't support
117 * dynamic loading (it does nothing).
125 *----------------------------------------------------------------------
129 TclpUnloadFile(loadHandle)
130 Tcl_LoadHandle loadHandle; /* loadHandle returned by a previous call
131 * to TclpDlopen(). The loadHandle is
132 * a token that represents the loaded