2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
5 Function to write clib/modulename_protos.h. Part of genmodule.
9 void writeincclib(struct config
*cfg
)
12 char line
[256], *banner
;
13 struct functionhead
*funclistit
;
14 struct functionarg
*arglistit
;
15 struct stringlist
*linelistit
;
17 snprintf(line
, 255, "%s/clib/%s_protos.h", cfg
->gendir
, cfg
->includename
);
19 out
= fopen(line
, "w");
27 banner
= getBanner(cfg
);
29 "#ifndef CLIB_%s_PROTOS_H\n"
30 "#define CLIB_%s_PROTOS_H\n"
34 "#include <aros/libcall.h>\n"
36 cfg
->includenameupper
, cfg
->includenameupper
, banner
40 for (linelistit
= cfg
->cdeflines
; linelistit
!=NULL
; linelistit
= linelistit
->next
)
41 fprintf(out
, "%s\n", linelistit
->s
);
49 writefuncprotos(out
, cfg
, cfg
->funclist
);
55 "#endif /* CLIB_%s_PROTOS_H */\n",
56 cfg
->includenameupper
);