From: Paul Eggert <eggert@cs.ucla.edu>
To: Dan Nicolaescu <dann@gnu.org>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: DEFU* macro name for a extern DEFUN: DEFUE? DEFUNEX?
Date: Sun, 10 Apr 2011 23:37:43 -0700 [thread overview]
Message-ID: <4DA2A1B7.4080103@cs.ucla.edu> (raw)
In-Reply-To: <yxqaafx1ew8.fsf@fencepost.gnu.org>
On 04/10/2011 11:27 PM, Dan Nicolaescu wrote:
> Are you using gcc ? If yes, and you are cleaning up the code to not
> generate warnings with some -W flags, how about adding those flags to
> the default set so that we do not regress? (configure only sets very few -W
> flags now, it could set more...)
Sure, I can do that. However, I'm using quite a few flags, and they
are likely to cause problems during a normal "configure; make" if
they're made the default. Even if a maintainer does a clean build on
(say) RHEL 5.6 it's likely that there will be lots of annoying
warnings when an installer runs on (say) Solaris. What I plan to do
is what other GNU packages do in this situation, namely, add an
--enable-gcc-warnings option to "configure". The default is no
warnings, but if you set the configure-time option you get lots of
nice warnings.
> How about the more explicit DEFUN_EXTERN and document DEFUN as
> generating a static function?
Sure, that'd be easy.
>> +#define INFUN(fnname, maxargs) \
>> + static Lisp_Object fnname DEFUN_ARGS_ ## maxargs
>
> How about nothing instead of INFUN?
> Explicit prototypes are much easier to read, and easier to figure out
> the calling convention.
Yes, that'd also be easy.
next prev parent reply other threads:[~2011-04-11 6:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-11 5:47 DEFU* macro name for a extern DEFUN: DEFUE? DEFUNEX? Paul Eggert
2011-04-11 6:27 ` Dan Nicolaescu
2011-04-11 6:37 ` Paul Eggert [this message]
2011-04-11 10:39 ` Juanma Barranquero
2011-04-11 16:49 ` Paul Eggert
2011-04-11 14:34 ` Jason Rumney
2011-04-11 22:37 ` Chong Yidong
2011-04-12 1:35 ` Paul Eggert
2011-04-14 23:52 ` checking static vs extern symbols Paul Eggert
2011-04-15 8:23 ` Eli Zaretskii
2011-04-15 1:15 ` DEFU* macro name for a extern DEFUN: DEFUE? DEFUNEX? Stefan Monnier
2011-04-12 3:34 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DA2A1B7.4080103@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=dann@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.