From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
The main thing I noticed (that was not already in your list o= r in my
upcoming changes) are some problems in memory allocation. The module
code calls malloc directly, instead of xmalloc, for reasons I don't
understand. This leads to problems, e.g., the memory is not properly
accounted for by the memory profiler. Why can't the new module code
invoke xmalloc? More generally, how should modules obtain memory in an
Emacs-friendly way?
Also, the file name "emacs_module.h" doesn't use the usual Em= acs style
rules; hyphen not underscore.
But as you say, "module.h" would be better
anyway. I'll change it to "module.h" for now; if there's = some reason it
needs an "emacs" prefix we can change it to "emacs-module.h&= quot; later.
There are some other things I noticed which I'll try to summarize after=
fixing the stuff that's easy to fix (missing copyright notices,
formatting, etc.).