Changeset 14386 in project


Ignore:
Timestamp:
04/23/09 06:03:51 (11 years ago)
Author:
Ivan Raikov
Message:

npdiff ported to Chicken 4

Location:
release/4/npdiff/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • release/4/npdiff/trunk/npdiff-eggdoc.scm

    r11209 r14386  
    99                  "and generate a script to transform one sequence into the other.")
    1010
    11      (author (url "http://chicken.wiki.br/ivan raikov" "Ivan Raikov"))
     11     (author (url "http://chicken.wiki.br/users/ivan-raikov" "Ivan Raikov"))
    1212
    1313     (history
     14      (version "1.9" "Ported to Chicken 4")
    1415      (version "1.8" "Added missing files to the file manifest")
    1516      (version "1.7" "Removed dependence on stack egg")
     
    167168))
    168169     (license
    169       "Copyright 2007 Ivan Raikov.
     170      "Copyright 2007-2009 Ivan Raikov.
    170171
    171172This program is free software: you can redistribute it and/or modify
  • release/4/npdiff/trunk/npdiff.meta

    r11208 r14386  
    1818 ; A list of eggs npdiff depends on.
    1919
    20  (needs eggdoc datatype)
     20 (needs eggdoc matchable datatype)
    2121
    2222 (eggdoc "npdiff-eggdoc.scm")
  • release/4/npdiff/trunk/npdiff.scm

    r11191 r14386  
    33;; Compute the longest common subsequence of two sequences
    44;;
    5 ;; Copyright 2007 Ivan Raikov
     5;; Copyright 2007-2009 Ivan Raikov.
    66;;
    77;; This program is free software: you can redistribute it and/or
     
    1818;; <http://www.gnu.org/licenses/>.
    1919
    20 
    21 (define-extension npdiff)
    22 
    23 
    24 (require-extension srfi-1)
    25 (require-extension srfi-4)
    26 (require-extension datatype)
    27 
    28 
    29 (declare (export diffop? Insert Remove Change
    30                  make-npdiff make-hunks))
     20(module npdiff
     21
     22 (export diffop? Insert Remove Change
     23         make-npdiff make-hunks)
     24                   
     25 (import scheme chicken data-structures  )
     26
     27 (require-extension srfi-1 srfi-4 datatype matchable )
    3128
    3229(include "box.scm")
     
    326323
    327324
     325)
  • release/4/npdiff/trunk/npdiff.setup

    r11210 r14386  
    11;; -*- Hen -*-
    2 
    3 (define has-exports? (string>=? (chicken-version) "2.310"))
    42
    53(define (dynld-name fn)         
    64  (make-pathname #f fn ##sys#load-dynamic-extension))   
    75
    8 (compile -O2 -d0 -s
    9          ,@(if has-exports? '(-check-imports -emit-exports npdiff.exports) '())
    10          npdiff.scm -lchicken -ldl -lm)
     6(compile -O2 -d0 -s npdiff.scm -j npdiff)
     7(compile -O2 -d0 -s npdiff.import.scm)
    118
    12 (run (csi -qbs npdiff-eggdoc.scm > npdiff.html))
     9(run (csi -s npdiff-eggdoc.scm > npdiff.html))
    1310
    1411(install-extension
     
    1815
    1916  ; Files to install for your extension:
    20   `(,(dynld-name "npdiff") "npdiff.html"
    21     ,@(if has-exports? '("npdiff.exports") (list)) )
    22 
     17  `(,(dynld-name "npdiff") ,(dynld-name "npdiff.import") )
    2318
    2419  ; Assoc list with properties for your extension:
    25   '((version 1.8)
     20  `((version 1.9)
    2621    (documentation "npdiff.html")
    27     ,@(if has-exports? `((exports "npdiff.exports")) (list)) ))
     22    ))
    2823
Note: See TracChangeset for help on using the changeset viewer.