[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Small patch to aid use of lib dmalloc
I count 54 locations in head that call MyStrdup()
A run time check of calls to MyStrdup() shows:
create.c:197 made 0 NULL calls, 48 good calls
create.c:219 made 0 NULL calls, 32 good calls
create.c:238 made 0 NULL calls, 1 good calls
create.c:240 made 0 NULL calls, 1 good calls
create.c:286 made 127 NULL calls, 0 good calls
create.c:614 made 0 NULL calls, 23 good calls
create.c:809 made 364 NULL calls, 436 good calls
create.c:810 made 0 NULL calls, 800 good calls
create.c:896 made 40 NULL calls, 3576 good calls
create.c:897 made 0 NULL calls, 3616 good calls
create.c:921 made 0 NULL calls, 4212 good calls
create.c:1000 made 0 NULL calls, 924 good calls
create.c:1017 made 0 NULL calls, 3552 good calls
file.c:321 made 0 NULL calls, 3 good calls
file.c:393 made 0 NULL calls, 2 good calls
file.c:431 made 0 NULL calls, 2 good calls
file.c:1206 made 0 NULL calls, 53 good calls
file.c:1297 made 0 NULL calls, 1 good calls
main.c:960 made 0 NULL calls, 16 good calls
misc.c:726 made 0 NULL calls, 20 good calls
misc.c:945 made 0 NULL calls, 1 good calls
So calls with a NULL pointer are rare, but there are at least 3
callers that require tolerance of it.
Unfortunately my test coverage is low (based on a quick run of loading
a small board and autorouting it), as my test only sees calls from 21
of the 54 possible callers.
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user