Re: [PATCH weston v3 4/5] Add safe_strtoint() helper

2016-08-01 Thread Eric Engestrom
On Mon, Aug 01, 2016 at 12:48:21PM +1000, Peter Hutterer wrote: > On Fri, Jul 29, 2016 at 09:43:59AM -0700, Bryce Harrington wrote: > > Adds a safe strtol helper function, modeled loosely after Wayland > > scanner's strtouint. This encapsulates the various quirks of strtol > > behavior, and stream

Re: [PATCH weston v3 4/5] Add safe_strtoint() helper

2016-07-31 Thread Peter Hutterer
On Fri, Jul 29, 2016 at 09:43:59AM -0700, Bryce Harrington wrote: > Adds a safe strtol helper function, modeled loosely after Wayland > scanner's strtouint. This encapsulates the various quirks of strtol > behavior, and streamlines the interface to just handling base-10 numbers > with a simple tru

[PATCH weston v3 4/5] Add safe_strtoint() helper

2016-07-29 Thread Bryce Harrington
Adds a safe strtol helper function, modeled loosely after Wayland scanner's strtouint. This encapsulates the various quirks of strtol behavior, and streamlines the interface to just handling base-10 numbers with a simple true/false error indicator and a uint32_t return by reference. Signed-off-by