Changeset 12

Show
Ignore:
Timestamp:
02/14/06 17:57:14 (3 years ago)
Author:
banderson
Message:

rest of changes/hacks for CL-XML to work with SBCL 0.9.8

Location:
branches/sbcl-0.9.x-testing
Files:
1 added
5 modified

Legend:

Unmodified
Added
Removed
  • branches/sbcl-0.9.x-testing/code/base/parameters.lisp

    r4 r12  
    7878(defVar *xml-base* nil 
    7979  "binds the base uri to serve as the context when resoving identifiers to URLs. 
    80    parsers bind it to each entity's url to enable rrealtive url references.") 
     80   parsers bind it to each entity's url to enable relative url references.") 
    8181 
    8282(defVar *xml-verbose* nil 
  • branches/sbcl-0.9.x-testing/library/de/setf/utility/conditions.lisp

    r4 r12  
    2424;; patch restrictive condition implementations 
    2525 
     26#+(and sbcl sb-package-locks) 
     27(sb-ext:unlock-package :cl) 
     28 
    2629(let ((def (fdefinition 'SIMPLE-CONDITION-FORMAT-ARGUMENTS))) 
    2730  (unless (typep def 'generic-function) 
     
    4750        (:method ((condition t)) (funcall def condition)))))) 
    4851 
     52#+(and sbcl sb-package-locks) 
     53(sb-ext:lock-package :cl) 
    4954 
    5055;; 
  • branches/sbcl-0.9.x-testing/library/define-system.lisp

    r4 r12  
    1919  (pathname-type (compile-file-pathname (make-pathname :name "source" :type *physical-source-type*)))) 
    2020 
    21 #+sbcl 
    22 (setq sb-fasl:*fasl-file-type* "sbcfsl") 
    2321 
    2422(defMacro define-system ((name &key description) (&rest operations) &body files) 
     
    9997   #'(lambda (filename src bin probed-src probed-bin) 
    10098       (if probed-src 
    101          (defsys-message *trace-output* 
    102            "~%; ~s~@[ (@ ~/print-universal-time/)~] -> ~s (~:[missing~;~1:*@ ~/print-universal-time/~])..." 
    103            probed-src (file-write-date probed-src) bin (when probed-bin (file-write-date probed-bin))) 
    104          (warn "file missing: ~s (= ~s)." filename src))) 
     99           (defsys-message *trace-output* 
     100               "~%; ~s~@[ (@ ~/print-universal-time/)~] -> ~s (~:[missing~;~1:*@ ~/print-universal-time/~])..." 
     101             probed-src (file-write-date probed-src) bin (when probed-bin (file-write-date probed-bin))) 
     102           (warn "file missing: ~s (= ~s)." filename src))) 
    105103   filename)) 
    106104 
  • branches/sbcl-0.9.x-testing/load.lisp

    r4 r12  
    33(in-package :CL-USER) 
    44 
    5 ;;; load configuration without CL-HTTP and with name symbols: 
     5;; FIXME: sbcl/clc only right now  BSA 
     6(let ((path "/usr/share/common-lisp/source/cl-xml/")) 
    67 
    7 #+CL-HTTP 
    8 (cerror "continue load." 
    9         "this is intended to load a configuration without CL-HTTP, yet CL-HTTP is present.") 
     8;; (or (when *load-truename* 
     9;;                (directory-namestring *load-truename*) ) 
     10;;              *default-pathname-defaults*))) 
    1011 
    11 (load (merge-pathnames (make-pathname :name "define-system" :directory '(:relative "library")) 
    12                        *load-pathname*)) 
    13  
    14 (register-system-definition :xparser (merge-pathnames (make-pathname :name "sysdcl") *load-pathname*)) 
    15  
    16 (pushnew :xml-symbols *features*) 
    17 (setf *features* (remove :nameset-tokenizer *features*)) 
    18 (execute-system-operations :xparser '(:compile :load)) 
    19  
    20 (format *trace-output* "~%cl xml loaded:~%~s" *features*) 
    21  
    22 ;(execute-system-operations :xtests '( :load)) 
    23  
    24 :EOF 
     12;;  (format t "~%~%path: ~a~%~%" path) 
     13  (format t "~%~%path: ~a~%~%" (merge-pathnames (make-pathname :name "sysdcl") path)) 
     14   
     15  (register-system-definition :xparser  
     16                              (merge-pathnames  
     17                               (make-pathname :name "sysdcl") 
     18                               path)) 
     19  (execute-system-operations :xparser '(:compile :load)) 
     20   
     21  (register-system-definition :xpath  
     22                              (merge-pathnames  
     23                               (make-pathname :name "sysdcl") 
     24                               path)) 
     25  (execute-system-operations :xpath '(:compile :load))) 
  • branches/sbcl-0.9.x-testing/sysdcl.lisp

    r4 r12  
    8686           #+cormanlisp #p"d:\\Source\\Lisp\\XML-0-918\\sysdcl.lisp" 
    8787           #+lispWorks (truename (lw:current-pathname)) 
    88            #+sbcl (or *load-truename* *load-pathname*) 
    89            ) 
     88           #+(and sbcl (not asdf)) (or *compile-file-pathname* *load-pathname* *default-pathname-defaults*) 
     89           #+(and sbcl asdf) (format nil "~acl-xml/" clc::*source-root*)) 
    9090         (bin-target nil) 
    9191         (root-target (make-pathname :name :wild :type :wild :version :newest 
     
    101101                         :version :newest 
    102102                         :defaults 
    103                          #+digitool "xml:root;bin;digifasl;**;*.*.*" 
    104                          #+(and mcl m68k) "xml:root;bin;digim68kfasl;**;*.*.*" 
    105                          #+(and allegro allegro-version>= (not (version>= 6 0))) "xml:root;bin;acl5fasl;**;*.*.*" 
    106                          #+(and allegro allegro-version>= (version>= 6 0)) "xml:root;bin;acl6fasl;**;*.*.*" 
    107                          #+(and lispworks (not mac)) "xml:root;bin;lwfasl;**;*.*.*" 
    108                          #+(and lispworks mac) "xml:root;bin;lwppcfasl;**;*.*.*" 
    109                          #+cormanlisp "xml:root;bin;corfasl;**;*.*.*" 
    110                          #+openmcl "xml:root;bin;omclfasl;**;*.*.*" 
    111                          #+cmu "xml:root;bin;cmuclfasl;**;*.*.*" 
    112                          #+sbcl "xml:root;bin;sbclfasl;**;*.*.*" 
     103;;                       #-asdf 
     104;;                       (progn 
     105                           #+digitool "xml:root;bin;digifasl;**;*.*.*" 
     106                           #+(and mcl m68k) "xml:root;bin;digim68kfasl;**;*.*.*" 
     107                           #+(and allegro allegro-version>= (not (version>= 6 0))) "xml:root;bin;acl5fasl;**;*.*.*" 
     108                           #+(and allegro allegro-version>= (version>= 6 0)) "xml:root;bin;acl6fasl;**;*.*.*" 
     109                           #+lispworks "xml:root;bin;lwfasl;**;*.*.*" 
     110                           #+cormanlisp "xml:root;bin;corfasl;**;*.*.*" 
     111                           #+openmcl "xml:root;bin;omclfasl;**;*.*.*" 
     112                           #+cmu "xml:root;bin;cmuclfasl;**;*.*.*" 
     113                           #+sbcl "xml:root;bin;sbclfasl;**;*.*.*" 
     114;;                         ) 
     115;;                       #+asdf 
     116;;                       (progn 
     117;;                         (if (find-package :clc) 
     118;;                             (format nil "~acl-xml/bin/" clc::*fasl-root*) 
     119;;                             "xml:root;bin;sbclfasl;**;*.*.*")) ;; FIXME for non clc 
    113120                         )) 
    114121    (when *load-verbose* 
     
    194201 
    195202#+sbcl 
    196 (progn 
    197   (require :gray-streams) 
    198   (setq *inline-expansion-limit* 2) 
    199   ) 
    200  
    201 #+ccl-5-0-and-0-918 
    202 (setq CCL::*CHECK-SLOT-TYPE* nil) 
     203(setq *inline-expansion-limit* 2) 
     204 
     205#|#+ccl ; 0.918 in 5.0b 
     206(setq CCL::*CHECK-SLOT-TYPE* nil)|# 
     207 
    203208;; the atn-bnf parser must be loaded in order to translate grammars, 
    204209;; for regular expressions, and for validation. this is reflected in it presence