projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a0134d
)
Insert const AFTER qualified type, to qualify pointers.
author
Matt Birkholz
<matt@birkholz.chandler.az.us>
Thu, 18 Aug 2011 18:31:10 +0000
(11:31 -0700)
committer
Matt Birkholz
<matt@birkholz.chandler.az.us>
Thu, 18 Aug 2011 18:31:10 +0000
(11:31 -0700)
src/ffi/generator.scm
patch
|
blob
|
history
diff --git
a/src/ffi/generator.scm
b/src/ffi/generator.scm
index 4c0ce24438ecbf1e8ba2920fab3fbcb52d54a5a8..bc4ae126a149475941659d461779a6ab175de6af 100644
(file)
--- a/
src/ffi/generator.scm
+++ b/
src/ffi/generator.scm
@@
-317,8
+317,8
@@
Scm_"name" (void)
(string-append (decl-string (ctype-pointer/target-type ctype))
" *"))
((ctype/const? ctype)
- (string-append
"const "
-
(decl-string (ctype-const/qualified-type ctype))
))
+ (string-append
(decl-string (ctype-const/qualified-type ctype))
+
" const"
))
((ctype/struct-name? ctype)
(string-append "struct " (symbol-name (ctype-struct/name ctype))))
((ctype/union-name? ctype)