nsf.c

Clone Tools
  • last updated 20 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
More code cleanup

- make nsf compilable with tcl 8.7.2 and TCL_NO_DEPRECATED turned on

- prefer bool over int

- reduce nr of returns before end of function

- line bread overlong function definitions

  1. … 12 more files in changeset.
prefer boolean over int

Reduce number of return statements beofre end of function

cleanup: fix regression, prefer boolean over int, reduce number of returns befor end of function

Don't pass colon-prefixed method names from setter cmd to SetInstVar() to avoid potential shimmering.

- add Tcl_Obj caching to cget argument - redued usage of goto statements - reduced size of largish function

  1. … 1 more file in changeset.
introduce macro ObjTypeStr for commonly used idiom

  1. … 1 more file in changeset.
prefer boolean over int

coloncmd reform (part 4): perform validation for per-object cases, provide more detailed statistics (when compiled with COLON_CMD_STATS)

Reduce memory consumption for cache by caching just cmds in non-volatile Tcl_Objs. Add optional statistics, when COLON_CMD_STATS is defined.

simplify expression

remove unneeded variable

add NsfDList functions similar to Tcl_DString, but operating on void* instead of char and use it for ColonCmdCache data

  1. … 1 more file in changeset.
Simplify handling of "returns" object. no need to require paramdefs, when just returnsObj is needed

  1. … 1 more file in changeset.
coloncmd reform (part 3): keep a per-interp list of colon command cache entries to avoid memory leaks in cases the objects are converted

  1. … 1 more file in changeset.
coloncmd reform (part 2): generalize code and apply for object specific commands as well

  1. … 3 more files in changeset.
coloncmd reform (part 1): improve dispatch of [:method ...] by up to 30%

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

pass execNsPtr to byte-compiler (which might be different to procPtr->cmd->nsPtr)

* nsf.c (NextSearchAndInvoke): Relax the pre-conditions, objv can actually be NULL (see test cases). Besides, the assertion was not reflected by a corresponding nonnull constraints on the NextSearchAndInvoke prototype.

  1. … 1 more file in changeset.
More code cleanup:

- use Boolean type when appropriate

- add missing comments

More code cleanup:

- use Boolean type when appropriate

- reduce implicit conversions

  1. … 1 more file in changeset.
More code cleanup:

- use Boolean type when appropriate

- reduce implicit conversions

More code cleanup:

- use Boolean type when appropriate

More code cleanup:

- use Boolean type when appropriate

More code cleanup:

- use Boolean type when appropriate

More code cleanup:

- use Boolean type when appropriate

More code cleanup:

- move nonnull assertion to separate line

- use Boolean type when appropriate

  1. … 1 more file in changeset.
remove unused arguments

  1. … 4 more files in changeset.
Use Boolean type on more occasions Fix incorrect comments Fix mixture of Tcl result code and 0/1 integers