| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c,
* native/jni/java-net/gnu_java_net_VMPlainDatagramSocketImpl.c:
Added __attribute__((__unused__)) macros to avoid gcc warnings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* vm/reference/gnu/java/net/VMPlainSocketImpl.java: New VM class.
* vm/reference/gnu/java/net/VMPlainDatagramSocketImpl.java:
New VM class.
* native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c: New file.
* native/jni/java-net/gnu_java_net_VMPlainDatagramSocketImpl.c:
New file.
* native/jni/java-net/gnu_java_net_PlainDatagramSocketImpl.c:
Removed.
* native/jni/java-net/gnu_java_net_PlainSocketImpl.c: Removed.
* native/jni/java-net/Makefile.am: Adjusted for new source files.
* gnu/java/net/PlainDatagramSocketImpl.java: Use new VM interface.
* gnu/java/net/PlainSocketImpl.java: Use new VM interface.
* include/gnu_java_net_PlainDatagramSocketImpl.h: Removed.
* include/gnu_java_net_PlainSocketImpl.h: Removed.
* include/gnu_java_net_VMPlainDatagramSocketImpl.h: New header file.
* include/gnu_java_net_VMPlainSocketImpl.h: New header file.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-01-04 Dalibor Topic <robilad@kaffe.org>
* configure.ac: Added AX_CREATE_STDINT_H
* include/Makefile.am (DISTCLEANFILES): Remove config-int.h.
* m4/ax_create_stdint_h.m4: New file.
* native/fdlibm/mprec.h: Include config-int.h. Removed C99
typedefs. Removed stdint.h and inttypes.h includes.
|
|
|
|
|
|
|
|
| |
* native/jni/qt-peer/mainqtthread.cpp: Remove call to disable double
buffering. Ability has gone in Qt-4.1.x.
* configure.ac (QT_CFLAGS): Check for 4.1.0 version and for QtCore
to have the right include flags.
|
|
|
|
|
|
|
| |
2005-12-19 Dalibor Topic <robilad@kaffe.org>
* native/fdlibm/mprec.h (DEBUG): Include stdlib.h for
exit() prototype to fix compiler warning.
|
| |
|
|
|
|
|
|
|
|
|
| |
* native/fdlibm/namespace.h: Regenerated.
* native/fdlibm/fdlibm.h
(isnan): Define explicitly isnan if it is not a macro.
* scripts/math_symbols: Removed isnan.
|
|
|
|
|
|
|
|
|
| |
* native/fdlibm/mprec.h, native/fdlibm/fdlibm.h: Added the
inclusion of namespace.h
* native/fdlibm/namespace.h: New file.
* scripts/build_mathnamespace, scripts/math_symbols: New files.
|
|
|
|
|
| |
* native/jni/java-nio/java_nio.c
Removed obsolete file.
|
|
|
|
|
| |
* native/jni/classpath/jcl.c:
Only redefine __attribute__ if it's not already defined.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphics.java
(cached): New field.
(parent): New field.
(GdkGraphics(GdkGraphics)): Moved state-copy code to new method
copyState().
(create): Added re-use of old graphics.
(nativeDispose): Renamed native dispose method to nativeDispose().
(dispose): New non-native implementation used for caching.
(finalize): Overridden to correctly dispose unused graphics.
(copyState): New non-native method to correctly copy the non-native
state.
(nativeCopyState): Renamed native copyState method to
nativeCopyState().
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
(copyState): Renamed to nativeCopyState.
(dispose): Renamed to nativeDispose.
* include/gnu_java_awt_peer_gtk_GdkGraphics.h
(copyState): Renamed to nativeCopyState.
(dispose): Renamed to nativeDispose.
|
|
|
|
|
| |
* native/fdlibm/ieeefp.h: Fixed detection of big endian on
powerpc.
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/java-io/javaio.c, native/jni/java-io/javaio.h:
Removed.
* native/jni/java-io/java_io_VMFile.c: Removed dependency on
javaio.h
* native/jni/java-nio/gnu_java_nio_channels_FileChannelImpl.c:
Likewise.
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c:
Fixed typo.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
(drawString): Changed pointer to be const, and fixed check to
draw characters only if they are >= ' '. Handles all control
characters.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkSelection.c
(clipboard_targets_received): DeleteLocalRef of NewStringUTF.
(clipboard_text_received): Likewise.
(clipboard_uris_received): Likewise.
|
|
|
|
|
|
|
| |
(current_selection): Define as gint.
(clipboard_clear_func): Extract user_data with GPOINTER_TO_INT.
(Java_gnu_java_awt_peer_gtk_GtkClipboard_advertiseContent):
Convert current_selection with GINT_TO_POINTER.
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
(save_to_stream): Added missing DeleteLocalRef call.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c
(nativeGetFontFamilies): Added missing DeleteLocalRef calls.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkPixbufDecoder.c
(query_formats): Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
(append): Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkListPeer.c
(append): Likewise.
* native/jni/qt-peer/qtmenupeer.cpp (runEvent): Likewise.
|
|
|
|
|
|
|
|
|
|
| |
PR 24937
* gnu/java/awt/peer/gtk/GdkGraphics.java
(drawString): Removed pattern matching code. This is now
done in native.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics_drawString): Added
a loop to filter out all non-printing characters.
|
|
|
|
|
|
|
|
|
|
| |
Fixes PR classpath/PR24754
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(Java_gnu_java_awt_peer_gtk_GdkFontPeer_getTextMetrics): Fixed width
for the case where there is more than one line in the layout's text.
Otherwise, the width of the layout would be returned, which is the
max width of all the lines in the text. A loop was added to get the
extent of all the lines and add them together.
|
|
|
|
| |
* native/jni/xmlj/xmlj_util.h (XMLJ_64BIT_POINTER): Removed.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_gdkDrawDrawable):
Added check to determine if dst->drawable or src->drawable
are actually drawable. If not, return.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(Java_gnu_java_awt_peer_gtk_GtkWindowPeer_gtkWindowSetResizable):
Needed to set allow_shrink to the same value as resizable. Other-
wise, it is always set to false.
|
|
|
|
|
|
|
| |
* native/jni/java-lang/java_lang_VMDouble.c (initIDs): Register
clsDouble as global ref.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
(gtkInit): Register gtkgenericpeer as global ref.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(gtkWindowGetLocationOnScreen): Added declaration
for native function.
(getLocationOnScreen): Changed to handle 2 different cases.
If the component is a window, gtkWindowGetLocationOnScreen is
called; otherwise, gtkWidetGetLocationOnScreen.
* include/gnu_java_awt_peer_gtk_GtkComponentPeer.h:
Added signature for new function Java_gnu_java_awt_peer_
gtk_GtkComponentPeer_gtkWindowGetLocationOnScreen.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen):
Implemented.
|
|
|
|
|
| |
* native/jni/midi-alsa/.cvsignore: New file.
* lib/.cvsignore: Updated.
|
|
|
|
|
|
| |
* configure.ac (dssi): Change accidental alsa reference to dssi.
* native/jni/midi-dssi/Makefile.am (libgjsmdssi_la_SOURCES): Add
dssi_data.h.
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c
(initStaticState): Register global variable glyphVector_class
as global reference.
|
|
|
|
|
|
|
| |
Fixes bug #24467
* native/jni/java-nio/gnu_java_nio_charset_iconv_IconvDecoder.c
(Java_gnu_java_nio_charset_iconv_IconvDecoder_decode):
Do not check errno == EINVAL, which is a normal case.
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkClipboard.c:
Use long for 64-bit architectures.
|
|
|
|
|
| |
* native/jni/gtk-peer/Makefile.am: Remove FREETYPE2_LIBS and
FREETYPE2_CFLAGS.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_setGradientUnlocked): Update
debug output to reflect actual situation.
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_setTexturePixelsUnlocked):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_drawPixels): Adjust
formatting.
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoSetMatrixUnlocked):
Update debug output to reflect actual situation.
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoSetRGBAColorUnlocked):
Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoCurveTo): Adjust
formatting.
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoRelCurveTo): Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoRectangle): Likewise.
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_cairoSurfaceSetFilterUnlocked):
Update debug output to reflect actual situation.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen):
Call gdk_window_get_root_origin instead of gdk_window_get_origin
so that the window decorations are correctly respected.
|
|
|
|
|
|
|
|
|
|
| |
2005-10-24 Dalibor Topic <robilad@kaffe.org>
* native/jni/classpath/primlib.c,
native/jni/classpath/primlib.h: Removed since unused.
* native/jni/classpath/Makefile.am: (libclasspath_la_SOURCES)
Removed primlib.c and primlib.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Added support for "--with-native-libdir" and
"--with-glibj-dir". Generate copy-vmresources.sh
* lib/Makefile.am: Call copy-vmresources.sh to fetch possible vm
resources from the vmdirs.
* lib/copy-vmresources.sh.in: New script file.
* lib/gen-classlist.sh.in: Include com/ as base package for the
vm directories.
* native/jawt/Makefile.am,
native/jni/gtk-peer/Makefile.am,
native/jni/java-io/Makefile.am,
native/jni/java-lang/Makefile.am,
native/jni/java-net/Makefile.am,
native/jni/java-nio/Makefile.am,
native/jni/java-util/Makefile.am,
native/jni/midi-alsa/Makefile.am,
native/jni/midi-dssi/Makefile.am,
native/jni/qt-peer/Makefile.am,
native/jni/xmlj/Makefile.am: Install libraries in nativelibdir
and not pkglib.
|
|
|
|
|
|
|
| |
* configure.ac: Also check for pangoft2 without cairo and
additionally check for freetype2.
* native/jni/gtk-peer/Makefile.am: Added X, pangoft2 and
freetype2 CFLAGS and LDFLAGS.
|
|
|
|
|
| |
* native/jni/midi-alsa/.cvsignore,
native/jni/midi-dssi/.cvsignore: New files
|
|
|
|
|
|
| |
* native/jni/java-lang/java_lang_VMProcess.c
(Java_java_lang_VMProcess_nativeSpawn): Don't delete clazz local
reference twice.
|
|
|
|
|
| |
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
(process): call run_multiple_synths if required.
|
|
|
|
|
|
| |
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_open_1): Attempt
to connect to the jack server automatically. Fail gracefully.
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/sound/midi/dssi/DSSISynthesizer.java (loadInstrument):
Implement.
(selectProgram_): New native method.
* include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h: Rebuilt.
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
(selectProgram_): New function.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/sound/midi/dssi/DSSISynthesizer.java
Doc cleanups.
(DSSISynthesizer.DSSISoundbank): New class.
(DSSISynthesizer.DSSIInstrument): New class.
(soundbanks, defaultSoundbank): New fields.
(getDefaultSoundbank): Implemented.
(getAvailableInstruments): Implemented.
(getProgramName_, getProgramBank_, getProgramProgram_): New native
methods.
(DSSISynthesizer): Create default soundbank.
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_getProgramName_1,
Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_getProgramBank_1,
Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_getProgramProgram_1):
New functions.
* include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h: Rebuilt.
|
|
|
|
|
|
| |
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_open_1): Ignore
controllers that aren't mapped to MIDI controls.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* INSTALL: Describe midi provider dependencies.
* native/jni/midi-dssi/README: New file.
* LICENSE (terms): Add notice about code copied from the DSSI
distribution.
* examples/gnu/classpath/examples/midi/Demo.java: New file.
* native/jni/midi-dssi/dssi_data.h (dssi_data): Add control_count,
control_port_map, control_value_map, sample_rate, and
control_values fields.
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
(DEBUG_DSSI_PROVIDER): New macro.
(get_port_default): New function.
(set_control): New function.
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_open_1): Remove
debug output. Reformat. Allocate the control ports and assign
proper default values.
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_noteOn_1): Use
JLONG_TO_PTR.
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_noteOff_1): Ditto.
* gnu/javax/sound/midi/dssi/DSSISynthesizer.java
(Channel.controlChange): Implement.
(controlChange_): New native method.
* include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h: Rebuilt.
* gnu/javax/sound/midi/alsa/AlsaMidiSequencerDevice.java: Make
instance final.
|
|
|
|
|
|
|
|
|
| |
* m4/acattribute.m4: Added.
* configure.ac: Added AC_C_ATTRIBUTE.
* native/fdlibm/java-assert.h: Added missing config.h include,
changed comments to C comments.
* native/jni/java-lang/java_lang_reflect_Array.c: Added missing
config.h include.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c
(process): Add comments. Remove unused gettimeofday call.
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_open_1): Remove
debug output. Add comments.
(Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_noteOn_1,
Java_gnu_javax_sound_midi_dssi_DSSISynthesizer_noteOff_1): Add
comments. Remove bogus __attribute__((unused)).
* native/jni/midi-dssi/dssi_data.h (JLONG_TO_PTR, PTR_TO_JLONG):
Document helper macros.
(dssi_data): Document.
* native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.c:
Formatting fixes.
* native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaPortDevice.c
(Java_gnu_javax_sound_midi_alsa_AlsaPortDevice_run_1receiver_1thread_1):
Remove debugging output.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/Makefile.am: Maybe build ALSA code.
Maybe build DSSI code.
* gnu/javax/sound/midi/alsa/AlsaPortDevice.java,
gnu/javax/sound/midi/alsa/AlsaOutputPortDevice.java
gnu/javax/sound/midi/alsa/AlsaInputPortDevice.java
gnu/javax/sound/midi/alsa/AlsaMidiDeviceProvider.java
gnu/javax/sound/midi/alsa/AlsaMidiSequencerDevice.java: Rebuilt.
native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaPortDevice.c,
native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaMidiDeviceProvider.c,
native/jni/midi-alsa/gnu_javax_sound_midi_alsa_AlsaSequencerDevice.c,
native/jni/midi-dssi/dssi_data.h, native/jni/midi-dssi/Makefile.am,
native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.c
native/jni/midi-dssi/gnu_javax_sound_midi_dssi_DSSISynthesizer.c,
native/jni/midi-alsa/Makefile.am: New files.
* include/Makefile.am: Add sound header files.
* include/gnu_javax_sound_midi_alsa_AlsaPortDevice.h,
include/gnu_javax_sound_midi_dssi_DSSIMidiDeviceProvider.h
include/gnu_javax_sound_midi_dssi_DSSISynthesizer.h
include/gnu_javax_sound_midi_alsa_AlsaMidiDeviceProvider.h,
include/gnu_javax_sound_midi_alsa_AlsaSequencerDevice.h: New
files.
* configure.ac (AC_CONFIG_FILES): Add
native/jni/midi-alsa/Makefile, native/jni/midi-dssi/Makefile.
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
(Java_gnu_java_awt_peer_gtk_GdkGraphics2D_setTexturePixelsUnlocked):
Call cairo_pattern_set_extend after gr->pattern has been set and checked
versus NULL.
|
|
|
|
|
| |
(cp_gtk_graphics2d_init_jni): Check ExceptionOccured after running
class initializer.
|