Skip to content

C89 issue to respect :-) #265

@m4tosm4

Description

@m4tosm4

I'm still using Visual Studio 2010 which doesn't like C99 syntax.

GnuCOBOL clones should respect the... law! :-)

Example from your latest code...

...on...

https://github.com/OCamlPro/gnucobol (mlio.c)

cob_field_attr	attr;
cob_field   	edited_field = { .size = len, .data = p, .attr = &attr };

...should be converted to...

cob_field_attr  attr;

/* PATCH BEGIN: Convert C99 to C89 (cob_field) */

/*
typedef struct __cob_field {
    size_t                  size;       // Field size
    unsigned char           *data;      // Pointer to field data
    const cob_field_attr    *attr;      // Pointer to attribute
} cob_field;
*/

//cob_field       edited_field = { .size = len, .data = p, .attr = &attr };
cob_field edited_field = { len, p, &attr };

/* PATCH END */

Just saying! ;-)

:-)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions