[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/fns.c [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/fns.c [lexbind] |
Date: |
Wed, 08 Dec 2004 18:57:14 -0500 |
Index: emacs/src/fns.c
diff -c emacs/src/fns.c:1.314.2.19 emacs/src/fns.c:1.314.2.20
*** emacs/src/fns.c:1.314.2.19 Wed Dec 8 23:31:37 2004
--- emacs/src/fns.c Wed Dec 8 23:36:22 2004
***************
*** 562,567 ****
--- 562,568 ----
struct textprop_rec *textprops = NULL;
/* Number of elments in textprops. */
int num_textprops = 0;
+ USE_SAFE_ALLOCA;
tail = Qnil;
***************
*** 670,677 ****
prev = Qnil;
if (STRINGP (val))
! textprops
! = (struct textprop_rec *) alloca (sizeof (struct textprop_rec) * nargs);
for (argnum = 0; argnum < nargs; argnum++)
{
--- 671,677 ----
prev = Qnil;
if (STRINGP (val))
! SAFE_ALLOCA (textprops, struct textprop_rec *, sizeof (struct
textprop_rec) * nargs);
for (argnum = 0; argnum < nargs; argnum++)
{
***************
*** 827,832 ****
--- 827,834 ----
last_to_end = textprops[argnum].to + SCHARS (this);
}
}
+
+ SAFE_FREE ();
return val;
}
***************
*** 3304,3310 ****
{
ans = Fdowncase (Fread_from_minibuffer (prompt, Qnil, Qnil, Qnil,
Qyes_or_no_p_history, Qnil,
! Qnil));
if (SCHARS (ans) == 3 && !strcmp (SDATA (ans), "yes"))
{
UNGCPRO;
--- 3306,3312 ----
{
ans = Fdowncase (Fread_from_minibuffer (prompt, Qnil, Qnil, Qnil,
Qyes_or_no_p_history, Qnil,
! Qnil, Qnil));
if (SCHARS (ans) == 3 && !strcmp (SDATA (ans), "yes"))
{
UNGCPRO;
- [Emacs-diffs] Changes to emacs/src/fns.c [lexbind],
Miles Bader <=