Skip to content

Commit

Permalink
Merge branch 'master' into c23ok
Browse files Browse the repository at this point in the history
  • Loading branch information
bovine authored Jan 18, 2024
2 parents 2fe04c5 + a28fe35 commit 64fea04
Show file tree
Hide file tree
Showing 37 changed files with 234 additions and 226 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![Linux CI](https://github.com/flightaware/tclx/workflows/Linux%20CI/badge.svg)
![Mac CI](https://github.com/flightaware/tclx/workflows/Mac%20CI/badge.svg)
[![Linux CI](https://github.com/flightaware/tclx/actions/workflows/linux-ci.yml/badge.svg)](https://github.com/flightaware/tclx/actions/workflows/linux-ci.yml)
[![Mac CI](https://github.com/flightaware/tclx/actions/workflows/mac-ci.yml/badge.svg)](https://github.com/flightaware/tclx/actions/workflows/mac-ci.yml)

# Extended Tcl (TclX)

Expand Down
25 changes: 20 additions & 5 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -2342,7 +2342,7 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
ac_compiler_gnu=$ac_cv_c_compiler_gnu
FULL_VERSION="8.6.1"
FULL_VERSION="8.6.2"
# TEA extensions pass this us the version of TEA they think they
Expand Down Expand Up @@ -9075,7 +9075,8 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <time.h>
#include <stdlib.h>
#include <time.h>
int
main ()
{
Expand Down Expand Up @@ -9111,7 +9112,8 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <time.h>
#include <stdlib.h>
#include <time.h>
int
main ()
{
Expand Down Expand Up @@ -9196,10 +9198,11 @@ else
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <stdlib.h>
#include <sys/types.h>
#include <sys/times.h>
#include <unistd.h>
main() {
int main(void) {
struct tms cpu;
times(&cpu);
sleep(2);
Expand Down Expand Up @@ -9462,6 +9465,17 @@ else
fi
for ac_func in rresvport
do :
ac_fn_c_check_func "$LINENO" "rresvport" "ac_cv_func_rresvport"
if test "x$ac_cv_func_rresvport" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_RRESVPORT 1
_ACEOF
fi
done
#-------------------------------------------------------------------------
# Check for additional libraries the Tcl/Tk does not check for.
Expand Down Expand Up @@ -9524,7 +9538,8 @@ if test "x$ac_cv_func_catgets" = xyes; then :
$as_echo_n "checking catclose return value... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
#include <nl_types.h>
#include <stdlib.h>
#include <nl_types.h>
int
main ()
{
Expand Down
2 changes: 1 addition & 1 deletion generic/tclExtdInt.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ TclX_StructOffset (void *nsPtr, size_t offset,
#define TclX_WriteNL(channel) (Tcl_Write (channel, "\n", 1))

extern int
TclX_StrToOffset (CONST char *string,
TclX_StrToOffset (const char *string,
int base,
off_t *offsetPtr);

Expand Down
16 changes: 10 additions & 6 deletions generic/tclExtend.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,22 @@ EXTERN void TclX_SplitWinCmdLine (int *argcPtr, char ***argvPtr);
/*
* Exported utility functions.
*/

#if defined(__GNUC__) && __GNUC__ >= 4
__attribute__((sentinel))
#endif
EXTERN void TclX_AppendObjResult TCL_VARARGS_DEF(Tcl_Interp *, interpArg);

EXTERN char * TclX_DownShift (char *targetStr, CONST char *sourceStr);
EXTERN char * TclX_DownShift (char *targetStr, const char *sourceStr);

EXTERN int TclX_StrToInt (CONST char *string, int base, int *intPtr);
EXTERN int TclX_StrToInt (const char *string, int base, int *intPtr);

EXTERN int TclX_StrToUnsigned (CONST char *string,
EXTERN int TclX_StrToUnsigned (const char *string,
int base,
unsigned *unsignedPtr);

EXTERN char * TclX_UpShift (char *targetStr,
CONST char *sourceStr);
const char *sourceStr);

/*
* Exported keyed list object manipulation functions.
Expand Down Expand Up @@ -143,7 +147,7 @@ EXTERN void_pt TclX_HandleAlloc (void_pt headerPtr,
EXTERN void TclX_HandleFree (void_pt headerPtr,
void_pt entryPtr);

EXTERN void_pt TclX_HandleTblInit (CONST char *handleBase,
EXTERN void_pt TclX_HandleTblInit (const char *handleBase,
int entrySize,
int initEntries);

Expand All @@ -161,7 +165,7 @@ EXTERN void TclX_WalkKeyToHandle (void_pt headerPtr,

EXTERN void_pt TclX_HandleXlate (Tcl_Interp *interp,
void_pt headerPtr,
CONST char *handle);
const char *handle);

EXTERN void_pt TclX_HandleXlateObj (Tcl_Interp *interp,
void_pt headerPtr,
Expand Down
4 changes: 2 additions & 2 deletions generic/tclXbsearch.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static int
TclX_BsearchObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

/*-----------------------------------------------------------------------------
*
Expand Down Expand Up @@ -296,7 +296,7 @@ static int
TclX_BsearchObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
int status;
binSearchCB_t searchCB;
Expand Down
12 changes: 6 additions & 6 deletions generic/tclXchmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ static int
TclX_ChmodObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

static int
TclX_ChownObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

static int
TclX_ChgrpObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);


/*-----------------------------------------------------------------------------
Expand Down Expand Up @@ -306,7 +306,7 @@ ChmodFileIdObj (Tcl_Interp *interp, modeInfo_t modeInfo, Tcl_Obj *fileIdObj)
*-----------------------------------------------------------------------------
*/
static int
TclX_ChmodObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
TclX_ChmodObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
int objIdx, idx, fileObjc, fileIds, result;
modeInfo_t modeInfo;
Expand Down Expand Up @@ -371,7 +371,7 @@ TclX_ChmodObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *
*-----------------------------------------------------------------------------
*/
static int
TclX_ChownObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
TclX_ChownObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
int objIdx, ownerObjc, fileIds;
Tcl_Obj **ownerObjv = NULL;
Expand Down Expand Up @@ -455,7 +455,7 @@ TclX_ChownObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *
*-----------------------------------------------------------------------------
*/
static int
TclX_ChgrpObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
TclX_ChgrpObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
int objIdx, fileIds;
char *fileIdsSwitch, *groupString;
Expand Down
4 changes: 2 additions & 2 deletions generic/tclXcmdloop.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static int
TclX_CommandloopObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

/*-----------------------------------------------------------------------------
* IsSetVarCmd --
Expand Down Expand Up @@ -665,7 +665,7 @@ TclX_CommandLoop (Tcl_Interp *interp,
*-----------------------------------------------------------------------------
*/
static int
TclX_CommandloopObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
TclX_CommandloopObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
int options = 0, async = FALSE, argIdx, interactive;
char *argStr, *endCommand = NULL;
Expand Down
2 changes: 1 addition & 1 deletion generic/tclXcoalesce.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*-----------------------------------------------------------------------------
*/
static int
TclX_CoalesceObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[])
TclX_CoalesceObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
{
int i;
Tcl_Obj *val;
Expand Down
4 changes: 2 additions & 2 deletions generic/tclXdebug.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int
TclX_CmdtraceObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

static void
DebugCleanUp (ClientData clientData,
Expand Down Expand Up @@ -387,7 +387,7 @@ static int
TclX_CmdtraceObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
traceInfo_pt infoPtr = (traceInfo_pt) clientData;
int idx;
Expand Down
4 changes: 2 additions & 2 deletions generic/tclXdup.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static int
TclX_DupObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);


/*-----------------------------------------------------------------------------
Expand Down Expand Up @@ -193,7 +193,7 @@ static int
TclX_DupObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
Tcl_Channel newChannel;
int bindFnum, fnum;
Expand Down
4 changes: 2 additions & 2 deletions generic/tclXfcntl.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static int
TclX_FcntlObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);


/*-----------------------------------------------------------------------------
Expand Down Expand Up @@ -279,7 +279,7 @@ static int
TclX_FcntlObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
Tcl_Channel channel;
int mode;
Expand Down
12 changes: 6 additions & 6 deletions generic/tclXfilecmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,19 @@ static int
TclX_PipeObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

static int
TclX_FtruncateObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

static int
TclX_ReaddirObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);


/*-----------------------------------------------------------------------------
Expand All @@ -67,7 +67,7 @@ static int
TclX_PipeObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
Tcl_Channel channels [2];
const char *channelNames [2];
Expand Down Expand Up @@ -160,7 +160,7 @@ static int
TclX_FtruncateObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
int objIdx, fileIds;
off_t newSize;
Expand Down Expand Up @@ -247,7 +247,7 @@ static int
TclX_ReaddirObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
Tcl_DString pathBuf;
char *dirPath;
Expand Down
12 changes: 6 additions & 6 deletions generic/tclXfilescan.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ static int
TclX_ScancontextObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

static int
TclX_ScanmatchObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

static void
CopyFileCloseHandler (ClientData clientData);
Expand Down Expand Up @@ -119,7 +119,7 @@ static int
TclX_ScanfileObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[]);
Tcl_Obj *const objv[]);

static void
FileScanCleanUp (ClientData clientData,
Expand Down Expand Up @@ -331,7 +331,7 @@ static int
TclX_ScancontextObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
char *subCommand;

Expand Down Expand Up @@ -393,7 +393,7 @@ TclX_ScancontextObjCmd (ClientData clientData,
static int
TclX_ScanmatchObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc, Tcl_Obj *CONST objv[])
int objc, Tcl_Obj *const objv[])
{
scanContext_t *contextPtr, **tableEntryPtr;
matchDef_t *newmatch;
Expand Down Expand Up @@ -776,7 +776,7 @@ static int
TclX_ScanfileObjCmd (ClientData clientData,
Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[])
Tcl_Obj *const objv[])
{
scanContext_t *contextPtr, **tableEntryPtr;
Tcl_Obj *contextHandleObj, *fileHandleObj, *copyFileHandleObj;
Expand Down
Loading

0 comments on commit 64fea04

Please sign in to comment.