Overview
| Comment: | Contribution by Patrick Fradin <[email protected]> Quoting his mail: <pre> ========================================================== Hi Jeff, I spent some of my time to contribute to the TclTk community ! I'm in late for Christmas gift but like we said in French : "Mieux vaut tard que jamais". ;-) I've use TclDevKit 5.3.0 tclchecker to analyse TclTk code in Tcl and Tk library directories (library, tools and tests) to correct a lot of warnings and few errors. (encapsulate some expr, use 'chan xxx' instead of fconfigure, fileevent...) I've made some improvements too : Examples : - Use 'lassign' instead of many 'lindex' of 'foreach/break' loop. - Use 'in' or 'ni' operators instead of 'lsearch -exact' or to factorise some eq/ne && / || tests. - Use 'eq' or 'ne' to tests strings instead of '==' or '!='. - Use 'unset -nocomplain' to avoid 'catch {unset...}'. - Remove some useless catch around 'destroy' calls. - Use expand {*} instead of 'eval'. Don't touch a lot of code because I don't know all structs and lists. I think it could be a greater improvement to reduce 'eval' calls. Due to previous experience, I dot not change any indentation ! ;-) ========================================================== </pre> |
|---|---|
| Timelines: | family | ancestors | descendants | both | contrib-patrick-fradin-code-cleanup |
| Files: | files | file ages | folders |
| SHA1: |
d8018229079dac111c9e11f703af325a |
| User & Date: | andreask on 2013-01-22 19:24:25.513 |
| Other Links: | branch diff | manifest | tags |
Context
|
2013-01-31
| ||
| 05:17 | merge trunk leaf check-in: 6ea5f2ccf9 user: dgp tags: contrib-patrick-fradin-code-cleanup | |
|
2013-01-22
| ||
| 19:24 | Contribution by Patrick Fradin <[email protected]> Quoting his mail: <pre> ================... check-in: d801822907 user: andreask tags: contrib-patrick-fradin-code-cleanup | |
|
2012-12-21
| ||
| 06:16 | merge release check-in: bace4350dd user: dgp tags: trunk | |
Changes
Modified library/auto.tcl
from [bba06bd0b2]
to [bd34043d14].
[diff]
Modified library/clock.tcl
from [7ac8c90e5b]
to [94d782133c].
[diff]
Modified library/history.tcl
from [d7ac339f98]
to [2eaca295b9].
[diff]
Modified library/http/http.tcl
from [72ae5febc7]
to [091664e6c6].
[diff]
Modified library/init.tcl
from [dab0f894d0]
to [e6b7adeeb7].
[diff]
Modified library/msgcat/msgcat.tcl
from [6ee37cb049]
to [31860c560e].
[diff]
Modified library/opt/optparse.tcl
from [f580ad7b46]
to [29b1b470f3].
[diff]
Modified library/package.tcl
from [dcfa5bd626]
to [78ab384065].
[diff]
Modified library/platform/platform.tcl
from [5766834543]
to [199f08a917].
[diff]
Modified library/platform/shell.tcl
from [2e7857565d]
to [689440c594].
[diff]
Modified library/safe.tcl
from [445afd28c7]
to [48a507c0f2].
[diff]
Modified library/tcltest/tcltest.tcl
from [fc9faa3a1c]
to [01d885246c].
[diff]
Modified library/tm.tcl
from [2077ec7d1e]
to [5761ec3339].
[diff]
Modified library/word.tcl
from [064ade841c]
to [5243f3076b].
[diff]
Modified tests/all.tcl
from [18fe8dc508]
to [45ff627b96].
[diff]
Modified tests/append.test
from [e7b7917d8a]
to [80c4ecf3f5].
[diff]
Modified tests/appendComp.test
from [b878a78738]
to [b198c46284].
[diff]
Modified tests/apply.test
from [acdda8d932]
to [3f8ad6293e].
[diff]
Modified tests/assemble.test
from [61dffa89ee]
to [0d42030ca3].
[diff]
Modified tests/assocd.test
from [3263d2ae68]
to [793e998fbb].
[diff]
Modified tests/async.test
from [f630c1f53d]
to [076b8faf82].
[diff]
Modified tests/autoMkindex.test
from [12af372915]
to [55b160d7bb].
[diff]
Modified tests/basic.test
from [c6ab13f689]
to [b61adbd39e].
[diff]
Modified tests/binary.test
from [dd5d93eb78]
to [fcacdc8540].
[diff]
Modified tests/case.test
from [5e54504670]
to [95719413c7].
[diff]
Modified tests/chan.test
from [7fadca46c5]
to [98681c4be5].
[diff]
Modified tests/chanio.test
from [109593d3c2]
to [a97ab15a8d].
[diff]
Modified tests/clock.test
from [f89a856fb1]
to [9e25e9e539].
[diff]
Modified tests/cmdAH.test
from [5170eeab49]
to [9f954a27e6].
[diff]
Modified tests/cmdIL.test
from [5b82acad8b]
to [a367ee5495].
[diff]
Modified tests/cmdInfo.test
from [38d8ad76f4]
to [857f7f357a].
[diff]
Modified tests/cmdMZ.test
from [88fb213b39]
to [0609f91968].
[diff]
Modified tests/compExpr-old.test
from [dd3d522d48]
to [bb5135c754].
[diff]
Modified tests/compExpr.test
from [ff6cce0573]
to [fee0dbd47e].
[diff]
Modified tests/compile.test
from [8c7c7353ff]
to [3dd49dd232].
[diff]
Modified tests/config.test
from [c44aa15217]
to [51a69980f8].
[diff]
Modified tests/coroutine.test
from [1e06765886]
to [0f165a68d9].
[diff]
Modified tests/dcall.test
from [50692def5f]
to [ad56c71a0c].
[diff]
Modified tests/dict.test
from [329de2e06f]
to [43716b6578].
[diff]
Modified tests/encoding.test
from [61992eb75f]
to [0fb285db5d].
[diff]
Modified tests/env.test
from [7644705f6c]
to [08111f494f].
[diff]
Modified tests/error.test
from [db2873778c]
to [760280a60d].
[diff]
Modified tests/event.test
from [9d8b8d0249]
to [d88191c453].
[diff]
Modified tests/exec.test
from [5f6feceabc]
to [77e3473c9c].
[diff]
Modified tests/execute.test
from [3160576808]
to [b9166d3026].
[diff]
Modified tests/expr-old.test
from [9e0c6e3015]
to [65b2236d80].
[diff]
Modified tests/expr.test
from [bd7081c3e6]
to [f60ac7e72d].
[diff]
Modified tests/fCmd.test
from [8171a44929]
to [65c6e078aa].
[diff]
Modified tests/fileName.test
from [9c78a49e0f]
to [1e105a11d6].
[diff]
Modified tests/fileSystem.test
from [7358b1b2be]
to [14eda95c2a].
[diff]
Modified tests/for-old.test
from [52234d8a91]
to [1c058b580c].
[diff]
Modified tests/for.test
from [d4947a48ef]
to [a159780afe].
[diff]
Modified tests/foreach.test
from [0d97e21bd6]
to [0431116c54].
[diff]
Modified tests/format.test
from [b5f54adebe]
to [70c6aea495].
[diff]
Modified tests/get.test
from [44f89911d4]
to [1a92946afa].
[diff]
Modified tests/history.test
from [d7ae79587b]
to [805dd6f901].
[diff]
Modified tests/http.test
from [5db7a46ef1]
to [734b3617f0].
[diff]
Modified tests/http11.test
from [31df71b9a9]
to [bd528832b7].
[diff]
Modified tests/httpd
from [3d878b63e8]
to [62c7d86640].
[diff]
Modified tests/httpd11.tcl
from [26cfc71b2d]
to [f8f1d16efc].
[diff]
Modified tests/httpold.test
from [041517150b]
to [d33c7ffdee].
[diff]
Modified tests/if-old.test
from [53132a3fc7]
to [294bbc9dd3].
[diff]
Modified tests/if.test
from [aa82dad429]
to [612b03a0b7].
[diff]
Modified tests/incr-old.test
from [bb6dc9c115]
to [dca9e9dae0].
[diff]
Modified tests/incr.test
from [b48fe3ae30]
to [985a2d3bb1].
[diff]
Modified tests/indexObj.test
from [cbf2da987e]
to [07e8015292].
[diff]
Modified tests/info.test
from [4faba87f0e]
to [e3fc3925e4].
[diff]
Modified tests/interp.test
from [f54e5f4486]
to [bdbb233628].
[diff]
Modified tests/io.test
from [3abfe19018]
to [5d6b54c95b].
[diff]
Modified tests/ioCmd.test
from [d6b914ae54]
to [047862e7e5].
[diff]
Modified tests/ioTrans.test
from [aff13053c8]
to [037873a93a].
[diff]
Modified tests/iogt.test
from [a09d3ce4f2]
to [aa8b05746f].
[diff]
Modified tests/join.test
from [d2b840483e]
to [02adbd1bf3].
[diff]
Modified tests/lindex.test
from [2aec0df96d]
to [24015b6a9f].
[diff]
Modified tests/link.test
from [fd58a0f49b]
to [915d44083b].
[diff]
Modified tests/linsert.test
from [c7363d8fb2]
to [5ee3b2e860].
[diff]
Modified tests/list.test
from [797a59bc53]
to [56581adf03].
[diff]
Modified tests/listObj.test
from [3d691728d0]
to [331e64e3d9].
[diff]
Modified tests/llength.test
from [08f2951298]
to [1f85b2a520].
[diff]
Modified tests/lmap.test
from [3097225d59]
to [37dd35c1f5].
[diff]
Modified tests/load.test
from [c7b2d3c69c]
to [e654b5abae].
[diff]
Modified tests/lrange.test
from [43f0d181f8]
to [431d28dbe1].
[diff]
Modified tests/lrepeat.test
from [6bc569af6a]
to [d559cc72d0].
[diff]
Modified tests/lreplace.test
from [b7a4bce1b1]
to [9a43664e7c].
[diff]
Modified tests/lsearch.test
from [c4694d0a6a]
to [d8ef2226c2].
[diff]
Modified tests/lset.test
from [6db50c7806]
to [d612fe821e].
[diff]
Modified tests/lsetComp.test
from [56ace038c3]
to [1ebd00e28f].
[diff]
Modified tests/macOSXFCmd.test
from [f4ad8211c0]
to [d322e29ccf].
[diff]
Modified tests/macOSXLoad.test
from [5236a441f1]
to [05c00d7734].
[diff]
Modified tests/main.test
from [46d4ab0b2b]
to [c26daf7ba4].
[diff]
Modified tests/mathop.test
from [11b30c90dd]
to [c9a2bac2d8].
[diff]
Modified tests/misc.test
from [e2615e0384]
to [09f4934c9d].
[diff]
Modified tests/msgcat.test
from [d106ad4060]
to [e5c0f18de6].
[diff]
Modified tests/namespace-old.test
from [92131bfea9]
to [2182b2591d].
[diff]
Modified tests/namespace.test
from [6bcadb3b43]
to [be02a59450].
[diff]
Modified tests/notify.test
from [6ded4c3edb]
to [cce3abbce3].
[diff]
Modified tests/nre.test
from [5b3c39a364]
to [898f5c8a1d].
[diff]
Modified tests/obj.test
from [2efa36982b]
to [e22e17b2c5].
[diff]
Modified tests/oo.test
from [8615f00cfb]
to [59ee744834].
[diff]
Modified tests/opt.test
from [5a788e9ef0]
to [45acd2b9d8].
[diff]
Modified tests/package.test
from [4d06f62307]
to [5f975437df].
[diff]
Modified tests/parse.test
from [3c82bc3ba5]
to [a3dee2946c].
[diff]
Modified tests/parseExpr.test
from [00a04d04f9]
to [78c1083ede].
[diff]
Modified tests/parseOld.test
from [70a01f902c]
to [f103fc0b2c].
[diff]
Modified tests/pid.test
from [971520831a]
to [9d520720c7].
[diff]
Modified tests/pkgMkIndex.test
from [050f511487]
to [2ebf508556].
[diff]
Modified tests/platform.test
from [b2789169eb]
to [dbccc3de21].
[diff]
Modified tests/proc-old.test
from [a3d1d78af3]
to [3c1890ebd1].
[diff]
Modified tests/proc.test
from [6b56a3cfef]
to [e749037bab].
[diff]
Modified tests/pwd.test
from [e5e635bfe2]
to [f7d0618da3].
[diff]
Modified tests/reg.test
from [1b42b2a028]
to [d243a1bdfd].
[diff]
Modified tests/regexp.test
from [c655d2560e]
to [7ea21b2cde].
[diff]
Modified tests/regexpComp.test
from [b6176e499b]
to [dc864b5ba7].
[diff]
Modified tests/registry.test
from [7242d0f3ad]
to [49be76d451].
[diff]
Modified tests/remote.tcl
from [cccb455f86]
to [bec4a3cd3a].
[diff]
Modified tests/rename.test
from [7f5426874b]
to [6c3116bf58].
[diff]
Modified tests/result.test
from [f8037a25d6]
to [3b48633d6b].
[diff]
Modified tests/safe.test
from [87778c9fde]
to [28d114ff67].
[diff]
Modified tests/scan.test
from [3c8bb3ef3b]
to [b6cec37621].
[diff]
Modified tests/security.test
from [efce891e66]
to [17cf4ecafc].
[diff]
Modified tests/set-old.test
from [a01f72d3de]
to [e031a26cb6].
[diff]
Modified tests/set.test
from [2bf184b885]
to [8f78063049].
[diff]
Modified tests/socket.test
from [d9465ecedd]
to [2832bbb909].
[diff]
Modified tests/source.test
from [d0cb36bcae]
to [f466f7794b].
[diff]
Modified tests/split.test
from [f8ae910deb]
to [98e28802c3].
[diff]
Modified tests/stack.test
from [c7bfb5d2e6]
to [386d3bca41].
[diff]
Modified tests/string.test
from [cfc0469c9c]
to [6237299a4c].
[diff]
Modified tests/stringComp.test
from [b5ba26aaca]
to [31d19f5a5c].
[diff]
Modified tests/stringObj.test
from [7317252624]
to [3666c1957d].
[diff]
Modified tests/subst.test
from [b41d6886ca]
to [dda2f0b348].
[diff]
Modified tests/switch.test
from [6638eb3b4d]
to [4bbfe49bdd].
[diff]
Modified tests/tailcall.test
from [ea4b49ae15]
to [fe7997e208].
[diff]
Modified tests/tcltest.test
from [c5d1ff4fb3]
to [01c46cbd1b].
[diff]
Modified tests/thread.test
from [d4d9e81442]
to [e07d2ffb28].
[diff]
Modified tests/timer.test
from [b77ab8267a]
to [55c5ce1604].
[diff]
Modified tests/tm.test
from [6ba0ef702c]
to [16e75e17d6].
[diff]
Modified tests/trace.test
from [9546e41a59]
to [0764b05ebc].
[diff]
Modified tests/unixFCmd.test
from [c6b4c42da2]
to [a136e38beb].
[diff]
Modified tests/unixFile.test
from [a61a7076d9]
to [9892edfccf].
[diff]
Modified tests/unixInit.test
from [efd6e19d4e]
to [ed19c89444].
[diff]
Modified tests/unixNotfy.test
from [a8b5f700a5]
to [79e7b1d1ea].
[diff]
Modified tests/unknown.test
from [56a25eaadc]
to [8cea334d64].
[diff]
Modified tests/unload.test
from [4e6f2029aa]
to [fe506502e5].
[diff]
Modified tests/uplevel.test
from [881396c398]
to [c58f262754].
[diff]
Modified tests/upvar.test
from [c923142ae1]
to [9bd0873a66].
[diff]
Modified tests/utf.test
from [4fbee65d25]
to [f57a84383a].
[diff]
Modified tests/util.test
from [8298f45f1a]
to [c4c49f6d92].
[diff]
Modified tests/var.test
from [e8a9b79f88]
to [928009a839].
[diff]
Modified tests/while-old.test
from [21905a987b]
to [4340f5db13].
[diff]
Modified tests/while.test
from [0b695745bf]
to [497eec6774].
[diff]
Modified tests/winConsole.test
from [87901b57e5]
to [85bc1afd73].
[diff]
Modified tests/winDde.test
from [83116e6e98]
to [a63c74831a].
[diff]
Modified tests/winFCmd.test
from [d653075dec]
to [74fabc437c].
[diff]
Modified tests/winFile.test
from [30c4115e86]
to [b7327d259e].
[diff]
Modified tests/winNotify.test
from [e09410753c]
to [6d0e852d38].
[diff]
Modified tests/winPipe.test
from [e84b4eca90]
to [7978b94bfb].
[diff]
Modified tests/winTime.test
from [0d16eee298]
to [41a4a5fa26].
[diff]
Modified tests/zlib.test
from [f1d9c70981]
to [c7cd34869f].
[diff]
Modified tools/checkLibraryDoc.tcl
from [b379b1d333]
to [e5e805457c].
[diff]
Modified tools/eolFix.tcl
from [26da09eff5]
to [0469a02bfa].
[diff]
Modified tools/findBadExternals.tcl
from [70dd79abd2]
to [ecf8eabd86].
[diff]
Modified tools/fix_tommath_h.tcl
from [5480c2c83c]
to [cfc3b97472].
[diff]
Modified tools/genStubs.tcl
from [5df4a5df0f]
to [c3743175b3].
[diff]
Modified tools/index.tcl
from [7b180341dd]
to [3f0ddd00cb].
[diff]
Modified tools/installData.tcl
from [c3218b97cf]
to [61ac26c47e].
[diff]
Modified tools/loadICU.tcl
from [05d4f1b371]
to [ecf6ab5480].
[diff]
Modified tools/makeTestCases.tcl
from [192115d282]
to [68a01f35a4].
[diff]
Modified tools/man2help.tcl
from [52a768e225]
to [66203da274].
[diff]
Modified tools/man2help2.tcl
from [986a4e8513]
to [5dd070b7fb].
[diff]
Modified tools/man2html.tcl
from [6faa1f51eb]
to [3512da0c09].
[diff]
Modified tools/man2html1.tcl
from [bb36b66631]
to [d278056a57].
[diff]
Modified tools/man2html2.tcl
from [d4ae61c23e]
to [b8db67901d].
[diff]
Modified tools/mkdepend.tcl
from [cb46e69de4]
to [7198e58e69].
[diff]
Modified tools/regexpTestLib.tcl
from [3e7a6e2b60]
to [ad80cb61f1].
[diff]
Modified tools/tcl.hpj.in
from [d0c9c3f4ea]
to [f8f236e3c5].
[diff]
Modified tools/tclZIC.tcl
from [243bbc9490]
to [7ef11713d4].
[diff]
Modified tools/tcltk-man2html-utils.tcl
from [805030adf9]
to [ca62446fb2].
[diff]
Modified tools/tcltk-man2html.tcl
from [3273a1e12e]
to [8a80e9c473].
[diff]
Modified tools/tsdPerf.tcl
from [c2004c3298]
to [ae65b71384].
[diff]
Modified tools/uniClass.tcl
from [d7b7f07251]
to [b9233e4a00].
[diff]
Modified tools/uniParse.tcl
from [d4bd28e9e5]
to [4c7f9c4f1e].
[diff]