The C compiler does not care if these names mismatch, but it is less confusing
to be consistent. This change leaves the obj/arg_obj discrepancy alone under the
justification that "arg_obj" is not any more useful externally-facing and "obj"
internally would conflict with an already existing local.
CGRAPH_API Agsym_t *agnxtattr(Agraph_t * g, int kind, Agsym_t * attr);
CGRAPH_API int agcopyattr(void *oldobj, void *newobj);
-CGRAPH_API void *agbindrec(void *obj, const char *name, unsigned int size,
+CGRAPH_API void *agbindrec(void *obj, const char *name, unsigned int recsize,
int move_to_front);
CGRAPH_API Agrec_t *aggetrec(void *obj, const char *name, int move_to_front);
CGRAPH_API int agdelrec(void *obj, char *name);
/* attach a new record of the given size to the object.
*/
void *agbindrec(void *arg_obj, const char *recname, unsigned int recsize,
- int mtf)
+ int move_to_front)
{
Agraph_t *g;
Agobj_t *obj;
rec->name = agstrdup(g, recname);
objputrec(g, obj, rec);
}
- if (mtf)
+ if (move_to_front)
aggetrec(arg_obj, recname, TRUE);
return rec;
}