From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Sun, 15 Feb 2015 19:00:55 +0200 Message-ID: <83sie7un20.fsf@gnu.org> References: <85k31coixa.fsf@stephe-leake.org> <85oapy5kt6.fsf@stephe-leake.org> <83y4oiiw81.fsf@gnu.org> <838ugdf251.fsf@gnu.org> <87bnl1vmqf.fsf@lifelogs.com> <87vbj8tow4.fsf@lifelogs.com> <87r3twtagf.fsf@lifelogs.com> <85siebl7ws.fsf@stephe-leake.org> <85a90ilwmm.fsf@stephe-leake.org> <83386a6f7z.fsf@gnu.org> <85h9upjz7v.fsf@stephe-leake.org> <83wq3k3kl4.fsf@gnu.org> <85bnkwil1c.fsf@stephe-leake.org> <83pp9cwky8.fsf@gnu.org> <85a90ggf2d.fsf@stephe-leake.org> <54E0A40F.5080603@dancol.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424019679 13955 80.91.229.3 (15 Feb 2015 17:01:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Feb 2015 17:01:19 +0000 (UTC) Cc: stephen_leake@stephe-leake.org, emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 15 18:01:11 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YN2ZC-0005o7-AB for ged-emacs-devel@m.gmane.org; Sun, 15 Feb 2015 18:01:10 +0100 Original-Received: from localhost ([::1]:35964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN2ZB-00045C-M4 for ged-emacs-devel@m.gmane.org; Sun, 15 Feb 2015 12:01:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN2Z2-0003uS-DN for emacs-devel@gnu.org; Sun, 15 Feb 2015 12:01:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YN2Yx-0005GJ-NR for emacs-devel@gnu.org; Sun, 15 Feb 2015 12:01:00 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YN2Yx-0005G1-Fw for emacs-devel@gnu.org; Sun, 15 Feb 2015 12:00:55 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NJT00A00OHWXU00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 15 Feb 2015 19:00:52 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJT00A7DOLFCZB0@a-mtaout22.012.net.il>; Sun, 15 Feb 2015 19:00:51 +0200 (IST) In-reply-to: <54E0A40F.5080603@dancol.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183091 Archived-At: > Date: Sun, 15 Feb 2015 05:50:07 -0800 > From: Daniel Colascione > > >> #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?