Insert const AFTER qualified type, to qualify pointers.
authorMatt Birkholz <matt@birkholz.chandler.az.us>
Thu, 18 Aug 2011 18:31:10 +0000 (11:31 -0700)
committerMatt Birkholz <matt@birkholz.chandler.az.us>
Thu, 18 Aug 2011 18:31:10 +0000 (11:31 -0700)
src/ffi/generator.scm

index 4c0ce24438ecbf1e8ba2920fab3fbcb52d54a5a8..bc4ae126a149475941659d461779a6ab175de6af 100644 (file)
@@ -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)