Re: Remove pg_strtouint64(), use strtoull() directly - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Remove pg_strtouint64(), use strtoull() directly
Date
Msg-id 557476.1639521011@sss.pgh.pa.us
Whole thread Raw
In response to Re: Remove pg_strtouint64(), use strtoull() directly  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List pgsql-hackers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> OK, makes sense.  Here is an alternative patch.  It introduces two 
> light-weight macros strtoi64() and strtou64() (compare e.g., strtoimax() 
> in POSIX) in c.h and removes pg_strtouint64().  This moves the 
> portability layer from numutils.c to c.h, so it's closer to the rest of 
> the int64 portability code.  And that way it is available to not just 
> server code.  And it resolves the namespace collision with the 
> pg_strtointNN() functions in numutils.c.

Works for me.  I'm not in a position to verify that this'll work
on Windows, but the buildfarm will tell us that quickly enough.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Joshua Brindle
Date:
Subject: Re: Granting SET and ALTER SYSTE privileges for GUCs
Next
From: Dag Lem
Date:
Subject: Re: daitch_mokotoff module