Changeset 152
- Timestamp:
- 05/14/06 13:56:19 (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/event.lisp ¶
r149 r152 130 130 (let* ((connection (connection message))) 131 131 (destructuring-bind 132 (nick chan- modechannel names)132 (nick chan-visibility channel names) 133 133 (arguments message) 134 (declare (ignore nick chan-visibility)) 135 ;; chan-visibility is (member '= '@ '*) 136 ;; '= == public 137 ;; '@ == secret 138 ;; '* == private 134 139 (let ((channel (find-channel connection channel))) 135 140 (unless (has-mode-p channel 'namreply-in-progress) … … 206 211 (channel &optional text) 207 212 arguments 213 (declare (ignore text)) 208 214 (let ((channel (find-channel connection channel)) 209 215 (user (find-user connection source))) … … 226 232 (target channel &rest mode-arguments) 227 233 arguments 228 (declare (ignore target))229 234 (let* ((channel (find-channel connection channel)) 230 235 (mode-changes 231 236 (when channel 232 (parse-mode-arguments connection channel arguments237 (parse-mode-arguments connection channel mode-arguments 233 238 :server-p (user connection))))) 234 239 (dolist (change mode-changes) … … 282 287 (channel nick &optional reason) 283 288 arguments 284 (declare (ignore arguments))289 (declare (ignore reason)) 285 290 (let* ((channel (find-channel connection channel)) 286 291 (user (find-user connection nick))) -
TabularUnified trunk/protocol.lisp ¶
r151 r152 261 261 262 262 (defmethod start-process (function name) 263 (declare (ignorable name)) 263 264 #+allegro (mp:process-run-function name function) 264 265 #+cmu (mp:make-process function :name name) … … 274 275 (do-loop () (read-message-loop connection))) 275 276 (let ((name (format nil "irc-hander-~D" (incf *process-count*)))) 277 (declare (ignorable name)) 276 278 #+(or allegro cmu lispworks sb-thread openmcl armedbear) 277 279 (start-process #'do-loop name) … … 293 295 (defun stop-background-message-handler (process) 294 296 "Stops a background message handler process returned by the start function." 297 (declare (ignorable process)) 295 298 #+cmu (mp:destroy-process process) 296 299 #+allegro (mp:process-kill process) -
TabularUnified trunk/utility.lisp ¶
r151 r152 122 122 (if non-blocking #'read-byte-no-hang #'read-byte) 123 123 (if non-blocking #'read-char-no-hang #'read-char))) 124 (limit- pos 0)124 (limit-vector (coerce limit '(vector * t))) 125 125 (targ-max (1- (length target))) 126 126 (limit-max (length limit)) 127 127 (limit-cur 0) 128 128 (targ-cur -1)) 129 (declare (optimize (speed 3) (debug 0))) 129 (declare (optimize (speed 3) (debug 0)) 130 (type fixnum targ-cur)) 130 131 ;; In SBCL read-char is a buffered operations (depending on 131 132 ;; stream creation parameters), so this loop should be quite efficient … … 136 137 else do 137 138 (setf (elt target (incf targ-cur)) next-elt) 138 (if (eql next-elt ( elt limitlimit-cur))139 (if (eql next-elt (aref limit-vector limit-cur)) 139 140 (incf limit-cur) 140 141 (setf limit-cur 0))
Note: See TracChangeset
for help on using the changeset viewer.