summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2019-04-30 13:35:53 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2019-04-30 13:35:53 (GMT)
commitae1d2d2d40e05b234f974ec40e5f073f10107b42 (patch)
tree8fff7cdcc0bafacd639f1399556b69fb0e319696
parent688e4e85455890e8a7bdf3435bf88206ce97f9ea (diff)
downloadtcl-ae1d2d2d40e05b234f974ec40e5f073f10107b42.zip
tcl-ae1d2d2d40e05b234f974ec40e5f073f10107b42.tar.gz
tcl-ae1d2d2d40e05b234f974ec40e5f073f10107b42.tar.bz2
Export API
-rw-r--r--generic/tclInt.decls6
-rw-r--r--generic/tclIntDecls.h6
-rw-r--r--generic/tclStubInit.c1
-rw-r--r--unix/tclUnixFCmd.c1
4 files changed, 13 insertions, 1 deletions
diff --git a/generic/tclInt.decls b/generic/tclInt.decls
index 106b4e9..3870f3d 100644
--- a/generic/tclInt.decls
+++ b/generic/tclInt.decls
@@ -1028,6 +1028,12 @@ declare 257 {
void TclStaticPackage(Tcl_Interp *interp, const char *pkgName,
Tcl_PackageInitProc *initProc, Tcl_PackageInitProc *safeInitProc)
}
+
+# TIP 431: temporary directory creation function
+declare 258 {
+ Tcl_Obj *TclpCreateTemporaryDirectory(Tcl_Obj *dirObj,
+ Tcl_Obj *basenameObj)
+}
##############################################################################
diff --git a/generic/tclIntDecls.h b/generic/tclIntDecls.h
index eddbcb3..56abe77 100644
--- a/generic/tclIntDecls.h
+++ b/generic/tclIntDecls.h
@@ -653,6 +653,9 @@ EXTERN void TclStaticPackage(Tcl_Interp *interp,
const char *pkgName,
Tcl_PackageInitProc *initProc,
Tcl_PackageInitProc *safeInitProc);
+/* 258 */
+EXTERN Tcl_Obj * TclpCreateTemporaryDirectory(Tcl_Obj *dirObj,
+ Tcl_Obj *basenameObj);
typedef struct TclIntStubs {
int magic;
@@ -916,6 +919,7 @@ typedef struct TclIntStubs {
int (*tclPtrObjMakeUpvar) (Tcl_Interp *interp, Tcl_Var otherPtr, Tcl_Obj *myNamePtr, int myFlags); /* 255 */
int (*tclPtrUnsetVar) (Tcl_Interp *interp, Tcl_Var varPtr, Tcl_Var arrayPtr, Tcl_Obj *part1Ptr, Tcl_Obj *part2Ptr, const int flags); /* 256 */
void (*tclStaticPackage) (Tcl_Interp *interp, const char *pkgName, Tcl_PackageInitProc *initProc, Tcl_PackageInitProc *safeInitProc); /* 257 */
+ Tcl_Obj * (*tclpCreateTemporaryDirectory) (Tcl_Obj *dirObj, Tcl_Obj *basenameObj); /* 258 */
} TclIntStubs;
extern const TclIntStubs *tclIntStubsPtr;
@@ -1359,6 +1363,8 @@ extern const TclIntStubs *tclIntStubsPtr;
(tclIntStubsPtr->tclPtrUnsetVar) /* 256 */
#define TclStaticPackage \
(tclIntStubsPtr->tclStaticPackage) /* 257 */
+#define TclpCreateTemporaryDirectory \
+ (tclIntStubsPtr->tclpCreateTemporaryDirectory) /* 258 */
#endif /* defined(USE_TCL_STUBS) */
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c
index 2eb2259..ec6e735 100644
--- a/generic/tclStubInit.c
+++ b/generic/tclStubInit.c
@@ -749,6 +749,7 @@ static const TclIntStubs tclIntStubs = {
TclPtrObjMakeUpvar, /* 255 */
TclPtrUnsetVar, /* 256 */
TclStaticPackage, /* 257 */
+ TclpCreateTemporaryDirectory, /* 258 */
};
static const TclIntPlatStubs tclIntPlatStubs = {
diff --git a/unix/tclUnixFCmd.c b/unix/tclUnixFCmd.c
index 80e7ed0..861ff66 100644
--- a/unix/tclUnixFCmd.c
+++ b/unix/tclUnixFCmd.c
@@ -2298,7 +2298,6 @@ TclpCreateTemporaryDirectory(
{
Tcl_DString template, tmp;
const char *string;
- Tcl_Obj *resultingNameObj;
#define DEFAULT_TEMP_DIR_PREFIX "tcl"