Skip to content

Commit

Permalink
got rid of peer-info
Browse files Browse the repository at this point in the history
  • Loading branch information
vii committed Feb 23, 2009
1 parent 3cb8f39 commit c41c0c5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
14 changes: 7 additions & 7 deletions src/blog/entry.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
(time :initform (get-universal-time))
trace-details)

(defun split-into-paragraphs (str)
(match-split (progn #\Newline (* (or #\Space #\Tab #\Return)) #\Newline)
str))
(defun split-into-paragraphs-by-single-line (str)
(match-split #\Newline
str))

(my-defun comment 'object-to-ml ()
(<div :class "comment"
(<p :style (css-attrib :white-space "pre") (my text))
(loop for p in (split-into-paragraphs-by-single-line (my text)) do (<p p))

(<p :class "time" "Posted " (time-string (my time)) " by " (<span :class "author" (my author)))))

Expand All @@ -27,12 +33,6 @@
(output-object-to-ml
(my comments))))

(defun split-into-paragraphs (str)
(match-split (progn #\Newline (* (or #\Space #\Tab #\Return)) #\Newline)
str))
(defun split-into-paragraphs-by-single-line (str)
(match-split #\Newline
str))

(defun time-string (&optional (ut (get-universal-time)))
(multiple-value-bind
Expand Down
4 changes: 0 additions & 4 deletions src/io/peer-info.lisp

This file was deleted.

2 changes: 1 addition & 1 deletion src/io/posix-socket.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
(set-fd-nonblock s)
(make-con
:socket s
:peer-info (make-peer-info :address (cffi:foreign-slot-value sa 'sockaddr_in 'addr)))))))))
:peer-info (sockaddr-address-string sa))))))))


(defmethod socket-close ( (fd integer) )
Expand Down
3 changes: 1 addition & 2 deletions teepeedee2.asd
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@
(:module :io
:depends-on (:lib)
:components (
(:file "peer-info")
(:file "socket")
(:file "recvbuf" :depends-on ("socket"))
(:file "sendbuf" :depends-on ("socket" "syscalls"))
(:file "posix-socket" :depends-on ("syscalls" "socket" "con"))
(:file "con" :depends-on ("peer-info" "sendbuf" "recvbuf"))
(:file "con" :depends-on ("sendbuf" "recvbuf"))
(:file "mux" :depends-on ("con"))
(:file "epoll" :depends-on ("syscalls" "mux"))
(:file "syscalls")
Expand Down

0 comments on commit c41c0c5

Please sign in to comment.