nsf

Clone Tools
  • last updated 19 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Starting documenting info ensemble

- provide nonnull statements for all functions in nsf.c

- some more code cleanup

- complete asserts due to nonnull

- update more copyright notices

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

- update copyright notice

nsf.c: - simplify few inner code pieces based on assertions - add serveral more assertions based on nonnull sepcifications.

- use nx rather than xotcl2 terminology in nsf::method::forward

- renamed "-methodprefix" to "-prefix" in nx, since the prefix can be applied as well applied to a cmd.

Addding doc fragment about require method

    • -0
    • +10
    /doc/require.man.inc
Adding a todo

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

- nsf.c, NsfForwardMethod(): Make sure that a 2nd argument is available for prepending the methodprefix. Earlier, NSF crashed in case of a missing 2nd arg. - Added some basic tests on -methodprefix.

- use nonnull variable attributes for prototpyes (nsf.h, nsfInt.h, nsf.c)

nsf.c: - de-spaghetti precedence computations for multiple inheritance and improve documentation - get rid of // comments

- stubsPtr can't be NULL there

- remove false alarm

- deactivated "-onerror", since its semantics are expressible via try/catch, and there are no regression tests for xotcl and nx, and we could not find any script that uses this

Adjusting forward doc, adding TODO

forward.test: Adding some tests

- use in forwarders "-frame object" instead of "-objframe" in nx for consistency with other calls (e.g. dispatch). Other values for "-frame" are not allowed. (btw, XOTcl has "-objscope")

- move "checkalways for forwarders and aliases" to RFEs and comment it

forwarders: - use for output of forward ... -verbose NsfLog(...NSF_LOG_NOTICE...) instead of fprintf() to make it redirect-able

forwarders: - RFE "provide %method" as keyword like %proc" was already implemented. Dropping %proc would break XOTcl2 compatibility. - adding a test case

Continue working on forward doc, adding some tests

Adding some todos

Working on Object.man, in particular forward

    • -0
    • +94
    /doc/forward.man.inc
- library/nx/nx.tcl: Pulling out method contracts (pre- and postconditions) from NX for the time being. Corresponding tests have been commented out or, if applicable, turned into XOTcl2-specific tests.

- finalize autoconf quoting