nsf.c

Clone Tools
  • last updated 8 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Improve profiling support - added profile support for undispatched methods (i.e. implemented via CallDirectly) - new function for controlling profile trace nsf:__profile_trace -enable /bool/ ?-verbose /bool/?

C-code generator:

- allow type boolean for non-positional arguments

  1. … 7 more files in changeset.
- changed trace facility to append to a variable to minimize interactions for results and return codes, which happen via nsf::log. - added more convenient function for adding to DStrings: Nsf_DStringPrintf - renamed NsfDStringPrintf to NsfDStringVPrintf - replaced complex macros for tracing by functions

  1. … 8 more files in changeset.
- added experimental "nsf::configure trace" feature, which can be enabled when compiled with profile support. trace turns on automatically profile

  1. … 4 more files in changeset.
- improve cleanness of compilation when "-pedantic" is used

  1. … 2 more files in changeset.
- move assignments after assertions

  1. … 2 more files in changeset.
- prefer const over CONST unless Tcl API

  1. … 6 more files in changeset.
- align log levels with NaviServer/AOLserver

  1. … 1 more file in changeset.
- fix all complaints from clang static analyzer 3.6

  1. … 1 more file in changeset.
- prefer boolean expression in tests over expressions of other types

  1. … 26 more files in changeset.
- add const declarations - improve compilation with --std=c99 -pedantic

  1. … 3 more files in changeset.
- make compilation clean under clang 3.6

  1. … 1 more file in changeset.
- Don't complain at final ObjectDeletion about object refcounts unless we are in development mode

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

  1. … 3 more files in changeset.
- keep an internal list of Tcl_Objs of type mixinrefs for classes used as mixins. This list is used for avoiding stale entries in cases the mixin class is destroyed.

  1. … 2 more files in changeset.
Merge branch 'master' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/nsf

  1. … 1 more file in changeset.
Done revising license statements in generic/*

  1. … 26 more files in changeset.
- fix a heisenbug probably showing sometimes up due to more aggressive Tcl_Obj sharing in newer versions of tcl 8.6

  1. … 2 more files in changeset.
Merge branch 'master' of ssh://alice.wu-wien.ac.at/usr/local/src/git-repo/nsf

- white-space changes

  1. … 15 more files in changeset.
Fix a typo reported by lintian

- reduce number of unsued symbols

  1. … 5 more files in changeset.
- fix a possible double refcount increment for argument converter (e.g. for normalizing input values). This could lead to small memory leaks.

- fix final refcounting bug: it was possible that classes contained in Tcl_Objs of type mixinreg were not freed, although their reference-counter became 0; now all test cases free all tcl_objs and referenced data structures allocated from nsf

  1. … 3 more files in changeset.
- fix memory leak with virtual parameters (resolved via args) with ref-counting

- remove // comments

- minor cleanup of "//"-comments

Minuscule refactoring, have DispatchUnknownMethod() reset the interp unknown-state directly, rather than its clients.

nsf.c: - make types for bit operations unsigned (mostly flags)

  1. … 7 more files in changeset.
nsf.c: - implement a new approach to error reporting in ensembles: instead of trying to find the "right" place to report the best "error", compute the longest valid ensemble prefix from all the stack frames.

  1. … 4 more files in changeset.
- make compilation clean again