[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] forth-swig linking with multiple libraries?

From: Gerald Wodni
Subject: Re: [gforth] forth-swig linking with multiple libraries?
Date: Thu, 22 Nov 2018 00:30:01 +0100

Am Mi., 21. Nov. 2018 um 20:23 Uhr schrieb Bernd Paysan <address@hidden>:

> Am Mittwoch, 21. November 2018, 20:07:37 CET schrieb Reepca Russelstein:
> > Hm, well, I tried wrapping it in another file, but I can't seem to
> > find an option to get rid of the prefix and postfix. Nesting c-library
> > sections doesn't seem to work (unsurprising, end-c-library resets a
> > bunch of stuff). I saw the "no-prefix" option used in gforth's
> > bindings, but I think that refers to a different prefix than
> > #undef SWIG_FORTH_GFORTH_POSTFIX also didn't seem to do anything. Just
> > making it possible to specify multiple libraries to link against
> > wouldn't solve the problem entirely, either - al_init is defined as a
> > macro, and I wish to define a C function (using \c lines inside
> > c-library) that wraps that.
> Yes, I already requested that feature from Gerald; unfortunately, he just
> started working on SWIG, and stopped, leaving a TODO list (in German) in
> his
> branch. So either we need to do that ourselves, or wait until Gerald has
> time
> again.
Don't worry, I did not stop working on SWIG. I just switched to pen and
paper to figure out a proper cross-system, cross-platform way to implement
I think I found a good approach which deals with all the problems in a nice
way by making the interface more direct for the user.
I want this to be easy for the occasional SWIG-user, but extendable for the
pros. This is a thin line to walk.
I already have it staged, and scheduled some time for next week to get it
done and pushed.

So my suggestion for now is to roll back to an un pre-post-fixed version
until next week.

The TODO is just in German for now because I needed it on the go and it was
easier for me to just paste in in the repo.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]