summaryrefslogtreecommitdiff
path: root/src/composite.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2000-04-02 02:42:12 +0000
committerKen Raeburn <raeburn@raeburn.org>2000-04-02 02:42:12 +0000
commit2e97a539d7ff9ded593e9839105ea821fb0adb56 (patch)
tree2a7ec258412c2388076f5fd576a1859b42789ac4 /src/composite.c
parenta24a01b9f97558c1f870039d6e624f16fb3cafa2 (diff)
downloademacs-2e97a539d7ff9ded593e9839105ea821fb0adb56.tar.gz
* composite.c (run_composite_function): Use NILP when checking for nil.
(syms_of_composite): Delete local var NARGS, pass an int as first argument to Fmake_hash_table.
Diffstat (limited to 'src/composite.c')
-rw-r--r--src/composite.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/composite.c b/src/composite.c
index 335fbc103cf..440bce3b41f 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -456,7 +456,7 @@ run_composition_function (from, to, prop)
to = end;
if (!NILP (func))
call2 (func, make_number (from), make_number (to));
- else if (Ffboundp (Vcompose_chars_after_function))
+ else if (!NILP (Ffboundp (Vcompose_chars_after_function)))
call2 (Vcompose_chars_after_function,
make_number (from), make_number (to));
}
@@ -670,7 +670,7 @@ syms_of_composite ()
/* Make a hash table for composition. */
{
- Lisp_Object args[6], nargs;
+ Lisp_Object args[6];
extern Lisp_Object QCsize;
args[0] = QCtest;
@@ -679,8 +679,7 @@ syms_of_composite ()
args[3] = Qnil;
args[4] = QCsize;
args[5] = make_number (311);
- XSETINT (nargs, 6);
- composition_hash_table = Fmake_hash_table (nargs, args);
+ composition_hash_table = Fmake_hash_table (6, args);
staticpro (&composition_hash_table);
}