On Mon, 18 Oct 2010 07:51:34 +0400, Andrej Mitrovic <[email protected]> wrote:

htod could also use a --help switch so we don't have to fire up the
browser every time we need to remind ourselves on what arguments it
can take. Or, you know, Walter could give us the source code and we'll
fix it for him. Hehe. :>

Here's one failed conversion from 5 minutes ago:

C:
typedef struct SNDFILE_tag      SNDFILE ;

htod:
alias SNDFILE_tag SNDFILE;

This should be:
struct SNDFILE_tag {}
alias SNDFILE_tag SNDFILE;

But I guess that's a rare and dubious case.


I think it should rather be

struct SNDFILE_tag; // forward declaration
alias SNDFILE_tag SNDFILE;

You can't define a struct that have no idea about, its proper definition may follow any time.

Reply via email to