nsf

Clone Tools
  • last updated 2 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
- don't try to load nx when building pkgindex for a binary package (.so or dylib)

generic/nsfPointer.c: - add reference counter to avoid double-inits and double-frees in case the table of converters is used from multiple interpreters

- change base stub table from XOTcl to NSF. - improve wording of error messages.

- add parameter parser and converter to stub tables

- make converter usable from c-based packages compiled with subs activated

xotcl2: - fixed "... info defaults ..." and "... info instdefaults ..." emulation in XOTcl 2 - fixed error message - extended regression test - bumped revision of nsf/xotcl/nx to 2.0b6

    • -13
    • +30
    /library/xotcl/library/xotcl2.tcl
    • -0
    • +21
    /library/xotcl/tests/slottest.xotcl
- nsf: added switch "-checkalways" to nsf::method::create - nx: added switch "checkalways" to "method" and "object method" - extended regression test

- minor cleanup: * reduce variable scope * remove uncalled static function

-added flag -checkalways to nsf::proc and nsf::asm::proc (for the latter just a placeholder for now). If the flag is used, it will cause argument testing independently from the "configure checkarguments" setting. To force argument checking always is useful e.g. for checking external values (e.g. in a web server)

- fix object mehtod serializeExportedMethod: targetName might have been uninitialized

Realized enter traces for method procs; leave traces remain TBD

Explored assertion support from an NX perspective, by reviewing the current implementation against Eiffel's RAC; along the way, I made ::nsf::current more robust when being used in assertions

- don't call postcondition, when the command/invariant have returned already an error

nsf.c - fixed a bug where turning on assertions could swallow result-codes - extended regression test

- fix potential crash when preconditions are empty

- fix typo

- added sample script doc/example-scripts/tk-geo.tcl

    • -0
    • +959
    /doc/example-scripts/tk-geo.html
    • -0
    • +158
    /doc/example-scripts/tk-geo.tcl
    • binary
    /doc/example-scripts/tk-geo1.png
    • binary
    /doc/example-scripts/tk-geo2.png
- minor cleanup of configure script - bump version number of mongo support to 0.2

mongodb: - integrated configuration of mongodb into toplevel configfile option: --with-mongodb=MONGO_INCLUDE_DIR,MONGO_LIB_DIR - added regression test files for mongodb support (lowlevel (tcl-only) and highlevel (nx based oo support)) - integrated mongodb-testfiles with "make test" - reduced verbosity of nx-mongo.tcl (added verbosty variable)

    • -107
    • +112
    /library/mongodb/configure
    • -118
    • +0
    /library/mongodb/example-nsf-gridfs.tcl
    • -111
    • +0
    /library/mongodb/example-nsf-mongo.tcl
    • -180
    • +0
    /library/mongodb/example-nx-bi.tcl
    • -124
    • +0
    /library/mongodb/example-nx-mongo.tcl
    • -153
    • +0
    /library/mongodb/example-nx-reference-many.tcl
    • -134
    • +0
    /library/mongodb/example-nx-reference-one.tcl
  1. … 7 more files in changeset.
- fix typo

- added example scripts rosetta-sudoku.{tcl,html} and tk-ludo.{tcl,html}

    • -0
    • +1099
    /doc/example-scripts/rosetta-sudoku.html
    • -0
    • +312
    /doc/example-scripts/rosetta-sudoku.tcl
    • -0
    • +1389
    /doc/example-scripts/tk-ludo.html
    • -0
    • +547
    /doc/example-scripts/tk-ludo.tcl
mongodob: - don't call NsfLog() in Nsfmongo_Exit, since interp-data might be already cleaned up

- improve robustness

- added flag for verbosity

monogodb: - updated to most recent version of c-driver (0.7.1) - adapted to nx 2.0b5 (use everywhere cget interface) - tested with mongodb 2.4.5

    • -0
    • +314
    /library/mongodb/configure.ac
- updated locomotive example to use nx::callback

    • -4
    • +7
    /doc/example-scripts/tk-locomotive.html
    • -3
    • +6
    /doc/example-scripts/tk-locomotive.tcl
- add URL query variables as arguments

- updated TODO

- 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)

- explore the usage of dict instead of anonymous array