summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-09 13:21:52 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-09 13:21:52 (GMT)
commitac08e647e9c9b96f0960c4231eed38f04d941ea9 (patch)
treea275ed1c496c879a80d2602654762074703f08d5 /generic
parenta6528d2ac354f750c06a598998de1565171c67e3 (diff)
parentcd1fc2183ef5dfde922e6b57a0f9419f84482a97 (diff)
downloadtcl-ac08e647e9c9b96f0960c4231eed38f04d941ea9.zip
tcl-ac08e647e9c9b96f0960c4231eed38f04d941ea9.tar.gz
tcl-ac08e647e9c9b96f0960c4231eed38f04d941ea9.tar.bz2
Merge 8.7
Diffstat (limited to 'generic')
-rw-r--r--generic/tclAlloc.c2
-rw-r--r--generic/tclAssembly.c10
-rw-r--r--generic/tclCkalloc.c2
-rw-r--r--generic/tclCmdAH.c4
-rw-r--r--generic/tclEvent.c2
-rw-r--r--generic/tclFileName.c3
-rw-r--r--generic/tclMain.c4
-rw-r--r--generic/tclObj.c2
-rw-r--r--generic/tclParse.c4
9 files changed, 17 insertions, 16 deletions
diff --git a/generic/tclAlloc.c b/generic/tclAlloc.c
index ebe1ec2..9291826 100644
--- a/generic/tclAlloc.c
+++ b/generic/tclAlloc.c
@@ -24,7 +24,7 @@
#include "tclInt.h"
#if !TCL_THREADS || !defined(USE_THREAD_ALLOC)
-#if USE_TCLALLOC
+#if defined(USE_TCLALLOC) && USE_TCLALLOC
/*
* We should really make use of AC_CHECK_TYPE(caddr_t) here, but it can wait
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c
index 81d06cc..b1bd848 100644
--- a/generic/tclAssembly.c
+++ b/generic/tclAssembly.c
@@ -131,7 +131,7 @@ enum BasicBlockFlags {
* Source instruction type recognized by the assembler.
*/
-typedef enum TalInstType {
+typedef enum {
ASSEM_1BYTE, /* Fixed arity, 1-byte instruction */
ASSEM_BEGIN_CATCH, /* Begin catch: one 4-byte jump offset to be
* converted to appropriate exception
@@ -145,8 +145,6 @@ typedef enum TalInstType {
* 1 */
ASSEM_DICT_GET, /* 'dict get' and related - consumes N+1
* operands, produces 1, N > 0 */
- ASSEM_DICT_GET_DEF, /* 'dict getwithdefault' - consumes N+2
- * operands, produces 1, N > 0 */
ASSEM_DICT_SET, /* specifies key count and LVT index, consumes
* N+1 operands, produces 1, N > 0 */
ASSEM_DICT_UNSET, /* specifies key count and LVT index, consumes
@@ -189,8 +187,10 @@ typedef enum TalInstType {
* produces N */
ASSEM_SINT1, /* One 1-byte signed-integer operand
* (INCR_STK_IMM) */
- ASSEM_SINT4_LVT4 /* Signed 4-byte integer operand followed by
+ ASSEM_SINT4_LVT4, /* Signed 4-byte integer operand followed by
* LVT entry. Fixed arity */
+ ASSEM_DICT_GET_DEF /* 'dict getwithdefault' - consumes N+2
+ * operands, produces 1, N > 0 */
} TalInstType;
/*
@@ -1264,7 +1264,7 @@ AssembleOneLine(
Tcl_Obj* instNameObj; /* Name of the instruction */
int tblIdx; /* Index in TalInstructionTable of the
* instruction */
- enum TalInstType instType; /* Type of the instruction */
+ TalInstType instType; /* Type of the instruction */
Tcl_Obj* operand1Obj = NULL;
/* First operand to the instruction */
const char* operand1; /* String rep of the operand */
diff --git a/generic/tclCkalloc.c b/generic/tclCkalloc.c
index e37d0b8..5951cf0 100644
--- a/generic/tclCkalloc.c
+++ b/generic/tclCkalloc.c
@@ -1290,7 +1290,7 @@ TclFinalizeMemorySubsystem(void)
Tcl_MutexUnlock(ckallocMutexPtr);
#endif
-#if USE_TCLALLOC
+#if defined(USE_TCLALLOC) && USE_TCLALLOC
TclFinalizeAllocSubsystem();
#endif
}
diff --git a/generic/tclCmdAH.c b/generic/tclCmdAH.c
index 4d25d0b..15669be 100644
--- a/generic/tclCmdAH.c
+++ b/generic/tclCmdAH.c
@@ -59,7 +59,7 @@ static int GetStatBuf(Tcl_Interp *interp, Tcl_Obj *pathPtr,
static const char * GetTypeFromMode(int mode);
static int StoreStatData(Tcl_Interp *interp, Tcl_Obj *varName,
Tcl_StatBuf *statPtr);
-static inline int EachloopCmd(Tcl_Interp *interp, int collect,
+static int EachloopCmd(Tcl_Interp *interp, int collect,
int objc, Tcl_Obj *const objv[]);
static Tcl_NRPostProc CatchObjCmdCallback;
static Tcl_NRPostProc ExprCallback;
@@ -2463,7 +2463,7 @@ TclNRLmapCmd(
return EachloopCmd(interp, TCL_EACH_COLLECT, objc, objv);
}
-static inline int
+static int
EachloopCmd(
Tcl_Interp *interp, /* Our context for variables and script
* evaluation. */
diff --git a/generic/tclEvent.c b/generic/tclEvent.c
index 13501b3..22ea3d5 100644
--- a/generic/tclEvent.c
+++ b/generic/tclEvent.c
@@ -1037,7 +1037,7 @@ Tcl_InitSubsystems(void)
TclInitThreadStorage(); /* Creates hash table for
* thread local storage */
-#if USE_TCLALLOC
+#if defined(USE_TCLALLOC) && USE_TCLALLOC
TclInitAlloc(); /* Process wide mutex init */
#endif
#if TCL_THREADS && defined(USE_THREAD_ALLOC)
diff --git a/generic/tclFileName.c b/generic/tclFileName.c
index 5e3e44a..bab3f90 100644
--- a/generic/tclFileName.c
+++ b/generic/tclFileName.c
@@ -587,7 +587,8 @@ Tcl_SplitPath(
* plus the argv pointers and the terminating NULL pointer.
*/
- *argvPtr = (const char **)Tcl_Alloc((((*argcPtr) + 1) * sizeof(char *)) + size);
+ *argvPtr = (const char **)Tcl_Alloc(
+ ((((*argcPtr) + 1) * sizeof(char *)) + size));
/*
* Position p after the last argv pointer and copy the contents of the
diff --git a/generic/tclMain.c b/generic/tclMain.c
index 0eea074..89bb8ec 100644
--- a/generic/tclMain.c
+++ b/generic/tclMain.c
@@ -43,7 +43,7 @@
# define _tcscmp strcmp
#endif
-static inline Tcl_Obj *
+static Tcl_Obj *
NewNativeObj(
TCHAR *string)
{
@@ -53,7 +53,7 @@ NewNativeObj(
Tcl_DStringInit(&ds);
Tcl_WCharToUtfDString(string, -1, &ds);
#else
- Tcl_ExternalToUtfDString(NULL, (char *) string, -1, &ds);
+ Tcl_ExternalToUtfDString(NULL, (char *)string, -1, &ds);
#endif
return TclDStringToObj(&ds);
}
diff --git a/generic/tclObj.c b/generic/tclObj.c
index e52098c..eeaf936 100644
--- a/generic/tclObj.c
+++ b/generic/tclObj.c
@@ -161,7 +161,7 @@ typedef struct PendingObjData {
static PendingObjData pendingObjData;
#define ObjInitDeletionContext(contextPtr) \
PendingObjData *const contextPtr = &pendingObjData
-#elif HAVE_FAST_TSD
+#elif defined(HAVE_FAST_TSD)
static __thread PendingObjData pendingObjData;
#define ObjInitDeletionContext(contextPtr) \
PendingObjData *const contextPtr = &pendingObjData
diff --git a/generic/tclParse.c b/generic/tclParse.c
index b821fa0..7bb92d5 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.c
@@ -119,7 +119,7 @@ const char tclCharTypeTable[] = {
* Prototypes for local functions defined in this file:
*/
-static inline int CommandComplete(const char *script, size_t numBytes);
+static int CommandComplete(const char *script, size_t numBytes);
static size_t ParseComment(const char *src, size_t numBytes,
Tcl_Parse *parsePtr);
static int ParseTokens(const char *src, size_t numBytes, int mask,
@@ -2398,7 +2398,7 @@ TclSubstTokens(
*----------------------------------------------------------------------
*/
-static inline int
+static int
CommandComplete(
const char *script, /* Script to check. */
size_t numBytes) /* Number of bytes in script. */