Lines Matching refs:defaultval
1669 UPB_ASSERT(upb_enumdef_iton(e, e->defaultval)); in upb_enumdef_default()
1670 return e->defaultval; in upb_enumdef_default()
1679 e->defaultval = val; in upb_enumdef_setdefault()
1725 if (f->type_is_set_ && f->default_is_string && f->defaultval.bytes) in upb_fielddef_uninit_default()
1726 freestr(f->defaultval.bytes); in upb_fielddef_uninit_default()
1766 if (f->default_is_string && f->defaultval.bytes) { in enumdefaultstr()
1768 str_t *s = f->defaultval.bytes; in enumdefaultstr()
1773 const char *name = upb_enumdef_iton(e, f->defaultval.sint); in enumdefaultstr()
1795 *val = f->defaultval.sint; in enumdefaultint32()
1798 if (f->defaultval.bytes) { in enumdefaultint32()
1800 str_t *s = f->defaultval.bytes; in enumdefaultint32()
1994 return f->defaultval.sint; in upb_fielddef_defaultint64()
2005 return f->defaultval.sint; in upb_fielddef_defaultint32()
2011 return f->defaultval.uint; in upb_fielddef_defaultuint64()
2016 return f->defaultval.uint; in upb_fielddef_defaultuint32()
2021 return f->defaultval.uint; in upb_fielddef_defaultbool()
2026 return f->defaultval.flt; in upb_fielddef_defaultfloat()
2031 return f->defaultval.dbl; in upb_fielddef_defaultdouble()
2049 str_t *str = f->defaultval.bytes; in upb_fielddef_defaultstr()
2060 case UPB_TYPE_DOUBLE: f->defaultval.dbl = 0; break; in upb_fielddef_init_default()
2061 case UPB_TYPE_FLOAT: f->defaultval.flt = 0; break; in upb_fielddef_init_default()
2063 case UPB_TYPE_INT64: f->defaultval.sint = 0; break; in upb_fielddef_init_default()
2066 case UPB_TYPE_BOOL: f->defaultval.uint = 0; break; in upb_fielddef_init_default()
2069 f->defaultval.bytes = newstr("", 0); in upb_fielddef_init_default()
2076 f->defaultval.bytes = NULL; in upb_fielddef_init_default()
2272 str_t *s = f->defaultval.bytes; in checksetdefault()
2282 f->defaultval.sint = value; in upb_fielddef_setdefaultint64()
2289 f->defaultval.sint = value; in upb_fielddef_setdefaultint32()
2295 f->defaultval.uint = value; in upb_fielddef_setdefaultuint64()
2300 f->defaultval.uint = value; in upb_fielddef_setdefaultuint32()
2305 f->defaultval.uint = value; in upb_fielddef_setdefaultbool()
2310 f->defaultval.flt = value; in upb_fielddef_setdefaultfloat()
2315 f->defaultval.dbl = value; in upb_fielddef_setdefaultdouble()
2326 str_t *s = f->defaultval.bytes; in upb_fielddef_setdefaultstr()
2334 f->defaultval.bytes = str2; in upb_fielddef_setdefaultstr()