generic

Clone Tools
  • last updated 22 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
generalize handling of isTYPE calls by defining CHARTTYPE

The macro was developed earlier on NaviServer, and is used

in nsf for "upper", "space" and "alpha" character checkers

Provide an initializer for the new size_t field of Tcl_ObjType (Tcl 9)

removed TCL_OUT_LINE_COMPILE, which is removed in Tcl 9.0 (many thanks to Jan Nijtmans)

reduce warnings for other compilers

reduce warnings for clang

clang has no "-Wmaybe-uninitialized" flag

address the maybe-uninitialized warnings

I do not really like the approach based on pragmas, but i do even

less like the warnings, when compiled with -pedantic

reduced compiler warnings when compiling against Tcl 8.6* with TIDY settings

Deactive block for double-checking chached data for Tcl commands

Leave the code for potential future debugging purposes

minor polishing

fix comment

fix compilation hickups for Tcl 8.5

reduce warnings from redefined constants

fix typo

improve compatibility with core-8 branch

fix for Tcl versions having Tcl_LibraryInitProc() already defined (core-8)

provde compatibility for core-8-7-a3

fix compatibility with earlier versions of Tcl 8.7

Improve cleanness of compilation under gcc-11+ and "-pedantic" + -Wextra"

Added support for compiling with Tcl 9.0 (Many Thanks to Jan Nijtmans for first steps)

This version compiles cleanly at least with Tcl 8.6.* and Tcl 9.0 (fossil trunk),

having -pedantic and -Wextra defined.

    • -0
    • +368
    ./stubs9.0/nsfDecls.h
    • -0
    • +89
    ./stubs9.0/nsfIntDecls.h
    • -0
    • +130
    ./stubs9.0/nsfStubInit.c
  1. … 6 more files in changeset.
cleanup: avoid memory leak in cases the Tcl_DictObjPut fails

added option "-asdict" to nsf::parseargs

The new option makes it easier to process the parsed argument in different

contexts

  1. … 1 more file in changeset.
Bug fix: include alias to object in "info methods -path"

Previously, it was not possible to define an alias to an object for

NaviServer, since it was not returned by "info methods -path" and

was therefore not included in the blueprint.

Extended regression test.

  1. … 4 more files in changeset.
improve function description

* nsfAccessInt.h (TclFreeIntRep): A recent name reform requires an explicit define for backwards compat.

remove realtive costly asserts when not in development mode

* nsf.c (ObjectDispatch): Fix another invalid read of a cached cmd structure (NsfColonCommandContext)

* nsf.c (NsfUnsetTrace, VolatileMethod): Plug a post-mortem memleak related to volatile objects (The Tcl_Obj carrying an auto-qualified object name was not cleaned up properly during interp shutdown because the matching decrement operations used to be disabled during shutdown.)

* nsf.c (ObjectDispatch): Fix invalid read as indicated by valgrind by guarding access to intrep.

fixed false positive from facebook infer 1.1.0

reduced warnings from clang12 static checker (null value passed to non-null arguments, dead assignment, ...)