[GRASS-dev] Are such construction/declaration allowed for GRASS ??

Jarosław Jasiewicz jarekj at amu.edu.pl
Fri Mar 12 06:42:06 EST 2010


Hi
Can I use in module prepared for GRASS such constructions:

typedef enum {
    AND,        /* & */
    OR,            /* | */
    NOT,        /* ~ */
    IS,            /* = */
    THEN,        /* : */
    LBRC,        /* ( */
    RBRC,        /* ) */
    START,    /* { */
    STOP,        /* } */
    MAP,        /* mapname */
    VAR,        /* variable name */
    size        /* number of tokens */
} tokens;

char parseTab [size][size] = { /* parser table definition is here */
    };

I mean type enum and enum size variable to initialize table. It compiles 
on gcc 4.3 but, as I know GRASS has restriction and I'm not sure if such 
is fully allowed.

thanks for answer
Jarek


More information about the grass-dev mailing list