From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Android port Date: Sun, 6 Aug 2023 01:48:40 -0700 Organization: UCLA Computer Science Department Message-ID: References: <1428589171.162865.1691134964773@mail1.libero.it> <3473524.ldcX8TXnAK@nimes> <83fs4xslst.fsf@gnu.org> <6358080.k4LH7P0x6x@nimes> <83edkhskyq.fsf@gnu.org> <87jzu97hu2.fsf@yahoo.com> <835y5tse75.fsf@gnu.org> <83zg35qz7m.fsf@gnu.org> <87cz016oxn.fsf@yahoo.com> <83msz4rcil.fsf@gnu.org> <878rao7o8o.fsf@yahoo.com> <83h6pcrbe9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18823"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Cc: bruno@clisp.org, angelo.g0@libero.it, emacs-devel@gnu.org To: Eli Zaretskii , Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 06 10:49:36 2023 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 1qSZSB-0004g2-S7 for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Aug 2023 10:49:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSZRT-0002vR-WD; Sun, 06 Aug 2023 04:48:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSZRR-0002v8-FR for emacs-devel@gnu.org; Sun, 06 Aug 2023 04:48:49 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSZRO-0002yd-VT; Sun, 06 Aug 2023 04:48:48 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 750003C011BD4; Sun, 6 Aug 2023 01:48:41 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ImiwaOi3_FQW; Sun, 6 Aug 2023 01:48:41 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 3261A3C011BD6; Sun, 6 Aug 2023 01:48:41 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 3261A3C011BD6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1691311721; bh=zsP6wDAyolvEqCpvXwAEr5h4+c45I32iXhySG87mDcU=; h=Message-ID:Date:MIME-Version:To:From; b=Pq0peoqnZvXSD46MfMc23FSmpc0kCyEx32Os1EghXSr1poCWT31b5rLMHQ97i9Jzs qxhDV82QKWiCJ4C/fyKsBYjQi6Mw4PbDnX9nbUGVxt6IEqzk5G5UOqorG2D4duzerQ kmPTDuCXVeWKK92nWpwkd/AdufuKAy72pWu2Ig8sjYwAQjw3/ds9BQ0XRq0oZjawFL mgSzdUe5l4ojIRnYRY1gnD8uzqBeCL/9iMyDnFL7b1G0G/0mJxlgTvFFMQ1hwz+ScZ 8usMvqmpuIdd0K1PU1K6nmK9NRIZ1XFdE+erNMRrRn0gKs8YxRYeJ9p0fqfQTjEJ47 ucBuQkzNze7Qg== X-Virus-Scanned: amavisd-new at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id vZSrVllBAkaF; Sun, 6 Aug 2023 01:48:41 -0700 (PDT) Original-Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 05FED3C011BD4; Sun, 6 Aug 2023 01:48:41 -0700 (PDT) Content-Language: en-US In-Reply-To: <83h6pcrbe9.fsf@gnu.org> Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-0.089, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:308332 Archived-At: On 2023-08-05 22:24, Eli Zaretskii wrote: > Paul didn't chime in yet, so I'd like to wait for him to comment on > this. I see no reason why we would be unable to omit these modules > like we do with others. I don't either, but I hope we don't have to worry about it. As I understand it the Android port uses Gnulib printf-posix and vasprintf-posix modules only because Android printf lacks support for "%td", "%jd" and "%ju". If this understanding is correct, how about if we go through the printf formats in the Emacs C source code, and replace all uses of "%jd" and "%ju" with "%"PRIdMAX and "%"PRIuMAX, and all uses of "%td" with "%"pT"d" where pT is an Emacs invention defined like this: #ifdef __ANDROID__ # define pT "z" #else # define pT "t" #endif That way, the Android branch wouldn't need to use the printf-posix and vasprintf-posix modules, and we wouldn't have to worry about the hassle of porting them into the Emacs world. Admittedly this hack is not the Gnulib Way, but Emacs departs so far from the Gnulib Way that this one extra little thing shouldn't be that big of a deal.