diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-26 22:49:11 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-26 22:49:11 +0000 |
commit | c8a87639c7cb7aef72630978a0e5a0d92618140c (patch) | |
tree | 862068307dff135870c4ae58be677408c4942a39 /lisp/string.c | |
parent | 0a193e032ba1ecf3f003e027e833dc9d274cb740 (diff) |
merge latest (4.3.99.16) from XFree86 (vendor) branch
Diffstat (limited to 'lisp/string.c')
-rw-r--r-- | lisp/string.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/lisp/string.c b/lisp/string.c index 95952bd..457979f 100644 --- a/lisp/string.c +++ b/lisp/string.c @@ -27,12 +27,12 @@ * Author: Paulo César Pereira de Andrade */ -/* $XFree86: xc/programs/xedit/lisp/string.c,v 1.22 2002/12/04 05:27:58 paulo Exp $ */ +/* $XFree86: xc/programs/xedit/lisp/string.c,v 1.25 2003/05/27 22:27:04 tsi Exp $ */ -#include "helper.h" -#include "read.h" -#include "string.h" -#include "private.h" +#include "lisp/helper.h" +#include "lisp/read.h" +#include "lisp/string.h" +#include "lisp/private.h" #include <ctype.h> #define CHAR_LESS 1 @@ -549,9 +549,8 @@ Lisp_MakeString(LispBuiltin *builtin) long length; char *string, initial; - LispObj *size, *initial_element, *element_type; + LispObj *size, *initial_element; - element_type = ARGUMENT(2); initial_element = ARGUMENT(1); size = ARGUMENT(0); @@ -598,6 +597,12 @@ Lisp_ParseInteger(LispBuiltin *builtin) LispCheckSequenceStartEnd(builtin, ostring, ostart, oend, &start, &end, &length); string = THESTR(ostring); + if (oradix == UNSPEC) + radix = 10; + else { + CHECK_INDEX(oradix); + radix = FIXNUM_VALUE(oradix); + } if (radix < 2 || radix > 36) LispDestroy("%s: :RADIX %ld must be in the range 2 to 36", STRFUN(builtin), radix); @@ -725,10 +730,8 @@ Lisp_ReadFromString(LispBuiltin *builtin) LispObj *stream, *result; long length, start, end, bytes_read; - LispObj *ostring, *eof_error_p, *eof_value, - *ostart, *oend, *preserve_white_space; + LispObj *ostring, *eof_error_p, *eof_value, *ostart, *oend; - preserve_white_space = ARGUMENT(5); oend = ARGUMENT(4); ostart = ARGUMENT(3); eof_value = ARGUMENT(2); |