ansi pedantic cleanups for jni gtk-peer c files
Mark Wielaard
mark@klomp.org
Sat Apr 17 20:13:00 GMT 2004
Hi,
Here is a patch to resync the ansi, pedantic setup of GNU Classpath with
the JNI gtk-peer c files in libgcj. Some of this has already been
reported to this list. Since I didn't have a current libgcj checkout at
that time never made it into the tree.
2004-04-17 Mark Wielaard <mark@klomp.org>
* Makefile.am (PEDANTIC_CFLAGS): New -ansi -pedantic -Wall
-Wno-long-long flags variable.
(gtk_c_files): Use PEDANTIC_CFLAGS.
* Makefile.in: Regenerated.
* jni/classpath/jcl.c: Changed C++ comments into C comments. Removed
commented out code.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkCheckboxPeer.c: Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c: Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c: Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkFileDialogPeer.c: Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c: Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMenuPeer.c: Likewise.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkTextComponentPeer.c: Likewise.
* jni/gtk-peer/gthread-jni.c: Likewise.
(maybe_rethrow): Explicitly malloc and free buf.
The special PEDANTIC_CFLAGS setup as used in GNU Classpath is only
enforced on the jni gtk-peers C source files in libgcj. This should make
merging and syncing sources with GNU Classpath easier. Something similar
should probably also go onto the gui-branch (which I don't have checked
out, so someone else should do that).
OK, to commit?
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pedantic_cleanup.patch
Type: text/x-patch
Size: 18368 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040417/d80560ce/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040417/d80560ce/attachment.sig>
More information about the Java-patches
mailing list