callback facility is available on all platforms. I think it is the dll lab
that is windows specific.

On Tue, Feb 25, 2020, 8:29 AM Raul Miller <[email protected]> wrote:

> That lab mechanism (basically, one statement at a time, with
> decoration removed for comments and text blocks) looks neat. It still
> takes time to write a lab, but this seems quite straightforward.
>
> That said, I'm wondering about the lab titled: "Shared Library (d)
> (windows only) - callback".
>
> For example, if I do a site search of opensource.apple.com for
> "callback" I see a good variety of examples, and I imagine some of
> those might make good lab candidates.
>
> But when I look at
> https://github.com/jsoftware/jsource/blob/master/jsrc/x15.c I see that
> CALLBACK is only defined for windows....
>
> But other lines which use CALLBACK seem to be used unconditionally
> (have I overlooked something?).
>
> ...
>
> Anyways, I'm not sure if this is meant to work on non-windows
> platforms, but I can't even figure out what issue it is that is making
> it so hard for me to read this part of the code. (I've noticed things
> like the definition of CALLBACK at
>
> https://opensource.apple.com/source/X11server/X11server-48.1/xorg-server-1.3.0-apple5/Xext/security.c
> but that seems oddly specific, and probably not the definition used
> when compiling J... but maybe there's a standard definition somewhere
> that is being pulled in??)
>
> Are callbacks expected to work on non-windows platforms, and we just
> don't have examples? Or is there some subtlety here which prevents
> them from working?
>
> Thanks,
>
> --
> Raul
>
> On Mon, Feb 24, 2020 at 9:27 AM Eric Iverson <[email protected]>
> wrote:
> >
> > Updated labs addon with new and improved labs for cd (DLL call) is
> > available.
> >
> > It should now be easier to get comfortable with shared libraries.
> >
> > There are 5 shared library labs in category system.
> >
> > Jqt: Help>Studio>Labs Category:System
> > JHS: tour>labs lablist_jijx_ 'system'
> >
> > ***
> > These labs (e.g. ~addons/labs/labs/system/dllbasic.ijt) are written as
> > 'normal' scripts. They do not have the complicated structure required by
> > earlier labs. This style of lab is much easier to create. Take a look at
> > the script and then see how it runs as a lab (or under spx managed
> > execution).
> >
> > Perhaps it is time to write your own lab and contribute it to the
> community.
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to