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 10:18:25 +0300 Message-ID: <83mvpdu79a.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> 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 1459495137 22586 80.91.229.3 (1 Apr 2016 07:18:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2016 07:18:57 +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 09:18:53 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 1altM4-0001Py-84 for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2016 09:18:52 +0200 Original-Received: from localhost ([::1]:36339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1altM3-00010G-Hw for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2016 03:18:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1altLq-0000zo-1x for emacs-devel@gnu.org; Fri, 01 Apr 2016 03:18:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1altLm-0008E5-SX for emacs-devel@gnu.org; Fri, 01 Apr 2016 03:18:37 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1altLm-0008E1-PK; Fri, 01 Apr 2016 03:18:34 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2712 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1altLm-0001Wp-1w; Fri, 01 Apr 2016 03:18:34 -0400 In-reply-to: <87poua5mwn.fsf@wanadoo.es> (message from =?utf-8?Q?=C3=93sca?= =?utf-8?Q?r?= Fuentes on Thu, 31 Mar 2016 23:59:36 +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:202554 Archived-At: > From: Óscar Fuentes > Date: Thu, 31 Mar 2016 23:59:36 +0200 > > BTW, it is necessary to explicitly export the symbols on Windows (and on > GNU/Linux too depending on the arguments used): > > int plugin_is_GPL_compatible; > > should be > > 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. > (GNU/Linux, when you compile your module with -fvisibility=hidden, which > is a Good Thing.) If someone uses -fvisibility=hidden on a shared object, they know what they are doing, and they need the attribute on every exported symbol, not just on plugin_is_GPL_compatible.