tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] too many basic types error


From: Josh Goldstein
Subject: [Tinycc-devel] too many basic types error
Date: Mon, 15 Sep 2008 14:23:45 -0700 (PDT)

Hello,
I'm getting this error:
too many basic types
Here's some of my code:
struct math_op {
    int type;
    union math_value {
        char op;
        int num;
        char* varname;
    };
};
struct node {
    void *data;
    struct node* next;
};

union var_data {
    double my_double;
    int my_int;
    char* my_string;
};

/*
struct var_value
{
    int var_type;
    union var_data my_data;
}
*/

struct table_entry{
    char *name;
    struct var_value entry;
};

If I uncomment the commented part, I get the error.  Is there a limit on the number of structs or unions you can define?
Thanks,
Josh


reply via email to

[Prev in Thread] Current Thread [Next in Thread]