Skip to content

Commit

Permalink
adding asdf-install'able + package
Browse files Browse the repository at this point in the history
  • Loading branch information
Shetty authored and Naveen Sundar G committed May 7, 2010
1 parent 7aa67c3 commit a564356
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actors.lisp
@@ -1,4 +1,4 @@
(use-package :bordeaux-threads)
(in-package #:cl-actors)

; Create a behavior that can be attached to any actor
(defmacro behav (state vars &body body)
Expand Down Expand Up @@ -59,4 +59,4 @@
(defun pr (x) (print x #.*standard-output*))

;A printing actor
(defactor printer () (x) (pr x) next)
(defactor printer () (x) (pr x) next)
21 changes: 21 additions & 0 deletions cl-actors.asd
@@ -0,0 +1,21 @@
;;;;===========================================================================
;;;; @file cl-actors.asd
;;;; @author Nikhil Shetty <nikhil.j.shetty@gmail.com>
;;;; @date Thu May 6 00:19:07 2010
;;;;
;;;; @brief asdf-install package file for cl-actors
;;;;===========================================================================

(defpackage #:cl-actors-asd (:use #:asdf #:cl))
(in-package :cl-actors-asd)

(defsystem cl-actors
:author "Nikhil Shetty <nikhil.j.shetty@gmail.com>"
:version "1.0"
:licence "GPL"
:description ""
:depends-on ("bordeaux-threads")
:components ((:file "package")
(:file "actors" :depends-on ("package"))))


18 changes: 18 additions & 0 deletions package.lisp
@@ -0,0 +1,18 @@
;;;; --------------------------------------------------------------------------
;;;; @file package.lisp
;;;; @author Nikhil J. Shetty <nikhil.j.shetty@gmail.com>
;;;; @date Thu May 6 00:32:51 2010
;;;;
;;;; @brief Package definitions
;;;; --------------------------------------------------------------------------
(in-package #:cl-user)

(defpackage #:cl-actors
(:use #:cl
#:bordeaux-threads)
(:export :defactor
:next
:behav
:send
:stop-actor
:printer))

0 comments on commit a564356

Please sign in to comment.