diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-02 20:19:06 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-02 20:19:06 -0700 |
commit | b0ef7f0b6778addc91ce04ca1d6e835d44387c83 (patch) | |
tree | b67f490bd178d53c5fa2bc550fef77b0062efafb /upb.h | |
parent | b8481e0e55aebad1d9ffa0f3845609f929bca02f (diff) |
More fixes, completions, still doesn't quite work.
Diffstat (limited to 'upb.h')
-rw-r--r-- | upb.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -34,6 +34,8 @@ extern "C" { /* The maximum number of fields that any one .proto type can have. */ #define UPB_MAX_FIELDS (1<<16) +INLINE uint32_t max(uint32_t a, uint32_t b) { return a > b ? a : b; } + /* Represents a string or bytes. */ struct upb_string { /* We expect the data to be 8-bit clean (uint8_t), but char* is such an |