2 Copyright © 1995-2005, The AROS Development Team. All rights reserved.
4 Desc: Function to write proto/modulename.h. Part of genmodule.
8 void writeincproto(struct config
*cfg
)
12 struct linelist
*linelistit
;
14 snprintf(line
, 255, "%s/proto/%s.h", cfg
->gendir
, cfg
->modulename
);
15 out
= fopen(line
, "w");
24 "#ifndef PROTO_%s_H\n"
25 "#define PROTO_%s_H\n"
29 "#include <exec/types.h>\n"
30 "#include <aros/system.h>\n"
32 "#include <clib/%s_protos.h>\n"
34 "#if !defined(%s) && !defined(__NOLIBBASE__) && !defined(__%s_NOLIBBASE__)\n"
35 " #ifdef __%s_STDLIBBASE__\n"
36 " extern struct Library *%s;\n"
42 cfg
->modulenameupper
, cfg
->modulenameupper
, getBanner(cfg
),
44 cfg
->libbase
, cfg
->modulenameupper
,
47 cfg
->libbasetypeptrextern
, cfg
->libbase
51 "#if !defined(NOLIBDEFINES) && !defined(%s_NOLIBDEFINES)\n"
52 "# include <defines/%s.h>\n"
55 "#endif /* PROTO_%s_H */\n",
56 cfg
->modulenameupper
, cfg
->modulename
, cfg
->modulenameupper