[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/fns.c [emacs-unicode-2]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/src/fns.c [emacs-unicode-2] |
Date: |
Wed, 08 Dec 2004 00:48:32 -0500 |
Index: emacs/src/fns.c
diff -c emacs/src/fns.c:1.342.2.13 emacs/src/fns.c:1.342.2.14
*** emacs/src/fns.c:1.342.2.13 Fri Nov 19 06:54:57 2004
--- emacs/src/fns.c Wed Dec 8 05:02:19 2004
***************
*** 522,527 ****
--- 522,528 ----
struct textprop_rec *textprops = NULL;
/* Number of elments in textprops. */
int num_textprops = 0;
+ USE_SAFE_ALLOCA;
tail = Qnil;
***************
*** 630,637 ****
prev = Qnil;
if (STRINGP (val))
! textprops
! = (struct textprop_rec *) alloca (sizeof (struct textprop_rec) * nargs);
for (argnum = 0; argnum < nargs; argnum++)
{
--- 631,637 ----
prev = Qnil;
if (STRINGP (val))
! SAFE_ALLOCA (textprops, struct textprop_rec *, sizeof (struct
textprop_rec) * nargs);
for (argnum = 0; argnum < nargs; argnum++)
{
***************
*** 769,774 ****
--- 769,776 ----
last_to_end = textprops[argnum].to + SCHARS (this);
}
}
+
+ SAFE_FREE ();
return val;
}
***************
*** 2767,2773 ****
{
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;
--- 2769,2775 ----
{
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/src/fns.c [emacs-unicode-2],
Miles Bader <=