summaryrefslogtreecommitdiffstats
path: root/generic/tclOO.c
Commit message (Collapse)AuthorAgeFilesLines
* More generation of error codes (TclOO miscellany).dkf2011-04-041-0/+16
| | | FossilOrigin-Name: 08998a4f586f1580b406fb7ede45dccddbeebeb5
* Adjust ckalloc/ckfree macros to greatly reduce number of explicit casts indkf2011-03-121-46/+38
| | | | | rest of Tcl source code. No ABI change. API change *should* be harmless. FossilOrigin-Name: 5574bdd262b2672cde48771787370c12854cecf4
* Reorganization of call context reference count management so that codedkf2011-03-011-16/+5
| | | | | is (mostly) simpler. FossilOrigin-Name: 25d2a66f4de7efec148a46f106297b860ac2d5bd
* [Patch 2961556]: Change TclOO to use the same style of function typedefs asdkf2010-03-051-3/+3
| | | | | | Tcl, as this is about the last chance to get this right. FossilOrigin-Name: 6723a5d58cf061918d17b16c9d273719638c01a4
* Code Audit results:dkf2010-03-051-3/+2
| | | | | | | | | | * use do { ... } while (0) in macros * avoid shadowing one local variable with another * use clearer 'foo.bar++;' instead of '++foo.bar;' where result not required (i.e., semantically equivalent) * follow Engineering Manual rules on spacing and declarations FossilOrigin-Name: 4d8a4f639d28df5b5dfabd407be8efbb44454601
* Fix [Bug 2962664] by forcing oo::object deletion on oo::class deletion.dkf2010-03-041-6/+24
| | | FossilOrigin-Name: b1e964413ea1920263f3ab66418d70fce6f27cd4
* reverted earlier rename from tcl*Stubs tonijtmans2010-02-151-3/+3
| | | | | | | | | | tcl*ConstStubs, it's not necessary at all. tclEnsemble.c: Fix signed-unsigned mismatch make tclWinProcs "const" Add first part of mslu support, See [Feature Request #2819611] FossilOrigin-Name: 0d29245dd5206eba5211a17216e65982d0be8923
* Fix [Bug 2950259] so that deleting an object by killing its namespace willdkf2010-02-151-2/+40
| | | | | | reliably call the object's destructor. FossilOrigin-Name: bc959e87fbb0749417264044100ac94fa0e8b790
* [Bug 2949397]: Prevent destructors from running on the two core class objectsdkf2010-02-111-2/+9
| | | | | | when the whole interpreter is being destroyed. FossilOrigin-Name: ed48aba1da92fb37a3f277bf56003797823b3fd1
* Follow-up to earlier commit today:nijtmans2010-02-051-3/+3
| | | | | | | | Eliminate the need for an extra Stubs Pointer for adressing a static stub table: Just change the exported table from static to MODULE_SCOPE. FossilOrigin-Name: b809fb2cbc1d415f61219d9c1b019d552efde765
* Chisel away at reducing the cost of recent changes.dkf2010-02-021-59/+55
| | | FossilOrigin-Name: 876d72038d1c00f9009480466cdbf7e397feba84
* Make things compile... D'oh!dkf2010-01-281-2/+2
| | | FossilOrigin-Name: b6675927c4da2e9fd3388343ad292939215a07da
* Improvements to destructor handling.dkf2010-01-281-15/+72
| | | | | | Stop crashes from odd destruction routes. FossilOrigin-Name: ca70f094be1873138d5f9fb8b0d0787e451c3a23
* Ensure that destroying an object in a constructor doesn't crash. [Bug 2903011]dkf2009-11-241-4/+44
| | | FossilOrigin-Name: 56012b12ec31da593a4718b087d1ccac2b2a3678
* Eliminate various gcc warnings (in -Wextra mode)nijtmans2009-11-181-3/+3
| | | FossilOrigin-Name: 8780faf488c79569934af0cd318800d73489137d
* Expose function to efficiently return current name of an object.dkf2009-07-191-2/+10
| | | FossilOrigin-Name: 0a8cf0ea4bd0ab835d91ca309f6369b18a91cfe6
* Reorganize method cache handling a bit to better support itcl nasty cases.dkf2009-07-121-22/+38
| | | | | | [Bug 1895546] FossilOrigin-Name: 18d45c03cdbfd7ce57665f4f065005647546c752
* Fix [Bug 2414858].dkf2009-05-081-1/+2
| | | FossilOrigin-Name: f08e13c9dedad4c3fdabb8d1e0b37b0decc48637
* Missed a spot.dkf2009-05-051-2/+4
| | | FossilOrigin-Name: 42f5ad1fbc90fe3c406bb21d43a780d7960683b1
* Stop deletion of support namespaces leading to a potential crash.dkf2009-05-041-10/+58
| | | FossilOrigin-Name: dd2f12204249f24f0903f94c53ad5a70aeb2e9ee
* Fix [Bug 2481109]dkf2009-01-061-3/+5
| | | FossilOrigin-Name: dc504e5b79e61e315804f94c82f5c71590161bca
* Fix [Bug 2200824] and make class constructor error handling much more robust.dkf2008-10-311-6/+12
| | | FossilOrigin-Name: c8dd022f7e09fd76778993ccb2afd93d8089305a
* Implementation of TIP #320.#320.#320.dkf2008-09-231-2/+20
| | | FossilOrigin-Name: 9bc559dfecaf90d35b29ada553d71366642a9017
* Improve the semantics of C-implemented destructors slightly.dkf2008-09-011-18/+31
| | | FossilOrigin-Name: 879ea220fd5c7722445e38216126c4f64dd6da41
* Fix performance bug introduced by fix of [Bug 2037727]dkf2008-08-201-1/+9
| | | FossilOrigin-Name: fbf4a7e36a841d285c06a3e40ac393e1115c6e18
* * generic/tclOO.c: Revised TclOO's check for an interpdgp2008-08-061-2/+2
| | | | | | | | | | | | being deleted during handling of object command deletion. The old code was relying on documented features of command delete traces that do not in fact work. [Bug 2039178]. * tests/oo.test (oo-26.*): Added tests that demonstrate failure of TclOO to check for various kinds of invalid bytecode during method dispatch. [Bug 2037727]. FossilOrigin-Name: dc2c6d9a11f5bcabee1e0acb8aecc5fd2af4de15
* new TclNRAddCallback macro for internal use instead of the publicmsofer2008-07-181-4/+4
| | | | | | Tcl_NRAddCallback FossilOrigin-Name: 41bf7d9039838529fef6ebd671f8bd57844a6aff
* NRE-enable the TclOO constructor system.dkf2008-07-181-11/+140
| | | FossilOrigin-Name: e092b4ac90c73e8a045f8774b1e5bfe59008eada
* * generic/tcl.decls: Change the public api prefix frommsofer2008-07-181-8/+8
| | | | | | | | | | | | | | | | | | | * generic/tcl.h: TclNR_foo to Tcl_NRfoo * generic/tclBasic.c: * generic/tclDecls.h: * generic/tclDictObj.c: * generic/tclExecute.c: * generic/tclInterp.c: * generic/tclNRE.h: * generic/tclNamesp.c: * generic/tclOO.c: * generic/tclOOBasic.c: * generic/tclOOCall.c: * generic/tclOOMethod.c: * generic/tclProc.c: * generic/tclStubInit.c: FossilOrigin-Name: 028024f0d323bcbb2bf25aca558315642093fb46
* NRE-aware TclOO.dkf2008-07-161-10/+126
| | | FossilOrigin-Name: a8d83acd188df8a873518f5d731cf8cea8f0c668
* Make [next] work as described in TIP. [Bug 1998244]dkf2008-06-191-6/+15
| | | FossilOrigin-Name: 3f569d031dc3ed31a4742aea81fce39cbbe64968
* * generic/tclOO.c: use TclOOStubs hooks field to retrievedas2008-06-121-3/+3
| | | | | | | | | * generic/tclOODecls.h: TclOOIntStubs pointer. [Bug 1980953] * generic/tclOOIntDecls.h: * generic/tclOOStubInit.c: * generic/tclOOStubLib.c: FossilOrigin-Name: 7e4d255b669650f3552ae0f5aae42777e19da9f9
* * generic/tclOO.c (ReleaseClassContents): Fix the one remainingkennykb2008-06-021-1/+5
| | | | | | | | | valgrind complaint about oo.test, caused by failing to protect the Object as well as the Class corresponding to a subclass being deleted and hence getting a freed-memory read when attempting to delete the class command. [Bug 1981001] FossilOrigin-Name: 9188c64990785af62fd9e6a80d24232aea893581
* * generic/tclOOStubLib.c: ensure use of tcl stubs; include indas2008-05-311-5/+6
| | | | | | | | | | | | | | | | * unix/Makefile.in: stub lib; disable broken tclOO genstubs * generic/tclOO.c: make tclOO stubs tables 'static const' * generic/tclOODecls.h: and stub table pointers MODULE_SCOPE * generic/tclOOIntDecls.h: (change generated files manually * generic/tclOOStubInit.c: pending genstubs support for tclOO). * generic/tclOOStubLib.c: * generic/tclOO.c: fix warnings for 'int<->ptr conversion' * generic/tclOOCall.c: and 'signed vs unsigned comparison'. * generic/tclOOMethod.c: FossilOrigin-Name: 7efe478a950202363e8139834344966e364c3088
* Plug method-related memory leaks pointed out by Miguel.dkf2008-05-311-10/+21
| | | FossilOrigin-Name: ce09fe3526e9c0273e634964bdd10c9ae243c4e2
* Implementation of TIP #257. Incomplete due to missing Win build support.dkf2008-05-311-0/+2179
| | | FossilOrigin-Name: e46e1575d392981d674e659a6c6649dc51ecf5dc
* Undo mistaken commit to wrong branch caused by CVS fumble... :-}dkf2006-10-201-3288/+0
| | | FossilOrigin-Name: c97ddfca3f37b8bcbeefe626726c4cc30920f333
* Consolidated TIP#257 patch applied to HEAD to allow for experimentation bydkf2006-10-201-0/+3288
other developers FossilOrigin-Name: a99bded51f412bd376c67eff98e562b5ae0d1c66