summaryrefslogtreecommitdiffstats
path: root/lib.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-03-25 07:36:32 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-03-25 07:36:32 -0700
commitfd82f588e3eadbe60b67d32f3a5ff8c4e7ffdea1 (patch)
tree2ef6939a5073724bb8fea5316cffbaa4c2487144 /lib.c
parentcf1ecfc1cb104ce29174c748e7a8567cd93ac8bb (diff)
downloadtxr-fd82f588e3eadbe60b67d32f3a5ff8c4e7ffdea1.tar.gz
txr-fd82f588e3eadbe60b67d32f3a5ff8c4e7ffdea1.tar.bz2
txr-fd82f588e3eadbe60b67d32f3a5ff8c4e7ffdea1.zip
lib: remove unnecessary braces in funcall FVM cases.
* lib.c (funcall, funcall1, funcall2, funcall3, funcall4): Remove unnecessary braces.
Diffstat (limited to 'lib.c')
-rw-r--r--lib.c40
1 files changed, 15 insertions, 25 deletions
diff --git a/lib.c b/lib.c
index 24b1371d..89f01344 100644
--- a/lib.c
+++ b/lib.c
@@ -7484,11 +7484,9 @@ val funcall(val fun)
} else {
switch (fun->f.functype) {
case FVM:
- {
- if (fun->f.fixparam != 0)
- break;
- return vm_funcall(fun);
- }
+ if (fun->f.fixparam != 0)
+ break;
+ return vm_funcall(fun);
case F0:
return fun->f.f.f0(fun->f.env);
case N0:
@@ -7536,11 +7534,9 @@ val funcall1(val fun, val arg)
} else {
switch (fun->f.functype) {
case FVM:
- {
- if (fun->f.fixparam != 1)
- break;
- return vm_funcall1(fun, z(arg));
- }
+ if (fun->f.fixparam != 1)
+ break;
+ return vm_funcall1(fun, z(arg));
case F1:
return fun->f.f.f1(fun->f.env, z(arg));
case N1:
@@ -7594,11 +7590,9 @@ val funcall2(val fun, val arg1, val arg2)
} else {
switch (fun->f.functype) {
case FVM:
- {
- if (fun->f.fixparam != 2)
- break;
- return vm_funcall2(fun, z(arg1), z(arg2));
- }
+ if (fun->f.fixparam != 2)
+ break;
+ return vm_funcall2(fun, z(arg1), z(arg2));
case F2:
return fun->f.f.f2(fun->f.env, z(arg1), z(arg2));
case N2:
@@ -7658,11 +7652,9 @@ val funcall3(val fun, val arg1, val arg2, val arg3)
} else {
switch (fun->f.functype) {
case FVM:
- {
- if (fun->f.fixparam != 3)
- break;
- return vm_funcall3(fun, z(arg1), z(arg2), z(arg3));
- }
+ if (fun->f.fixparam != 3)
+ break;
+ return vm_funcall3(fun, z(arg1), z(arg2), z(arg3));
case F3:
return fun->f.f.f3(fun->f.env, z(arg1), z(arg2), z(arg3));
case N3:
@@ -7728,11 +7720,9 @@ val funcall4(val fun, val arg1, val arg2, val arg3, val arg4)
} else {
switch (fun->f.functype) {
case FVM:
- {
- if (fun->f.fixparam != 4)
- break;
- return vm_funcall4(fun, z(arg1), z(arg2), z(arg3), z(arg4));
- }
+ if (fun->f.fixparam != 4)
+ break;
+ return vm_funcall4(fun, z(arg1), z(arg2), z(arg3), z(arg4));
case F4:
return fun->f.f.f4(fun->f.env, z(arg1), z(arg2), z(arg3), z(arg4));
case N4: