Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35B9FF3C6 for ; Tue, 26 Mar 2013 09:47:34 +0000 (UTC) Received: (qmail 27489 invoked by uid 500); 26 Mar 2013 09:47:34 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 27350 invoked by uid 500); 26 Mar 2013 09:47:33 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 27341 invoked by uid 99); 26 Mar 2013 09:47:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 09:47:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 209.85.212.170 is neither permitted nor denied by domain of codematters@ntlworld.com) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Mar 2013 09:47:26 +0000 Received: by mail-wi0-f170.google.com with SMTP id hm11so495285wib.3 for ; Tue, 26 Mar 2013 02:47:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:x-proxyuser-ip:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version:content-type :x-gm-message-state; bh=qYAWNq61yCmgArv/piH+jJrLuolDBbUBRGixfIJNCQU=; b=pNObqzOm8u8aklMucydHdMP0JiQRRA9zanazp02+IZusnixLfKJFiwEoqw8ncGubMv 1bAlE6xnRy5d7R4iLU/2hKwAIx7eTXWUdY5E5HPyp99AOkXL6rvAHqNgMWxGQfX7y+jt BNRQYxwf+xHaC/1yhpjS0Gf6rVWaaoYlvB9wIx8zFF80QxBZnRrqqQ+DzyfXHvz7vJAI ind0mFvoZ1yFjyxMj2X5fuMHesx4nG8TWDqM2eE679T4TdyoGZ4g4lHJwRvUEQMkDfPQ 0dPF+NGirthrtWioZ3UjFlPwdEkej7H/4u5awGWH14AlunohFcMiGuA1CxhDj0y60lPe aGFA== X-Received: by 10.180.83.10 with SMTP id m10mr1939774wiy.5.1364291226607; Tue, 26 Mar 2013 02:47:06 -0700 (PDT) Received: from (know-mailgateway-1.server.virginmedia.net. [62.254.26.97]) by mx.google.com with ESMTPS id s2sm2203495wib.4.2013.03.26.02.47.04 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Tue, 26 Mar 2013 02:47:05 -0700 (PDT) Sender: MARTIN PHILIP Received: from source ([86.17.224.110]) by smtp.virginmedia.com with SMTP; Tue, 26 Mar 2013 09:47:05 +0000 (GMT) X-ProxyUser-IP: 86.17.224.110 Received: by cpc2-farn6-0-0-cust109.6-2.cable.virginmedia.com (Postfix, from userid 1000) id 901FE810A5; Tue, 26 Mar 2013 09:46:52 +0000 (GMT) From: Philip Martin To: Joe Swatosh Cc: Bert Huijben , SVN Dev Subject: Re: [PATCH] #include limts.h for ULONG_MAX References: <1462531598536607980@unknownmsgid> <87vc8f8zkd.fsf@ntlworld.com> Date: Tue, 26 Mar 2013 09:46:52 +0000 In-Reply-To: (Joe Swatosh's message of "Mon, 25 Mar 2013 17:24:39 -0700") Message-ID: <87a9pqebn7.fsf@ntlworld.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQn8uK0oTqEN/l5jCjYV7NsYqvUIGrO4lvjGRot3A0e5i4eHw1bTno3r9D28YPDMidgR6ZUr X-Virus-Checked: Checked by ClamAV on apache.org Joe Swatosh writes: > Thanks Philip and Bert, perhaps this along with Philip's changes? > > [[[ > Index: subversion/include/svn_types.h > =================================================================== > --- subversion/include/svn_types.h (revision 1460925) > +++ subversion/include/svn_types.h (working copy) > @@ -1241,7 +1241,7 @@ > * > * @since New in 1.7. > */ > -#define SVN_LINENUM_MAX_VALUE ULONG_MAX > +#define SVN_LINENUM_MAX_VALUE APR_UINT64_MAX > > ]]] That's not right for two reasons. svn_linenum_t is unsigned long and that may not be 64 bits; if it's 32 bits we need a 32 bit value. Also this is a public header file and older APR don't define APR_UINT64_MAX. I don't see any APR constant that gives us the maximum value for an unsigned long so I think ULONG_MAX is the only option here. From your earlier patch it appears you need limits.h for that. What I don't understand is that svn_types.h includes apr.h and apr.h should include include limits.h. Does your apr not have #define APR_HAVE_LIMITS_H 1 /* header files for PATH_MAX, _POSIX_PATH_MAX */ #if APR_HAVE_LIMITS_H #include #else #if APR_HAVE_SYS_SYSLIMITS_H #include #endif #endif -- Certified & Supported Apache Subversion Downloads: http://www.wandisco.com/subversion/download