Last of the EDs and TDs in pool should also be initialized.
[cake.git] / tools / genmodule / writeend.c
blob03d5f1a76ff483bf7ab4d7e9316b0e346386e770
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
4 Desc: function to write modulename_end.c. Part of genmodule.
5 */
6 #include "genmodule.h"
8 void writeend(struct config *cfg)
10 FILE *out;
11 char line[256];
13 snprintf(line, 255, "%s/%s_end.c", cfg->gendir, cfg->modulename);
14 out = fopen(line, "w");
15 if (out==NULL)
17 fprintf(stderr, "Could not write %s\n", line);
18 exit(20);
20 fprintf(out,
21 "#include \"%s_libdefs.h\"\n"
22 "int GM_UNIQUENAME(End)(void) {return 0;}\n",
23 cfg->modulename
25 fclose(out);