emacs-devel
[Top][All Lists]
Advanced

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

Re: Dynamic loading progress


From: Eli Zaretskii
Subject: Re: Dynamic loading progress
Date: Sun, 15 Feb 2015 19:00:55 +0200

> Date: Sun, 15 Feb 2015 05:50:07 -0800
> From: Daniel Colascione <address@hidden>
> 
> >>   #ifdef WINDOWS
> >>   # ifdef emacs
> >>   #  define EMACS_EXPORT  __declspec(dllexport)
> >>   # else
> >>   #  define EMACS_EXPORT  __declspec(dllimport)
> >>   # endif
> >>   # else
> >>   #  define EMACS_EXPORT
> >>   #endif
> >>
> >> That's because they should be exported by Emacs, but imported by
> >> modules.
> > 
> > Right, that makes sense.
> 
> No it doesn't. Modules shouldn't be importing anything from Emacs: Emacs
> should _give_ modules a table of all function pointers they need. It's a
> lot less error-prone that way.

I don't follow: how will the linker succeed in linking the module's
shared library, if you don't submit to it an import library with the
symbols in that table you mention?  And how do you suggest to produce
an import library, except by the above decorations?

What am I missing?



reply via email to

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