nsf.c

Clone Tools
  • last updated 8 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Save code instrumentation to demonstrate the problem

  1. … 1 more file in changeset.
move the logic if Tcl_GetCommandFromObj() is returning an epoched obj to a more central place (GetObjectFromObj()) such it might kick in on other potential occasions as well.

- use TclFreeIntRep() instead of direct function calls - perform TclFreeIntRep() for Class and Object creation under Tcl 8.7

fix for Tcl 8.7: - when recreating an nsf object in in tcl 8.7, we seem to have to invalidate the intrep, otherwise the new command is not picked up by a later Tcl_GetCommandFromObj()

* nsf.c (NsfMethodAliasCmd): Tcl 8.7 is more picky about typePtr and intrep being in line. We need to NULL the typePtr explicitly. TclFreeIntRep does so for us as good Tcl citizens, rather than setting bodyObj->typePtr == NULL directly.

- address potential crash when a filter calls a filter which calls unknown

ExitHandler(): Re-locate clearing history from finalize to ExitHandler

NsfFinalizeCmd(): Clear Tcl's history list explicitly before finalizing NSF (see als ticket 1ae12987cb).

- fix typos in comments - align commenting style

ObjectSystemsCleanup(): Remove interp resolvers explicitly before the physical cleanup round

DeleteProcsAndVars(): Silence compiler warning and reduce variable scope (spotted with memtracking on)

- don't call tcl eval operations from NsfLog() in phyical destroy round - extend regression test for shell with tests in [info nameofexecutable] rather than in nxhs

  1. … 2 more files in changeset.
- improve sanity test in ISOBJ(): obj->bytes might only be NULL when type is given.

  1. … 2 more files in changeset.
- white space changes (mostly strip trailing spaces, remove a few tabs)

  1. … 5 more files in changeset.
- reduce variable scpoes

- cleanup of type conversions

  1. … 6 more files in changeset.
- cleanup of type conversions in ~first ~18000 lines

  1. … 2 more files in changeset.
- cleanup of type conversions in ~first 6000 lines Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen,

  1. … 1 more file in changeset.
- new subcommand "nsf::current level", returns empty, if we are not on a nsf frame/level. - keep compatibility with traditional "nsf::current activelevel" (continue to return 1, if we are not on an nsf frame)

  1. … 3 more files in changeset.
- return from "nsf::current callinglevel" the value 0 (instead of 1), when it is called outside of a frame, which has a nsf object associated.

  1. … 2 more files in changeset.
UnsetTracedVars(): Silence compiler warning under 8.5 by providing an explicit cast

ParamOptionParse(): 'virtualobjectargs' and 'virtualclassargs' defaulted to ConvertViaCmd when parsed from Tcl spec; explicitly set ConvertToNothing to match the intended semantics and to avoid false warnings (e.g., missing type=virtualobjectargs type checker)

NsfParameterInfoCmd(): Correct two typos in in-code comment

- make nsf compilable with "-DTCL_NO_DEPRECATED"

  1. … 2 more files in changeset.
RemoveInstance(): Fix typo and improve wording of nsf::log warning slightly

DispatchUnknownMethod(): Make sure that arcane method names make it into proper unknown error mesages (incl. names representing invalid Tcl lists); tests included; checked by valgrind

  1. … 2 more files in changeset.
- add thread IDs to debug lines

Merge branch 'master' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/nsf

- Remove manually mixinRegObjs during cleanup to silence sanity checking for object refcounts.

- add pthread id to debug message