diff options
author | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-09 19:25:19 +0200 |
---|---|---|
committer | Petteri Aimonen <jpa@git.mail.kapsi.fi> | 2013-12-29 18:35:57 +0200 |
commit | ef07635e3549b6a3ab6a6bafc12b7960ac6b1ab9 (patch) | |
tree | d11f427735d07d14c3574d9e7d3b6bedf94b2f63 | |
parent | 25516b059137be64735276bbe3a96029f4c926be (diff) |
Rename encode_static_field -> encode_basic_field.
-rw-r--r-- | pb_encode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pb_encode.c b/pb_encode.c index 8f01b10b..476b1119 100644 --- a/pb_encode.c +++ b/pb_encode.c @@ -195,9 +195,9 @@ static bool checkreturn encode_array(pb_ostream_t *stream, const pb_field_t *fie return true; } -/* Encode a field with static allocation, i.e. one whose data is stored - * in the structure itself. */ -static bool checkreturn encode_static_field(pb_ostream_t *stream, +/* Encode a field with static or pointer allocation, i.e. one whose data + * is available to the encoder directly. */ +static bool checkreturn encode_basic_field(pb_ostream_t *stream, const pb_field_t *field, const void *pData) { pb_encoder_t func; @@ -285,7 +285,7 @@ static bool checkreturn encode_field(pb_ostream_t *stream, { case PB_ATYPE_STATIC: case PB_ATYPE_POINTER: - return encode_static_field(stream, field, pData); + return encode_basic_field(stream, field, pData); case PB_ATYPE_CALLBACK: return encode_callback_field(stream, field, pData); |