in reply to C parsing questions
You current HoA data structure looks appropriate. However, for the use of others you might like to put the structure definitions in a __DATA__ section and build the internal representation at run time. That way new structures can be pretty much just copied and pasted onto the end of the script and the default supplied or not as required.
__DATA__ typedef struct { float one; /* 0.0 */ float two; /* 0.0 */ int three; /* 0 */ bool potato; /* false */ } struct_name;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: C parsing questions
by Nkuvu (Priest) on Nov 29, 2005 at 00:22 UTC | |
by GrandFather (Saint) on Nov 29, 2005 at 00:38 UTC | |
by Nkuvu (Priest) on Nov 29, 2005 at 01:42 UTC |