Skip to content

Commit

Permalink
Moved all static exports into the package definition, in conformance …
Browse files Browse the repository at this point in the history
…to convention, and renamed the file containing the package declaration, also in conformance to convention.
  • Loading branch information
hargettp committed Jun 17, 2012
1 parent 84e86df commit da25392
Show file tree
Hide file tree
Showing 16 changed files with 74 additions and 116 deletions.
13 changes: 0 additions & 13 deletions cache.lisp
Expand Up @@ -20,19 +20,6 @@

(in-package :hh-web)

(export
(list

'get-cached-item
'make-fs-cache
'make-package-fs-cache
'create-file-cache-dispatcher-and-handler
'create-file-cache-dispatcher-and-handler-for-root
'create-package-file-cache-dispatcher-and-handler

)
)

;;;------------------------------------------------------------------------------------
;;; Dynamic variables
;;;------------------------------------------------------------------------------------
Expand Down
9 changes: 0 additions & 9 deletions cookies.lisp
Expand Up @@ -20,15 +20,6 @@

(in-package :hh-web)

(export
(list

'defcookie
'with-cookies

)
)

(defgeneric cookie-key (cookie)
(:documentation
"
Expand Down
2 changes: 1 addition & 1 deletion hh-web.asd
Expand Up @@ -26,7 +26,7 @@
:name "hh-web"
:version "0.01"
:serial t
:components ((:file "package-hh-web")
:components ((:file "package")
(:file "utils")
(:module "l10n"
:serial t
Expand Down
13 changes: 0 additions & 13 deletions l10n/i18n.lisp
Expand Up @@ -20,19 +20,6 @@

(in-package :hh-web)

(export `( _
set-locale
gettext
deflocale
get-localizable-strings
get-localization-contexts
get-available-locales
get-localizable-string-notes
get-string-localization
get-string-localization-notes
init-localization
*locale-package*))

;; -----------------------------------------------------------------------------
;;
;; Classes + types
Expand Down
3 changes: 0 additions & 3 deletions logs/categories.lisp
Expand Up @@ -20,9 +20,6 @@

(in-package :hh-web)

(export
(list 'stack-trace))

;;;------------------------------------------------------------------------------------
;;; Categories
;;;------------------------------------------------------------------------------------
Expand Down
11 changes: 0 additions & 11 deletions logs/hunchentoot.lisp
Expand Up @@ -20,17 +20,6 @@

(in-package :hh-web)

(export
(list

'http-access
'http-message

'log-http-access
'log-http-message

))

;;;------------------------------------------------------------------------------------
;;; Categories
;;;------------------------------------------------------------------------------------
Expand Down
3 changes: 0 additions & 3 deletions logs/misc.lisp
Expand Up @@ -20,9 +20,6 @@

(in-package :hh-web)

(export
(list 'use-backtrace-logging))

;;;------------------------------------------------------------------------------------
;;; Macros for standardized logging
;;;------------------------------------------------------------------------------------
Expand Down
7 changes: 0 additions & 7 deletions logs/outputs.lisp
Expand Up @@ -20,13 +20,6 @@

(in-package :hh-web)

(export
(list

'msg-timestamp

))

(log5:defoutput msg-timestamp
;; 10/Oct/2000:13:55:36 -0700
(format-timestring nil (now) :format +rfc-1123-format+))
7 changes: 0 additions & 7 deletions logs/rotating.lisp
Expand Up @@ -20,13 +20,6 @@

(in-package :hh-web)

(export
(list

'rotating-log-sender

))

;;;------------------------------------------------------------------------------------
;;; Log rotation
;;;------------------------------------------------------------------------------------
Expand Down
4 changes: 1 addition & 3 deletions meta/localeservices.lisp
Expand Up @@ -20,8 +20,6 @@

(in-package :hh-web)

(export `( locale-service ))

(defservice locale-service (:documentation "Service for editing locales usable by the application")
(:method create-locale
:documentation ""
Expand All @@ -43,4 +41,4 @@
(string-name "string")
(string-localization "localization")
(string-description "description")
(string-notes "notes"))))
(string-notes "notes"))))
72 changes: 72 additions & 0 deletions package-hh-web.lisp → package.lisp
Expand Up @@ -37,4 +37,76 @@
:wt)
(:export
;; Exported symbols go here

;; Caching
#:get-cached-item
#:make-fs-cache
#:make-package-fs-cache
#:create-file-cache-dispatcher-and-handler
#:create-file-cache-dispatcher-and-handler-for-root
#:create-package-file-cache-dispatcher-and-handler

;; Cookies
#:defcookie
#:with-cookies

;; Locales
#:_
#:set-locale
#:gettext
#:deflocale
#:get-localizable-strings
#:get-localization-contexts
#:get-available-locales
#:get-localizable-string-notes
#:get-string-localization
#:get-string-localization-notes
#:init-localization
#:*locale-package*
#:locale-service

;; Logging
#:stack-trace
#:http-access
#:http-message
#:log-http-access
#:log-http-message
#:use-backtrace-logging
#:msg-timestamp
#:rotating-log-sender

;; Server
#:create-web-server
#:run-web-server

;; Services
#:with-http-parameters
#:meta-service-request-p
#:http-get-p
#:http-post-p
#:http-put-p
#:http-delete-p
#:defservice
#:defservice-client
#:defservice-handler
#:service-url
#:service-client

;; Skeleton
#:make-skeleton

;; URLs
#:defurl
#:defurls
#:create-package-folder-dispatcher-and-handler
#:reset-urls
#:flush-url-category
#:dispatch-url-cache

;; User-agents
#:*user-agent-strings*
#:*enabled-user-agents*
#:*user-agent*
#:enabled-user-agents

))
9 changes: 0 additions & 9 deletions server.lisp
Expand Up @@ -20,15 +20,6 @@

(in-package :hh-web)

(export
(list

'create-web-server
'run-web-server

)
)

;;;------------------------------------------------------------------------------------
;;; Classes + types
;;;------------------------------------------------------------------------------------
Expand Down
20 changes: 0 additions & 20 deletions services.lisp
Expand Up @@ -20,26 +20,6 @@

(in-package :hh-web)

(export
(list

'with-http-parameters
'meta-service-request-p
'http-get-p
'http-post-p
'http-put-p
'http-delete-p

'defservice
'defservice-client
'defservice-handler

'service-url

'service-client

))

;;;------------------------------------------------------------------------------------
;;; Constants
;;;------------------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions skeleton.lisp
Expand Up @@ -20,8 +20,6 @@

(in-package :hh-web)

(export `(make-skeleton))

(defclass skeleton ()
((location :type (satisfies directory-pathname-p)
:initarg :location
Expand Down
13 changes: 0 additions & 13 deletions urls.lisp
Expand Up @@ -20,19 +20,6 @@

(in-package :hh-web)

(export
(list

'defurl
'defurls
'create-package-folder-dispatcher-and-handler
'reset-urls
'flush-url-category
'dispatch-url-cache

)
)

;;;------------------------------------------------------------------------------------
;;; Classes + types
;;;------------------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions useragents.lisp
Expand Up @@ -20,8 +20,6 @@

(in-package :hh-web)

(export `( *user-agent-strings* *enabled-user-agents* *user-agent* enabled-user-agents ))

(defvar *user-agent-strings*
(let ((new-user-agent-strings (make-hash-table)))
(macrolet ((user-agent-string (key string)
Expand Down

0 comments on commit da25392

Please sign in to comment.