annotate src/.cvsignore @ 5908:6174848f3e6c

Use parse_integer() in read_atom(); support bases with ratios like integers src/ChangeLog addition: 2015-05-08 Aidan Kehoe <kehoea@parhasard.net> * data.c (init_errors_once_early): Move the Qunsupported_type here from numbers.c, so it's available when the majority of our types are not supported. * general-slots.h: Add it here, too. * number.c: Remove the definition of Qunsupported_type from here. * lread.c (read_atom): Check if the first character could reflect a rational, if so, call parse_integer(), don't check the syntax of the other characters. This allows us to accept the non-ASCII digit characters too. If that worked partially, but not completely, and the next char is a slash, try to parse as a ratio. If that fails, try isfloat_string(), but only if the first character could plausibly be part of a float. Otherwise, treat as a symbol. * lread.c (read_rational): Rename from read_integer. Handle ratios with the same radix specification as was used for integers. * lread.c (read1): Rename read_integer in this function. Support the Common Lisp #NNNrMMM syntax for parsing a number MMM of arbitrary radix NNN. man/ChangeLog addition: 2015-05-08 Aidan Kehoe <kehoea@parhasard.net> * lispref/numbers.texi (Numbers): Describe the newly-supported arbitrary-base syntax for rationals (integers and ratios). Describe that ratios can take the same base specification as integers, something also new. tests/ChangeLog addition: 2015-05-08 Aidan Kehoe <kehoea@parhasard.net> * automated/lisp-reader-tests.el: Check the arbitrary-base integer reader syntax support, just added. Check the reader base support for ratios, just added. Check the non-ASCII-digit support in the reader, just added.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 09 May 2015 00:40:57 +0100
parents c11067d70e63
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
1 *.so.*
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
2 Emacs.ad.h
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
3 GNUmakefile
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
4 Makefile
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5 Makefile.in
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
6 NEEDTODUMP
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
7 SATISFIED
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
8 Xpm.dll
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 config.h
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
10 dump-id.c
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
11 gmon.out
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
12 paths.h
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 puresize-adjust.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 sheap-adjust.h
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15 temacs
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
16 temacs.bsc
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
17 temacs.ilk
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
18 temacs.map
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
19 temacs.opt
705
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
20 temacs.pdb
47f5192d44c9 [xemacs-hg @ 2001-12-18 22:55:29 by adrian]
adrian
parents: 533
diff changeset
21 update-elc.stamp
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22 xemacs
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 428
diff changeset
23 xemacs.dmp
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
24 xemacs.ilk
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
25 xemacs.map
533
f38950946dcf [xemacs-hg @ 2001-05-12 11:39:18 by ben]
ben
parents: 479
diff changeset
26 xemacs.opt
776
79940b592197 [xemacs-hg @ 2002-03-15 07:43:14 by ben]
ben
parents: 771
diff changeset
27 *.tmp
1123
37bdd24225ef [xemacs-hg @ 2002-11-27 07:15:02 by ben]
ben
parents: 776
diff changeset
28 makeinfo_test.bat
1361
ffdb1a771055 [xemacs-hg @ 2003-03-18 00:54:00 by youngs]
youngs
parents: 1123
diff changeset
29 REBUILD_AUTOLOADS
2835
ae83ac9c29b3 [xemacs-hg @ 2005-06-28 12:02:39 by crestani]
crestani
parents: 1361
diff changeset
30 dump-size
ae83ac9c29b3 [xemacs-hg @ 2005-06-28 12:02:39 by crestani]
crestani
parents: 1361
diff changeset
31 xemacs.def
ae83ac9c29b3 [xemacs-hg @ 2005-06-28 12:02:39 by crestani]
crestani
parents: 1361
diff changeset
32 xemacs.def.in
3092
141c2920ea48 [xemacs-hg @ 2005-11-25 01:41:31 by crestani]
crestani
parents: 2835
diff changeset
33 .dbxrc
3521
c11067d70e63 [xemacs-hg @ 2006-07-19 19:38:39 by crestani]
crestani
parents: 3092
diff changeset
34 .dbxrc.in
3092
141c2920ea48 [xemacs-hg @ 2005-11-25 01:41:31 by crestani]
crestani
parents: 2835
diff changeset
35 .gdbinit
3521
c11067d70e63 [xemacs-hg @ 2006-07-19 19:38:39 by crestani]
crestani
parents: 3092
diff changeset
36 .gdbinit.in