1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
*** libdyn/dyn_delete.c.orig Fri Dec 10 14:56:03 1993
--- libdyn/dyn_delete.c Wed Jun 21 16:45:00 1995
***************
*** 11,16 ****
--- 11,17 ----
*/
#include <stdio.h>
+ #include <string.h>
#include "dynP.h"
***************
*** 45,51 ****
else {
if (obj->debug)
fprintf(stderr,
! "dyn: delete: copying %d bytes from %d + %d to + %d.\n",
obj->el_size*(obj->num_el - index), obj->array,
(index+1)*obj->el_size, index*obj->el_size);
--- 46,52 ----
else {
if (obj->debug)
fprintf(stderr,
! "dyn: delete: copying %d bytes from %p + %d to + %d.\n",
obj->el_size*(obj->num_el - index), obj->array,
(index+1)*obj->el_size, index*obj->el_size);
***************
*** 56,62 ****
if (obj->paranoid) {
if (obj->debug)
fprintf(stderr,
! "dyn: delete: zeroing %d bytes from %d + %d\n",
obj->el_size, obj->array,
obj->el_size*(obj->num_el - 1));
bzero(obj->array + obj->el_size*(obj->num_el - 1),
--- 57,63 ----
if (obj->paranoid) {
if (obj->debug)
fprintf(stderr,
! "dyn: delete: zeroing %d bytes from %p + %d\n",
obj->el_size, obj->array,
obj->el_size*(obj->num_el - 1));
bzero(obj->array + obj->el_size*(obj->num_el - 1),
|