savestruct


The code here is still under construction. In other words, it might be wrong. Don't write anything that depends on getting right answers from it.


typedecl.h is the header file for typedecl.c.

typedecl.c should actually work, but it is not very elegant. It does a lot of traversing the parse tree in order to get everything in the right order. Improvements welcome. Also, it doesn't yet parse const correctly on all levels; improvements welcome there too.

typedecl-main.c is just a test harness for typedecl.c, to make sure everything works okay.

savestruct.c is the big, long, user-friendly program that I'm trying to write. It now supports quite a bit of the useful stuff; both reading and writing structs are now supported, although I have not yet tried to use the program in a non-trivial manner.

Here is a sample of the current state of the art: an input file and the corresponding output file from the current version of savestruct. Take a look!


This page last updated
28 April 2004


All code, images and documentation on this page are freely distributable. Please keep them that way.