• Home
  • Raw
  • Download

Lines Matching refs:defaultval

546   assert(upb_enumdef_iton(e, e->defaultval));  in upb_enumdef_default()
547 return e->defaultval; in upb_enumdef_default()
556 e->defaultval = val; in upb_enumdef_setdefault()
602 if (f->type_is_set_ && f->default_is_string && f->defaultval.bytes) in upb_fielddef_uninit_default()
603 freestr(f->defaultval.bytes); in upb_fielddef_uninit_default()
637 if (f->default_is_string && f->defaultval.bytes) { in enumdefaultstr()
639 str_t *s = f->defaultval.bytes; in enumdefaultstr()
644 const char *name = upb_enumdef_iton(e, f->defaultval.sint); in enumdefaultstr()
666 *val = f->defaultval.sint; in enumdefaultint32()
669 if (f->defaultval.bytes) { in enumdefaultint32()
671 str_t *s = f->defaultval.bytes; in enumdefaultint32()
730 if (f->default_is_string && f->defaultval.bytes) { in upb_fielddef_dup()
731 str_t *s = f->defaultval.bytes; in upb_fielddef_dup()
735 newf->defaultval = f->defaultval; in upb_fielddef_dup()
901 return f->defaultval.sint; in upb_fielddef_defaultint64()
912 return f->defaultval.sint; in upb_fielddef_defaultint32()
918 return f->defaultval.uint; in upb_fielddef_defaultuint64()
923 return f->defaultval.uint; in upb_fielddef_defaultuint32()
928 return f->defaultval.uint; in upb_fielddef_defaultbool()
933 return f->defaultval.flt; in upb_fielddef_defaultfloat()
938 return f->defaultval.dbl; in upb_fielddef_defaultdouble()
956 str_t *str = f->defaultval.bytes; in upb_fielddef_defaultstr()
967 case UPB_TYPE_DOUBLE: f->defaultval.dbl = 0; break; in upb_fielddef_init_default()
968 case UPB_TYPE_FLOAT: f->defaultval.flt = 0; break; in upb_fielddef_init_default()
970 case UPB_TYPE_INT64: f->defaultval.sint = 0; break; in upb_fielddef_init_default()
973 case UPB_TYPE_BOOL: f->defaultval.uint = 0; break; in upb_fielddef_init_default()
976 f->defaultval.bytes = newstr("", 0); in upb_fielddef_init_default()
983 f->defaultval.bytes = NULL; in upb_fielddef_init_default()
1179 str_t *s = f->defaultval.bytes; in checksetdefault()
1189 f->defaultval.sint = value; in upb_fielddef_setdefaultint64()
1196 f->defaultval.sint = value; in upb_fielddef_setdefaultint32()
1202 f->defaultval.uint = value; in upb_fielddef_setdefaultuint64()
1207 f->defaultval.uint = value; in upb_fielddef_setdefaultuint32()
1212 f->defaultval.uint = value; in upb_fielddef_setdefaultbool()
1217 f->defaultval.flt = value; in upb_fielddef_setdefaultfloat()
1222 f->defaultval.dbl = value; in upb_fielddef_setdefaultdouble()
1233 str_t *s = f->defaultval.bytes; in upb_fielddef_setdefaultstr()
1241 f->defaultval.bytes = str2; in upb_fielddef_setdefaultstr()