lib

Clone Tools
  • last updated 11 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Harden nx::shell against inlined return statements

Some cleanup and adding basic test cases

  1. … 5 more files in changeset.
nx::shell reform: Provide an alternative nx::shell impl (nx::shell2), used by all four shell scripts. nx::shell2 builds on Tcl's event loop, rather than while + update. This avoids blocking the Tk main window (update). In addition, nx::shell2 is closer to Tcl's native shells (e.g., no extra lines on enter, catches EOF).

  1. … 4 more files in changeset.
nx::shell: Have xotclsh and xowish use nx::shell

  1. … 4 more files in changeset.
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)

In certain build situations, we might still run under Tcl 8.4 (because it comes as a legacy OS battery). Tcl modules are >= 8.5 only.

Remove any nxdoc artifacts from repo, to ease Debian packaging (incl. binary js is not accepted by lintian

    • -106
    • +0
    ./nxdoc-assets/@class.html.asciidoc
    • -289
    • +0
    ./nxdoc-assets/@class.html.yuidoc
    • -62
    • +0
    ./nxdoc-assets/@command.html.asciidoc
    • -117
    • +0
    ./nxdoc-assets/@command.html.yuidoc
    • -31
    • +0
    ./nxdoc-assets/@method.html.asciidoc
    • -20
    • +0
    ./nxdoc-assets/@object.html.asciidoc
    • -105
    • +0
    ./nxdoc-assets/@object.html.yuidoc
    • -45
    • +0
    ./nxdoc-assets/@package.html.asciidoc
    • -12
    • +0
    ./nxdoc-assets/@package.html.yuidoc
    • -102
    • +0
    ./nxdoc-assets/@project.html.asciidoc
    • -26
    • +0
    ./nxdoc-assets/@project.html.yuidoc
    • -388
    • +0
    ./nxdoc-assets/asciidoc/xhtml11.css
    • -52
    • +0
    ./nxdoc-assets/attributemethod.html.asciidoc
    • -131
    • +0
    ./nxdoc-assets/attributemethod.html.yuidoc
  1. … 37 more files in changeset.
- allow to configure verbosity in test sets

- omit warnings, when value of "expected" looks like a non-positional parameter

- handle ensembles in info nx::help

- provide a minimal nx::help

traits: - define simple setter methods "requiredMethods" and "requiredVariables" to avoid to "set" these explicitly

  1. … 3 more files in changeset.
- don't delete system slot ::xotcl::Attribute on cleanup

nx.tcl, xotcl2.tcl: - use value=* as names for interally called and forwarder-called accessor methods - disallow "assign" for nx::variableSlots

  1. … 12 more files in changeset.
- finalize dropping of setter methods for nx

  1. … 9 more files in changeset.
- show info line for every test case

- add flag "-onerror" to nsf::forward::method to handle errors during dispatch of a forwarder (not all error messags of forwarder are already transformed) - added log-level Info which prints always, e.g. for "-verbose" flag of forwarder - drop setter-rule from properties (use always forwarder) - drop "/obj/ /prop/" and "/obj/ /prop/ /value/" in favor of "/obj/ /prop/ get" and "/obj/ /prop/ assign /value/" to achieve better orthogonality with e.g. incremental properties

  1. … 16 more files in changeset.
- update copyright notices

  1. … 9 more files in changeset.
build-process: - replace make.tcl by the much simpler mkIndex.tcl: * Does not use pkg_mkIndex * Does not load binary files (problem for cross compiling) * Requires package provide with constant in one line.

  1. … 11 more files in changeset.
- remove obsolete code

nsf.c: - fix case, where NsfDStringPrintf() failed (when print llength including \0 was 1 byte longer than print buffer) - make sure, that the list kept for the cached parameter is just built from unshared objects; otherwise Tcl append will abort

nx.tcl:

- new package "nx::volatile"

- don't define configure parameter "-volatile" per default;

use "package req nx::volatile" instead

- don't define per method "volatile" per default;

use "::nsf::method::require ::nx::Object volatile" instead

- get rid of -volatile in nx.tcl and serializer

- update/extend regression test

  1. … 13 more files in changeset.
nx::traits: - handle ensemble methods correctly (use full method path for resolution) - add new regression tests for traits

  1. … 1 more file in changeset.
nsf.c: - change name of enumeratorConverterEntry to Nsf_EnumeratorConverterEntry, move it with NSF_ARG_* flags to tcl.h to make it available in derived modules using the converter - Added editor hints for a more uniform appearance

  1. … 44 more files in changeset.
- don't try to load nx when building pkgindex for a binary package (.so or dylib)

- added flag for verbosity

- prepare for providing nx as a tcl module (.tm file). this is just a preparation, since for testing, one cannot set up a path that prefers a local copy over a global installed one (the global tcl-site is preferred over the one specified in e.g. TCL8_5_TM_PATH)

  1. … 3 more files in changeset.
- keep packages versions from 2.0 and 1.0 disjoint

  1. … 28 more files in changeset.
- use tcl8.5 commands instead of 8.4 idioms

  1. … 5 more files in changeset.
nx::test: - use the standard configure interface for configuring instead of own version - changed from nx::Test to nx::test (user never has to know that nx::Test is a class).