nsf.c

Clone Tools
  • last updated 6 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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

Use Boolean type on more occasions

Boolean type introduction

- Define Boolean type in a cross compiler / cross platform compatible way (similar to NaviServer)

- Include type in nsfInt (interal usage) but capable for pushing it to public usage later

- Use Boolean type for the most obvious cases

  1. … 1 more file in changeset.
improve type cleanness for clang 6.0

Align prototypes with function definitons and minor code cleanup

- reduce number of return statements before end of function

- reduce variable scopes

  1. … 3 more files in changeset.
write separate commands in different lines (esp. for control structures)

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.