From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#12116: merge from gnulib for extern-inline Date: Thu, 02 Aug 2012 22:49:37 +0300 Message-ID: <837gthcbvy.fsf@gnu.org> References: <5019AB4B.3060607@cs.ucla.edu> <83obmtcoy2.fsf@gnu.org> <501AC0D3.6080300@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1343937036 20786 80.91.229.3 (2 Aug 2012 19:50:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Aug 2012 19:50:36 +0000 (UTC) Cc: lekktu@gmail.com, 12116@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 02 21:50:35 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1Sx1Pn-0007G4-E7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Aug 2012 21:50:35 +0200 Original-Received: from localhost ([::1]:61000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx1Pm-0004wQ-E7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 02 Aug 2012 15:50:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx1Pk-0004wL-3E for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 15:50:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sx1Pj-0006Rq-5E for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 15:50:32 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sx1Pj-0006Rm-1X for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 15:50:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Sx1X0-0005ct-HI for bug-gnu-emacs@gnu.org; Thu, 02 Aug 2012 15:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Aug 2012 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12116 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 12116-submit@debbugs.gnu.org id=B12116.134393745121586 (code B ref 12116); Thu, 02 Aug 2012 19:58:02 +0000 Original-Received: (at 12116) by debbugs.gnu.org; 2 Aug 2012 19:57:31 +0000 Original-Received: from localhost ([127.0.0.1]:57462 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sx1WV-0005c7-6l for submit@debbugs.gnu.org; Thu, 02 Aug 2012 15:57:31 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:56566) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Sx1WS-0005by-BQ for 12116@debbugs.gnu.org; Thu, 02 Aug 2012 15:57:29 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M8500L0081A6H00@a-mtaout23.012.net.il> for 12116@debbugs.gnu.org; Thu, 02 Aug 2012 22:49:45 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M8500LC68EW5340@a-mtaout23.012.net.il>; Thu, 02 Aug 2012 22:49:45 +0300 (IDT) In-reply-to: <501AC0D3.6080300@cs.ucla.edu> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62765 Archived-At: > Date: Thu, 02 Aug 2012 11:02:59 -0700 > From: Paul Eggert > CC: 12116@debbugs.gnu.org, lekktu@gmail.com > > e x p a n s i o n i n : > macro C99 older compilers ancient compilers > INLINE inline static inline static > EXTERN_INLINE extern inline static inline static > > and the Emacs include file charset.h does this: > > #ifndef CHARSET_INLINE > # define CHARSET_INLINE INLINE > #endif > > CHARSET_INLINE void > set_charset_attr (struct charset *charset, enum charset_attr_index idx, > Lisp_Object val) > { > ASET (CHARSET_ATTRIBUTES (charset), idx, val); > } > > so in C99 most users of charset.h see the function as being > 'inline void'. charset.c does this before including charset.h: > > #define CHARSET_INLINE EXTERN_INLINE > > so that when it's compiled, the function is 'extern inline void'. > In pre-C99 compilers the function is 'static inline' or (if ancient) > plain 'static'. Similarly for each .h file that uses inline functions. OK, but what's the story with the addition of stat-time.c, utimespec.c, and u64.c, which just include the respective headers? Where and how are these used, and for what purposes? I understood the extern inline stuff, I just don't get why are these *.c files introduced.