nsf.c

Clone Tools
  • last updated 20 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- make comparison slightly simpler (C style)

Merge branch '2.0.0-develop' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/xotcl into 2.0.0-develop

- Big internal changes for handling nre-enabled procs in more situations. Handles now all nx regression tests, but fails in testx.xotcl (just nre-enabled)

  1. … 10 more files in changeset.
Fixed the bitwise flag comparison in ProtectionMatches() which failed to yield a boolean result. This resulted in unanticipated [obj info methods -callprotection] behaviour, with the -callprotection filter seemingly being ignored. Added some tests to tests/info-method.tcl.

  1. … 1 more file in changeset.
- fixed handling of TclNRRunCallbacks, such that coroutines can be easily used (more testing required) - added temporary routine ::nsf::yieldcheck for coro debugging - renamed Tcl85showStack() to TclShowStack()

  1. … 4 more files in changeset.
- fixed a crash for tcl 8.6b1 in return value checking. now it complains about missing cmdPtr; it is not clear, why this is missing at the first place in 8.6b1 while working in 8.5

  1. … 3 more files in changeset.
- fix typo

- removed obsolete code

  1. … 2 more files in changeset.
- handle next in ensemble with arguments - extended regression test

  1. … 2 more files in changeset.
- new nsf::next cmd. receives 0 or 1 argument, which might be a list of arguments. This avoids ambiguity of ::xotcl::next with "--noArgs". - renamed namespace_copycmds and namespace_copyvars to nscopycmds and nscopyvars (we don't use "_" in nsf::*-names as delimiters elsewhere) - renamed __qualify to qualify (it is a non-exported cmd)

  1. … 6 more files in changeset.
- call internal NextSearchAndInvoke (without NextGetArguments) from the implicit next in ensemble methods - made NsfNextMethod() obsolete to ease different noarg handling policies

  1. … 2 more files in changeset.
- renamed functions in nsfStack.c to follow Tcl naming guidelines

  1. … 3 more files in changeset.
- renamed "... info ... subcommands ..." into "... submethods ..."

  1. … 4 more files in changeset.
- refactored next and argument passing (new methods NextGetArguments(), NextSearchAndInvoke() and CallStackFindEnsembleCsc()) - doing an internal next in cases where a method ensemble does not contain the called submethod - added regression tests for partial ensembles

  1. … 4 more files in changeset.
- implemented next within ensemble methods - added regression tests for next within ensembles - added regression tests for upvar with ensembles

  1. … 3 more files in changeset.
- working on next from ensemble

- first steps towards next-handling in ensemble methods

  1. … 1 more file in changeset.
- removed overhead on ::nsf::dispatch when called with absolute paths - absolute paths have to start with ":".

  1. … 2 more files in changeset.
- improve comments in nsf.c - follow closer naming of Tcl style guide

  1. … 1 more file in changeset.
- added "info method subcommands ..." to return list of subcommands (of the ensemble) - extended regression test - use always NULL instead of 0 when assigning to a pointer variable

  1. … 5 more files in changeset.
- changed "cls object method ..." and friends into "cls class-object method ..."

  1. … 18 more files in changeset.
- fixed handles with subcommands for class methods when called on classes or objects - extended regression test

  1. … 2 more files in changeset.
- fixed handles with subcommands used on objects without namespaces - new functions: GetRegObject()

  1. … 2 more files in changeset.
- second part of ensemble name resolver, distinguish between registration object and definition object - new functions: GetRegObject() - extended regression test

  1. … 3 more files in changeset.
- pass tclobj instead of string to NsfObjInfoMethodMethod and NsfObjInfoMethodsMethod - first part of ensemble name resolver. We can resolve now e.g. [nx::Object info method parameter "info lookup methods"]

  1. … 3 more files in changeset.
- changed "info available" into "info lookup" (and accordingly c definitions, migration guide)

  1. … 14 more files in changeset.
- new function AliasDeleteObjectReference() to delete aliases to objects - removed some obsolete functions

  1. … 1 more file in changeset.
- handle aliases to (sub)ensemble objects during final cleanup to improve sharing of logic. - share definition of "info callable" and "info has" ensemble between object info and class info

  1. … 2 more files in changeset.
- splitted "info callable" into an ensemble (submethods have quite different signatures) - added "info callable slots" with functionality of "info slotobjects" - removed "info slotobjects"

  1. … 6 more files in changeset.
- [::nx::Object info method parameter info] returns now empty instead of error. - extended regression test

  1. … 2 more files in changeset.