fix incorrect handling of extern "C" in xform

svn: r6713
This commit is contained in:
Matthew Flatt 2007-06-21 08:40:38 +00:00
parent 1bae091b4a
commit 38f7ef41ed

View File

@ -1651,9 +1651,10 @@
(let ([name (tok-n (car e))]
[type (let loop ([t (reverse type)])
(if (pair? t)
(if (memq (tok-n (car t)) '(extern static virtual __stdcall __cdecl
inline _inline __inline __inline__
__xform_nongcing__))
(if (or (memq (tok-n (car t)) '(extern static virtual __stdcall __cdecl
inline _inline __inline __inline__
__xform_nongcing__))
(equal? "C" (tok-n (car t))))
(loop (cdr t))
(cons (car t) (loop (cdr t))))
t))]