Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
attila-lendvai committed Oct 2, 2009
1 parent 9713d7b commit 7f68609
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/local-time.lisp
Expand Up @@ -1027,6 +1027,10 @@ elements."
(assert success? () "sb-unix:unix-gettimeofday reported failure?!")
(values sec (* 1000 nsec))))
#+(and ccl (not windows))
;; this whole voodoo here is because of a bug in LispWorks, namely its reader chokes on #_ inside a #+ccl
;; see mail "darcs patch: Work with Lispworks" on local-time-devel at 2009.03.23.
;; and mail "darcs patch: Less intrusive version of the Lispworks patch for #_." at 2009.03.24.
;; TODO get rid of this eventually... this all should be a mere (#_gettimeofday tv (ccl::%null-ptr))
(ccl::rlet ((tv :timeval))
(#.(let ((ccl-external-func (get-dispatch-macro-character #\# #\_)))
(when ccl-external-func
Expand All @@ -1048,6 +1052,7 @@ elements."

(defun today ()
"Returns a timestamp representing the present day."
;; TODO should return a date value, anyhow we will decide to represent it eventually
(timestamp-minimize-part (now) :hour))

(defmacro %defcomparator (name &body body)
Expand Down

0 comments on commit 7f68609

Please sign in to comment.