+2000-06-28 Ezra Peisach <epeisach@mit.edu>
+
+ * dyn_create.c, dyn_delete.c, dyn_insert.c, dyn_put.c: Use %p
+ format for displaying pointers.
+
2000-06-26 Ezra Peisach <epeisach@mit.edu>
* dyn_realloc.c: Remove unused variable.
{
if (obj->paranoid) {
if (obj->debug)
- fprintf(stderr, "dyn: destroy: zeroing %d bytes from %d.\n",
+ fprintf(stderr, "dyn: destroy: zeroing %d bytes from %p.\n",
obj->el_size * obj->size, obj->array);
memset(obj->array, 0, obj->el_size * obj->size);
}
else {
if (obj->debug)
fprintf(stderr,
- "dyn: delete: copying %d bytes from %d + %d to + %d.\n",
+ "dyn: delete: copying %d bytes from %p + %d to + %d.\n",
obj->el_size*(obj->num_el - idx), obj->array,
(idx+1)*obj->el_size, idx*obj->el_size);
if (obj->paranoid) {
if (obj->debug)
fprintf(stderr,
- "dyn: delete: zeroing %d bytes from %d + %d\n",
+ "dyn: delete: zeroing %d bytes from %p + %d\n",
obj->el_size, obj->array,
obj->el_size*(obj->num_el - 1));
memset(obj->array + obj->el_size*(obj->num_el - 1), 0,
}
if (obj->debug)
- fprintf(stderr,"dyn: insert: Moving %d bytes from %d + %d to + %d\n",
+ fprintf(stderr,"dyn: insert: Moving %d bytes from %p + %d to + %d\n",
(obj->num_el-idx)*obj->el_size, obj->array,
obj->el_size*idx, obj->el_size*(idx+num));
#endif
if (obj->debug)
- fprintf(stderr, "dyn: insert: Copying %d bytes from %d to %d + %d\n",
+ fprintf(stderr, "dyn: insert: Copying %d bytes from %p to %p + %d\n",
obj->el_size*num, els, obj->array, obj->el_size*idx);
#ifdef HAVE_MEMMOVE
DynObjectP obj;
{
if (obj->debug)
- fprintf(stderr, "dyn: array: returning array pointer %d.\n",
+ fprintf(stderr, "dyn: array: returning array pointer %p.\n",
obj->array);
return obj->array;
}
if (obj->debug)
- fprintf(stderr, "dyn: get: Returning address %d + %d.\n",
+ fprintf(stderr, "dyn: get: Returning address %p + %d.\n",
obj->array, obj->el_size*num);
return (DynPtr) obj->array + obj->el_size*num;
int ret;
if (obj->debug)
- fprintf(stderr, "dyn: put: Writing %d bytes from %d to %d + %d\n",
+ fprintf(stderr, "dyn: put: Writing %d bytes from %p to %p + %d\n",
obj->el_size, el, obj->array, idx*obj->el_size);
if ((ret = _DynResize(obj, idx)) != DYN_OK)