Re: [WIP PATCH] Add 'git fast-export', the sister of 'git fast-import'
- From
Andreas Ericsson <ae@op5.se>
- Date
- Nov 21, 2007, 15:09 UTC
- Message-ID
- <47444A1B.4000907@op5.se>
- In-Reply-To
- <Pine.LNX.4.64.0711211209080.27959@racer.site>
Johannes Schindelin wrote:
> > P.S.: I'll try to read up on ptrint_t, as suggested by Shawn.
I can't find a reference to ptrint_t anywhere on either my system, and the 10 first hits on Google finds it on typedef lines, most commonly like this:
typedef unsigned long ptrint_t;
I think ptrdiff_t is more portable. Here's the relevant entry about ptrdiff_t from /usr/include/obstack.h on my system:
---%<---%<---%<--- /* We need the type of a pointer subtraction. If __PTRDIFF_TYPE__ is defined, as with GNU C, use that; that way we don't pollute the namespace with <stddef.h>'s symbols. Otherwise, include <stddef.h> and use ptrdiff_t. */
#ifdef __PTRDIFF_TYPE__ # define PTR_INT_TYPE __PTRDIFF_TYPE__ #else # include <stddef.h> # define PTR_INT_TYPE ptrdiff_t #endif ---%<---%<---%<---
MySQL seems to have botched that one though. It has this instead:
typedef long my_ptrdiff_t;
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231