Commit b67d5408 authored by dcw's avatar dcw
Browse files

went to new dunc style of list typedefs.

parent 45130002
...@@ -14,37 +14,46 @@ ...@@ -14,37 +14,46 @@
*/ */
typedef struct declnlist_str *declnlist; struct declnlist;
typedef struct shapelist_str *shapelist; typedef struct declnlist *declnlist;
typedef struct paramlist_str *paramlist;
typedef struct printlist_str *printlist; struct shapelist;
typedef struct printitem_str *printitem; typedef struct shapelist *shapelist;
struct paramlist;
typedef struct paramlist *paramlist;
struct printlist;
typedef struct printlist *printlist;
struct printitem;
typedef struct printitem *printitem;
#define printitem_is_str 0 #define printitem_is_str 0
#define printitem_is_num 1 #define printitem_is_num 1
struct printitem_str { struct printitem {
int tag; int tag;
int num; int num;
char *str; char *str;
}; };
struct printlist_str { struct printlist {
printlist next; printlist next;
printitem item; printitem item;
}; };
struct paramlist_str { struct paramlist {
paramlist next; paramlist next;
char *type; char *type;
char *name; char *name;
}; };
struct shapelist_str { struct shapelist {
shapelist next; shapelist next;
char *name; char *name;
paramlist params; paramlist params;
...@@ -52,7 +61,7 @@ struct shapelist_str { ...@@ -52,7 +61,7 @@ struct shapelist_str {
}; };
struct declnlist_str { struct declnlist {
declnlist next; declnlist next;
char *name; char *name;
shapelist shapes; shapelist shapes;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment