diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-12-05 18:06:50 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-12-05 18:06:50 -0800 |
commit | 651c92ab33187b34d7878ac57427bbbc062662fa (patch) | |
tree | 1049aebdaf255ddd344237fb972ac8d39fa7d353 /src/upb.h | |
parent | 18291eedc3cb6bf4386698620ad9d02ad367126a (diff) |
Scheme for collecting circular refs.
"make descriptorgen" is now valgrind-clean again.
Diffstat (limited to 'src/upb.h')
-rw-r--r-- | src/upb.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -29,8 +29,11 @@ extern "C" { // The maximum that any submessages can be nested. Matches proto2's limit. #define UPB_MAX_NESTING 64 -// The maximum number of fields that any one .proto type can have. -#define UPB_MAX_FIELDS (1<<16) +// The maximum number of fields that any one .proto type can have. Note that +// this is very different than the max field number. It is hard to imagine a +// scenario where more than 32k fields makes sense. +#define UPB_MAX_FIELDS (1<<15) +typedef int16_t upb_field_count_t; // Nested type names are separated by periods. #define UPB_SYMBOL_SEPARATOR '.' |