summaryrefslogtreecommitdiff
path: root/lisp/string.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:12 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-25 19:29:12 +0000
commit10dc4a2c37597e02c12a9df3e9dba02a73bfc11b (patch)
tree862068307dff135870c4ae58be677408c4942a39 /lisp/string.c
parent8ae60bfe8a4b233100f5128859c76239e5789f70 (diff)
XFree86 4.3.99.16 Bring the tree up to date for the Cygwin folksxf86-4_3_99_16
Diffstat (limited to 'lisp/string.c')
-rw-r--r--lisp/string.c23
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);