projects
/
chise
/
xemacs-chise.git-
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(make_byte_table): Add new argument `older'.
[chise/xemacs-chise.git-]
/
src
/
data.c
diff --git
a/src/data.c
b/src/data.c
index
9cf8ff4
..
d4792d2
100644
(file)
--- a/
src/data.c
+++ b/
src/data.c
@@
-357,7
+357,7
@@
If non-nil, the return value will be a list whose first element is
*/
(subr))
{
*/
(subr))
{
- CONST char *prompt;
+ const char *prompt;
CHECK_SUBR (subr);
prompt = XSUBR (subr)->prompt;
return prompt ? list2 (Qinteractive, build_string (prompt)) : Qnil;
CHECK_SUBR (subr);
prompt = XSUBR (subr)->prompt;
return prompt ? list2 (Qinteractive, build_string (prompt)) : Qnil;
@@
-660,7
+660,7
@@
indirect_function (Lisp_Object object, int errorp)
}
if (errorp && UNBOUNDP (hare))
}
if (errorp && UNBOUNDP (hare))
- signal_void_function_error (object);
+ return signal_void_function_error (object);
return hare;
}
return hare;
}
@@
-770,7
+770,7
@@
ARRAY may be a vector, bit vector, or string. INDEX starts at 0.
{
CHECK_CHAR_COERCE_INT (newval);
if (idx >= XSTRING_CHAR_LENGTH (array)) goto range_error;
{
CHECK_CHAR_COERCE_INT (newval);
if (idx >= XSTRING_CHAR_LENGTH (array)) goto range_error;
- set_string_char (XSTRING (array), idx, XCHAR (newval));
+ set_string_char (XSTRING (array), idx, (unsigned char) XCHAR (newval));
bump_string_modiff (array);
}
else
bump_string_modiff (array);
}
else
@@
-1064,7
+1064,7
@@
Floating point numbers always use base 10.
p++;
#ifdef LISP_FLOAT_TYPE
p++;
#ifdef LISP_FLOAT_TYPE
- if (isfloat_string (p))
+ if (isfloat_string (p) && b == 10)
return make_float (atof (p));
#endif /* LISP_FLOAT_TYPE */
return make_float (atof (p));
#endif /* LISP_FLOAT_TYPE */
@@
-1620,8
+1620,8
@@
make_weak_list (enum weak_list_type type)
}
static const struct lrecord_description weak_list_description[] = {
}
static const struct lrecord_description weak_list_description[] = {
- { XD_LISP_OBJECT, offsetof(struct weak_list, list), 1 },
- { XD_LO_LINK, offsetof(struct weak_list, next_weak) },
+ { XD_LISP_OBJECT, offsetof (struct weak_list, list) },
+ { XD_LO_LINK, offsetof (struct weak_list, next_weak) },
{ XD_END }
};
{ XD_END }
};
@@
-2076,6
+2076,8
@@
init_errors_once_early (void)
void
syms_of_data (void)
{
void
syms_of_data (void)
{
+ INIT_LRECORD_IMPLEMENTATION (weak_list);
+
defsymbol (&Qquote, "quote");
defsymbol (&Qlambda, "lambda");
defsymbol (&Qlistp, "listp");
defsymbol (&Qquote, "quote");
defsymbol (&Qlambda, "lambda");
defsymbol (&Qlistp, "listp");