Skip to content

Commit

Permalink
Add eval-when to the definition of TO-KEYWORD.
Browse files Browse the repository at this point in the history
  • Loading branch information
stassats committed May 7, 2008
1 parent d397ca5 commit 4e1733c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
14 changes: 7 additions & 7 deletions mpd.asd
@@ -1,14 +1,14 @@
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-

(defpackage #:mpd-asd
(:use :cl :asdf))

(in-package :mpd-asd)

(defsystem mpd
:name "mpd"
:description "MPD client"
:serial t
:depends-on (:usocket :cl-ppcre)
:components ((:file "package")
(:file "mpd")))
:name "mpd"
:description "MPD client"
:serial t
:depends-on (:usocket :cl-ppcre)
:components ((:file "package")
(:file "mpd")))
11 changes: 6 additions & 5 deletions mpd.lisp
@@ -1,15 +1,16 @@
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-

;;; This software is in the public domain and is
;;; provided with absolutely no warranty.
;; This software is in the public domain and is
;; provided with absolutely no warranty.

(in-package :mpd)

(defparameter *defualt-host* "localhost")
(defparameter *default-port* 6600)

(defun to-keyword (symbol)
(intern (string-upcase (string symbol)) :keyword))
(eval-when (:compile-toplevel)
(defun to-keyword (symbol)
(intern (string-upcase (string symbol)) :keyword)))

(defmacro make-class (name slots)
`(defclass ,name ()
Expand Down
2 changes: 1 addition & 1 deletion package.lisp
@@ -1,4 +1,4 @@
;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-

(in-package :cl-user)

Expand Down

0 comments on commit 4e1733c

Please sign in to comment.