Abridged summary of comp.lang.tcl@googlegroups.com - 16 updates in 2 topics

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Abridged summary of comp.lang.tcl@googlegroups.com - 16 updates in 2 topics

comp.lang.tcl mailing list
[hidden email] ("Оlе Ѕtrеісhеr"): Jun 04 09:58AM +0200

Hi,
 
how is it possible to use a package (tkblt) from within an extension?
So, is there an equivalent to "package require" on the C level?
 
I want to avoid an explicite linking of the library, ...more
[hidden email] ("Оlе Ѕtrеісhеr"): Jun 04 10:11AM +0200


> I want to avoid an explicite linking of the library, since its path is
> not the standard path, but in the Tcl path, and this may change from
> system to system.
 
I forgot to mention: I tried ...more
EL <[hidden email]>: Jun 04 12:30PM +0200

Am 04.06.16 um 10:11 schrieb Оlе Ѕtrеісhеr:
 
 
> I forgot to mention: I tried Tcl_PkgRequire(interp, "tkblt", NULL, 0),
> however then I cannot load the extension:
 
> couldn't load file ...more
Robert Heller <[hidden email]>: Jun 04 06:43AM -0500

> Blt_InitStubs(), by convention ...
 
> If there is no stubs library for Blt, then there is no way around
> platform dependent linking against libblt.so.
 
This is not necessarily true (it might ...more
[hidden email] ("Оlе Ѕtrеісhеr"): Jun 04 02:26PM +0200

>> You must link against the libbltstubs.so that it provides. I am not sure
>> if Blt provides a stubs library, but Tcl C extensions which expose C
>> functions do usually provide a stubs library to ...more
Robert Heller <[hidden email]>: Jun 04 08:42AM -0500

> return TCL_ERROR;
 
> because they are not linked and so the extension fails to load before
> it is executed.
 
OK, this is a case where yes, you need the tkblt stubs library. C/C++ does not ...more
[hidden email] ("Оlе Ѕtrеісhеr"): Jun 04 03:58PM +0200

> of Tcl_Eval(). This will make use of Tcl's dynamic lookup table. It does mean
> converting everything from C'ish data objects to Tcl_Obj()'s and back
> again.
 
So how do I create one if I have ...more
EL <[hidden email]>: Jun 04 06:28PM +0200

Am 04.06.16 um 15:58 schrieb Оlе Ѕtrеісhеr:
 
> So how do I create one if I have the source of tkblt?
 
This is not too easy. You need to create stub functions for every Blt_* ...more
EL <[hidden email]>: Jun 04 06:54PM +0200

Am 04.06.16 um 18:28 schrieb EL:
 
> If BLT doesn't provide that yet, it would be a great and useful
> extension. And I guess every BLT user would praise you :)
 
Because then it is not only ...more
Robert Heller <[hidden email]>: Jun 04 12:16PM -0500

> > *different* from the Tcl API. In that case you just have to link
> > against the extension lib.
 
> This is what I want to avoid. Is there a way to create the stub myself?
 
Not without a fair ...more
[hidden email] ("Оlе Ѕtrеісhеr"): Jun 04 08:55PM +0200

> include an initializer function, to fill in the jump table upon
> loading -- eg a "C/C++" version of the _init() function that gets
> passed the staticly linked jump table to be filled in.
...more
[hidden email] ("Оlе Ѕtrеісhеr"): Jun 04 08:57PM +0200

>> So how do I create one if I have the source of tkblt?
 
> If BLT doesn't provide that yet, it would be a great and useful
> extension. And I guess every BLT user would praise you :)
...more
Robert Heller <[hidden email]>: Jun 04 02:28PM -0500

> > function to fill in the library. And you would need a stubs header
> > file.
 
> Puh, this looks really hard.
 
Yes...
 
 
> I am wondering, Tcl is such an mature language, with version 8.1 ...more
[hidden email] ("Оlе Ѕtrеісhеr"): Jun 04 10:16PM +0200

> C extensions.
> As a stubs enabled extension, BLT could also be used with *any* Tcl
> version >=8, without the need to recompile it.
 
This seems to work with tkblt "out of the box": it links to ...more
[hidden email] ("Оlе Ѕtrеісhеr"): Jun 04 10:21PM +0200

> is an 'island' that only calls Tcl_ or Tk_ functions (through the Tcl_ stubs
> or Tk_ stubs). Everything is 'glued' together at the Tcl level. *Tcl* itself
> is the 'glue' language.
...more
Brad Lanam <[hidden email]>: Jun 03 02:07PM -0700

On Friday, June 3, 2016 at 12:49:20 AM UTC-7, Jerome Legrand wrote:
 
> > Wouldn't a standard system snapshot tool work out better? The linux flavors all have some sort of 'screenshot' tool, Windows ...more
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to [hidden email].