projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7685a7c
)
avoid warning in generated jna code
author
Matthias Braun
<matze@braunis.de>
Wed, 13 Oct 2010 14:59:07 +0000
(14:59 +0000)
committer
Matthias Braun
<matze@braunis.de>
Wed, 13 Oct 2010 14:59:07 +0000
(14:59 +0000)
[r28117]
wrappergen/write_jna.c
patch
|
blob
|
history
diff --git
a/wrappergen/write_jna.c
b/wrappergen/write_jna.c
index
b0e6fcb
..
2285206
100644
(file)
--- a/
wrappergen/write_jna.c
+++ b/
wrappergen/write_jna.c
@@
-103,7
+103,7
@@
static void write_pointer_type(const pointer_type_t *type)
}
if (is_type_pointer(points_to)) {
/* hack... */
- fputs("Buffer", out);
+ fputs("
java.nio.
Buffer", out);
return;
}
fputs("Pointer", out);
@@
-446,7
+446,6
@@
void write_jna_decls(FILE *output, const translation_unit_t *unit)
fprintf(out, "/* WARNING: Automatically generated file */\n");
fputs("import com.sun.jna.Native;\n", out);
fputs("import com.sun.jna.Pointer;\n", out);
- fputs("import java.nio.Buffer;\n", out);
fputs("\n\n", out);
/* TODO: where to get the name from? */