2 Copyright © 1995-2005, The AROS Development Team. All rights reserved.
5 Main for genmodule. A tool to generate files for building modules.
9 int main(int argc
, char **argv
)
12 struct config
*cfg
= initconfig(argc
, argv
);
17 if (!(cfg
->intcfg
& CFG_NOREADREF
))
21 if (cfg
->options
& OPTION_AUTOINIT
)
23 if (cfg
->options
& OPTION_STUBS
)
28 if (!(cfg
->options
& OPTION_INCLUDES
))
30 fprintf(stderr
, "%s called with writeincludes when no includes are present\n", argv
[0]);
33 if (!(cfg
->intcfg
& CFG_NOREADREF
))
51 /* Ignore the functionlist and the methodlist that are available in the
55 if (cfg
->classlist
!= NULL
)
56 cfg
->classlist
->methlist
= NULL
;
63 fprintf(stderr
, "Internal error in main: Unhandled command type\n");