1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-24 13:32:41 -08:00
emacs/test/src
Lars Brinkhoff a2c3343029 Add record objects with user-defined types.
* src/alloc.c (allocate_record): New function.
(Fmake_record, Frecord, Fcopy_record): New functions.
(syms_of_alloc): defsubr them.
(purecopy): Work with records.

* src/data.c (Ftype_of): Return slot 0 for record objects, or type
name if record's type holds class.
(Frecordp): New function.
(syms_of_data): defsubr it.  Define `Qrecordp'.
(Faref, Faset): Work with records.

* src/fns.c (Flength): Work with records.

* src/lisp.h (prec_type): Add PVEC_RECORD.
(RECORDP, CHECK_RECORD, CHECK_RECORD_TYPE): New functions.

* src/lread.c (read1): Add syntax for records.

* src/print.c (PRINT_CIRCLE_CANDIDATE_P): Add RECORDP.
(print_object): Add syntax for records.

* test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-2):
New test.

* test/src/alloc-tests.el (record-1, record-2, record-3):
New tests.

* doc/lispref/elisp.texi, doc/lispref/objects.texi,
doc/lispref/records.texi: Add documentation for records.
2017-04-04 08:23:46 +02:00
..
regex-resources
alloc-tests.el Add record objects with user-defined types. 2017-04-04 08:23:46 +02:00
buffer-tests.el
callproc-tests.el
casefiddle-tests.el casing: don’t assume letters are *either* upper- or lower-case (bug#24603) 2017-02-15 16:54:07 +01:00
charset-tests.el Compare and round more carefully 2017-03-04 23:18:39 -08:00
chartab-tests.el
cmds-tests.el
coding-tests.el
data-tests.el min and max should not return markers 2017-03-07 21:23:47 -08:00
decompress-tests.el
doc-tests.el
editfns-tests.el Fix rounding error in ‘ceiling’ etc. 2017-03-01 12:47:28 -08:00
eval-tests.el Check that variable lists are actually lists 2017-01-19 17:17:50 +01:00
floatfns-tests.el ffloor etc. now accept only floats 2017-03-05 13:31:33 -08:00
fns-tests.el Fix typos in tests for lax-plist-get etc. 2017-02-12 12:55:29 -08:00
font-tests.el
inotify-tests.el Some inotify cleanup 2017-03-30 11:08:42 -07:00
keymap-tests.el
lread-tests.el
marker-tests.el
minibuf-tests.el
print-tests.el
process-tests.el
regex-tests.el Add support for Unicode whitespace in [:blank:] 2017-01-06 20:12:48 +01:00
syntax-tests.el Fix comment detection on open parens 2017-01-23 19:28:30 -05:00
textprop-tests.el
thread-tests.el Rudimentary error handling for non-main threads 2017-01-18 18:00:16 +02:00
undo-tests.el
xml-tests.el