Skip to content

Commit

Permalink
Regenerate stale files
Browse files Browse the repository at this point in the history
  • Loading branch information
y-yagi committed Jan 24, 2025
1 parent 1fbe635 commit 964ec01
Show file tree
Hide file tree
Showing 3 changed files with 706 additions and 6 deletions.
6 changes: 3 additions & 3 deletions php/ext/google/protobuf/php-upb.c
Original file line number Diff line number Diff line change
Expand Up @@ -15394,7 +15394,7 @@ bool upb_FileDef_Resolves(const upb_FileDef* f, const char* path) {
return false;
}

static char* strviewdup(upb_DefBuilder* ctx, upb_StringView view) {
static char* _strviewdup(upb_DefBuilder* ctx, upb_StringView view) {
char* ret = upb_strdup2(view.data, view.size, _upb_DefBuilder_Arena(ctx));
if (!ret) _upb_DefBuilder_OomErr(ctx);
return ret;
Expand Down Expand Up @@ -15523,7 +15523,7 @@ void _upb_FileDef_Create(upb_DefBuilder* ctx,
}

upb_StringView name = UPB_DESC(FileDescriptorProto_name)(file_proto);
file->name = strviewdup(ctx, name);
file->name = _strviewdup(ctx, name);
if (strlen(file->name) != name.size) {
_upb_DefBuilder_Errf(ctx, "File name contained embedded NULL");
}
Expand All @@ -15532,7 +15532,7 @@ void _upb_FileDef_Create(upb_DefBuilder* ctx,

if (package.size) {
_upb_DefBuilder_CheckIdentFull(ctx, package);
file->package = strviewdup(ctx, package);
file->package = _strviewdup(ctx, package);
} else {
file->package = NULL;
}
Expand Down
Loading

0 comments on commit 964ec01

Please sign in to comment.