<feed xmlns='http://www.w3.org/2005/Atom'>
<title>emacs/src/dynlib.c, branch fix/not-defined-at-runtime</title>
<subtitle>Emacs is the extensible, customizable, self-documenting real-time display editor. 
</subtitle>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/'/>
<entry>
<title>Improve MS-Windows implementation in dynlib.c</title>
<updated>2015-11-20T11:34:15+00:00</updated>
<author>
<name>Eli Zaretskii</name>
</author>
<published>2015-11-20T11:34:15+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=24be1c8460895ccec8a84e53966b324e35cac6c9'/>
<id>24be1c8460895ccec8a84e53966b324e35cac6c9</id>
<content type='text'>
* src/dynlib.c [WINDOWSNT]: Include errno.h, lisp.h, and w32.h.
No need to include windows.h, as w32.h already does that.
&lt;dynlib_last_err&gt;: New static variable.
(dynlib_reset_last_error): New function.
(dynlib_open): Convert forward slashes to backslashes.  Convert
file names from UTF-8 to either UTF-16 or the current ANSI
codepage, and call either LoadLibraryW or LoadLibraryA.  If the
argument is NULL, return a handle to the main module, like
'dlopen' does.  Record the error, if any, for use by dynlib_error.
(dynlib_sym): Check the handle for validity. Record the error, if
any, for use by dynlib_error.
(dynlib_error): Call w32_strerror to produce the error string, and
zero out the last error code, like dlerror does.
(dynlib_close): Check the handle for validity.  Record the error,
if any, for use by dynlib_error.  Don't call FreeLibrary with a
handle for the main module.
* src/w32.c (globals_of_w32): Call dynlib_reset_last_error.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dynlib.c [WINDOWSNT]: Include errno.h, lisp.h, and w32.h.
No need to include windows.h, as w32.h already does that.
&lt;dynlib_last_err&gt;: New static variable.
(dynlib_reset_last_error): New function.
(dynlib_open): Convert forward slashes to backslashes.  Convert
file names from UTF-8 to either UTF-16 or the current ANSI
codepage, and call either LoadLibraryW or LoadLibraryA.  If the
argument is NULL, return a handle to the main module, like
'dlopen' does.  Record the error, if any, for use by dynlib_error.
(dynlib_sym): Check the handle for validity. Record the error, if
any, for use by dynlib_error.
(dynlib_error): Call w32_strerror to produce the error string, and
zero out the last error code, like dlerror does.
(dynlib_close): Check the handle for validity.  Record the error,
if any, for use by dynlib_error.  Don't call FreeLibrary with a
handle for the main module.
* src/w32.c (globals_of_w32): Call dynlib_reset_last_error.
</pre>
</div>
</content>
</entry>
<entry>
<title>Include-file tweaks for modules</title>
<updated>2015-11-20T08:41:21+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2015-11-20T08:40:45+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c69cec404cbc6b1570c42ca03e0cb42b410d7690'/>
<id>c69cec404cbc6b1570c42ca03e0cb42b410d7690</id>
<content type='text'>
* src/dynlib.c, src/emacs-module.c: Include &lt;config.h&gt; first.
* src/dynlib.h: Do not include config.h.
It’s every .c file’s responsibility to include config.h first.
* src/emacs-module.c: Include emacs-module.h immediately after
config.h, to test that emacs-module.h doesn’t depend on
include files other than config.h.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dynlib.c, src/emacs-module.c: Include &lt;config.h&gt; first.
* src/dynlib.h: Do not include config.h.
It’s every .c file’s responsibility to include config.h first.
* src/emacs-module.c: Include emacs-module.h immediately after
config.h, to test that emacs-module.h doesn’t depend on
include files other than config.h.
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix minor module problems found by static checking</title>
<updated>2015-11-19T19:50:16+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2015-11-19T19:49:27+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=62d787ed124726fd1f73dcfb7227d83bc5940fcc'/>
<id>62d787ed124726fd1f73dcfb7227d83bc5940fcc</id>
<content type='text'>
* src/dynlib.c (dynlib_close): #ifdef out for now, as it’s not used.
* src/eval.c, src/lisp.h (lisp_eval_depth): Now static.
* src/module.c (Fmodule_load): Fix pointer signedness bug.
(Fmodule_call): Tell GCC that the default case is unreachable.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dynlib.c (dynlib_close): #ifdef out for now, as it’s not used.
* src/eval.c, src/lisp.h (lisp_eval_depth): Now static.
* src/module.c (Fmodule_load): Fix pointer signedness bug.
(Fmodule_call): Tell GCC that the default case is unreachable.
</pre>
</div>
</content>
</entry>
<entry>
<title>Style fixes for indenting etc. in module code</title>
<updated>2015-11-19T19:32:21+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2015-11-19T19:31:45+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c8a972b0c3082edfcca4a85562224499f75bfe9b'/>
<id>c8a972b0c3082edfcca4a85562224499f75bfe9b</id>
<content type='text'>
This is mostly indenting and spacing changes.  Also, remove
some unnecessary static decls instead of bothering to reindent them.
* src/module.h (EMACS_EXTERN_C_BEGIN): Remove, and do this inline,
as most other Emacs files do for this sort of thing.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is mostly indenting and spacing changes.  Also, remove
some unnecessary static decls instead of bothering to reindent them.
* src/module.h (EMACS_EXTERN_C_BEGIN): Remove, and do this inline,
as most other Emacs files do for this sort of thing.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add copyright notices to module code</title>
<updated>2015-11-19T16:14:51+00:00</updated>
<author>
<name>Paul Eggert</name>
</author>
<published>2015-11-19T16:14:00+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=c8404f48a33ad39bca57e1442e23fc02573aed20'/>
<id>c8404f48a33ad39bca57e1442e23fc02573aed20</id>
<content type='text'>
Put them in the usual format for GNU Emacs copyright notices.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Put them in the usual format for GNU Emacs copyright notices.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add portable layer for dynamic loading</title>
<updated>2015-11-18T19:23:53+00:00</updated>
<author>
<name>Aurélien Aptel</name>
</author>
<published>2015-11-15T23:36:35+00:00</published>
<link rel='alternate' type='text/html' href='https://jason.zzq.org/git/emacs/commit/?id=435cf35bcc28ab4220764dff7874f477310d9a48'/>
<id>435cf35bcc28ab4220764dff7874f477310d9a48</id>
<content type='text'>
* src/dynlib.h: New file.
* src/dynlib.c: New file.

Co-authored-by: Philipp Stephani &lt;phst@google.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/dynlib.h: New file.
* src/dynlib.c: New file.

Co-authored-by: Philipp Stephani &lt;phst@google.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
