zephyr: replace zephyr integer types with C99 types

git grep -l 'u\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g"
	git grep -l 's\(8\|16\|32\|64\)_t' | \
		xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g"

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-05-27 11:26:57 -05:00 committed by Kumar Gala
commit a1b77fd589
2364 changed files with 32505 additions and 32505 deletions

View file

@ -388,7 +388,7 @@ static int arr_next(struct json_obj *json, struct token *value)
return element_token(value->type);
}
static int decode_num(const struct token *token, s32_t *num)
static int decode_num(const struct token *token, int32_t *num)
{
/* FIXME: strtod() is not available in newlib/minimal libc,
* so using strtol() here.
@ -457,7 +457,7 @@ static int decode_value(struct json_obj *obj,
return 0;
}
case JSON_TOK_NUMBER: {
s32_t *num = field;
int32_t *num = field;
return decode_num(value, num);
}
@ -478,7 +478,7 @@ static ptrdiff_t get_elem_size(const struct json_obj_descr *descr)
{
switch (descr->type) {
case JSON_TOK_NUMBER:
return sizeof(s32_t);
return sizeof(int32_t);
case JSON_TOK_STRING:
return sizeof(char *);
case JSON_TOK_TRUE:
@ -540,7 +540,7 @@ static int obj_parse(struct json_obj *obj, const struct json_obj_descr *descr,
size_t descr_len, void *val)
{
struct json_obj_key_value kv;
s32_t decoded_fields = 0;
int32_t decoded_fields = 0;
size_t i;
int ret;
@ -773,10 +773,10 @@ static int str_encode(const char **str, json_append_bytes_t append_bytes,
return ret;
}
static int num_encode(const s32_t *num, json_append_bytes_t append_bytes,
static int num_encode(const int32_t *num, json_append_bytes_t append_bytes,
void *data)
{
char buf[3 * sizeof(s32_t)];
char buf[3 * sizeof(int32_t)];
int ret;
ret = snprintk(buf, sizeof(buf), "%d", *num);