Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch bug-afdb56e633 Excluding Merge-Ins
This is equivalent to a diff from 701a8a3d26 to 2dc9543eed
|
2025-01-03
| ||
| 13:51 | Fix [afdb56e633]: Tcl_MethodType2 not documented check-in: 0a63898c7f user: jan.nijtmans tags: trunk, main | |
|
2025-01-02
| ||
| 17:35 | Fix [d58e31517203396e]: configure --enable-64bit=aarch64 broken check-in: 74eba1ba33 user: jan.nijtmans tags: trunk, main | |
| 15:39 | Proposed fix for [afdb56e633]: Tcl_MethodType2 not documented Closed-Leaf check-in: 2dc9543eed user: jan.nijtmans tags: bug-afdb56e633 | |
| 15:22 | Remove dead code in tclLoadDyld.c check-in: 701a8a3d26 user: jan.nijtmans tags: trunk, main | |
|
2024-12-29
| ||
| 22:24 | merge 8.7 (windows only: obtain cpuid data with clang/gcc) check-in: 459b34be9d user: sebres tags: trunk, main | |
Changes to doc/Method.3.
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - + + + + + + + + + | '\" '\" Copyright (c) 2007 Donal K. Fellows '\" '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" .TH Tcl_Method 3 0.1 TclOO "TclOO Library Functions" .so man.macros .BS '\" Note: do not modify the .SH NAME line immediately below! .SH NAME |
| ︙ | |||
42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | + + + | .sp int \fBTcl_MethodIsPrivate\fR(\fImethod\fR) .sp int \fBTcl_MethodIsType\fR(\fImethod, methodTypePtr, clientDataPtr\fR) .sp int \fBTcl_MethodIsType2\fR(\fImethod, methodType2Ptr, clientDataPtr\fR) .sp int \fBTcl_ObjectContextInvokeNext\fR(\fIinterp, context, objc, objv, skip\fR) .sp int \fBTcl_ObjectContextIsFiltering\fR(\fIcontext\fR) .sp Tcl_Method |
| ︙ | |||
80 81 82 83 84 85 86 87 88 89 90 91 92 93 | 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | + + + | compatibility) for a non-exported method, .VS TIP500 and \fBTCL_OO_METHOD_PRIVATE\fR for a private method. .VE TIP500 .AP Tcl_MethodType *methodTypePtr in A description of the type of the method to create, or the type of method to compare against. .AP Tcl_MethodType2 *methodType2Ptr in A description of the type of the method to create, or the type of method to compare against. .AP void *clientData in A piece of data that is passed to the implementation of the method without interpretation. .AP void **clientDataPtr out A pointer to a variable in which to write the \fIclientData\fR value supplied when the method was created. If NULL, the \fIclientData\fR value will not be retrieved. |
| ︙ | |||
122 123 124 125 126 127 128 129 130 131 | 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | + - + + - + - + - + | and whether the method is private is retrieved with \fBTcl_MethodIsPrivate\fR. .VE TIP500 The type of the method can also be introspected upon to a limited degree; the function \fBTcl_MethodIsType\fR returns whether a method is of a particular type, assigning the per-method \fIclientData\fR to the variable pointed to by \fIclientDataPtr\fR if (that is non-NULL) if the type is matched. \fBTcl_MethodIsType2\fR does the same for TCL_OO_METHOD_VERSION_2. .SS "METHOD CREATION" .PP Methods are created by \fBTcl_NewMethod\fR and \fBTcl_NewInstanceMethod\fR, |
| ︙ | |||
174 175 176 177 178 179 180 | 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 | - - + + + + + + + + + + - - + + | implementation has pushed one or more extra frames on the stack as part of its implementation, it is also responsible for temporarily popping those frames from the stack while the \fBTcl_ObjectContextInvokeNext\fR function is executing. Note also that the method-call context is \fInever\fR deleted during the execution of this function. .SH "METHOD TYPES" .PP |
| ︙ | |||
215 216 217 218 219 220 221 222 223 224 225 226 227 228 | 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 | + + + + + + + |
.CS
typedef int \fBTcl_MethodCallProc\fR(
void *\fIclientData\fR,
Tcl_Interp *\fIinterp\fR,
Tcl_ObjectContext \fIobjectContext\fR,
int \fIobjc\fR,
Tcl_Obj *const *\fIobjv\fR);
typedef int \fBTcl_MethodCallProc2\fR(
void *\fIclientData\fR,
Tcl_Interp *\fIinterp\fR,
Tcl_ObjectContext \fIobjectContext\fR,
Tcl_Size \fIobjc\fR,
Tcl_Obj *const *\fIobjv\fR);
.CE
.PP
The \fIclientData\fR argument to a Tcl_MethodCallProc is the value that was
given when the method was created, the \fIinterp\fR is a place in which to
execute scripts and access variables as well as being where to put the result
of the method, and the \fIobjc\fR and \fIobjv\fR fields give the parameter
objects to the method. The calling context of the method can be discovered
|
| ︙ |