1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-16 09:50:25 +00:00
emacs/etc
Philipp Stephani bffceab633 Add conversions to and from struct timespec to module interface.
Time values are a fundamental data type, and such conversions are hard
to implement within modules because of the various forms of time
values in Emacs Lisp.  Adding dedicated conversion functions can
significantly simplify module code dealing with times.

This approach uses nanosecond precision.  While Emacs in theory has
support for higher-precision time values, in practice most languages
and standards, such as POSIX, C, Java, and Go, have settled on
nanosecond-precision integers to represent time.

* src/emacs-module.h.in: Add header for struct timespec.

* src/module-env-27.h: Add module functions for time conversion.

* src/emacs-module.c (module_extract_time, module_make_time): New
functions.
(initialize_environment): Use them.

* test/data/emacs-module/mod-test.c (Fmod_test_add_nanosecond): New
test function.
(emacs_module_init): Define it.

* test/src/emacs-module-tests.el (mod-test-add-nanosecond/valid)
(mod-test-add-nanosecond/nil, mod-test-add-nanosecond/invalid): New
unit tests.

* doc/lispref/internals.texi (Module Values): Document time
conversion functions.
2019-04-24 11:33:52 +02:00
..
charsets Update copyright year to 2019 2019-01-01 01:01:13 +00:00
e Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
forms Update copyright year to 2019 2019-01-01 01:01:13 +00:00
gnus
images Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
nxml Update nXML to use Emacs's Unicode support, and lexical-binding 2016-01-15 10:29:20 -05:00
org Update copyright year to 2019 2019-01-01 01:01:13 +00:00
refcards Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
schema Update copyright year to 2019 2019-01-01 01:01:13 +00:00
srecode Update copyright year to 2019 2019-01-01 01:01:13 +00:00
themes Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
tutorials * etc/tutorials/TUTORIAL: Fix typo (bug#34049) 2019-01-12 16:14:49 +01:00
AUTHORS * etc/AUTHORS: Update. 2019-04-11 21:57:49 +02:00
CALC-NEWS ; * etc/CALC-NEWS: Update header for 2015/11 maintainer change. 2019-03-05 22:37:21 -08:00
ChangeLog.1 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
compilation.txt Update copyright year to 2019 2019-01-01 01:01:13 +00:00
COPYING Merge from Gnulib 2017-10-01 18:31:10 -07:00
DEBUG Improve UBSan discussion in etc/DEBUG 2019-04-22 17:26:25 -07:00
DEVEL.HUMOR Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00
DISTRIB Update copyright year to 2019 2019-01-01 01:01:13 +00:00
edt-user.el Update copyright year to 2019 2019-01-01 01:01:13 +00:00
emacs-buffer.gdb Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
emacs.appdata.xml Update copyright year to 2019 2019-01-01 01:01:13 +00:00
emacs.desktop
emacs.icon
emacs.service Notify systemd in daemon-initialized and kill-emacs (Bug#31498) 2018-07-25 21:07:03 -04:00
enriched.txt Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
ERC-NEWS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ETAGS.EBNF Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ETAGS.README Update copyright year to 2019 2019-01-01 01:01:13 +00:00
future-bug
gnus-tut.txt Update copyright year to 2019 2019-01-01 01:01:13 +00:00
grep.txt Update copyright year to 2019 2019-01-01 01:01:13 +00:00
HELLO Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
HISTORY * etc/HISTORY: Update for Emacs 26.2 release. 2019-04-11 21:59:28 +02:00
JOKES
MACHINES Update copyright year to 2019 2019-01-01 01:01:13 +00:00
MH-E-NEWS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS Add conversions to and from struct timespec to module interface. 2019-04-24 11:33:52 +02:00
NEWS.1-17 * lisp/help-fns.el (help-fns-describe-variable-functions): New hook 2019-04-12 12:37:00 -04:00
NEWS.18 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
NEWS.19 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
NEWS.20 Merge from origin/emacs-26 2018-12-31 17:57:29 -08:00
NEWS.21 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.22 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.23 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.24 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.25 Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NEWS.26 Merge from origin/emacs-26 2019-04-21 07:51:38 -07:00
NEXTSTEP Update copyright year to 2019 2019-01-01 01:01:13 +00:00
NXML-NEWS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ORG-NEWS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
package-keyring.gpg * etc/package-keyring.gpg: Add the 2019 key 2019-04-23 16:36:59 -04:00
PROBLEMS Merge from origin/emacs-26 2019-02-08 09:20:40 -08:00
ps-prin0.ps Update copyright year to 2019 2019-01-01 01:01:13 +00:00
ps-prin1.ps Update copyright year to 2019 2019-01-01 01:01:13 +00:00
publicsuffix.txt Update publicsuffix.txt. 2016-02-06 16:11:18 +11:00
README Update copyright year to 2019 2019-01-01 01:01:13 +00:00
rgb.txt
ses-example.ses Update copyright year to 2019 2019-01-01 01:01:13 +00:00
spook.lines
TERMS Update copyright year to 2019 2019-01-01 01:01:13 +00:00
TODO Update copyright year to 2019 2019-01-01 01:01:13 +00:00
yow.lines Prefer straight quoting in some etc text files 2015-08-26 14:09:07 -07:00

This directory contains the architecture-independent files used by or
with Emacs.  This includes some text files of documentation for GNU
Emacs or of interest to Emacs users, and the file of dumped docstrings
for Emacs functions and variables.

COPYRIGHT AND LICENSE INFORMATION FOR IMAGE FILES

File: emacs.icon
  Author: Sun Microsystems, Inc
  Copyright (C) 1999, 2001-2019 Free Software Foundation, Inc.
  License: GNU General Public License version 3 or later (see COPYING)