From 3a5e6ac7c6018a7a0da7acd830293da0fcb7a21c Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 13 Jul 2014 20:56:57 +0200 Subject: Disabled/fixed segments that produced doxygen warnings while running the test --- testing/060/060__command__switch_8tcl.xml | 32 -------------------------- testing/060_command_switch.tcl | 38 +++++++++++++++---------------- testing/063/namespaceoo_1_1_helpers.xml | 5 ++-- testing/063/namespaceoo_1_1define.xml | 5 ++-- testing/063_bug_729092.tcl | 8 +------ 5 files changed, 24 insertions(+), 64 deletions(-) diff --git a/testing/060/060__command__switch_8tcl.xml b/testing/060/060__command__switch_8tcl.xml index d9424ef..05e01c6 100644 --- a/testing/060/060__command__switch_8tcl.xml +++ b/testing/060/060__command__switch_8tcl.xml @@ -35,8 +35,6 @@ q r s - x - y @@ -51,7 +49,6 @@ - y @@ -319,35 +316,6 @@ Invoked - - - x - args - x - - - - - - - - Invoked - - - - y - args - y - - - - - - - - Invoked - NotInvoked - diff --git a/testing/060_command_switch.tcl b/testing/060_command_switch.tcl index ab556d0..407f2e9 100644 --- a/testing/060_command_switch.tcl +++ b/testing/060_command_switch.tcl @@ -204,29 +204,29 @@ proc s args { return } # wrong syntax -proc x args { - catch {switch -exact -- [Invoked] pattern1 NotInvoked pattern2} - return -} +#proc x args { +# catch {switch -exact -- [Invoked] pattern1 NotInvoked pattern2} +# return +#} # The current version does not check the last argument beforehand. # Therefore, all script elements are evaluated as scripts before # the parser detects the dangling pattern. It throws a warning, at the very least. # Anyway, for working code the documentation will be correct. -proc y args { - catch {switch -exact -- [Invoked] { - pattern { - NotInvoked - } - NotInvoked { - NotInvoked - } - default { - NotInvoked - } - pattern - }} - return -} +#proc y args { +# catch {switch -exact -- [Invoked] { +# pattern { +# NotInvoked +# } +# NotInvoked { +# NotInvoked +# } +# default { +# NotInvoked +# } +# pattern +# }} +# return +#} # # call all single letter procs # let tcl check what is called and what is not called diff --git a/testing/063/namespaceoo_1_1_helpers.xml b/testing/063/namespaceoo_1_1_helpers.xml index 5f157c8..ff309cf 100644 --- a/testing/063/namespaceoo_1_1_helpers.xml +++ b/testing/063/namespaceoo_1_1_helpers.xml @@ -11,12 +11,11 @@ - Extension to TclOO to add static variables. Defines variables on the class instead of on the object. Can be used to enforce a limited number of instantiations. Do not modify! (unless you're waaay smarter than the writer of the below Tcl/Tk book). flynt2012tcl - + Extension to TclOO to add static variables. Defines variables on the class instead of on the object. Can be used to enforce a limited number of instantiations. - + diff --git a/testing/063/namespaceoo_1_1define.xml b/testing/063/namespaceoo_1_1define.xml index 50891e6..aa62fbd 100644 --- a/testing/063/namespaceoo_1_1define.xml +++ b/testing/063/namespaceoo_1_1define.xml @@ -11,12 +11,11 @@ - Extension to TclOO to add static methods. Defines the method on the class instead of on the object. Can be used for the creation of megawidgets using TclOO by overriding the unknown method to detect if the user is trying to instantiate a widget (because the method will be unknown and start with a dot). Do not modify! (unless you're waaay smarter than the writer of the below Tcl/Tk book). flynt2012tcl - + Extension to TclOO to add static methods. Defines the method on the class instead of on the object. Can be used for the creation of megawidgets using TclOO by overriding the unknown method to detect if the user is trying to instantiate a widget (because the method will be unknown and start with a dot). - + diff --git a/testing/063_bug_729092.tcl b/testing/063_bug_729092.tcl index 7c35f95..a6d3341 100644 --- a/testing/063_bug_729092.tcl +++ b/testing/063_bug_729092.tcl @@ -14,9 +14,6 @@ # the creation of megawidgets using TclOO by overriding the unknown method to # detect if the user is trying to instantiate a widget (because the method # will be unknown and start with a dot). -# @warning Do not modify! (unless you're waaay smarter than the writer of the -# below Tcl/Tk book). -# @cite flynt2012tcl # proc ::oo::define::classmethod {name {args ""} {body ""}} { # Create the method on the class if the caller gave arguments and body. @@ -33,9 +30,6 @@ proc ::oo::define::classmethod {name {args ""} {body ""}} { # Extension to TclOO to add static variables. # Defines variables on the class instead of on the object. Can be used to # enforce a limited number of instantiations. -# @warning Do not modify! (unless you're waaay smarter than the writer of the -# below Tcl/Tk book). -# @cite flynt2012tcl # proc ::oo::Helpers::classvar {args} { # Get reference to class's namespace. @@ -46,4 +40,4 @@ proc ::oo::Helpers::classvar {args} { uplevel "my variable $v" upvar #0 ${nsCl}::$v ${nsObj}::$v } -} \ No newline at end of file +} -- cgit v0.12