mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-28 14:48:18 +08:00
protobuf-c: rename protobuf_c_message_init_generic() and update the TODO comment
this function is now static, so it shouldn't have the "protobuf_c_" prefix in its name.
This commit is contained in:
parent
4e3ace9757
commit
3429d8b197
@ -2192,13 +2192,13 @@ parse_member(ScannedMember *scanned_member,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* TODO: expose/use this function if desc->message_init == NULL (which occurs
|
* This function is used if desc->message_init == NULL (which occurs for old
|
||||||
* for old code, and may be useful for certain programmatic techniques for
|
* code, and which would be useful to support allocating descriptors
|
||||||
* generating descriptors).
|
* dynamically).
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
protobuf_c_message_init_generic(const ProtobufCMessageDescriptor *desc,
|
message_init_generic(const ProtobufCMessageDescriptor *desc,
|
||||||
ProtobufCMessage *message)
|
ProtobufCMessage *message)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
@ -2325,7 +2325,7 @@ protobuf_c_message_unpack(const ProtobufCMessageDescriptor *desc,
|
|||||||
if (desc->message_init != NULL)
|
if (desc->message_init != NULL)
|
||||||
protobuf_c_message_init(desc, rv);
|
protobuf_c_message_init(desc, rv);
|
||||||
else
|
else
|
||||||
protobuf_c_message_init_generic(desc, rv);
|
message_init_generic(desc, rv);
|
||||||
|
|
||||||
while (rem > 0) {
|
while (rem > 0) {
|
||||||
uint32_t tag;
|
uint32_t tag;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user