Remove the dlopen() pointer from struct filedef.
authorPaul Smith <psmith@gnu.org>
Fri, 17 May 2013 05:20:39 +0000 (01:20 -0400)
committerPaul Smith <psmith@gnu.org>
Fri, 17 May 2013 05:20:39 +0000 (01:20 -0400)
commitb730fbc6b86d777e80856e997ddc56fc4a851769
tree9ca4f2aae6b0f5d8669c7990f3b2f50f22cd1780
parentc21c1455fdfc6e87d75941f48841c72903e1e0f4
Remove the dlopen() pointer from struct filedef.

This pointer is almost never needed, and it increases the size of the filedef
struct for all files (of which there are a huge number for large builds).
Instead keep a bit field marking whether the file is a loaded object and if so
call a new function to unload it.  In load.c we keep a simple linked list of
loaded objects (of which there will be very few typically) and their dlopen()
pointers.
ChangeLog
commands.c
file.c
filedef.h
load.c
makeint.h
read.c