1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 2edcbd958861 2012/05/30 03:34:52 toy $"
3 ;;; "f2cl2.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
4 ;;; "f2cl3.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
5 ;;; "f2cl4.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
6 ;;; "f2cl5.l,v 3fe93de3be82 2012/05/06 02:17:14 toy $"
7 ;;; "f2cl6.l,v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $"
8 ;;; "macros.l,v 3fe93de3be82 2012/05/06 02:17:14 toy $")
10 ;;; Using Lisp CMU Common Lisp 20d (20D Unicode)
12 ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
13 ;;; (:coerce-assigns :as-needed) (:array-type ':array)
14 ;;; (:array-slicing t) (:declare-common nil)
15 ;;; (:float-format double-float))
21 (declare (type (simple-string *) cb ca
))
22 (f2cl-lib:with-multi-array-data
23 ((ca character ca-%data% ca-%offset%
)
24 (cb character cb-%data% cb-%offset%
))
25 (prog ((inta 0) (intb 0) (zcode 0) (lsame nil
))
26 (declare (type f2cl-lib
:logical lsame
)
27 (type (f2cl-lib:integer4
) zcode intb inta
))
28 (setf lsame
(coerce (f2cl-lib:fstring-
= ca cb
) 'f2cl-lib
:logical
))
29 (if lsame
(go end_label
))
30 (setf zcode
(f2cl-lib:ichar
"Z"))
31 (setf inta
(f2cl-lib:ichar ca
))
32 (setf intb
(f2cl-lib:ichar cb
))
34 ((or (= zcode
90) (= zcode
122))
35 (if (and (>= inta
97) (<= inta
122))
36 (setf inta
(f2cl-lib:int-sub inta
32)))
37 (if (and (>= intb
97) (<= intb
122))
38 (setf intb
(f2cl-lib:int-sub intb
32))))
39 ((or (= zcode
233) (= zcode
169))
41 (or (and (>= inta
129) (<= inta
137))
42 (and (>= inta
145) (<= inta
153))
43 (and (>= inta
162) (<= inta
169)))
44 (setf inta
(f2cl-lib:int-add inta
64)))
46 (or (and (>= intb
129) (<= intb
137))
47 (and (>= intb
145) (<= intb
153))
48 (and (>= intb
162) (<= intb
169)))
49 (setf intb
(f2cl-lib:int-add intb
64))))
50 ((or (= zcode
218) (= zcode
250))
51 (if (and (>= inta
225) (<= inta
250))
52 (setf inta
(f2cl-lib:int-sub inta
32)))
53 (if (and (>= intb
225) (<= intb
250))
54 (setf intb
(f2cl-lib:int-sub intb
32)))))
55 (setf lsame
(coerce (= inta intb
) 'f2cl-lib
:logical
))
57 (return (values lsame nil nil
)))))
59 (in-package #:cl-user
)
60 #+#.
(cl:if
(cl:find-package
'#:f2cl
) '(and) '(or))
61 (eval-when (:load-toplevel
:compile-toplevel
:execute
)
62 (setf (gethash 'fortran-to-lisp
::lsame fortran-to-lisp
::*f2cl-function-info
*)
63 (fortran-to-lisp::make-f2cl-finfo
64 :arg-types
'((simple-string) (simple-string))
65 :return-values
'(nil nil
)