summaryrefslogtreecommitdiff
path: root/src/textprop.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-03-25 00:40:44 +0000
committerKarl Heuer <kwzh@gnu.org>1994-03-25 00:40:44 +0000
commited4f8fe66f3e2e0c1a415719552ec1cc3e1366e5 (patch)
tree661f3fc5d2976aa45116b3b9b1927426f03ced6e /src/textprop.c
parent0aed7a29ddbe98f3af3d28df4d927b94caec6041 (diff)
downloademacs-ed4f8fe66f3e2e0c1a415719552ec1cc3e1366e5.tar.gz
(add_properties, remove_properties): Use assignment, not initialization.
Diffstat (limited to 'src/textprop.c')
-rw-r--r--src/textprop.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/textprop.c b/src/textprop.c
index 0b328da308b..ca60c4d6524 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -341,8 +341,9 @@ add_properties (plist, i, object)
for (tail2 = i->plist; ! NILP (tail2); tail2 = Fcdr (Fcdr (tail2)))
if (EQ (sym1, Fcar (tail2)))
{
- register Lisp_Object this_cdr = Fcdr (tail2);
+ register Lisp_Object this_cdr;
+ this_cdr = Fcdr (tail2);
/* Found the property. Now check its value. */
found = 1;
@@ -396,10 +397,10 @@ remove_properties (plist, i, object)
INTERVAL i;
Lisp_Object object;
{
- register Lisp_Object tail1, tail2, sym;
- register Lisp_Object current_plist = i->plist;
+ register Lisp_Object tail1, tail2, sym, current_plist;
register int changed = 0;
+ current_plist = i->plist;
/* Go through each element of plist. */
for (tail1 = plist; ! NILP (tail1); tail1 = Fcdr (Fcdr (tail1)))
{
@@ -426,7 +427,8 @@ remove_properties (plist, i, object)
tail2 = current_plist;
while (! NILP (tail2))
{
- register Lisp_Object this = Fcdr (Fcdr (tail2));
+ register Lisp_Object this;
+ this = Fcdr (Fcdr (tail2));
if (EQ (sym, Fcar (this)))
{
if (XTYPE (object) == Lisp_Buffer)