Imported Debian patch 0.1beta-15
[debian/yforth] / division.c
1 #include <stdio.h>
2 #include <math.h>
3 #include <assert.h>
4
5 main() {
6         FILE *f = fopen("div.h", "wt");
7         assert(f != NULL);
8         fprintf(f, "#define FLOORED_DIVISION %d\n", (-10 % 7) > 0 ? 1 : 0);
9         fclose(f);
10         return 0;
11 }