nsf.c

Clone Tools
  • last updated 10 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
FilterSearchAgain(): Avoid running into an invalid pointer access, when the physical deletion of "del" conflicts with following the next link in the cmdList in the loop's increment statement (only iff del == cmdList). Re-organized for into a while loop, to avoid redundant code.

GetClassFromObj(): Fix invalid memory access (valgrind)

- make intentions about clientData clear to static checker

- move declarations to the begin of a code block - remove debug code

- use consistent comment styles

- NsfProcStubDeleteProc(): Protect against potentially dangling namespace references from within ::nsf::procs::*. The wrapper cmd's namespace of an nsf::proc might already have been deleted when ::nsf::procs::* shuts down finally. This showed up during a Tcl_Exit (NSF's ExitHandler) as an invalid memory access via (dangling) namespace pointers (valgrind).

  1. … 1 more file in changeset.
cmd resolver work - fix test, when OS specific cmd resolver is used from a NSF_CSC_CALL_IS_COMPILE frame - improved output from __db_show_obj: put results into one line instead of multiple lines - new debug function __db_get_obj: return into about a tcl_obj in form of a dict (in general, one should not rely on Tcl_Obj internals, especially when upgrading over major Tcl versions, but for testing/understanding behavior etc., such a command is helpful). - extend regression test

  1. … 5 more files in changeset.
Merge branch 'master' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/nsf

- add test for the global cmd literal sharing - keep experimental code for disassembling methods

  1. … 2 more files in changeset.
NsfParseArgsCmd: Fix memory leak

memcount: correct book-keeping in SetInstVar

Avoid inline comment style

  1. … 4 more files in changeset.
Suppress cppcheck warning: adding explicit int cast

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

- handle case that showed up with Zoran during final shutdown: in case, an object is deleted after the interp is deleted (which should not happen), don't crash.

Suppress cppcheck warning: reduce variable scope

Some verbosity for tracing issue

  1. … 1 more file in changeset.
- cleanup up and improve debug statements - add generated code

  1. … 2 more files in changeset.
Rename one more 'bool' identifier

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

In MSVC 14 (Visual Studio 2015) and newer, 'bool' is a proper type, not a typedef anymore. 'bool' cannot be used as identifier anymore (C2632)

- add new command nsf::parseargs to parse an argument vector against a parameter definition and to set the resulting variables in the current scope - extend regression test

  1. … 5 more files in changeset.
- change "struct timeval" to "Tcl_Time" and gettimeofday() to Tcl_GetTime() in profiling code to improve portability (esp windows)

  1. … 3 more files in changeset.
Address two more gcc6 pedantic warnings

- move initializations after nonnull asserts

  1. … 2 more files in changeset.
- move initializations after nonnull asserts

- ease life of static checkers

- removed one more possible NULL comparison with a non-null value

- adding refcount handling before+after the call of NsfCallObjectUnknownHandler()

- Let nsf create classes with ::nsf::object::unknown handler in the fly, when c-function are called with objects of type class. This is necessary for triggering creation attempts in ttrace via ::nsf::object::alloc SOMECLASS SOMEOBJ

  1. … 2 more files in changeset.