nsf.c

Clone Tools
  • last updated 14 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
avoid potentially dangerous call strcat(); remove unneeded assignment

  1. … 1 more file in changeset.
whitespace changes

polish and comment the execNs change for Tcl 8.5

Quickfix fot Tcl 8.5 (needs still more investigation)

add const declarations, reduce variable scopes, break longish lines

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

* nsf.c (NsfConfigureCmd): Fix NSF_DTRACE=1 builds.

add const and pure declarations

  1. … 2 more files in changeset.
adding const declarations, variable name cleanup

more code cleanup: - reuduce number of returns before end of function - ease live for static checker - use more "const" declarations

  1. … 1 more file in changeset.
- prefer bool over int - reduce number of gotos - reduce number of returns before end of function - reduce variable scopes - add "const" declaration - white-space changes

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)