Misc cleanups

git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@212 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
lahiker42 2010-04-20 01:51:37 +00:00
parent 3a5f994e20
commit 6f7323d018
2 changed files with 3 additions and 4 deletions

View File

@ -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,

View File

@ -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;