mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-04 22:02:40 +00:00
82b9f2baec
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. Test cases are loosely derived from an earlier patch by Imran Zaman. Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> |
||
---|---|---|
.. | ||
cairo-util.c | ||
cairo-util.h | ||
config-parser.c | ||
config-parser.h | ||
file-util.c | ||
file-util.h | ||
frame.c | ||
helpers.h | ||
image-loader.c | ||
image-loader.h | ||
matrix.c | ||
matrix.h | ||
option-parser.c | ||
os-compatibility.c | ||
os-compatibility.h | ||
platform.h | ||
string-helpers.h | ||
timespec-util.h | ||
xalloc.c | ||
xalloc.h | ||
zalloc.h |