1496, 1499, 1500, 1501, 1502, 1503, 1505, 1509, 1513, 1521,
1523, 1525, 1530, 1531, 1532, 1533, 1535, 1536, 1539, 1540,
1542, 1543, 1546, 1547, 1551, 1553, 1554, 1561, 1565, 1566,
- 1568, 1569, 1570, 1571, 1573, 1577, 1578, 1579, 1580,
+ 1568, 1569, 1570, 1571, 1573, 1577, 1578, 1579, 1580, 1581,
+ 1582
August 2, 2008
return (Agsym_t *)dtprev(dict->dict, a);
}
+#if defined(__SUNPRO_C)
+/* on Sun's, 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.edge_nbytes = es;
AG.init_called = TRUE;
AG.fwrite = fwrite; /* init to system version of fwrite() */
+#if defined(__SUNPRO_C)
+#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)