[Prev][Next][Index]

Problems unparsing C code




I'm having some problems unparsing C source code. The original file
contains the function

struct someStruct *function(int x, int y)
{
}

But when I unparse the resulting .dep file, I get:

someStruct *function(int x, int y)
{
}

Since I'm feeding the resulting source code to a C compiler, the
missing 'struct' drives the compiler strange. Is there an easy way to
fix the unparser so it outputs the keyword 'struct'? I need this
badly because I will not be handling C++ code, so using a C++ compiler
is not an option.

Thanks. Diego.


-- 
Diego A. Novillo                  | "We each pay a fabulous price for our
diego@cs.ualberta.ca              |  visions of paradise. But a spirit with
Computing Science - U of Alberta  |  a vision is a dream with a mission"
Edmonton, Alberta - Canada        |             Rush - Mission