From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id 71F773953075 for ; Thu, 11 Mar 2021 22:33:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 71F773953075 Received: by mail-wm1-x32b.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so14058716wmj.1 for ; Thu, 11 Mar 2021 14:33:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EvIkShvPl3pktrVcFl7iohI1FVK3iSO1QBc2v9HY+Fg=; b=A6yKb2emQ9Og0vOx36x4GXfYA2QzMtDg8vvPqpe29EAR8lktDy5KvrB4wJmEZMgNtX 8yG/S22pe8U4PMZSH96Q9yQrFBQTDJan6bQrS9K7luu0NDGfo4Id3iPMcjsUbstJHC96 ey9ZuidhjqN8qwYGi2Gdo2sl+deCqSTnT+zFJwHJ0MlWXqPYuVAPbiuc0gZyLD/rCp/U Y6oJJkJsszKi4oFF3144HxVUbEtGwx8Qjeb57z1Z8Y8LB66gIPU6hexfhNh85Jofucjp xEZsLp6sqZAntLoBrhv0oHi1o691OAvp7QXRLGrfnDC4acMn5xiAa90Dx0kojUrgxSRg QVvw== X-Gm-Message-State: AOAM5306KIuAV3224rfw0mhSBk4WTo/lWgCKOfDcseFr/JD6d+5Rj6f5 HetuxdCTNwkPi1ULi80KC4s= X-Google-Smtp-Source: ABdhPJz/2zegEbRFOqpd7/4CGCkvMseM+Ll1lZ3ZBMybILocu3RPFWgWcnBHDqmjlCZPBL+dRKeiKg== X-Received: by 2002:a05:600c:4a06:: with SMTP id c6mr10169709wmp.35.1615502032489; Thu, 11 Mar 2021 14:33:52 -0800 (PST) Received: from localhost.localdomain ([170.253.36.171]) by smtp.googlemail.com with ESMTPSA id v2sm22365771wmj.1.2021.03.11.14.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 14:33:52 -0800 (PST) From: Alejandro Colomar To: mtk.manpages@gmail.com Cc: Alejandro Colomar , linux-man@vger.kernel.org, libc-alpha@sourceware.org Subject: [PATCH 13/17] wcstoimax.3: SYNOPSIS: Use 'restrict' in prototypes Date: Thu, 11 Mar 2021 23:33:26 +0100 Message-Id: <20210311223330.722437-14-alx.manpages@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210311223330.722437-1-alx.manpages@gmail.com> References: <20210311223330.722437-1-alx.manpages@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 22:33:54 -0000 Both POSIX and glibc use 'restrict' in wcstoimax(), wcstoumax(). Let's use it here too. .../glibc$ grep_glibc_prototype wcstoimax stdlib/inttypes.h:305: extern intmax_t wcstoimax (const __gwchar_t *__restrict __nptr, __gwchar_t **__restrict __endptr, int __base) __THROW; .../glibc$ grep_glibc_prototype wcstoumax stdlib/inttypes.h:310: extern uintmax_t wcstoumax (const __gwchar_t *__restrict __nptr, __gwchar_t ** __restrict __endptr, int __base) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar --- man3/wcstoimax.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/man3/wcstoimax.3 b/man3/wcstoimax.3 index fad1f5e36..001897b2b 100644 --- a/man3/wcstoimax.3 +++ b/man3/wcstoimax.3 @@ -29,10 +29,10 @@ wcstoimax, wcstoumax \- convert wide-character string to integer .B #include .B #include .PP -.BI "intmax_t wcstoimax(const wchar_t *" nptr ", wchar_t **" endptr \ -", int " base ); -.BI "uintmax_t wcstoumax(const wchar_t *" nptr ", wchar_t **" endptr \ -", int " base ); +.BI "intmax_t wcstoimax(const wchar_t *restrict " nptr , +.BI " wchar_t **restrict " endptr ", int " base ); +.BI "uintmax_t wcstoumax(const wchar_t *restrict " nptr , +.BI " wchar_t **restrict " endptr ", int " base ); .fi .SH DESCRIPTION These functions are just like -- 2.30.1