[ 
https://issues.apache.org/jira/browse/AVRO-2036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Don Snedigar updated AVRO-2036:
-------------------------------
    Summary: Avro fails to compile for C  (was: Avro files to compile for C)

> Avro fails 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)

Reply via email to