
(/VERSIONCHECK 2) 

(DEFPARAMETER |FileCategory;CAT| 'NIL) 

(DEFPARAMETER |FileCategory;AL| 'NIL) 

(DEFUN |FileCategory| (&REST #0=#:G1817)
  (LET (#1=#:G1818)
    (COND
      ((SETQ #1# (|assoc| #2=(|devaluateList| #0#) |FileCategory;AL|))
       (CDR #1#))
      (T (SETQ |FileCategory;AL|
               (|cons5| (CONS #2#
                              (SETQ #1# (APPLY #'|FileCategory;| #0#)))
                        |FileCategory;AL|))
         #1#)))) 

(DEFUN |FileCategory;| (|t#1| |t#2|)
  (PROG (#0=#:G1816)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1| |t#2|)
                             (LIST (|devaluate| |t#1|)
                                   (|devaluate| |t#2|)))
                       (COND
                         (|FileCategory;CAT|)
                         ('T
                          (LETT |FileCategory;CAT|
                                (|Join| (|SetCategory|)
                                        (|mkCategory| '|domain|
                                         '(((|open| ($ |t#1|)) T)
                                           ((|open|
                                             ($ |t#1| (|String|)))
                                            T)
                                           ((|reopen!|
                                             ($ $ (|String|)))
                                            T)
                                           ((|close!| ($ $)) T)
                                           ((|name| (|t#1| $)) T)
                                           ((|iomode| ((|String|) $))
                                            T)
                                           ((|read!| (|t#2| $)) T)
                                           ((|write!| (|t#2| $ |t#2|))
                                            T))
                                         NIL '((|String|)) NIL))
                                . #1=(|FileCategory|))))) . #1#)
        (SETELT #0# 0
                (LIST '|FileCategory| (|devaluate| |t#1|)
                      (|devaluate| |t#2|))))))) 
