From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] ash, lsh: Avoid code duplication Date: Mon, 21 Nov 2016 19:14:50 +0200 Message-ID: <83bmx892lx.fsf@gnu.org> References: <87inrg99in.fsf@gmail.com> <83k2bw9673.fsf@gnu.org> <87d1ho953w.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1479748521 8689 195.159.176.226 (21 Nov 2016 17:15:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 21 Nov 2016 17:15:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Tino Calancha Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 21 18:15:15 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c8sBX-00019b-Fk for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2016 18:15:15 +0100 Original-Received: from localhost ([::1]:50810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8sBZ-0004mt-5F for ged-emacs-devel@m.gmane.org; Mon, 21 Nov 2016 12:15:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8sB2-0004mR-3t for emacs-devel@gnu.org; Mon, 21 Nov 2016 12:14:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8sAy-00029T-0g for emacs-devel@gnu.org; Mon, 21 Nov 2016 12:14:44 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48814) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8sAx-00029P-Tm; Mon, 21 Nov 2016 12:14:39 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3160 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1c8sAx-0004U4-3l; Mon, 21 Nov 2016 12:14:39 -0500 In-reply-to: <87d1ho953w.fsf@gmail.com> (message from Tino Calancha on Tue, 22 Nov 2016 01:20:51 +0900) 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.21 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" Xref: news.gmane.org gmane.emacs.devel:209528 Archived-At: > From: Tino Calancha > CC: emacs-devel@gnu.org, Tino Calancha > Date: Tue, 22 Nov 2016 01:20:51 +0900 > > Thank you. Following is the new patch after your comments: We are close. > +Lisp_Object > +ash_lsh_impl (register Lisp_Object value, Lisp_Object count, bool lsh) static Lisp_Object ash_lsh_impl (register Lisp_Object value, Lisp_Object count, bool lsh) > diff --git a/src/lisp.h b/src/lisp.h > index e087828..c48c2c8 100644 > --- a/src/lisp.h > +++ b/src/lisp.h > @@ -602,6 +602,7 @@ extern void char_table_set (Lisp_Object, int, Lisp_Object); > /* Defined in data.c. */ > extern _Noreturn Lisp_Object wrong_type_argument (Lisp_Object, Lisp_Object); > extern _Noreturn void wrong_choice (Lisp_Object, Lisp_Object); > +Lisp_Object ash_lsh_impl (Lisp_Object, Lisp_Object, bool); No need to declare it here, as it is a static function used only in the file in which it is defined. Thanks.