Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch tcloo-64bit Excluding Merge-Ins
This is equivalent to a diff from 27ffaafdb3 to 331944d8da
2022-09-20
| ||
15:04 | ClientData -> void * check-in: a86d508c63 user: jan.nijtmans tags: trunk, main | |
2022-08-30
| ||
16:15 | Unnecessary type-cast Closed-Leaf check-in: 331944d8da user: jan.nijtmans tags: tcloo-64bit | |
14:25 | ClientData -> void * check-in: 3f576fbb4d user: jan.nijtmans tags: tcloo-64bit | |
2022-08-29
| ||
11:58 | Merge trunk check-in: f4147da027 user: jan.nijtmans tags: tcloo-64bit | |
11:55 | Merge trunk Closed-Leaf check-in: 6d161dc356 user: jan.nijtmans tags: tip-627 | |
2022-07-07
| ||
11:03 | Update rules.vc check-in: 27ffaafdb3 user: jan.nijtmans tags: trunk, main | |
2022-06-27
| ||
10:04 | Fix makefile.vc build check-in: 10f3c1aa09 user: jan.nijtmans tags: trunk, main | |
Changes to generic/itcl.decls.
︙ | |||
9 10 11 12 13 14 15 | 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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + - + + + + + + | # Declare each of the functions in the public Tcl interface. Note that # the an index should never be reused for a different function in order # to preserve backwards compatibility. declare 2 { int Itcl_RegisterC(Tcl_Interp *interp, const char *name, |
︙ | |||
162 163 164 165 166 167 168 | 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 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 | - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + | declare 19 { void Itcl_DeleteHierIter(ItclHierIter *iter) } declare 20 { ItclClass *Itcl_AdvanceHierIter(ItclHierIter *iter) } declare 21 { |
︙ | |||
213 214 215 216 217 218 219 | 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 | - - + + | declare 32 { int Itcl_DeleteClass(Tcl_Interp *interp, ItclClass *iclsPtr) } declare 33 { Tcl_Namespace *Itcl_FindClassNamespace(Tcl_Interp *interp, const char *path) } declare 34 { |
︙ | |||
257 258 259 260 261 262 263 | 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | - + - + | } # # Functions for manipulating methods and procs # declare 50 { |
︙ | |||
303 304 305 306 307 308 309 | 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 | - + - - + + | ItclObject *contextObj, ItclSizeT objc, Tcl_Obj *const objv[]) } declare 67 { void Itcl_GetMemberFuncUsage(ItclMemberFunc *mfunc, ItclObject *contextObj, Tcl_Obj *objPtr) } declare 68 { |
︙ | |||
333 334 335 336 337 338 339 | 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 | - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + - + - + - - + + - - + + - - + + - + - + - + - - + + - + - + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + + - - + + - - + + - + - - + + - - + + - - + + - + - - + + | # Commands for parsing class definitions # declare 75 { int Itcl_ParseInit(Tcl_Interp *interp, ItclObjectInfo *info) } declare 76 { |
︙ | |||
608 609 610 611 612 613 614 | 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 | - - + + | const char *name, const char *name2, const char *value, ItclObject *contextIoPtr, ItclClass *contextIclsPtr) } declare 179 { Tcl_Obj * ItclCapitalize(const char *str) } declare 180 { |
︙ |
Changes to generic/itcl2TclOO.c.
︙ | |||
66 67 68 69 70 71 72 | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | - + | static int Tcl_InvokeClassProcedureMethod( Tcl_Interp *interp, Tcl_Obj *namePtr, /* name of the method */ Tcl_Namespace *nsPtr, /* namespace for calling method */ ProcedureMethod *pmPtr, /* method type specific data */ |
︙ | |||
143 144 145 146 147 148 149 | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | - + | return result; } int Itcl_InvokeProcedureMethod( void *clientData, /* Pointer to some per-method context. */ Tcl_Interp *interp, |
︙ | |||
358 359 360 361 362 363 364 | 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 | - + | return namePtr; } int Itcl_SelfCmd( TCL_UNUSED(void *), Tcl_Interp *interp, |
︙ |
Changes to generic/itcl2TclOO.h.
︙ | |||
21 22 23 24 25 26 27 | 21 22 23 24 25 26 27 28 29 30 31 32 33 | - + - + | ProcErrorProc *errProc, void *clientData, Tcl_Obj *nameObj, Tcl_Obj *argsObj, Tcl_Obj *bodyObj, void **clientData2); MODULE_SCOPE int Itcl_PublicObjectCmd(void *clientData, Tcl_Interp *interp, Tcl_Class clsPtr, size_t objc, Tcl_Obj *const *objv); MODULE_SCOPE Tcl_Method Itcl_NewForwardClassMethod(Tcl_Interp *interp, Tcl_Class clsPtr, int flags, Tcl_Obj *nameObj, Tcl_Obj *prefixObj); MODULE_SCOPE int Itcl_SelfCmd(void *clientData, Tcl_Interp *interp, |
Changes to generic/itclBase.c.
︙ | |||
11 12 13 14 15 16 17 | 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | - - + + | */ #include <stdlib.h> #include "itclInt.h" #include "itclUuid.h" static Tcl_NamespaceDeleteProc FreeItclObjectInfo; |
︙ | |||
122 123 124 125 126 127 128 | 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | - + - - + + - + | static const Tcl_ObjectMetadataType objMDT = { TCL_OO_METADATA_VERSION_CURRENT, "ItclObject", ItclDeleteObjectMetadata, /* Not really used yet */ NULL }; |
︙ | |||
296 297 298 299 300 301 302 | 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | - + - + - + | Tcl_SetAssocData(interp, ITCL_INTERP_DATA, NULL, infoPtr); Itcl_PreserveData(infoPtr); root = Tcl_NewObjectInstance(interp, tclCls, "::itcl::Root", NULL, 0, NULL, 0); |
︙ | |||
380 381 382 383 384 385 386 | 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 | - + - + | (Tcl_Export(interp, itclNs, "forward", 0) != TCL_OK) || (Tcl_Export(interp, itclNs, "local", 0) != TCL_OK) || (Tcl_Export(interp, itclNs, "mixin", 0) != TCL_OK) || (Tcl_Export(interp, itclNs, "scope", 0) != TCL_OK)) { return TCL_ERROR; } |
︙ | |||
525 526 527 528 529 530 531 | 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 | - + | * * ------------------------------------------------------------------------ */ static int ItclSetHullWindowName( void *clientData, /* infoPtr */ TCL_UNUSED(Tcl_Interp *),/* current interpreter */ |
︙ | |||
549 550 551 552 553 554 555 | 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 | - + | * * ------------------------------------------------------------------------ */ static int ItclCheckSetItclHull( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ |
Changes to generic/itclBuiltin.c.
︙ | |||
84 85 86 87 88 89 90 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 | - - - - - - - - - + + + + + + + + + - + - + | " append msg \"you can set the environment variable ITCL_LIBRARY to point\n\"\n" " append msg \"to the library directory.\n\"\n" " error $msg\n" " }\n" " _find_hull_init\n" "}"; |
︙ | |||
336 337 338 339 340 341 342 | 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 | - + - + - + | * just before the class definition is parsed. */ Tcl_DStringInit(&buffer); for (i=0; i < BiMethodListLen; i++) { Tcl_DStringSetLength(&buffer, 0); Tcl_DStringAppend(&buffer, "::itcl::builtin::", -1); Tcl_DStringAppend(&buffer, BiMethodList[i].name, -1); |
︙ | |||
488 489 490 491 492 493 494 | 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiIsaCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
567 568 569 570 571 572 573 | 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiConfigureCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
841 842 843 844 845 846 847 | 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiCgetCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1074 1075 1076 1077 1078 1079 1080 | 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 | - + | * ------------------------------------------------------------------------ */ static int NRBiChainCmd( TCL_UNUSED(void *), /* not used */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1206 1207 1208 1209 1210 1211 1212 | 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 | - + - + - + | return result; } int Itcl_BiChainCmd( void *clientData, Tcl_Interp *interp, |
︙ | |||
1244 1245 1246 1247 1248 1249 1250 | 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 | - + | return result; } static int PrepareCreateObject( Tcl_Interp *interp, ItclClass *iclsPtr, |
︙ | |||
1311 1312 1313 1314 1315 1316 1317 | 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 | - + - + | * classunknown <object> <methodname> ?<arg> <arg>...? * * ------------------------------------------------------------------------ */ static int ItclBiClassUnknownCmd( |
︙ | |||
1589 1590 1591 1592 1593 1594 1595 | 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 | - + | * ------------------------------------------------------------------------ */ int ItclUnknownGuts( ItclObject *ioPtr, /* The ItclObject seeking method */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1921 1922 1923 1924 1925 1926 1927 | 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 | - + | * ------------------------------------------------------------------------ */ static int ItclExtendedConfigure( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2588 2589 2590 2591 2592 2593 2594 | 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 | - + | * ------------------------------------------------------------------------ */ static int ItclExtendedCget( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2826 2827 2828 2829 2830 2831 2832 | 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 | - + | * ------------------------------------------------------------------------ */ static int ItclExtendedSetGet( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2944 2945 2946 2947 2948 2949 2950 | 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInstallComponentCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3078 3079 3080 3081 3082 3083 3084 | 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiDestroyCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3155 3156 3157 3158 3159 3160 3161 | 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiCallInstanceCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3222 3223 3224 3225 3226 3227 3228 | 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiGetInstanceVarCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3288 3289 3290 3291 3292 3293 3294 | 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiMyTypeMethodCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3338 3339 3340 3341 3342 3343 3344 | 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiMyMethodCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3387 3388 3389 3390 3391 3392 3393 | 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiMyProcCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3438 3439 3440 3441 3442 3443 3444 | 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiMyTypeVarCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3490 3491 3492 3493 3494 3495 3496 | 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiMyVarCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3534 3535 3536 3537 3538 3539 3540 | 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiItclHullCmd( TCL_UNUSED(void *), /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3576 3577 3578 3579 3580 3581 3582 | 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_BiCreateHullCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3611 3612 3613 3614 3615 3616 3617 | 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_BiSetupComponentCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3647 3648 3649 3650 3651 3652 3653 | 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_BiInitOptionsCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3699 3700 3701 3702 3703 3704 3705 | 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_BiKeepComponentOptionCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3734 3735 3736 3737 3738 3739 3740 | 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_BiIgnoreComponentOptionCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ |
Changes to generic/itclClass.c.
︙ | |||
445 446 447 448 449 450 451 | 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 | - + | /* * Add the built-in "this" command to the list of function members. */ Tcl_DStringInit(&buffer); Tcl_DStringAppend(&buffer, Tcl_GetString(iclsPtr->fullNamePtr), -1); Tcl_DStringAppend(&buffer, "::this", -1); |
︙ | |||
1403 1404 1405 1406 1407 1408 1409 | 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 | - + | * by a unique string built from the class name. * ------------------------------------------------------------------------ */ int Itcl_HandleClass( void *clientData, /* class definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1460 1461 1462 1463 1464 1465 1466 | 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 | - + | return ItclClassCreateObject(clientData, interp, objc, objv); } int ItclClassCreateObject( void *clientData, /* IclObjectInfo */ Tcl_Interp *interp, /* current interpreter */ |
︙ |
Changes to generic/itclCmd.c.
︙ | |||
43 44 45 46 47 48 49 | 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | - + - + | * ------------------------------------------------------------------------ */ static int NRThisCmd( void *clientData, /* class info */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
145 146 147 148 149 150 151 | 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | - + | } } if (hPtr == NULL) { Tcl_AppendResult(interp, "class \"", iclsPtr->nsPtr->fullName, "\" has no method: \"", Tcl_GetString(objv[1]), "\"", NULL); return TCL_ERROR; } |
︙ | |||
167 168 169 170 171 172 173 | 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 | - + | * ------------------------------------------------------------------------ */ int Itcl_FindClassesCmd( TCL_UNUSED(void *), /* class/object info */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
300 301 302 303 304 305 306 | 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | - + | * Returns TCL_OK/TCL_ERROR to indicate success/failure. * ------------------------------------------------------------------------ */ int Itcl_FindObjectsCmd( TCL_UNUSED(void *), /* class/object info */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
499 500 501 502 503 504 505 | 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 | - + | * ------------------------------------------------------------------------ */ static int NRDelClassCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
542 543 544 545 546 547 548 | 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 | - + - + | } int Itcl_DelClassCmd( void *clientData, Tcl_Interp *interp, |
︙ | |||
584 585 586 587 588 589 590 | 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 | - + | return result; } static int NRDelObjectCmd( TCL_UNUSED(void *), /* object management info */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
629 630 631 632 633 634 635 | 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 | - + - + | } int Itcl_DelObjectCmd( void *clientData, Tcl_Interp *interp, |
︙ | |||
666 667 668 669 670 671 672 | 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 | - + | * ------------------------------------------------------------------------ */ int Itcl_ScopeCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
894 895 896 897 898 899 900 | 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 | - + | * ------------------------------------------------------------------------ */ int Itcl_CodeCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
995 996 997 998 999 1000 1001 | 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 | - + | * Returns 1 if it is an object, 0 otherwise * ------------------------------------------------------------------------ */ int Itcl_IsObjectCmd( TCL_UNUSED(void *), /* class/object info */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1113 1114 1115 1116 1117 1118 1119 | 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 | - + | * Returns 1 if it is a class, 0 otherwise * ------------------------------------------------------------------------ */ int Itcl_IsClassCmd( TCL_UNUSED(void *), /* class/object info */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1174 1175 1176 1177 1178 1179 1180 | 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 | - + | * ------------------------------------------------------------------------ */ int Itcl_FilterAddCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1216 1217 1218 1219 1220 1221 1222 | 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 | - + | * ------------------------------------------------------------------------ */ int Itcl_FilterDeleteCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1241 1242 1243 1244 1245 1246 1247 | 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 | - + | * ------------------------------------------------------------------------ */ int Itcl_ForwardAddCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1289 1290 1291 1292 1293 1294 1295 | 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 | - + | * ------------------------------------------------------------------------ */ int Itcl_ForwardDeleteCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1313 1314 1315 1316 1317 1318 1319 | 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 | - + | * ------------------------------------------------------------------------ */ int Itcl_MixinAddCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1353 1354 1355 1356 1357 1358 1359 | 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 | - + | * ------------------------------------------------------------------------ */ int Itcl_MixinDeleteCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1377 1378 1379 1380 1381 1382 1383 | 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 | - + | * ------------------------------------------------------------------------ */ int Itcl_NWidgetCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1413 1414 1415 1416 1417 1418 1419 | 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 | - + | * ------------------------------------------------------------------------ */ int Itcl_AddOptionCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1488 1489 1490 1491 1492 1493 1494 | 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 | - + | * ------------------------------------------------------------------------ */ int Itcl_AddObjectOptionCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1576 1577 1578 1579 1580 1581 1582 | 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 | - + | * ------------------------------------------------------------------------ */ int Itcl_AddDelegatedOptionCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1636 1637 1638 1639 1640 1641 1642 | 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 | - + | * ------------------------------------------------------------------------ */ int Itcl_AddDelegatedFunctionCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1714 1715 1716 1717 1718 1719 1720 | 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 | - + | * ------------------------------------------------------------------------ */ int Itcl_AddComponentCmd( TCL_UNUSED(void *), /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1878 1879 1880 1881 1882 1883 1884 | 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 | - + | * ------------------------------------------------------------------------ */ int Itcl_SetComponentCmd( TCL_UNUSED(void *), /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1964 1965 1966 1967 1968 1969 1970 | 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 | - + | * ------------------------------------------------------------------------ */ int Itcl_ExtendedClassCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1997 1998 1999 2000 2001 2002 2003 | 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 | - + | * ------------------------------------------------------------------------ */ int Itcl_TypeClassCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2040 2041 2042 2043 2044 2045 2046 | 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 | - + | * ------------------------------------------------------------------------ */ int Itcl_ClassHullTypeCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2125 2126 2127 2128 2129 2130 2131 | 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 | - + | * ------------------------------------------------------------------------ */ int Itcl_ClassWidgetClassCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ |
Changes to generic/itclDecls.h.
︙ | |||
11 12 13 14 15 16 17 18 19 20 21 | 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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | + + + - + - + - + - + - - + - + - + - + - + - + - - + - + - - + - - + - - + - + + + + + + + + + + + - - - + + + - - - - + + + + - - - - - - - - + + + + + + + + + + | Tcl_Interp *, const char *version, int exact); #else #define Itcl_InitStubs(interp, version, exact) Tcl_PkgRequireEx(interp,"itcl",version,exact,NULL) #endif #if TCL_MAJOR_VERSION < 9 # define Tcl_ObjCmdProc2 Tcl_ObjCmdProc #endif /* !BEGIN!: Do not edit below this line. */ #define ITCL_STUBS_EPOCH 0 |
︙ | |||
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 | + + + + | (itclStubsPtr->itcl_DiscardInterpState) /* 25 */ #define Itcl_Alloc \ (itclStubsPtr->itcl_Alloc) /* 26 */ #define Itcl_Free \ (itclStubsPtr->itcl_Free) /* 27 */ #define ItclGetStackValue \ (itclStubsPtr->itclGetStackValue) /* 28 */ #define Itcl_RegisterObjC2 \ (itclStubsPtr->itcl_RegisterObjC2) /* 29 */ #define Itcl_FindC2 \ (itclStubsPtr->itcl_FindC2) /* 30 */ #endif /* defined(USE_ITCL_STUBS) */ /* !END!: Do not edit above this line. */ #if TCL_MAJOR_VERSION > 8 # undef Itcl_GetStackValue # define Itcl_GetStackValue ItclGetStackValue #endif #endif /* _ITCLDECLS */ |
Changes to generic/itclEnsemble.c.
︙ | |||
42 43 44 45 46 47 48 | 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | - + | typedef struct EnsemblePart { char *name; /* name of this part */ Tcl_Obj *namePtr; Tcl_Command cmdPtr; /* command handling this part */ char *usage; /* usage string describing syntax */ struct Ensemble* ensemble; /* ensemble containing this part */ ItclArgList *arglistPtr; /* the parsed argument list */ |
︙ | |||
84 85 86 87 88 89 90 | 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | - + - + - + | typedef struct EnsembleParser { Tcl_Interp* interp; /* interpreter containing ensembles */ Tcl_Interp* parser; /* child interp for parsing */ Ensemble* ensData; /* add parts to this ensemble */ } EnsembleParser; static int EnsembleSubCmd(void *clientData, Tcl_Interp *interp, |
︙ | |||
144 145 146 147 148 149 150 | 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 | - + - + | Itcl_EnsembleInit( Tcl_Interp *interp) /* interpreter being initialized */ { Tcl_DString buffer; ItclObjectInfo *infoPtr; infoPtr = (ItclObjectInfo *)Tcl_GetAssocData(interp, ITCL_INTERP_DATA, NULL); |
︙ | |||
301 302 303 304 305 306 307 | 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | - + | */ int Itcl_AddEnsemblePart( Tcl_Interp *interp, /* interpreter to be updated */ const char* ensName, /* ensemble containing this part */ const char* partName, /* name of the new part */ const char* usageInfo, /* usage info for argument list */ |
︙ | |||
577 578 579 580 581 582 583 584 585 586 587 588 589 590 | 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 | + + + + + | if (chainObj) { cmd = Tcl_GetCommandFromObj(interp, chainObj); if (Tcl_GetCommandInfoFromToken(cmd, &infoPtr) != 1) { return 0; } if (infoPtr.deleteProc == DeleteEnsemble) { #if TCL_MAJOR_VERSION > 8 if (infoPtr.isNativeObjectProc == 2) { ensData = (Ensemble*)infoPtr.objClientData2; } else #endif ensData = (Ensemble*)infoPtr.objClientData; GetEnsembleUsage(interp, ensData, objPtr); return 1; } } return 0; } |
︙ | |||
917 918 919 920 921 922 923 | 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 | - + | */ static int AddEnsemblePart( Tcl_Interp *interp, /* interpreter to be updated */ Ensemble* ensData, /* ensemble that will contain this part */ const char* partName, /* name of the new part */ const char* usageInfo, /* usage info for argument list */ |
︙ | |||
955 956 957 958 959 960 961 | 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 | - + | } ensPart->mapNamePtr = Tcl_NewStringObj(ensData->nsPtr->fullName, -1); Tcl_AppendToObj(ensPart->mapNamePtr, "::", 2); Tcl_AppendToObj(ensPart->mapNamePtr, partName, -1); Tcl_IncrRefCount(ensPart->namePtr); Tcl_IncrRefCount(ensPart->mapNamePtr); Tcl_DictObjPut(NULL, mapDict, ensPart->namePtr, ensPart->mapNamePtr); |
︙ | |||
1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 | 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 | + + + + + | "part \"", nameArgv[i], "\" is not an ensemble", NULL); return TCL_ERROR; } if (Tcl_GetCommandInfoFromToken(cmdPtr, &cmdInfo) != 1) { return TCL_ERROR; } #if TCL_MAJOR_VERSION > 8 if (cmdInfo.isNativeObjectProc == 2) { ensData = (Ensemble*)cmdInfo.objClientData2; } else #endif ensData = (Ensemble*)cmdInfo.objClientData; } *ensDataPtr = ensData; return TCL_OK; } |
︙ | |||
1628 1629 1630 1631 1632 1633 1634 | 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 | - + | * *---------------------------------------------------------------------- */ int Itcl_EnsembleCmd( void *clientData, /* ensemble data */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1837 1838 1839 1840 1841 1842 1843 | 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 | - + - + - + | ensInfo->ensData = NULL; Tcl_DeleteNamespace(Tcl_GetGlobalNamespace(ensInfo->parser)); /* * Add the allowed commands to the parser interpreter: * part, delete, ensemble */ |
︙ | |||
1920 1921 1922 1923 1924 1925 1926 | 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 | - + | * *---------------------------------------------------------------------- */ int Itcl_EnsPartCmd( void *clientData, /* ensemble data */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1979 1980 1981 1982 1983 1984 1985 | 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 | - + | /* * Create a new part within the ensemble. If successful, * plug the command token into the proc; we'll need it later * if we try to compile the Tcl code for the part. If * anything goes wrong, clean up before bailing out. */ result = AddEnsemblePart(ensInfo->interp, ensData, partName, usage, |
︙ | |||
2057 2058 2059 2060 2061 2062 2063 | 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 | - + - + - + | CallInvokeEnsembleMethod( void *data[], Tcl_Interp *interp, int result) { Tcl_Namespace *nsPtr = (Tcl_Namespace *)data[0]; EnsemblePart *ensPart = (EnsemblePart *)data[1]; |
︙ | |||
2119 2120 2121 2122 2123 2124 2125 | 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 | - + | * ------------------------------------------------------------------------ */ static int EnsembleUnknownCmd( TCL_UNUSED(void *), /* not used */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2181 2182 2183 2184 2185 2186 2187 | 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 | - + | * Invoked when the user tries to delet an ensemble *---------------------------------------------------------------------- */ int Itcl_EnsembleDeleteCmd( void *clientData, /* infoPtr */ Tcl_Interp *interp, /* current interpreter */ |
︙ |
Changes to generic/itclHelpers.c.
︙ | |||
22 23 24 25 26 27 28 | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | - + - + | * ------------------------------------------------------------------------ */ void ItclShowArgs( int level, const char *str, |
︙ | |||
270 271 272 273 274 275 276 277 278 279 280 281 282 283 | 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 | + + + + + | } /* * Finally, invoke the command's Tcl_ObjCmdProc. Be careful * to pass in the proper client data. */ Tcl_GetCommandInfoFromToken(cmd, &infoPtr); #if TCL_MAJOR_VERSION > 8 if (infoPtr.isNativeObjectProc == 2) { return infoPtr.objProc2(infoPtr.objClientData2, interp, objc, objv); } #endif return infoPtr.objProc(infoPtr.objClientData, interp, objc, objv); } /* * ------------------------------------------------------------------------ * Itcl_CreateArgs() |
︙ | |||
322 323 324 325 326 327 328 | 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 | - + | */ int ItclEnsembleSubCmd( TCL_UNUSED(void *), Tcl_Interp *interp, TCL_UNUSED(const char *), |
︙ |
Changes to generic/itclInfo.c.
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - + | * Copyright (c) 1993-1998 Lucent Technologies, Inc. * ------------------------------------------------------------------------ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ #include "itclInt.h" |
︙ | |||
246 247 248 249 250 251 252 | 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | - + | 0 } }; struct NameProcMap2 { const char* name; /* method name */ const char* usage; /* string describing usage */ |
︙ | |||
342 343 344 345 346 347 348 | 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 | - + | return result; } int ItclInfoGuts( ItclObject *ioPtr, Tcl_Interp *interp, |
︙ | |||
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 | 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 | + + + + + + - + | cPtr->imPtr = NULL; cPtr->refCount = 1; Itcl_PushStack(cPtr, stackPtr); Tcl_NRAddCallback(interp, InfoGutsFinish, framePtr, infoPtr, cPtr, NULL); Tcl_GetCommandInfoFromToken(infoPtr->infoCmd, &info); #if TCL_MAJOR_VERSION > 8 if (info.isNativeObjectProc == 2) { return Tcl_NRCallObjProc2(interp, info.objProc2, info.objClientData2, objc-1, objv+1); } #endif return Tcl_NRCallObjProc(interp, info.objProc, info.objClientData, objc-1, objv+1); } static int NRInfoWrap( void *clientData, Tcl_Interp *interp, |
︙ | |||
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 | 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | + + + + + + - + - + | Tcl_SetObjResult(interp, objPtr); return TCL_ERROR; } /* Have a subcommand. Pass on to the ensemble */ Tcl_GetCommandInfoFromToken(infoPtr->infoCmd, &info); #if TCL_MAJOR_VERSION > 8 if (info.isNativeObjectProc == 2) { return Tcl_NRCallObjProc2(interp, info.objProc2, info.objClientData2, objc, objv); } #endif return Tcl_NRCallObjProc(interp, info.objProc, info.objClientData, objc, objv); } static int InfoWrap( void *clientData, Tcl_Interp *interp, |
︙ | |||
474 475 476 477 478 479 480 | 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 | - + + + + + + + - + - + | } if (infoPtr->infoCmd) { Tcl_Panic("Double init of info ensemble"); } token = Tcl_CreateEnsemble(interp, nsPtr->fullName, nsPtr, TCL_ENSEMBLE_PREFIX); infoPtr->infoCmd = token; |
︙ | |||
525 526 527 528 529 530 531 | 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 | - + | if (nsPtr == NULL) { Tcl_Panic("ITCL: error in creating namespace: ::itcl::builtin::Info::delegated \n"); } Tcl_CreateEnsemble(interp, nsPtr->fullName, nsPtr, TCL_ENSEMBLE_PREFIX); Tcl_Export(interp, nsPtr, "[a-z]*", 1); for (i=0 ; infoCmdsDelegated2[i].name!=NULL ; i++) { |
︙ | |||
659 660 661 662 663 664 665 | 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoClassCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
739 740 741 742 743 744 745 | 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoClassOptionsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
850 851 852 853 854 855 856 | 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoContextCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
889 890 891 892 893 894 895 | 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoInheritCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
949 950 951 952 953 954 955 | 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoHeritageCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1019 1020 1021 1022 1023 1024 1025 | 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoFunctionCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1259 1260 1261 1262 1263 1264 1265 | 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 | - + | */ /*&&&1*/ int Itcl_BiInfoVariableCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1603 1604 1605 1606 1607 1608 1609 | 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoVarsCmd( void *clientData, /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1743 1744 1745 1746 1747 1748 1749 | 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoUnknownCmd( void *clientData, /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1828 1829 1830 1831 1832 1833 1834 | 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoBodyCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1931 1932 1933 1934 1935 1936 1937 | 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoArgsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2040 2041 2042 2043 2044 2045 2046 | 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoOptionCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2343 2344 2345 2346 2347 2348 2349 | 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 | - + | * ------------------------------------------------------------------------ */ int Itcl_BiInfoComponentCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2562 2563 2564 2565 2566 2567 2568 | 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoWidgetCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2654 2655 2656 2657 2658 2659 2660 | 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoExtendedClassCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2741 2742 2743 2744 2745 2746 2747 | 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDelegatedCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2826 2827 2828 2829 2830 2831 2832 | 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoTypeCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2914 2915 2916 2917 2918 2919 2920 | 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoHullTypeCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2981 2982 2983 2984 2985 2986 2987 | 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDefaultCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3076 3077 3078 3079 3080 3081 3082 | 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoMethodCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3303 3304 3305 3306 3307 3308 3309 | 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoMethodsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3401 3402 3403 3404 3405 3406 3407 | 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoOptionsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3521 3522 3523 3524 3525 3526 3527 | 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoTypesCmd( void *clientData, /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3574 3575 3576 3577 3578 3579 3580 | 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoComponentsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3645 3646 3647 3648 3649 3650 3651 | 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoTypeMethodCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3873 3874 3875 3876 3877 3878 3879 | 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoTypeMethodsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3978 3979 3980 3981 3982 3983 3984 | 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoTypeVarsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4035 4036 4037 4038 4039 4040 4041 | 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoTypeVariableCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4285 4286 4287 4288 4289 4290 4291 | 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoVariablesCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4310 4311 4312 4313 4314 4315 4316 | 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoWidgetadaptorCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4397 4398 4399 4400 4401 4402 4403 | 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoInstancesCmd( void *clientData, /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4466 4467 4468 4469 4470 4471 4472 | 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDelegatedOptionsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4537 4538 4539 4540 4541 4542 4543 | 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDelegatedMethodsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4610 4611 4612 4613 4614 4615 4616 | 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDelegatedTypeMethodsCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4679 4680 4681 4682 4683 4684 4685 | 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDelegatedUnknownCmd( void *clientData, /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4714 4715 4716 4717 4718 4719 4720 | 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDelegatedOptionCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4948 4949 4950 4951 4952 4953 4954 | 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDelegatedMethodCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
5172 5173 5174 5175 5176 5177 5178 | 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 | - + | * ------------------------------------------------------------------------ */ static int Itcl_BiInfoDelegatedTypeMethodCmd( TCL_UNUSED(void *), /* ItclObjectInfo Ptr */ Tcl_Interp *interp, /* current interpreter */ |
︙ |
Changes to generic/itclInt.h.
︙ | |||
76 77 78 79 80 81 82 83 84 85 86 87 88 89 | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | + + + + + + + + + + + + + + + + + + + + + + | # endif #endif #if TCL_MAJOR_VERSION > 8 # define ITCL_Z_MODIFIER TCL_Z_MODIFIER #else # define ITCL_Z_MODIFIER "" # undef Tcl_MethodIsType2 # undef Tcl_NewInstanceMethod2 # undef Tcl_NewMethod2 # undef Tcl_MethodType2 # undef Tcl_MethodCallProc2 # define Tcl_MethodIsType2 Tcl_MethodIsType # define Tcl_NewInstanceMethod2 Tcl_NewInstanceMethod # define Tcl_NewMethod2 Tcl_NewMethod # define Tcl_MethodType2 Tcl_MethodType # define Tcl_MethodCallProc2 Tcl_MethodCallProc # undef Tcl_CreateObjCommand2 # define Tcl_CreateObjCommand2 Tcl_CreateObjCommand # undef Tcl_NRCreateCommand2 # define Tcl_NRCreateCommand2 Tcl_NRCreateCommand # undef Tcl_NRCallObjProc2 # define Tcl_NRCallObjProc2 Tcl_NRCallObjProc # undef Itcl_RegisterObjC2 # define Itcl_RegisterObjC2 Itcl_RegisterObjC # undef Itcl_FindC2 # define Itcl_FindC2 Itcl_FindC # undef TCL_OO_METHOD_VERSION_2 # define TCL_OO_METHOD_VERSION_2 TCL_OO_METHOD_VERSION_CURRENT #endif #if !defined(ItclSizeT) #if TCL_MAJOR_VERSION > 8 #define ItclSizeT size_t #else #define ItclSizeT int |
︙ | |||
427 428 429 430 431 432 433 | 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 | - + | ItclSizeT maxargcount; /* max number of args in arglist */ Tcl_Obj *usagePtr; /* usage string for error messages */ Tcl_Obj *argumentPtr; /* the function arguments */ Tcl_Obj *bodyPtr; /* the function body */ ItclArgList *argListPtr; /* the parsed arguments */ union { Tcl_CmdProc *argCmd; /* (argc,argv) C implementation */ |
︙ | |||
677 678 679 680 681 682 683 | 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 | - + - - + + - + - + - + | #endif #if !defined(PTR2INT) # define PTR2INT(p) ((ptrdiff_t)(p)) #endif #ifdef ITCL_DEBUG MODULE_SCOPE int _itcl_debug_level; |
︙ | |||
758 759 760 761 762 763 764 | 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 | - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - + - + | ItclMemberFunc **imPtrPtr); MODULE_SCOPE int Itcl_WidgetParseInit(Tcl_Interp *interp, ItclObjectInfo *infoPtr); MODULE_SCOPE void ItclDeleteObjectMetadata(void *clientData); MODULE_SCOPE void ItclDeleteClassMetadata(void *clientData); MODULE_SCOPE void ItclDeleteArgList(ItclArgList *arglistPtr); MODULE_SCOPE int Itcl_ClassOptionCmd(void *clientData, Tcl_Interp *interp, |
Changes to generic/itclIntDecls.h.
︙ | |||
12 13 14 15 16 17 18 | 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | - + | #define ItclSizeT int #endif #endif /* !BEGIN!: Do not edit below this line. */ #define ITCLINT_STUBS_EPOCH 0 |
︙ | |||
77 78 79 80 81 82 83 | 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | - - + + - - + + - - + + - - + + - + - - + - + - - + - - + + - - + + - - + + | ITCLAPI void Itcl_InitHierIter(ItclHierIter *iter, ItclClass *iclsPtr); /* 19 */ ITCLAPI void Itcl_DeleteHierIter(ItclHierIter *iter); /* 20 */ ITCLAPI ItclClass * Itcl_AdvanceHierIter(ItclHierIter *iter); /* 21 */ |
︙ | |||
160 161 162 163 164 165 166 | 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 | - - + + - + - - + | /* Slot 47 is reserved */ /* 48 */ ITCLAPI const char * Itcl_GetInstanceVar(Tcl_Interp *interp, const char *name, ItclObject *contextIoPtr, ItclClass *contextIclsPtr); /* Slot 49 is reserved */ /* 50 */ |
︙ | |||
209 210 211 212 213 214 215 | 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 | - + - - + - + - - + - + - - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + - - + + - + - - + - - + + - + - - + - - + + - - + + - - + + - - + + - + - - + - + - - + - + - - - + + - + - - + - + - - + + - + - - + | /* Slot 64 is reserved */ /* Slot 65 is reserved */ /* Slot 66 is reserved */ /* 67 */ ITCLAPI void Itcl_GetMemberFuncUsage(ItclMemberFunc *mfunc, ItclObject *contextObj, Tcl_Obj *objPtr); /* 68 */ |
︙ | |||
399 400 401 402 403 404 405 | 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 | - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - - + - + - + - + - + - - + - + - - + - - + + - + - - + - - + + | /* Slot 134 is reserved */ /* Slot 135 is reserved */ /* Slot 136 is reserved */ /* Slot 137 is reserved */ /* Slot 138 is reserved */ /* Slot 139 is reserved */ /* 140 */ |
︙ | |||
508 509 510 511 512 513 514 | 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 | - - - + + + | ITCLAPI const char* ItclSetInstanceVar(Tcl_Interp *interp, const char *name, const char *name2, const char *value, ItclObject *contextIoPtr, ItclClass *contextIclsPtr); /* 179 */ ITCLAPI Tcl_Obj * ItclCapitalize(const char *str); /* 180 */ |
︙ | |||
553 554 555 556 557 558 559 | 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 | - - + + - - - - - - + + + + + + - + - - + + - - + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - + - - - + + + - - + + | Tcl_Obj * (*itcl_CreateArgs) (Tcl_Interp *interp, const char *string, ItclSizeT objc, Tcl_Obj *const objv[]); /* 14 */ void (*reserved15)(void); void (*reserved16)(void); int (*itcl_GetContext) (Tcl_Interp *interp, ItclClass **iclsPtrPtr, ItclObject **ioPtrPtr); /* 17 */ void (*itcl_InitHierIter) (ItclHierIter *iter, ItclClass *iclsPtr); /* 18 */ void (*itcl_DeleteHierIter) (ItclHierIter *iter); /* 19 */ ItclClass * (*itcl_AdvanceHierIter) (ItclHierIter *iter); /* 20 */ |
︙ | |||
672 673 674 675 676 677 678 | 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 | - - - - - - + + + + + + - - + + - + - + - - - - - + + + + + - + | void (*reserved133)(void); void (*reserved134)(void); void (*reserved135)(void); void (*reserved136)(void); void (*reserved137)(void); void (*reserved138)(void); void (*reserved139)(void); |
︙ |
Changes to generic/itclLinkage.c.
︙ | |||
26 27 28 29 30 31 32 33 34 35 36 37 38 | 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | + - + | * ======================================================================== * Copyright (c) 1993-1998 Lucent Technologies, Inc. * ------------------------------------------------------------------------ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. */ #include "itclInt.h" #include <limits.h> /* * These records store the pointers for all "RegisterC" functions. */ typedef struct ItclCfunc { Tcl_CmdProc *argCmdProc; /* old-style (argc,argv) command handler */ |
︙ | |||
153 154 155 156 157 158 159 160 | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | + - + - + | * if a name is redefined to a different handler of the same style, * this procedure returns an error. * * Returns TCL_OK on success, or TCL_ERROR (along with an error message * in interp->result) if anything goes wrong. * ------------------------------------------------------------------------ */ int |
︙ | |||
209 210 211 212 213 214 215 | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + | cfunc->clientData = clientData; cfunc->deleteProc = deleteProc; Tcl_SetHashValue(entry, cfunc); return TCL_OK; } #if TCL_MAJOR_VERSION > 8 |
︙ | |||
255 256 257 258 259 260 261 | 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | + + + + + + + + - + + + + + + + + + + + + + | *cDataPtr = cfunc->clientData; } } } return (*argProcPtr != NULL || *objProcPtr != NULL); } #if TCL_MAJOR_VERSION > 8 int Itcl_FindC( Tcl_Interp *interp, /* interpreter handling this registration */ const char *name, /* symbolic name for procedure */ Tcl_CmdProc **argProcPtr, /* returns (argc,argv) command handler */ Tcl_ObjCmdProc **objProcPtr, /* returns (objc,objv) command handler */ void **cDataPtr) /* returns client data */ |
︙ |
Changes to generic/itclMethod.c.
︙ | |||
62 63 64 65 66 67 68 | 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | - + | * Returns TCL_OK/TCL_ERROR to indicate success/failure. * ------------------------------------------------------------------------ */ static int NRBodyCmd( TCL_UNUSED(void *), /* */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
156 157 158 159 160 161 162 | 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 | - + - + | } int Itcl_BodyCmd( void *clientData, Tcl_Interp *interp, |
︙ | |||
187 188 189 190 191 192 193 | 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | - + | * ------------------------------------------------------------------------ */ static int NRConfigBodyCmd( TCL_UNUSED(void *), /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
289 290 291 292 293 294 295 | 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 | - + - + | } int Itcl_ConfigBodyCmd( void *clientData, Tcl_Interp *interp, |
︙ | |||
905 906 907 908 909 910 911 | 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 | - + | * as a symbolic name for a C procedure. */ if (body == NULL) { /* No-op */ } else { if (*body == '@') { Tcl_CmdProc *argCmdProc; |
︙ | |||
986 987 988 989 990 991 992 | 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 | - + | if (strncmp(body, "@itcl-builtin-setget", 20) == 0) { isDone = 1; } if (strcmp(body, "@itcl-builtin-classunknown") == 0) { isDone = 1; } if (!isDone) { |
︙ | |||
1187 1188 1189 1190 1191 1192 1193 | 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 | - + | void *data[], Tcl_Interp *interp, int result) { Tcl_Object oPtr; ItclMemberFunc *imPtr = (ItclMemberFunc *)data[0]; ItclObject *ioPtr = (ItclObject *)data[1]; |
︙ | |||
1634 1635 1636 1637 1638 1639 1640 | 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 | - + | * the most-specific class scope. * ------------------------------------------------------------------------ */ static int NRExecMethod( void *clientData, /* method definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1706 1707 1708 1709 1710 1711 1712 | 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 | - + - + | } int Itcl_ExecMethod( void *clientData, Tcl_Interp *interp, |
︙ | |||
1731 1732 1733 1734 1735 1736 1737 | 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 | - + | * the most-specific class scope. * ------------------------------------------------------------------------ */ static int NRExecProc( void *clientData, /* proc definition */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1794 1795 1796 1797 1798 1799 1800 | 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 | - + - + - + | } int Itcl_ExecProc( void *clientData, Tcl_Interp *interp, |
︙ | |||
1900 1901 1902 1903 1904 1905 1906 | 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 | - + | return result; } int ItclConstructGuts( ItclObject *contextObj, Tcl_Interp *interp, |
︙ |
Changes to generic/itclObject.c.
︙ | |||
195 196 197 198 199 200 201 | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | - + | * ------------------------------------------------------------------------ */ int ItclCreateObject( Tcl_Interp *interp, /* interpreter mananging new object */ const char* name, /* name of new object */ ItclClass *iclsPtr, /* class for new object */ |
︙ | |||
627 628 629 630 631 632 633 | 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 | - + | /* * This is an inelegant hack, left behind until the need for it * can be eliminated by getting the inheritance tree right. */ if (iclsPtr->flags & (ITCL_ECLASS|ITCL_TYPE|ITCL_WIDGET|ITCL_WIDGETADAPTOR)) { |
︙ | |||
2714 2715 2716 2717 2718 2719 2720 | 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 | - + - + | void *data[], Tcl_Interp *interp, int result) { Tcl_Object *oPtr = (Tcl_Object *)data[0]; Tcl_Class clsPtr = (Tcl_Class)data[1]; Tcl_Obj *const *objv = (Tcl_Obj *const *)data[3]; |
︙ |
Changes to generic/itclParse.c.
︙ | |||
116 117 118 119 120 121 122 | 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + | * FORWARD DECLARATIONS */ static Tcl_CmdDeleteProc ItclFreeParserCommandData; static void ItclDelObjectInfo(char* cdata); static int ItclInitClassCommon(Tcl_Interp *interp, ItclClass *iclsPtr, ItclVariable *ivPtr, const char *initStr); |
︙ | |||
161 162 163 164 165 166 167 | 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 | - + | {"variable", Itcl_ClassVariableCmd}, {"widgetclass", Itcl_ClassWidgetClassCmd}, {NULL, NULL} }; static const struct { const char *name; |
︙ | |||
211 212 213 214 215 216 217 | 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | - + - + - + - + - + | /* * Add commands for parsing class definitions. */ Tcl_DStringInit(&buffer); for (i=0 ; parseCmds[i].name ; i++) { Tcl_DStringAppend(&buffer, "::itcl::parser::", 16); Tcl_DStringAppend(&buffer, parseCmds[i].name, -1); |
︙ | |||
333 334 335 336 337 338 339 | 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | - + - + | } Itcl_PreserveData(infoPtr); /* * Add "code" and "scope" commands for handling scoped values. */ |
︙ | |||
424 425 426 427 428 429 430 | 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 | - + + + + + + + + + - + - + - - - - - - - - - + - + - + - + + + + + - + - - - - - + | } if (Itcl_AddEnsemblePart(interp, "::itcl::import::stub", "exists", "name", Itcl_StubExistsCmd, NULL, NULL) != TCL_OK) { return TCL_ERROR; } |
︙ | |||
539 540 541 542 543 544 545 | 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 | - + | * * ------------------------------------------------------------------------ */ static int ItclGenericClassCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
613 614 615 616 617 618 619 | 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 | - + - - + + - - + + - - + + | * * ------------------------------------------------------------------------ */ int Itcl_ClassCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
675 676 677 678 679 680 681 | 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 | - + | } static int ObjCallProc( void *clientData, Tcl_Interp *interp, Tcl_ObjectContext context, |
︙ | |||
700 701 702 703 704 705 706 | 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 | - + - + | } static int ArgCallProc( TCL_UNUSED(void *), TCL_UNUSED(Tcl_Interp *), TCL_UNUSED(Tcl_ObjectContext), |
︙ | |||
875 876 877 878 879 880 881 | 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 | - + - + - + | void *pmPtr; argumentPtr = imPtr->codePtr->argumentPtr; bodyPtr = imPtr->codePtr->bodyPtr; if (imPtr->codePtr->flags & ITCL_IMPLEMENT_OBJCMD) { /* Implementation of this member is coded in C expecting Tcl_Obj */ |
︙ | |||
1082 1083 1084 1085 1086 1087 1088 | 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 | - + - + | imPtr->tmPtr = Itcl_NewProcMethod(interp, iclsPtr->oPtr, ItclCheckCallMethod, ItclAfterCallMethod, ItclProcErrorProc, imPtr, imPtr->namePtr, argumentPtr, bodyPtr, &pmPtr); } } if ((imPtr->flags & ITCL_COMMON) == 0) { |
︙ | |||
1280 1281 1282 1283 1284 1285 1286 | 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 | - + | * * ------------------------------------------------------------------------ */ int Itcl_ClassInheritCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1563 1564 1565 1566 1567 1568 1569 | 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 | - + | * Returns TCL_OK/TCL_ERROR to indicate success/failure. * ------------------------------------------------------------------------ */ int Itcl_ClassProtectionCmd( void *clientData, /* protection level (public/protected/private) */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1640 1641 1642 1643 1644 1645 1646 | 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 | - + | * * ------------------------------------------------------------------------ */ int Itcl_ClassConstructorCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1706 1707 1708 1709 1710 1711 1712 | 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 | - + | * * ------------------------------------------------------------------------ */ int Itcl_ClassDestructorCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1760 1761 1762 1763 1764 1765 1766 | 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 | - + | * * ------------------------------------------------------------------------ */ int Itcl_ClassMethodCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1823 1824 1825 1826 1827 1828 1829 | 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 | - + | * * ------------------------------------------------------------------------ */ int Itcl_ClassProcCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1894 1895 1896 1897 1898 1899 1900 | 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassTypeMethodCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
1970 1971 1972 1973 1974 1975 1976 | 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 | - + | * * ------------------------------------------------------------------------ */ int Itcl_ClassVariableCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2194 2195 2196 2197 2198 2199 2200 | 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 | - + | * * ------------------------------------------------------------------------ */ static int ItclClassCommonCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2299 2300 2301 2302 2303 2304 2305 | 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassTypeVariableCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2332 2333 2334 2335 2336 2337 2338 | 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 | - + - + - + | * * ------------------------------------------------------------------------ */ int Itcl_ClassCommonCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2415 2416 2417 2418 2419 2420 2421 | 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassFilterCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2469 2470 2471 2472 2473 2474 2475 | 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 | - + - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassMixinCmd( TCL_UNUSED(void *), /* info for all known objects */ TCL_UNUSED(Tcl_Interp *),/* current interpreter */ |
︙ | |||
2522 2523 2524 2525 2526 2527 2528 | 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_WidgetAdaptorCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2556 2557 2558 2559 2560 2561 2562 | 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 | - + | * * ------------------------------------------------------------------------ */ int ItclParseOption( TCL_UNUSED(ItclObjectInfo *), /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
2888 2889 2890 2891 2892 2893 2894 | 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 | - + | * * ------------------------------------------------------------------------ */ int Itcl_ClassOptionCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3009 3010 3011 3012 3013 3014 3015 | 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 | - + | * * ------------------------------------------------------------------------ */ static int ItclHandleClassComponent( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3185 3186 3187 3188 3189 3190 3191 | 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassComponentCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3209 3210 3211 3212 3213 3214 3215 | 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassTypeComponentCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3303 3304 3305 3306 3307 3308 3309 | 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 | - + - + | Itcl_HandleDelegateMethodCmd( Tcl_Interp *interp, /* current interpreter */ ItclObject *ioPtr, /* != NULL for ::itcl::adddelegatedmethod otherwise NULL */ ItclClass *iclsPtr, /* != NULL for delegate method otherwise NULL */ ItclDelegatedFunction **idmPtrPtr, /* where to return idoPtr */ |
︙ | |||
3478 3479 3480 3481 3482 3483 3484 | 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassDelegateMethodCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3536 3537 3538 3539 3540 3541 3542 | 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 | - + | Itcl_HandleDelegateOptionCmd( Tcl_Interp *interp, /* current interpreter */ ItclObject *ioPtr, /* != NULL for ::itcl::adddelgatedoption otherwise NULL */ ItclClass *iclsPtr, /* != NULL for delegate option otherwise NULL */ ItclDelegatedOption **idoPtrPtr, /* where to return idoPtr */ |
︙ | |||
3835 3836 3837 3838 3839 3840 3841 | 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassDelegateOptionCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
3893 3894 3895 3896 3897 3898 3899 | 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassDelegateTypeMethodCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4078 4079 4080 4081 4082 4083 4084 | 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 | - + | * ------------------------------------------------------------------------ */ static int Itcl_ClassForwardCmd( void *clientData, /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4128 4129 4130 4131 4132 4133 4134 | 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 | - + | * ------------------------------------------------------------------------ */ static int Itcl_ClassMethodVariableCmd( void *clientData, /* unused */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
4248 4249 4250 4251 4252 4253 4254 | 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 | - + | * * ------------------------------------------------------------------------ */ static int Itcl_ClassTypeConstructorCmd( void *clientData, /* info for all known objects */ Tcl_Interp *interp, /* current interpreter */ |
︙ |
Changes to generic/itclStubInit.c.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | + + + + + | /* * This file is (mostly) automatically generated from itcl.decls. * It is compiled and linked in with the itcl package proper. */ #include "itclInt.h" #undef Itcl_GetStackValue #if TCL_MAJOR_VERSION < 9 # define Itcl_RegisterObjC 0 # define Itcl_FindC 0 #endif MODULE_SCOPE const ItclStubs itclStubs; /* !BEGIN!: Do not edit below this line. */ static const ItclIntStubs itclIntStubs = { TCL_STUB_MAGIC, ITCLINT_STUBS_EPOCH, |
︙ | |||
236 237 238 239 240 241 242 243 244 245 | 241 242 243 244 245 246 247 248 249 250 251 252 | + + | Itcl_ReleaseData, /* 22 */ Itcl_SaveInterpState, /* 23 */ Itcl_RestoreInterpState, /* 24 */ Itcl_DiscardInterpState, /* 25 */ Itcl_Alloc, /* 26 */ Itcl_Free, /* 27 */ ItclGetStackValue, /* 28 */ Itcl_RegisterObjC2, /* 29 */ Itcl_FindC2, /* 30 */ }; /* !END!: Do not edit above this line. */ |
Changes to generic/itclStubs.c.
︙ | |||
10 11 12 13 14 15 16 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | - + | * this file, and for a DISCLAIMER OF ALL WARRANTIES. */ #include "itclInt.h" static void ItclDeleteStub(void *cdata); static int ItclHandleStubCmd(void *clientData, Tcl_Interp *interp, |
︙ | |||
60 61 62 63 64 65 66 | 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | - + - + + + + + + | * the real command <name> to be autoloaded. * ------------------------------------------------------------------------ */ int Itcl_StubCreateCmd( TCL_UNUSED(void *), /* not used */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
110 111 112 113 114 115 116 | 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | - + | * autoloading stub. Returns a boolean result. * ------------------------------------------------------------------------ */ int Itcl_StubExistsCmd( TCL_UNUSED(void *), /* not used */ Tcl_Interp *interp, /* current interpreter */ |
︙ | |||
149 150 151 152 153 154 155 | 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 | - + | * error message in the interpreter. * ------------------------------------------------------------------------ */ static int ItclHandleStubCmd( void *clientData, /* command token for this stub */ Tcl_Interp *interp, /* current interpreter */ |
︙ |
Changes to generic/itclTclIntStubsFcn.c.
︙ | |||
34 35 36 37 38 39 40 | 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | - + - + | { int code = TclCreateProc(interp, (Namespace *)nsPtr, procName, argsPtr, bodyPtr, (Proc **)procPtrPtr); (*(Proc **)procPtrPtr)->cmdPtr = NULL; return code; } |
︙ |
Changes to generic/itclTclIntStubsFcn.h.
︙ | |||
21 22 23 24 25 26 27 | 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | - + | #define Tcl_GetObjInterpProc _Tcl_GetObjInterpProc MODULE_SCOPE Tcl_Command _Tcl_GetOriginalCommand(Tcl_Command command); MODULE_SCOPE int _Tcl_CreateProc(Tcl_Interp *interp, Tcl_Namespace *nsPtr, const char *procName, Tcl_Obj *argsPtr, Tcl_Obj *bodyPtr, Tcl_Proc *procPtrPtr); MODULE_SCOPE void _Tcl_ProcDeleteProc(void *clientData); |
︙ |