From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Correct byte compiler error/warning positions. The solution! Date: Sat, 04 Dec 2021 21:58:06 +0200 Message-ID: <838rx05ei9.fsf@gnu.org> References: <8335nfw2pe.fsf@gnu.org> <838rx4s224.fsf@gnu.org> <834k7ss172.fsf@gnu.org> <83bl1w5fdk.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4807"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 04 21:01:18 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtbDh-00016Y-1w for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 21:01:17 +0100 Original-Received: from localhost ([::1]:41344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtbDe-0004HZ-S9 for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 15:01:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51496) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtbAk-0002Ix-IZ for emacs-devel@gnu.org; Sat, 04 Dec 2021 14:58:16 -0500 Original-Received: from [2001:470:142:3::e] (port=43792 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtbAk-0003Rn-8v; Sat, 04 Dec 2021 14:58:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=A0isM44VIOowdHJq87Ox4W8+Bqt6ggP1iulMWZo4Q1I=; b=M0/N4HeoPYoT 7BhAjYvisGUalMntav/rs7ZZzNkcRYO2N/bLIp3zEA0ZYhpAjgGThD8zzRdEtYoQgFnjqk+7kWb9i 0nlY6Kpoe6DP7gf5m/85iDDglW3OHk6GsGn1xGksucjJjIe6itv6lK2Ihr9zn3NVaZoHdQJYdgqIh hOvTT1TkLz7PSazGyZDmd17/Fe82MH59Cnqn9Fdm0URkNw4Upk+3GWsN4cZ4pcZZ8Zq4ChrQRkM/B luUo+rpZdD6MxpWKq8br8B6vnXMQuolErOtgbmND1LqXXXQJAc7aN0XeiM/u0p9eu63C94JelaQ/h afZ0eqigDoi4vd0+yrd1vw==; Original-Received: from [87.69.77.57] (port=4971 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtbAj-0005yW-F5; Sat, 04 Dec 2021 14:58:14 -0500 In-Reply-To: (message from Andrea Corallo on Sat, 04 Dec 2021 19:55:28 +0000) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280941 Archived-At: > From: Andrea Corallo > Cc: acm@muc.de, emacs-devel@gnu.org > Date: Sat, 04 Dec 2021 19:55:28 +0000 > > Eli Zaretskii writes: > > >> From: Andrea Corallo > >> Cc: Eli Zaretskii , emacs-devel@gnu.org > >> Date: Sat, 04 Dec 2021 19:22:02 +0000 > >> > >> I think it could be a good idea but I believe there's no need to use > >> macros here, we could have just functions return rvalues no? > >> > >> I'm not a big fan of C macros and I try not to use them whem possible. > > > > Macros punish unoptimized builds less severely than functions. > > Yep, but in this case I'm sure the perf delta is not measurable > therefore IMO functions should be preferred. I was responding to a much more general dislike of macros that you expressed above, and wanted to explain why we do use macros in Emacs.