r4737: Auto commit for Debian build
[umlisp.git] / class-support.lisp
index abf2cc6475901197ecae3a0a3fc1ca5feab798c3..05b29941f5a3d94a6447918787a66f364a6e4b62 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2000
 ;;;;
-;;;; $Id: class-support.lisp,v 1.1 2003/03/29 04:12:32 kevin Exp $
+;;;; $Id: class-support.lisp,v 1.2 2003/05/02 05:37:16 kevin Exp $
 ;;;;
 ;;;; This file, part of UMLisp, is
 ;;;;    Copyright (c) 2000-2002 by Kevin M. Rosenberg, M.D.
 (define-lookup-display display-term #'find-uterm-lui)
 (define-lookup-display display-str #'find-ustr-sui)
 
+(defun ucon-has-tui (ucon tui)
+  "Returns T if UCON has a semantic type of TUI."
+  (some #'(lambda (usty) (= tui (tui usty))) (s#sty ucon)))
+
 #+(or scl cmu)
 (dolist (c '(urank udef usat uso ucxt ustr ulo uterm usty urel ucoc uatx ucon uxw uxnw uxns lexterm labr lagr lcmp lmod lnom lprn lprp lspl ltrm ltyp lwd sdef sstr sstre1 sstre2 usrl))
     #+cmu