summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1997-09-04 06:30:27 +0000
committerRichard M. Stallman <rms@gnu.org>1997-09-04 06:30:27 +0000
commit4b5b91d185a45b86411c1eda638be1b38a73a7a6 (patch)
tree843ca6c71780ebe4d19661874ddbc99f942aacf3 /src
parent479ecc310de780017271173114e1dc00cdbe9bc0 (diff)
downloademacs-4b5b91d185a45b86411c1eda638be1b38a73a7a6.tar.gz
(Faset): Simplify a statement in the char-table case.
This is to help some compilers.
Diffstat (limited to 'src')
-rw-r--r--src/data.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/data.c b/src/data.c
index 942a4f4bed5..8b970959f9e 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1707,13 +1707,19 @@ IDX starts at 0.")
if (SUB_CHAR_TABLE_P (val))
array = val;
else
- /* VAL is a leaf. Create a sub char table with the
- default value VAL or XCHAR_TABLE (array)->defalt
- and look into it. */
- array = (XCHAR_TABLE (array)->contents[code[i]]
- = make_sub_char_table (NILP (val)
- ? XCHAR_TABLE (array)->defalt
- : val));
+ {
+ Lisp_Object temp;
+
+ /* VAL is a leaf. Create a sub char table with the
+ default value VAL or XCHAR_TABLE (array)->defalt
+ and look into it. */
+
+ temp = make_sub_char_table (NILP (val)
+ ? XCHAR_TABLE (array)->defalt
+ : val);
+ XCHAR_TABLE (array)->contents[code[i]] = temp;
+ array = temp;
+ }
}
XCHAR_TABLE (array)->contents[code[i]] = newelt;
}