Changeset 2946
- Timestamp:
- 04/10/08 22:53:37 (7 months ago)
- Files:
-
- branches/bos/projects/bos/m2/m2.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/bos/projects/bos/m2/m2.lisp
r2892 r2946 239 239 :cert-issued nil 240 240 :expires (+ (get-universal-time) *manual-contract-expiry-time*))) 241 242 (defmethod print-object ((object contract) stream) 243 (print-unreadable-object (object stream :type t :identity nil) 244 (format stream "ID: ~D, ~A" 245 (store-object-id object) 246 (if (contract-paidp object) "paid" "unpaid")))) 241 247 242 248 (defun contract-p (object) … … 424 430 (error 'allocation-areas-exhausted :numsqm m2-count)) 425 431 contract)) 432 433 (defun contract-consistent-p (contract) 434 (labels ((m2-points-to-contract (m2) 435 (eq contract (m2-contract m2)))) 436 (let ((consistent t)) 437 (unless (every #'m2-points-to-contract (contract-m2s contract)) 438 (let ((*print-length* 5)) 439 (warn "~s of ~s dont point to it by M2-CONTRACT~ 440 ~%either those m2s are free or point to another contract~ 441 ~%the wrongly pointed to objs with duplicates removed are: ~s" 442 (remove-if #'m2-points-to-contract (contract-m2s contract)) 443 contract 444 (remove-duplicates (remove contract (mapcar #'m2-contract (contract-m2s contract)))))) 445 (setq consistent nil)) 446 consistent))) 426 447 427 448 (defvar *last-contracts-cache* nil)
