nsf.c

Clone Tools
  • last updated 7 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added NR callback for uplevel; to be tested (WIP)

Update copyright years [skip ci]

  1. … 4 more files in changeset.
minor cleanup and extended regression test - reduce returns before end of function - reduce variable scopes - don't use variable for different purposes

  1. … 1 more file in changeset.
* nsf.c (NsfOUplevelMethod): Add some comments to NsfOUplevelMethod; and clean up after rework.

Merge branch 'master' into uplevel-reform-pt2

* nsf.c, methods.test: Cont'd uplevel reform to sanitize the single-arg case (in light of recent changes to 8.7, TIP 515 and for the sake of XOTcl 1 compatibility): A single arg to uplevel won't be inspected for a level specifier anymore; added tests and TODOs

  1. … 1 more file in changeset.
Silence clang 8 static checker

improve documentation

  1. … 20 more files in changeset.
make spaces after comma regular

  1. … 8 more files in changeset.
avoid one-liner loop

reduce dead store operations and null after dereference

  1. … 1 more file in changeset.
added "pure" declarations

removed null test after dereferences, avoid potentail null dereferences in error cases

  1. … 3 more files in changeset.
removed null test after dereferences

  1. … 3 more files in changeset.
improve code safety and remove dead statement

get rid of warning of static checker, reduce number of returns before end of function

minor code cleanup

  1. … 1 more file in changeset.
add asserts

fix memory leak on "hyper-volatile" objects. it seems, we have to set the _is_autonamed flag in advance of obj initialization

addressing coverty defect 337829 (dereference before null check)

make spelling more consitent

Provide a more conservative change for setting autonamed flag

* nsf.c (NsfCCreateMethod): Fix access of potentially freed object to set the autonamed property (indicated by valdgrind). When destroyed and cleaned during DoObjInitialization, "newObject" will remain as a dangling pointer. Besides, setting the property before DoObjInitialization will make the object property available from within the initcmd or init method.

* nsf.c (NsfProcStubDeleteProc): Plug leakage of command structure (found by valgrind)

muniro formatting changes

* nsf.c (NsfDebugShowObj): For consistency, stick with %x using PRIxPTR

*nsf.c (NsfDebugShowObj): Simplify from using %x to %p, to avoid PTR2UINT (which, starting with 8.7, will return u long, not u int)

Change http:// occurrences to https://, if applicable (URLs tested)

  1. … 57 more files in changeset.
Rewrite URLs containing tcl.tk as authority to tcl-lang.org

  1. … 13 more files in changeset.
move new assertion to the right place