/* Scheme In One Defun, but in C this time. * COPYRIGHT (c) 1988-1994 BY * * PARADIGM ASSOCIATES INCORPORATED, CAMBRIDGE, MASSACHUSETTS. * * See the source file SLIB.C for more information. * */ /* gjc@world.std.com gjc@paradigm.com Paradigm Associates Inc Phone: 617-492-6079 29 Putnam Ave, Suite 6 Cambridge, MA 02138 An example main-program call with some customized subrs. */ #include #include #include #ifdef THINK_C #include #endif #include "siod.h" static void init_siod_version(void) {setvar(cintern("*siod-version*"), cintern("$Id: sample.c,v 1.3 1997/05/16 02:19:41 gjc Exp $"), NIL);} LISP my_one; LISP my_two; LISP my_99; LISP my_0; LISP cfib(LISP x); LISP clooptest(LISP x,LISP f); static char *standard_fib = "\ \ (define (fib x) \ (if (< x 2) \ x \ (+ (fib (- x 1)) \ (fib (- x 2))))) "; int main(int argc,char **argv) {int j,xflag = 0,retval = 0; char *linebuffer = NULL,*ptr,*iobuff; print_welcome(); #ifdef THINK_C argc = ccommand(&argv); #endif for(j=1;j