File:  [gforth] / gforth / test / libcc.fs
Revision 1.1: download - view: text, annotated - select for diffs
Mon May 28 09:43:34 2007 UTC (14 years, 2 months ago) by anton
Branches: MAIN
CVS tags: HEAD
split test/libcc.fs from libcc.fs

    1: require libcc.fs
    2: 
    3: \c #include <string.h>
    4: \c #include <stdlib.h>
    5: 
    6: c-function strlen strlen a -- n
    7: c-function labs labs n -- n
    8: 
    9: \c #include <sys/types.h>
   10: \c #include <unistd.h>
   11: c-function dlseek lseek n d n -- d
   12: 
   13: cr s\" fooo\0" 2dup dump drop .s strlen cr .s drop cr 
   14: -5 labs .s drop cr

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>