20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
+
+
-
+
+
+
+
|
* TclCompareObjKeys
* TclFreeObjEntry
* TclHashObjKey
* Tcl_RepresentationCmd
* TclFreeIntRep
<h1>Directly Depends On Public Routines From</h1>
* [Allocation]
* [Hash Tables]
* [Threads]
<h1>Directly Depends On Private Routines From</h1>
* <i>None</i>
* [Event Loops]
<h1>Discussion</h1>
If extensions need <b>TclObjBeingDeleted</b> then it
should be public. Otherwise it should be file static.
<b>TclFreeIntRep</b> should be public. There should be
no direct calling of another object type's procs.
There's code duplication in <b>TclHashObjKey</b> cribbed from
[Hash Tables].
Critical defect here: much of the API uses a <i>signed int</i> for object lengths (with negative numbers, typically -1, indicating “use strlen() to get the real length”). This is fine on 32-bit platforms, but massively wrong on 64-bit (except for ILP64 architectures, but that's a rare configuration).
|