#define TOOLBOXCALLBACKS_H
#include <gtk/gtk.h>
#include "gui.h"
-#if WIN32
+#if defined(WIN32)
#define _BB __declspec(dllexport)
#else
#define _BB /**/
#include <stdio.h>
#include <cghdr.h>
-#if WIN32
+#if defined(WIN32)
#include <io.h>
#endif
/* memory management discipline and entry points */
-#if (HAVE_AST || HAVE_VMALLOC)
+#if defined(HAVE_AST) || defined(HAVE_VMALLOC)
/* vmalloc based allocator */
static void *memopen(void)
{
-#if DEBUG || MEMDEBUG
+#if defined(DEBUG) || defined(MEMDEBUG)
return vmopen(Vmdcheap, Vmdebug,
VM_MTDEBUG | VM_DBCHECK | VM_DBABORT | VM_TRACE);
#else
growops(opl + 4);
for (pi = 1; pi < 4; pi++)
ops[opl].x = sps[pi].x, ops[opl++].y = sps[pi].y;
-#if DEBUG >= 1
+#if defined(DEBUG) && DEBUG >= 1
fprintf(stderr, "success: %f %f\n", a, b);
#endif
return 1;
growops(opl + 4);
for (pi = 1; pi < 4; pi++)
ops[opl].x = sps[pi].x, ops[opl++].y = sps[pi].y;
-#if DEBUG >= 1
+#if defined(DEBUG) && DEBUG >= 1
fprintf(stderr, "forced straight line: %f %f\n", a, b);
#endif
return 1;
else
a = b = 0;
}
-#if DEBUG >= 1
+#if defined(DEBUG) && DEBUG >= 1
fprintf(stderr, "failure\n");
#endif
return 0;
}
}
-#if DEBUG >= 1
+#if defined(DEBUG) && DEBUG >= 1
fprintf(stderr, "points\n%d\n", pnll);
for (pnli = 0; pnli < pnll; pnli++)
fprintf(stderr, "%f %f\n", pnls[pnli].pp->x, pnls[pnli].pp->y);
/* generate list of triangles */
triangulate(pnlps, pnll);
-#if DEBUG >= 2
+#if defined(DEBUG) && DEBUG >= 2
fprintf(stderr, "triangles\n%d\n", tril);
for (trii = 0; trii < tril; trii++)
for (ei = 0; ei < 3; ei++)
}
}
-#if DEBUG >= 1
+#if defined(DEBUG) && DEBUG >= 1
fprintf(stderr, "polypath");
for (pnlp = &epnls[1]; pnlp; pnlp = pnlp->link)
fprintf(stderr, " %f %f", pnlp->pp->x, pnlp->pp->y);
#if !_typ_ssize_t
typedef int ssize_t;
#endif
-#if !_WIN32
+#if !defined(_WIN32)
extern Vmuchar_t *sbrk _ARG_((ssize_t));
#endif