Commit 85847c49 authored by Robert Edmonds's avatar Robert Edmonds

protobuf-c: remove PROTOBUF_C_PLEASE_INCLUDE_CTYPE, ProtobufC_CType

i'm not quite sure what this thing is used for or how useful it could
possibly be. it's not used anywhere in protobuf-c or protobuf-c-rpc, and
it wasn't in protobuf-c 0.14 or earlier. just delete it; if anything
actually needs this kind of logic, it's easy enough to replicate it.
parent f6cee05c
...@@ -494,34 +494,6 @@ do { \ ...@@ -494,34 +494,6 @@ do { \
} \ } \
} while (0) } while (0)
#ifdef PROTOBUF_C_PLEASE_INCLUDE_CTYPE
// This type is meant to reduce duplicated logic between
// various iterators. It tells what type to expect at
// the "offset" within the message (or, for repeated fields,
// the contents of the buffer.)
//
// Because the names are confusing, and because this mechanism tends to be
// seldom used, you have to specifically request
// this API via #define PROTOBUF_C_PLEASE_INCLUDE_CTYPE.
typedef enum {
PROTOBUF_C_CTYPE_INT32,
PROTOBUF_C_CTYPE_UINT32,
PROTOBUF_C_CTYPE_INT64,
PROTOBUF_C_CTYPE_UINT64,
PROTOBUF_C_CTYPE_FLOAT,
PROTOBUF_C_CTYPE_DOUBLE,
PROTOBUF_C_CTYPE_BOOL,
PROTOBUF_C_CTYPE_ENUM,
PROTOBUF_C_CTYPE_STRING,
PROTOBUF_C_CTYPE_BYTES,
PROTOBUF_C_CTYPE_MESSAGE,
} ProtobufC_CType;
extern ProtobufC_CType protobuf_c_type_to_ctype(ProtobufCType type);
#define protobuf_c_type_to_ctype(type) \
((ProtobufC_CType)(protobuf_c_type_to_ctype_array[(type)]))
#endif
/* ====== private ====== */ /* ====== private ====== */
#include "protobuf-c-private.h" #include "protobuf-c-private.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment