#define ID(n) (((Local_Agnodeinfo_t*)(n->base.data))->id)
-static void indent (int ix, FILE* outFile)
-{
+static void indent(int ix) {
while (ix--)
fprintf (outFile, " ");
}
}
static void emitInt(char *name, int value, int ix) {
- indent (ix, outFile);
+ indent(ix);
fprintf (outFile, "%s %d\n", name, value);
}
static void emitReal(char *name, double value, int ix) {
- indent (ix, outFile);
+ indent(ix);
fprintf (outFile, "%s %g\n", name, value);
}
static void emitPoint(double x, double y, int ix) {
- indent (ix, outFile);
+ indent(ix);
fprintf (outFile, "point [ x %g y %g ]\n", x, y);
}
s = arrowEnd (s, "e,", &earrow, &ex, &ey);
s = arrowEnd (s, "s,", &sarrow, &sx, &sy);
- indent (ix, outFile);
+ indent(ix);
fprintf (outFile, "Line [\n");
if (sarrow)
emitPoint(sx, sy, ix+1);
emitPoint(sx, sy, ix+1);
if (earrow)
emitPoint(ex, ey, ix+1);
- indent (ix, outFile);
+ indent(ix);
fprintf (outFile, "]\n");
}
}
static void emitAttr(char *name, char *value, int ix) {
- indent (ix, outFile);
+ indent(ix);
if (isNumber (value))
fprintf (outFile, "%s %s\n", name, value);
else {