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;
In reply to Re: C parsing questions
by GrandFather
in thread C parsing questions
by Nkuvu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |