summaryrefslogtreecommitdiffstats
path: root/unix/tclLoadDl.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclLoadDl.c')
-rw-r--r--unix/tclLoadDl.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/unix/tclLoadDl.c b/unix/tclLoadDl.c
index 07bbc16..eabf387 100644
--- a/unix/tclLoadDl.c
+++ b/unix/tclLoadDl.c
@@ -268,6 +268,36 @@ UnloadFile(
}
/*
+ * These functions are fallbacks if we somehow determine that the platform can
+ * do loading from memory but the user wishes to disable it. They just report
+ * (gracefully) that they fail.
+ */
+
+#ifdef TCL_LOAD_FROM_MEMORY
+
+MODULE_SCOPE void *
+TclpLoadMemoryGetBuffer(
+ TCL_UNUSED(size_t))
+{
+ return NULL;
+}
+
+MODULE_SCOPE int
+TclpLoadMemory(
+ TCL_UNUSED(void *),
+ TCL_UNUSED(size_t),
+ TCL_UNUSED(Tcl_Size),
+ TCL_UNUSED(const char *),
+ TCL_UNUSED(Tcl_LoadHandle *),
+ TCL_UNUSED(Tcl_FSUnloadFileProc **),
+ TCL_UNUSED(int))
+{
+ return TCL_ERROR;
+}
+
+#endif /* TCL_LOAD_FROM_MEMORY */
+
+/*
* Local Variables:
* mode: c
* c-basic-offset: 4