nsfStack.c

Clone Tools
  • last updated 15 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
add const and pure declarations

  1. … 2 more files in changeset.
More code cleanup:

- use Boolean type when appropriate

- reduce implicit conversions

  1. … 1 more file in changeset.
align naming of variables in function prototypes and definitions

  1. … 5 more files in changeset.
mark unused arguments as UNUSED

  1. … 1 more file in changeset.
prefer meaningful name in function prototypes align names in .decls file with prototypes in the .c and .h files

  1. … 6 more files in changeset.
Move prototypes to begin of file

Minor cleanup: remove commented code, add missin nonnull-assert, shorten overlong lines

* nsf.c, nsfStack.c: Bump copyright years.

  1. … 1 more file in changeset.
* nsf.c (ObjectCmdMethodDispatch), protected.test: For ensemble (submethod) dispatches, since ever, call protection had not been enforced at all. This commit enables call protection (protected) for ensembles and adds basic tests. * nsfStack.c (GetSelfObj): To allow one to resolve the self reference at arbitrary callstack levels, separate GetSelfObj into GetSelfObj (macro) for the topmost self and GetSelfObj2.

  1. … 2 more files in changeset.
minor cleanup and optimizations

  1. … 1 more file in changeset.
Minor cleanup

  1. … 1 more file in changeset.
Cleanup and Optimization

- align code with documentation

- remove dead code

- minor optimization

  1. … 1 more file in changeset.
White space changes

Reduce number of returns before end of function

* nsf.c (NsfCurrentCmd), nsfStack.c (CallStackNextFrameOfType): Render [current isnextcall] aware of ensembles. Extended submethods.test to cover [current isnextcall] within ensembles.

  1. … 2 more files in changeset.
- Don't assume that CallStackGetTopFrame0() reurns != NULL - reduce variable scopes - reduce number of returns before function end

  1. … 3 more files in changeset.
- Use uniform spelling of "Tcl" - Fix more spelling errors

  1. … 18 more files in changeset.
- don't shadow variables

  1. … 1 more file in changeset.
- prefer boolean expressions - reduce number of implicit signed/unsigned conversions

  1. … 3 more files in changeset.
- remove always false statement used for controlling output of showstack

* Updated copyright dates and copyright notices

  1. … 17 more files in changeset.
* Updated copyright dates and copyright notices

  1. … 17 more files in changeset.
nsfStack.c: Unify writing style

- white space changes (mostly strip trailing spaces, remove a few tabs)

  1. … 5 more files in changeset.
- cleanup of type conversions in ~first 6000 lines Bitte geben Sie eine Commit-Beschreibung für Ihre Änderungen ein. Zeilen,

  1. … 1 more file in changeset.
- improve variable for logging from "debugLevel" to "logSeverity" (print logging messages which have a severity larger equal the then given value; so; "nsf::configure debugLevel 0" will print everything, and "nsf::configure debugLevel 3" will print just error messages and omit warnings etc.) - this is not a change in sematics, but removes some confusion in the code. therefore the configure name was not changed - Remove 2 occurrences of deprecated Tcl Call Tcl_AppendResult() in nsfStubLib

  1. … 6 more files in changeset.
remove various code smells: - add const declarations - prefer boolean tests - don't write "for" loops without a block - don't pass non-initialized value in an array on index [0] - reduce variable scope - prefer single returns statements in functions - dont't use CONST unless defined by Tcl-API

  1. … 9 more files in changeset.
- change "struct timeval" to "Tcl_Time" and gettimeofday() to Tcl_GetTime() in profiling code to improve portability (esp windows)

  1. … 3 more files in changeset.
- turned all for-loops controlled over a nonnull value into while loops - updated TODO, copyright notices, version number

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

  1. … 5 more files in changeset.