소스 검색

changed upto-null back to func, since macro wasn't hygenic and I'm too lazy make it so

Mark VandenBrink 12 년 전
부모
커밋
21e1f0308f
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      utils.lisp

+ 3 - 2
utils.lisp

@@ -28,9 +28,10 @@
              (type (array (unsigned-byte 8) 1) array))
     (format nil "[~:d of ~:d bytes] <~x>" print-len len printable-array)))
 
-(defmacro upto-null (string)
+(declaim (inline upto-null))
+(defun upto-null (string)
   "Trim STRING to end at first NULL found"
-  `(subseq ,string 0 (position #\Null ,string)))
+  (subseq string 0 (position #\Null string)))
 
 (defun dump-data (file-name data)
   (with-open-file (f file-name :direction :output :if-exists :supersede :element-type '(unsigned-byte 8))