Rename encode_static_field -> encode_basic_field.
This commit is contained in:
@@ -193,9 +193,9 @@ static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *fie
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Encode a field with static allocation, i.e. one whose data is stored
|
/* Encode a field with static or pointer allocation, i.e. one whose data
|
||||||
* in the structure itself. */
|
* is available to the encoder directly. */
|
||||||
static bool checkreturn encode_static_field(pb_ostream_t *stream,
|
static bool checkreturn encode_basic_field(pb_ostream_t *stream,
|
||||||
const pb_field_t *field, const void *pData)
|
const pb_field_t *field, const void *pData)
|
||||||
{
|
{
|
||||||
pb_encoder_t func;
|
pb_encoder_t func;
|
||||||
@@ -283,7 +283,7 @@ static bool checkreturn encode_field(pb_ostream_t *stream,
|
|||||||
{
|
{
|
||||||
case PB_ATYPE_STATIC:
|
case PB_ATYPE_STATIC:
|
||||||
case PB_ATYPE_POINTER:
|
case PB_ATYPE_POINTER:
|
||||||
return encode_static_field(stream, field, pData);
|
return encode_basic_field(stream, field, pData);
|
||||||
|
|
||||||
case PB_ATYPE_CALLBACK:
|
case PB_ATYPE_CALLBACK:
|
||||||
return encode_callback_field(stream, field, pData);
|
return encode_callback_field(stream, field, pData);
|
||||||
|
|||||||
Reference in New Issue
Block a user