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: good examples of Emacs modules? Date: Fri, 01 Apr 2016 17:02:48 +0300 Message-ID: <837fghtojb.fsf@gnu.org> References: <56FC5E99.7090804@cs.ucla.edu> <8737r67jbo.fsf@wanadoo.es> <83a8levbaf.fsf@gnu.org> <87y48y60fi.fsf@wanadoo.es> <834mbmv95h.fsf@gnu.org> <87twjm5rc3.fsf@wanadoo.es> <87poua5mwn.fsf@wanadoo.es> <83mvpdu79a.fsf@gnu.org> <87lh4x5utx.fsf@wanadoo.es> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1459519447 27935 80.91.229.3 (1 Apr 2016 14:04:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2016 14:04:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 16:04:02 2016 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 1alzg9-00022P-LV for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2016 16:04:01 +0200 Original-Received: from localhost ([::1]:44583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alzg9-0007PK-6S for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2016 10:04:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39859) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alzfO-0006L4-PJ for emacs-devel@gnu.org; Fri, 01 Apr 2016 10:03:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alzfI-0003qL-SJ for emacs-devel@gnu.org; Fri, 01 Apr 2016 10:03:14 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alzfI-0003qH-J1; Fri, 01 Apr 2016 10:03:08 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2971 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1alzfH-00086z-Su; Fri, 01 Apr 2016 10:03:08 -0400 In-reply-to: <87lh4x5utx.fsf@wanadoo.es> (message from =?utf-8?Q?=C3=93sca?= =?utf-8?Q?r?= Fuentes on Fri, 01 Apr 2016 15:20:42 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:202568 Archived-At: > From: Óscar Fuentes > Date: Fri, 01 Apr 2016 15:20:42 +0200 > > >> int __declspec(dllexport) plugin_is_GPL_compatible; > >> > >> (Windows) > >> > >> int __attribute__ ((visibility("default"))) plugin_is_GPL_compatible; > > > > I don't need any such Windows-specific attributes, so I'm unsure why > > you think you do. The test in modules/mod-test compiles and passes > > the tests just fine without that. > > This is because MinGW defaults to "export everything" (as soon as the > compiler sees a dllexport, it disables the "export everything" feature), > same as gcc on GNU/Linux does. Yes, I know. But this is not unique to Emacs, so I don't see why we need to do something that no one else does. > On Windows this is not a good practice if you have multiple dlls > (modules) with potentially identical symbols exported. If this program exists, it will preclude programs using such DLLs from compiling.