OSDN Git Service

minor cleanup
authorSimon Forman <sforman@hushmail.com>
Sun, 5 Feb 2023 16:38:15 +0000 (08:38 -0800)
committerSimon Forman <sforman@hushmail.com>
Sun, 5 Feb 2023 16:38:15 +0000 (08:38 -0800)
implementations/C/joy.c

index 5235dfa..0dec122 100644 (file)
@@ -579,6 +579,16 @@ clear(JoyListPtr stack, __attribute__((unused)) JoyListPtr expression)
 
 
 void
+dup(JoyListPtr stack, __attribute__((unused)) JoyListPtr expression)
+{
+       JoyList s = *stack;
+       JoyList node = pop_any(stack);
+       *stack = s;
+       push_thing(node->head, stack);
+}
+
+
+void
 truthy(JoyListPtr stack, __attribute__((unused)) JoyListPtr expression)
 {
        /*
@@ -614,16 +624,6 @@ truthy(JoyListPtr stack, __attribute__((unused)) JoyListPtr expression)
 }
 
 
-void
-dup(JoyListPtr stack, __attribute__((unused)) JoyListPtr expression)
-{
-       JoyList s = *stack;
-       JoyList node = pop_any(stack);
-       *stack = s;
-       push_thing(node->head, stack);
-}
-
-
 JoyList def_abs_body;
 JoyList def_anamorphism_body;
 JoyList def_app1_body;