return (Agsym_t *)dtprev(dict->dict, a);
}
-#if defined(__SUNPRO_C) || defined(__CYGWIN__) || defined(__MINGW32__)
-/* for systems where ferror is a macro */
-static int agferror(FILE *stream)
-{
- return ferror(stream);
-}
-#endif
-
/* this is normally called by the aginit() macro */
void aginitlib(int gs, int ns, int es)
{
AG.node_nbytes = ns;
AG.edge_nbytes = es;
AG.init_called = TRUE;
- AG.fwrite = fwrite; /* init to system version of fwrite() */
-#if defined(__SUNPRO_C) || defined(__CYGWIN__) || defined(__MINGW32__)
-#undef ferror
- AG.ferror = agferror; /* init to ferror macro wrapper function */
-#else
- AG.ferror = ferror; /* init to system version of ferror() */
-#endif
initproto();
} else
if ((AG.graph_nbytes != gs) || (AG.node_nbytes != ns)
free(dict);
}
+#if defined(__SUNPRO_C) || defined(__CYGWIN__) || defined(__MINGW32__)
+/* for systems where ferror is a macro */
+static int agferror(FILE *stream)
+{
+ return ferror(stream);
+}
+#endif
+
+
int agwrite(Agraph_t * g, FILE * fp)
{
printdict_t *p;