Re: [java-gnome-hackers] glib g_format_size_for_display()
Brought to you by:
afcowie
|
From: Andrew C. <an...@op...> - 2010-03-30 22:39:27
|
On Tue, 2010-03-30 at 21:06 +0200, Guillaume Mazoyer wrote:
> Can anyone let me know if everything is right? (that's my first codegen
> hack).
Yes everything looks fine. :)
I'm wondering if you need to add
(define-function format_size_for_display
(of-object "GlibMisc")
(c-name "g_format_size_for_display")
+ (caller-owns-return #t)
(return-type "char*")
(parameters
'("goffset" "size")
)
)
... yes you do.
See FunctionBlock's getCallerOwnsReturn() for the default and
StringThing's jniReturnCleanup() for the code that's output.
AfC
Melbourne
|