nsf

Clone Tools
  • last updated 12 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- add editor hint

- move assignment aster nonnull assertions

- turned all for-loops controlled over a nonnull value into while loops.

- upadte version numbers in README

- fix description

Merge branch 'nx-slot-trace-handler'

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

Slot trace reform: - redesign of slot interface of traces from * variables contains cmds and variable references to * slot specific methods with the same interface as slot-setters - new: * specify flag "-trace" with a list of values "get", "set", "default" * when flag is set, a trace will be registered calling methods value=get obj variable value=set obj variable value value=default obj variable on the slot (actually the first two are identical with the methods used for slot-defined accessors) - updated regression test * new flag "-notrace" for "nsf::var::set" and "nsf::var::get"

    • -118
    • +28
    /library/xotcl/tests/slottest.xotcl
xotclsh, xowish: Make sure minor versions >2.1 are accepted

nx::shell: Have xotclsh and xowish use nx::shell

nx::shell: Have nxsh and nxwish use nx::shell

nx::shell: Avoid poluting global namespace

Started refactoring scripted shell environment into a single, package location (nx::shell) to ease sharing between nxsh & friends, as well as to facilitate implementingNX/XOTcl shells in wrapped applications (tclkits)

    • -0
    • +46
    /library/lib/nx-shell.tcl
- update release hints

- make sure to reset prevPreventRecursionFlags to value before the call

- added flags "-debug" and "-deprecated" to XOTcl 2 "instproc", "proc", "instforward" and "forward" methods

- changed interface of NsfDStringEval to control behavior via bitflags (this is after all more readable than a argument list of "0" and "1"s) - added optional recursion prevention for functions called via NsfDStringEval (handling NSF_EVAL_DEBUG, NSF_EVAL_LOG, NSF_EVAL_DEPRECATED) - added regression tests for potential recursive calls

- add absolute path in returned proc defintion to regression test

- add result in debug exit calls

- return fully qualified name for "::nsf::cmd::info definition" when called on plain procs

- generalize method serialization of forwarders

    • -100
    • +120
    /library/serialize/serializer.tcl
- fix compilation when DTRACE but no PROFILE is activated

- prefer boolean expressions in assert() statements

- make sure, we do not pass null values to nonnull arguments

- add etags target

- replace all remaning ObjectName and ClassName with variant with trailing "_" when appropriate - allow nsf::procs with zero arguments or plain arguments (when "-debug" is used - extended regression test - bump version number to 2.1

- provide backward compatibility in method-serializer

- fix potential memory corruption bug in NsfDStringVPrintf()

serializer: - added handling of "-debug" and "-deprecated" in serializer - allow export of nsfprocs via "exportMethods declaration" in order to keep otherwise excluded cmds in the result. this allows us to keep nsf::debug::* or nsf::deprecated definitions in the blueprint in OpenACS. - hardened serializer (use e.g. "::namespace" instead of "namespace" when there is a potential conflict with a method named "namespace", prefer nsf::directdispatch, etc.) - extended regression test

    • -11
    • +36
    /library/serialize/serializer.tcl
    • -27
    • +64
    /library/xotcl/tests/slottest.xotcl
- nx: added flag "-debug" and "-deprecated" to methods "method" "object method" "alias" "object alias" "forward" "object forward" such one can use e.g. /cls/ public alias -deprecated|-debug /method/ ... /cls/ public forward -deprecated|-debug /method/ ... /cls/ public method -deprecated|-debug /method/ ... /obj/ public object alias -deprecated|-debug /method/ ... /obj/ public object forward -deprecated|-debug /method/ ... /obj/ public object method -deprecated|-debug /method/ ...

- added new cmd:

nsf::method::property /obj/ ?-per-object? /method/ exists

to check, whether a method is defined for an object.

- output triggered via "-debug" is now generated via the

tcl functions "nsf::debug::call" and "nsf::debug::exit",

that can be redefined (similar to e.g. nsf::deprecated)

- cleanup of nsfProfile.c commands

- extended regression test