Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2008-06-29
07:00 • Closed ticket [1980953fff]: TIP257 integration breaks 'make genstubs'</i... artifact: 70094171fe user: dkf
2008-06-12
14:21 • Ticket [1980953fff]: 4 changes artifact: e0fd48e2a5 user: das
2008-06-10
21:30 • Ticket [1980953fff]: 4 changes artifact: 6d4d297f12 user: dkf
21:15 • Ticket [1980953fff]: 4 changes artifact: ccae7a2109 user: das
21:02 • Ticket [1980953fff]: 1 change artifact: de5b354699 user: dkf
2008-06-01
07:55 • Open ticket [1980953fff]. artifact: 4347b88eb1 user: das
07:55 • Add attachment tclOOhooks.diff to ticket [1980953fff] artifact: ab102c2622 user: das
07:43 • Ticket [1980953fff] TIP257 integration breaks 'make genstubs' status... artifact: 2562b39455 user: das
07:41 • Closed ticket [1980953fff]. artifact: b21206d6de user: dkf
07:20 • Ticket [1980953fff]: 4 changes artifact: b2f0394f3f user: das
07:10 • Ticket [1980953fff]: 4 changes artifact: 6f573eba6f user: dkf
05:47 • Ticket [1980953fff]: 4 changes artifact: 878435eb0e user: dkf
2008-05-31
22:20 • New ticket [1980953fff]. artifact: 8bc7ea78b3 user: das

TIP257 integration breaks 'make genstubs'

Closed / Fixed1980953fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 18 years ago
Descriptionplain2008-05-31 22:20:51
tclOO.decls uses commands that tools/genStubs.tcl does not understand, breaking 'make genstubs'.

oo/tools/genStubs.tcl is not the standard genStubs.tcl, it appears to be derived from ttkGenStubs.tcl, and does not have any of the recent modifications that were made to tcl/tools/genStubs.tcl e.g. for static const stubs tables [patch 1938497].

Either the tclOO specific genStubs.tcl needs to be added to tcl/tools or (preferably) the extra functionality tclOO requires needs to be added to tcl/tools/genStubs.tcl
dkfplain2008-06-01 05:47:30
Logged In: YES 
user_id=79902
Originator: NO

Grrr.

It was indeed written using the genstubs used in Tile, though the extra features in tclOO.decls from that system were actually not used in any meaningful way. But it seems that stubs generation is currently completely broken; tclOODecls.h is (effectively) empty following obvious changes, and tclOOStubInit.c is full of irrelevant rubbish (and yet nothing required)! Don't know why yet.
dkfplain2008-06-01 07:10:48
Logged In: YES 
user_id=79902
Originator: NO

Sorted. Problems were two commands that were not really used, 'common/generic' in the main declarations, the hooks stuff (which I still don't really understand) and the fact that each interface needs to be generated separately. (Someone ought to do some kind of interlock there to prevent this sort of thing happening again...)

Now I've just got to undo the damage caused by your jumping the gun with "fixes".
dasplain2008-06-01 07:20:21
Logged In: YES 
user_id=90580
Originator: YES

great!
no worries about merging my fixes to the generated files, I can do that, just commit what make genstubs produces...
dkf Closed ticket [1980953fff]. [History diff]2008-06-01 07:41:41
dasplain2008-06-01 07:43:18
Logged In: YES 
user_id=90580
Originator: YES

re hooks: AFAIU that's just a way to hang additional stubs tables off the main table, could be used for tclOO as well, obviating the need for struct TclOOStubAPI...
dasplain2008-06-01 07:55:22
File Added - 279740: tclOOhooks.diff

Logged In: YES 
user_id=90580
Originator: YES

concretely, the attached patch replaces use of struct TclOOStubAPI by the pointer to tclOOIntStubs in the main table hooks
File Added: tclOOhooks.diff
dkf Ticket [1980953fff]: 1 change [History diff]2008-06-10 21:02:29
dasplain2008-06-10 21:15:08
Logged In: YES 
user_id=90580
Originator: YES

if there are no objections to the tclOOhooks.diff patch, I'll commit later today
dkfplain2008-06-10 21:30:26
Logged In: YES 
user_id=79902
Originator: NO

Sounds fair enough to me. I'm planning to do the same to TclOO④8.5
dasplain2008-06-12 14:21:10
Logged In: YES 
user_id=90580
Originator: YES

committed to HEAD, leaving open for TclOO
dkfplain2008-06-29 07:00:58
Logged In: YES 
user_id=79902
Originator: NO

TclOO 0.5 uses the Tcl scheme.
Log in (anonymous is fine) to add a comment.

Attachments: