Passing booleans to external functions

From: David Fox <dsfox_at_cogsci.ucsd.edu>
Date: 21 Mar 1999 09:09:16 -0800

There seems to be a missing case in the function push_argument in
dynload.c:

diff -ru STk-3.99.4/Src/dynload.c~ STk-3.99.4/Src/dynload.c
--- STk-3.99.4/Src/dynload.c~ Thu Feb 25 09:26:37 1999
+++ STk-3.99.4/Src/dynload.c Sun Mar 21 08:50:50 1999
_at_@ -367,6 +367,9 @@
                            break;
                      }
                        goto Error;
+ case EXT_BOOLEAN: res = push_int(value == STk_ntruth ? 0 : 1);
+ break;
+
     case EXT_UINT: if (INTP(value)) {
                        res = push_int((unsigned int) STk_integer2ulong(value));
                            break;


-- 
David Fox           http://hci.ucsd.edu/dsf             xoF divaD
UCSD HCI Lab                                         baL ICH DSCU
Received on Sun Mar 21 1999 - 18:13:35 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST