Skip to content

Commit

Permalink
Auto-generate files after cl/700728937
Browse files Browse the repository at this point in the history
  • Loading branch information
protobuf-team-bot committed Nov 27, 2024
1 parent ce9071a commit f699827
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions php/ext/google/protobuf/php-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5038,15 +5038,17 @@ typedef enum {
kUpb_LayoutItemType_Max = kUpb_LayoutItemType_Field,
} upb_LayoutItemType;

#define kUpb_LayoutItem_IndexSentinel ((uint16_t) - 1)
#define kUpb_LayoutItem_IndexSentinel ((uint16_t)-1)

typedef struct {
// Index of the corresponding field. When this is a oneof field, the field's
// offset will be the index of the next field in a linked list.
uint16_t field_index;
uint16_t offset;
upb_FieldRep rep;
upb_LayoutItemType type;
// These two enums are stored in bytes to avoid trailing padding while
// preserving two-byte alignment.
uint8_t /* upb_FieldRep*/ rep;
uint8_t /* upb_LayoutItemType*/ type;
} upb_LayoutItem;

typedef struct {
Expand Down
8 changes: 5 additions & 3 deletions ruby/ext/google/protobuf_c/ruby-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5038,15 +5038,17 @@ typedef enum {
kUpb_LayoutItemType_Max = kUpb_LayoutItemType_Field,
} upb_LayoutItemType;

#define kUpb_LayoutItem_IndexSentinel ((uint16_t) - 1)
#define kUpb_LayoutItem_IndexSentinel ((uint16_t)-1)

typedef struct {
// Index of the corresponding field. When this is a oneof field, the field's
// offset will be the index of the next field in a linked list.
uint16_t field_index;
uint16_t offset;
upb_FieldRep rep;
upb_LayoutItemType type;
// These two enums are stored in bytes to avoid trailing padding while
// preserving two-byte alignment.
uint8_t /* upb_FieldRep*/ rep;
uint8_t /* upb_LayoutItemType*/ type;
} upb_LayoutItem;

typedef struct {
Expand Down

0 comments on commit f699827

Please sign in to comment.