Mercurial > hg > index.cgi
diff lwlink/map.c @ 8:fdc11ef4115b
Switched lwlink to lw_cmdline from argp and also brought in lw_alloc and lw_string to replace util.c
author | lost@l-w.ca |
---|---|
date | Sat, 22 Jan 2011 09:58:24 -0700 |
parents | 7317fbe024af |
children | fc8386b13399 |
line wrap: on
line diff
--- a/lwlink/map.c Sat Jan 22 09:40:52 2011 -0700 +++ b/lwlink/map.c Sat Jan 22 09:58:24 2011 -0700 @@ -26,8 +26,9 @@ #include <stdlib.h> #include <string.h> +#include <lw_alloc.h> + #include "lwlink.h" -#include "util.h" struct symliste { @@ -91,7 +92,7 @@ break; pe = ce; } - ne = lw_malloc(sizeof(struct symliste)); + ne = lw_alloc(sizeof(struct symliste)); ne -> ext = 0; ne -> addr = sym -> offset + sectlist[sn].ptr -> loadaddress; ne -> next = ce;