Lines Matching refs:tmp
184 uint8_t tmp; in plain_text_read_int() local
195 if (buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), in plain_text_read_int()
200 if (tmp == '-' && accept_sign && i == 0) { in plain_text_read_int()
202 } else if (isdigit(tmp) != 0) { in plain_text_read_int()
203 *value = *value * 10 + (tmp - '0'); in plain_text_read_int()
222 int64_t tmp = 0; in get_s32() local
225 len = plain_text_read_int(in, &tmp, true); in get_s32()
227 *value = (int32_t)tmp; in get_s32()
275 uint8_t tmp, buf[24]; in get_float() local
284 if (buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), in get_float()
289 if ((tmp == '-' && i == 0) || (tmp == '.' && !has_dot) || in get_float()
290 isdigit(tmp) != 0) { in get_float()
297 buf[i++] = tmp; in get_float()
300 if (tmp == '.') { in get_float()
323 uint8_t tmp; in get_bool() local
331 ret = buf_read_u8(&tmp, CPKT_BUF_READ(in->in_cpkt), &in->offset); in get_bool()
336 if (tmp != '1' && tmp != '0') { in get_bool()
340 *value = (tmp == '1') ? true : false; in get_bool()
347 int64_t tmp; in get_objlnk() local
350 len = plain_text_read_int(in, &tmp, false); in get_objlnk()
356 value->obj_id = (uint16_t)tmp; in get_objlnk()
362 len = plain_text_read_int(in, &tmp, false); in get_objlnk()
368 value->obj_inst = (uint16_t)tmp; in get_objlnk()