Home
last modified time | relevance | path

Searched refs:defaultval (Results 1 – 7 of 7) sorted by relevance

/external/protobuf/php/ext/google/protobuf/
Dupb.c468 assert(upb_enumdef_iton(e, e->defaultval)); in upb_enumdef_default()
469 return e->defaultval; in upb_enumdef_default()
478 e->defaultval = val; in upb_enumdef_setdefault()
524 if (f->type_is_set_ && f->default_is_string && f->defaultval.bytes) in upb_fielddef_uninit_default()
525 freestr(f->defaultval.bytes); in upb_fielddef_uninit_default()
555 if (f->default_is_string && f->defaultval.bytes) { in enumdefaultstr()
557 str_t *s = f->defaultval.bytes; in enumdefaultstr()
562 const char *name = upb_enumdef_iton(e, f->defaultval.sint); in enumdefaultstr()
584 *val = f->defaultval.sint; in enumdefaultint32()
587 if (f->defaultval.bytes) { in enumdefaultint32()
[all …]
Dupb.h3053 } defaultval; member
3081 index, defaultval, refs, ref2s) \ argument
3083 UPB_DEF_INIT(name, UPB_DEF_FIELD, refs, ref2s), defaultval, {msgdef}, \
3131 int32_t defaultval; member
3134 #define UPB_ENUMDEF_INIT(name, ntoi, iton, defaultval, refs, ref2s) \ argument
3135 { UPB_DEF_INIT(name, UPB_DEF_ENUM, refs, ref2s), ntoi, iton, defaultval }
/external/protobuf/ruby/ext/google/protobuf_c/
Dupb.c546 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()
[all …]
Dupb.h3733 } defaultval;
3763 index, defaultval, refs, ref2s) \
3766 defaultval, {msgdef}, {subdef}, NULL, false, false, \
3812 int32_t defaultval;
3817 #define UPB_ENUMDEF_INIT(name, ntoi, iton, defaultval, refs, ref2s) \
3819 iton, defaultval }
/external/python/cpython3/Python/
Dbltinmodule.c1620 PyObject *emptytuple, *defaultval = NULL; in min_max() local
1636 kwlist, &keyfunc, &defaultval); in min_max()
1641 if (positional && defaultval != NULL) { in min_max()
1694 if (defaultval != NULL) { in min_max()
1695 Py_INCREF(defaultval); in min_max()
1696 maxitem = defaultval; in min_max()
/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h2267 template<typename T> T GetField(voffset_t field, T defaultval) const {
2269 return field_offset ? ReadScalar<T>(data_ + field_offset) : defaultval;
/external/python/cpython2/Misc/
Dcheatsheet410 d.get(k,defaultval) the item of d with key k (4)
422 d.setdefault(k,defaultval) the item of d with key k (5)