Changeset 20683 in project


Ignore:
Timestamp:
10/07/10 10:51:18 (8 years ago)
Author:
ckeen
Message:

linenoise: get rid of easyffi and use chicken core's foreign

Location:
release/4/linenoise/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • release/4/linenoise/trunk/linenoise.meta

    r19929 r20683  
    44 (maintainer "Christian Kellermann")
    55 (category "input/output")
    6  (license "BSD")
    7  (needs easyffi))
     6 (license "BSD"))
  • release/4/linenoise/trunk/linenoise.scm

    r19857 r20683  
    88  (import chicken scheme)
    99  (import foreign)
    10   (use easyffi)
    1110
    12 #>!
    13   #include "linenoise-src.c"
    14 <#
     11  (foreign-declare  "#include \"linenoise-src.c\"")
    1512
    16 (define history-add linenoiseHistoryAdd)
    17 (define set-history-length! linenoiseHistorySetMaxLen)
    18 (define load-history-from-file linenoiseHistoryLoad)
    19 (define save-history-to-file linenoiseHistorySave)
    20 
    21 )
     13  (define history-add (foreign-lambda int linenoiseHistoryAdd c-string))
     14  (define set-history-length! (foreign-lambda int linenoiseHistorySetMaxLen int))
     15  (define load-history-from-file (foreign-lambda int linenoiseHistoryLoad c-string))
     16  (define save-history-to-file (foreign-lambda int linenoiseHistorySave c-string))
     17  (define linenoise (foreign-lambda  c-string linenoise c-string)))
  • release/4/linenoise/trunk/linenoise.setup

    r18461 r20683  
    1 (compile -s -X easyffi -O2 linenoise.scm -j linenoise)
     1(compile -s -O2 linenoise.scm -j linenoise)
    22(compile -s -O2 linenoise.import.scm)
    33
Note: See TracChangeset for help on using the changeset viewer.