You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Don Snedigar (JIRA)" <ji...@apache.org> on 2017/05/17 17:20:04 UTC
[jira] [Created] (AVRO-2036) Avro files to compile for C
Don Snedigar created AVRO-2036:
----------------------------------
Summary: Avro files to compile for C
Key: AVRO-2036
URL: https://issues.apache.org/jira/browse/AVRO-2036
Project: Avro
Issue Type: Bug
Components: c
Affects Versions: 1.8.2
Environment: Linux
Reporter: Don Snedigar
AVRO for C fails to compile.
Could be duplicate of AVRO-778
First instance of failure (of many) occures in avro_schema_to_header :
static int avro_schema_to_header(avro_schema_t schema, specific_ctx * ctx)
{
size_t i;
FILE *fp = ctx->header;
indent(ctx, fp);
ctx->depth++;
if (is_avro_primitive(schema) && !ctx->name) {
<function continues....>
ctx has no member name.
The definition of the struct above is :
enum specific_state {
START_STATE,
};
typedef enum specific_state specific_state;
struct specific_ctx {
FILE *header;
FILE *source;
int depth;
specific_state state;
};
typedef struct specific_ctx specific_ctx;
So every instance of ctx->name fails.....
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)