From fece670ed494c787d0562489b058bb65219dfd36 Mon Sep 17 00:00:00 2001 From: Anthony Carrico Date: Wed, 10 Mar 2004 19:09:40 +0000 Subject: [PATCH] Changed to new package system. --- scsh/treaps/AUTHORS | 3 ++- scsh/treaps/NEWS | 5 +++++ scsh/treaps/{interfaces.scm => load.scm} | 11 +++++++++-- scsh/treaps/packages.scm | 6 ------ scsh/treaps/pkg-def.scm | 8 ++++++++ 5 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 scsh/treaps/NEWS rename scsh/treaps/{interfaces.scm => load.scm} (68%) delete mode 100644 scsh/treaps/packages.scm create mode 100644 scsh/treaps/pkg-def.scm diff --git a/scsh/treaps/AUTHORS b/scsh/treaps/AUTHORS index da8fee1..cb739a3 100644 --- a/scsh/treaps/AUTHORS +++ b/scsh/treaps/AUTHORS @@ -1 +1,2 @@ -Martin Gasbichler, Oleg Kiselyov +Copyright (c) 2001 Oleg Kiselyov +Copyright (c) 2003 Martin Gasbichler diff --git a/scsh/treaps/NEWS b/scsh/treaps/NEWS new file mode 100644 index 0000000..58f7916 --- /dev/null +++ b/scsh/treaps/NEWS @@ -0,0 +1,5 @@ +version 0.1 +* New package system. + +version 0.0 2001-10-26 +* Upstream from Oleg Kiselyov diff --git a/scsh/treaps/interfaces.scm b/scsh/treaps/load.scm similarity index 68% rename from scsh/treaps/interfaces.scm rename to scsh/treaps/load.scm index 9e76191..030e108 100644 --- a/scsh/treaps/interfaces.scm +++ b/scsh/treaps/load.scm @@ -7,9 +7,16 @@ treap-delete-min! treap-delete-max! treap-empty? - treap-depth + treap-depth treap-clear! - treap-put! + treap-put! treap-for-each-ascending treap-for-each-descending treap-debugprint debugprint)) + +(define-structure treaps treaps-interface + (open scheme + srfi-9 + srfi-23 + srfi-27) + (files treap)) diff --git a/scsh/treaps/packages.scm b/scsh/treaps/packages.scm deleted file mode 100644 index 53d1312..0000000 --- a/scsh/treaps/packages.scm +++ /dev/null @@ -1,6 +0,0 @@ -(define-structure treaps treaps-interface - (open scheme - srfi-9 - srfi-23 - srfi-27) - (files treap)) diff --git a/scsh/treaps/pkg-def.scm b/scsh/treaps/pkg-def.scm new file mode 100644 index 0000000..5039ca6 --- /dev/null +++ b/scsh/treaps/pkg-def.scm @@ -0,0 +1,8 @@ +(define-package "treaps" + (0 1) + () + (install-file "load.scm" 'base) + (install-file "README" 'doc) + (install-file "NEWS" 'doc) + (install-string (COPYING) "COPYING" 'doc) + (install-file "treap.scm" 'scheme))