From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 1FAB71F66F for ; Fri, 21 Aug 2020 21:16:53 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k9EP2-00034z-4W; Fri, 21 Aug 2020 21:16:48 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9EP1-00034m-2b for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 21:16:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OKojHP0OKtZGz7fp9OWI0+tuGicHaEDi0wO6f4JwZyk=; b=co+egzOwejSz8PRxKK6lO7xPqQ tFr2BC2Tpp22JnQJiprWCvMDfqQUtyqkKCYPkwq3w3sYOPKmL3E4L3UIkWcAVtEDo0HPr320nU7tQ +urXpHskof78Qz5R3EYKbJk9LSTkJPSSVLBmeaSEc6+Nb304MQkKNkhjOUEvnMbta37w=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date:Sender: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=OKojHP0OKtZGz7fp9OWI0+tuGicHaEDi0wO6f4JwZyk=; b=m ngltrPO6qTkoREdwcz15oBmcdv5G0QwnRGNT3xW5Y9ZQUwmKtjY2Vsibr/MMhYZAv5SVrzmJ+RNgw X/jA6kaJthbkCx38DauvgHBGc2/JSn9wfUPsFdVdXGpMeWHHbJrAM1Jkq11cpZ92ppa2GaO8kfV/d ayfFxeingfd6m/7c=; Received: from uvt.stare.cz ([185.63.96.79] helo=mx.stare.cz) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k9EOz-00EqTG-Ee for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 21:16:46 +0000 Received: from localhost (stare.cz [local]) by stare.cz (OpenSMTPD) with ESMTPA id 13f64445; Fri, 21 Aug 2020 23:16:34 +0200 (CEST) Date: Fri, 21 Aug 2020 23:16:33 +0200 From: Jan Stary To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Message-ID: <20200821211633.GA40271@www.stare.cz> MIME-Version: 1.0 Content-Disposition: inline X-Headers-End: 1k9EOz-00EqTG-Ee Subject: stdint X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-devel@lists.sourceforge.net Cc: sox-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-devel-bounces@lists.sourceforge.net The latest commit says All modern systems, even msvc, have the C99 stdint.h integer types. Replace the guesswork with typedefs using these types. This fixes numerous warnings on some system where both long and long long are 64-bit. and replaces e.g. the following attrocity #if SCHAR_MAX==127 && SCHAR_MIN==(-128) typedef signed char sox_int8_t; #elif CHAR_MAX==127 && CHAR_MIN==(-128) typedef char sox_int8_t; #else #error Unable to determine an appropriate definition for sox_int8_t. #endif with typedef int8_t sox_int8_t; But why typedef standard int types such as int8_t at all? Why does the code use sox_int8_t (being a typedef of int8_t) instead of simply using int8_t, as defined in stdint.h? Jan _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel