Fixing handling of [un]signed integer type names in the FFI.

This commit is contained in:
Alex Shinn 2012-07-13 06:48:13 +09:00
parent d669b8a788
commit 7e67460770

View file

@ -675,7 +675,7 @@
(case base (case base
((string env-string non-null-string) (if *c++?* "string" "char*")) ((string env-string non-null-string) (if *c++?* "string" "char*"))
((fileno) "int") ((fileno) "int")
(else (symbol->string base)))) (else (string-replace (symbol->string base) #\- " "))))
(define (type-struct-type type) (define (type-struct-type type)
(let ((type-spec (lookup-type(if (vector? type) (type-base type) type)))) (let ((type-spec (lookup-type(if (vector? type) (type-base type) type))))