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: Android port Date: Sun, 06 Aug 2023 11:58:35 +0300 Message-ID: <83a5v4r1hg.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23568"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, bruno@clisp.org, angelo.g0@libero.it, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 06 10:58:52 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 1qSZbA-0005xM-0k for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Aug 2023 10:58:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSZag-0005jS-4O; Sun, 06 Aug 2023 04:58:22 -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 1qSZae-0005dd-BZ for emacs-devel@gnu.org; Sun, 06 Aug 2023 04:58:20 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSZad-0004kZ-2d; Sun, 06 Aug 2023 04:58:19 -0400 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=mwxSWVZcWZ3383PPV1DP3gLf2Ye8ODAKO0ttsj4c8AY=; b=SNpUDbPfYNIF ieArDc1kZkoa28D/B3NIBfjrpEt9qxnaiQycqdH/4fVRhIM147HbruGPKqt2RXPt/INEoBiKKtxWJ wO8lc1qD4HDsSi14IyZfX8I2cQplL6E81XB+EFLYuUpZ0mLvX59YJ+KBfzVODiqSR63kGEqp6B7Sk OFzNKbRhMOo9NnfnCy/KGldcwkZ8aezAYxKlpEkOyqSOaJkDvZ33lroDgmuW+Q8pZiPfz7B8VlcnS 2ISC7Ux7SsQxmzYylNP9utkaIFsPOhMxsYU/AkUIoi10F7Me0ZMT86sDK3FNoesv0qwp+qcLCsne+ PJ2KWVzxcZ67CsqkgZRr1g==; Original-Received: from [87.69.77.57] (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 1qSZac-0006vN-1H; Sun, 06 Aug 2023 04:58:18 -0400 In-Reply-To: (message from Paul Eggert on Sun, 6 Aug 2023 01:48:40 -0700) 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:308333 Archived-At: > Date: Sun, 6 Aug 2023 01:48:40 -0700 > Cc: bruno@clisp.org, angelo.g0@libero.it, emacs-devel@gnu.org > From: Paul Eggert > > 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 Fine by me, if this keeps the Android port happy.