11#include <libwapcaplet/libwapcaplet.h>
17#define max(a,b) ((a)>(b)?(a):(b))
21#define min(a,b) ((a)<(b)?(a):(b))
26#define SLEN(s) (sizeof((s)) - 1)
30#define UNUSED(x) ((void)(x))
34#define N_ELEMENTS(x) (sizeof((x)) / sizeof((x)[0]))
40 bool int_only,
size_t *consumed);
42static inline bool isDigit(uint8_t c)
44 return '0' <= c && c <=
'9';
47static inline bool isHex(uint8_t c)
49 return isDigit(c) || (
'a' <= c && c <=
'f') || (
'A' <= c && c <=
'F');
52static inline uint32_t charToHex(uint8_t c)
65static inline css_error css_error_from_lwc_error(lwc_error err)
css_error
Definition errors.h:18
@ CSS_INVALID
Definition errors.h:23
@ CSS_NOMEM
Definition errors.h:21
@ CSS_BADPARM
Definition errors.h:22
@ CSS_OK
Definition errors.h:19
int32_t css_fixed
Definition fpmath.h:23
css_fixed css__number_from_string(const uint8_t *data, size_t len, bool int_only, size_t *consumed)
Definition utils.c:24
css_fixed css__number_from_lwc_string(lwc_string *string, bool int_only, size_t *consumed)
Definition utils.c:10