mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2025-01-14 17:30:07 +08:00
Misc cleanups
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@212 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
parent
3a5f994e20
commit
6f7323d018
@ -15,7 +15,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
/* TODO: certain implementations use 32-bit math even for
|
||||
/* TODO: certain implementations use 32-bit math even on 64-bit platforms
|
||||
(uint64_size, uint64_pack, parse_uint64) */
|
||||
|
||||
/* TODO: get_packed_size and pack seem to use type-prefixed names,
|
||||
@ -1838,7 +1838,6 @@ protobuf_c_message_free_unpacked (ProtobufCMessage *message,
|
||||
}
|
||||
|
||||
/* === services === */
|
||||
typedef void (*DestroyHandler)(void *service);
|
||||
typedef void (*GenericHandler)(void *service,
|
||||
const ProtobufCMessage *input,
|
||||
ProtobufCClosure closure,
|
||||
|
@ -300,9 +300,9 @@ ProtobufCMessage *
|
||||
void protobuf_c_message_free_unpacked (ProtobufCMessage *message,
|
||||
ProtobufCAllocator *allocator);
|
||||
|
||||
/* WARNING: 'to_init' must be a block of memory
|
||||
/* WARNING: 'message' must be a block of memory
|
||||
of size descriptor->sizeof_message. */
|
||||
#define protobuf_c_message_init(descriptor, message) (descriptor)->message_init(message)
|
||||
#define protobuf_c_message_init(descriptor, message) ((descriptor)->message_init((ProtobufCMessage*) (message)))
|
||||
|
||||
/* --- services --- */
|
||||
typedef struct _ProtobufCMethodDescriptor ProtobufCMethodDescriptor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user