| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
(Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoDrawGlyphVector):
Release 'fonts'.
|
|
|
|
|
|
|
|
| |
2008-08-18 Andrew John Hughes <gnu_andrew@member.fsf.org>
* native/jni/gstreamer-peer/gst_native_pipeline.c:
(get_free_space(int)): Use #else not #elif when
there is no condition.
|
|
|
|
|
|
| |
* native/jni/java-net/local.c
(local_bind): Removed fprintf call, fixed access outside
of array bounds.
|
|
|
|
|
|
|
|
|
| |
* configure.ac (AC_CHECK_HEADERS): Added sys/sockio.h, required
for Solaris.
(AC_CHECK_LIB): Check for socket.
* native/jni/java-net/java_net_VMNetworkInterface.c (unistd.h):
Added.
[HAVE_SYS_SOCKIO_H] (sys/sockio.h): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jawt/Makefile.am,
native/fdlibm/Makefile.am,
native/jni/java-util/Makefile.am,
native/jni/gstreamer-peer/Makefile.am,
native/jni/native-lib/Makefile.am,
native/jni/gconf-peer/Makefile.am,
native/jni/gtk-peer/Makefile.am,
native/jni/xmlj/Makefile.am,
native/jni/midi-alsa/Makefile.am,
native/jni/java-nio/Makefile.am,
native/jni/midi-dssi/Makefile.am,
native/jni/classpath/Makefile.am,
native/jni/java-io/Makefile.am,
native/jni/java-lang/Makefile.am,
native/jni/java-net/Makefile.am (AM_CFLAGS): Add @EXTRA_CFLAGS@.
* configure.ac (EXTRA_CFLAGS): New macro.
* lib/Makefile.am (resources): Add .svn.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR classpath/28664:
* gnu/java/math/GMP.java:
Renamed from VMBigInteger.java and fixed to use
GMP instances directly.
* include/Makefile.am:
Generate GMP.h not VMBigInteger.h.
* java/math/BigInteger.java:
Send instances of GMP in calls to GMP rather than
the wrapping BigInteger class.
* native/jni/java-math/Makefile.am:
Fix filename of source code file.
* native/jni/java-math/gnu_java_math_GMP.c:
Renamed from java_math_VMBigInteger.c.
* native/jni/java-math/java_math_VMBigInteger.c,
* vm/reference/java/math/VMBigInteger.java:
Removed.
|
|
|
|
|
|
| |
* native/jni/java-math/java_math_VMBigInteger.c
(Java_java_math_VMBigInteger_natModInverse): fix variable res not
initialized.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/net/NetworkInterface.java:
(isUp): New method.
(isPointToPoint): Dito.
(isLoopback): Dito.
(supportsMulticast): Dito.
* vm/reference/java/net/VMNetworkInterface.java:
(isUp): New method.
(isPointToPoint): Dito.
(isLoopback): Dito.
(supportsMulticast): Dito.
* native/jni/java-net/java_net_VMNetworkInterface.c:
(isUp): New method.
(isPointToPoint): Dito.
(isLoopback): Dito.
(supportsMulticast): Dito.
|
|
|
|
|
|
|
|
|
|
|
| |
* java/io/File.java (canWrite): use canWriteDirectory(String).
* vm/reference/java/io/VMFile.java (canWriteDirectory): new native method.
* native/jni/java-io/java_io_VMFile.c: correct indentation, sync function
names with header file definition.
(Java_java_io_VMFile_canRead): use cpio_checkAccess to get access
permission. Removed unused variable.
(Java_java_io_VMFile_canWrite): likewise.
(Java_java_io_VMFile_canWriteDirectory): new function.
|
|
|
|
|
|
|
| |
PR classpath/28664
* native/jni/java-math/Makefile.am: Add
AM_LDFLAGS to the local LDFLAGS definition
so gmp is linked.
|
|
|
|
|
|
| |
Don't leak upon failed realloc.
* native/jni/classpath/jcl.c (JCL_realloc): Upon failed realloc,
free the original buffer before throwing the exception.
|
|
|
|
|
|
| |
PR classpath/28664
* native/jni/Makefile.am: Check CREATE_GMPBI_LIBRARY
and only compile GMP libraries if set.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR classpath/28664
* include/Makefile.am:
Add generation of header file java_math_VMBigInteger.h
* java/math/BigInteger.java: Separate NativeMPI into
VMBigInteger.
* native/jni/Makefile.am: Add java-math.
* native/jni/java-math/java_math_VMBigInteger.c:
Renamed from java_math_BigInteger.c.
* vm/reference/java/math/VMBigInteger.java:
Former NativeMPI class from java.math.BigInteger.
2006-11-28 Raif S. Naffah <classpath@naffah-raif.name>
Jeroen Frijters <jeroen@sumatra.nl>
PR classpath/28664
* configure.ac: Add support for configuring GNU MP.
* native/jni/Makefile.am: Include java-math directory if required.
* native/jni/java-math/.cvsignore: New file.
* native/jni/java-math/Makefile.am: Likewise.
* native/jni/java-math/java_math_BigInteger.c: Likewise.
* java/math/BigInteger.java: Added support for native methods.
* gnu/classpath/Configuration.java.in (WANT_NATIVE_BIG_INTEGER): New field.
|
|
|
|
|
|
|
| |
* configure.ac:
Check for sys/loadavg.h.
* native/jni/java-lang/gnu_java_lang_management_VMOperatingSystemMXBeanImpl.c:
Include sys/loadavg.h if found.
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/util/prefs/EventDispatcher.java:
Removed again.
* gnu/java/util/prefs/GConfBasedPreferences.java,
* gnu/java/util/prefs/gconf/GConfNativePeer.java,
* java/util/prefs/AbstractPreferences.java,
* native/jni/gconf-peer/GConfNativePeer.c:
Revert to pre-release versions.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR classpath/33751:
* configure.ac:
Don't check for readdir_r.
* native/jni/native-lib/cpio.c:
(cpio_readDir): Remove use of readdir_r, zero errno
before starting and always leave a \0 at the end after
strncpy.
* vm/reference/java/io/VMFile.java:
(list(String)): Make synchronized.
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/util/prefs/EventDispatcher.java:
Re-added.
* gnu/java/util/prefs/GConfBasedPreferences.java,
* gnu/java/util/prefs/gconf/GConfNativePeer.java,
* java/util/prefs/AbstractPreferences.java,
* native/jni/gconf-peer/GConfNativePeer.c:
Regress to 0.96 versions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/Makefile.am (all-local): Call check_jni_methods.sh
directly.
* scripts/Makefile.am (EXTRA_DIST): Removed check_jni_methods.sh.
* include/Makefile.am (SOUND_H_FILES, GST_PEER_H_FILES)
(XMLJ_H_FILES, GTKPEER_H_FILES, QTPEER_H_FILES)
(GCONF_PREFS_FILES, H_FILES): Don't generate header files
in the source directory, as it may not be writeable.
(DISTCLEANFILES) Added H_FILES.
* configure.ac (AC_CONFIG_FILES): Added
scripts/check_jni_methods.sh.
* scripts/check_jni_methods.sh: Removed. Moved over to ..
* scripts/check_jni_methods.sh.in: New file. Added
top_srcdir and top_builddir where necessary.
|
|
|
|
|
|
| |
* include/java_util_VMTimeZone.h: Removed.
* native/jni/gconf-peer/GConfNativePeer.c: all native methods, replaced
GConfEngine with GConfClient and use GConfClient API instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* vm/reference/java/lang/VMFloat.java (floatToIntBits): Removed unused
method.
* native/jni/java-lang/java_lang_VMFloat.c (Java_java_lang_VMFloat_floatToIntBits): Removed unused function.
* include/java_lang_VMDouble.h: Regenerated.
* doc/cp-vmintegration.texinfo (java.lang.VMFloat): Removed
unused method floatToIntBits. (java.lang.VMDouble): Use similar
text to text used for floatToRawIntBits for doubleToLongBits.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* m4/acinclude.m4 (CLASSPATH_CHECK_JAVAH) [USER_JAVAH]: Check for gjavah-4.2
and gjavah-4.1.
2008-02-08 Dalibor Topic <robilad@kaffe.org>
* vm/reference/java/lang/VMDouble.java (doubleToLongBits): Removed unused method.
* native/jni/java-lang/java_lang_VMDouble.c (Java_java_lang_VMDouble_doubleToLongBits):
Removed unused function.
* include/java_lang_VMDouble.h: Regenerated.
* doc/cp-vmintegration.texinfo (java.lang.VMDouble): Removed
unused method doubleToLongBits.
|
|
|
|
|
|
| |
2008-01-13 2007-12-18 Leen Toelen <toelen@gmail.com>
* native/fdlibm/ieeefp.h: Added avr32 support.
|
|
|
|
|
|
|
|
| |
* native/jni/java-io/java_io_VMObjectStreamClass.c,
* native/jni/java-lang/java_lang_VMDouble.c,
* native/jni/java-net/java_net_VMInetAddress.c:
Don't discard const by casting (const char *) to
(char *) when it's not needed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2007-12-28 Dalibor Topic <robilad@kaffe.org>
* configure.ac (AC_CHECK_HEADERS): Check for
netinet/in_systm.h, netinet/ip.h and net/if.h
for Windows CE.
* native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c:
Guard net/if.h include statement. Use unsigned int
instead of u_int.
* native/jni/java-nio/gnu_java_nio_VMChannel.c:
Guard sys/mman.h include statement.
* native/jni/java-nio/gnu_java_nio_VMSelector.c:
Guard sys/select.h include statement.
* native/jni/java-nio/javanio.c:
Guard sys/select.h include statement.
* native/jni/java-nio/javanio.h:
Include sys/time.h.
* native/jni/native-lib/cpio.c:
Guard chmod call by S_IWRITE, since it's not
defined in the arm-wince toolchain.
* native/jni/native-lib/cpnet.h:
Guard netinet/in_systm.h and netinet/ip.h
include statements.
|
|
|
|
|
| |
* native/jni/native-lib/cpio.c:
(cpio_df): Mark arguments as possibly unused.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java,
native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c
(isWindowUnderMouse): New method.
* include/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.h:
Regenerate.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(getLocationOnScreen): Move WindowPeer section to...
* gnu/java/awt/peer/gtk/GtkWindowPeer.java (getLocationOnScreen):
New method.
* gnu/java/awt/peer/gtk/GtkMouseInfoPeer.java
(isWindowUnderMouse): Implement.
* java/awt/Component.java (getMousePosition): New method.
(getMousePositionHelper): Likewise.
(mouseOverComponent): Likewise.
* java/awt/Container.java (getMousePosition): New method.
(mouseOverComponent): Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c:
Revert 2007-09-11 changes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/util/prefs/EventDispatcher.java: class removed.
* gnu/classpath/toolkit/DefaultDaemonThreadFactory.java: new file.
* java/util/prefs/AbstractPreferences.java: (fire(PreferenceChangeEvent)):
Use DefaultDaemonThreadFactory and Executors.newSingleThreadExecutor
instead of EventDispatcher. Import statement refactored accordingly.
Also refactored to use 1.5 enhanced for loop and generics.
(fire(NodeChangeEvent, boolean)): likewise.
* gnu/java/util/prefs/GConfBasedPreferences.java (childSpi):
removed startWatchingNode call.
* gnu/java/util/prefs/gconf/GConfNativePeer.java:
(GConfNativePeer): removed use of semaphore.
(gconf_all_nodes): method name shortened, renamed from
gconf_client_all_nodes (removed client_ from method signature) and
declared synchronized.
(gconf_suggest_sync): likewise.
(gconf_get_string): likewise.
(gconf_unescape_key): likewise.
(gconf_set_string): likewise.
(gconf_escape_key): likewise.
(gconf_all_keys): likewise.
(gconf_dir_exists): likewise.
(getKeys): refactored to use new native method name.
(getKey): likewise.
(setString): likewise.
(getChildrenNodes): likewise.
(unset): likewise.
(suggestSync): likewise.
(finalize): likewise.
(nodeExist): likewise.
(gconf_client_add_dir): removed, not needed anymore.
(gconf_client_remove_dir): likewise.
(startWatchingNode): likewise.
(stopWatchingNode): likewise.
* native/jni/conf-peer/GConfNativePeer.c:
All native methods renamed to match changes in GConfNativePeer.java
Now use GConfEngine instead of GConfClient.
Removed gdk_thread_enter/leave locking from all methods.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1add_1dir):
removed.
(Java_gnu_java_util_prefs_gconf_GConfNativePeer_gconf_1client_1dir_1exists):
likewise.
* include/gnu_java_util_prefs_gconf_GConfNativePeer.h: regenerated.
|
|
|
|
| |
not just 8 bytes wide.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* vm/reference/java/io/VMFile.java:
(getTotalSpace): new method.
(getUsableSpace): likewise.
(getFreeSpace): likewise.
* java/io/File.java: (getTotalSpace): new method.
(getUsableSpace): likewise.
(getFreeSpace): likewise.
* native/jni/java-io/java_io_VMFile.c:
(Java_java_io_VMFile_getTotalSpace): new function.
(Java_java_io_VMFile_getFreeSpace): likewise.
(Java_java_io_VMFile_getUsableSpace): likewise.
* native/jni/native-lib/cpio.h: (cpio_df): new function.
(CPFILE_DF_TYPE): enum type for cpio_df.
* native/jni/native-lib/cpio.c: (cpio_df): new function.
* include/java_io_VMFile.h: regenerated.
* configure.ac: added check for statvfs.
|
|
|
|
|
| |
* native/jni/java-nio/gnu_java_nio_EpollSelectorImpl.c:
Include config-int.h for uint32_t.
|
|
|
|
|
|
| |
PR classpath/33746:
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c:
Remove atexit call that makes JikesRVM deadlock.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java:
(gstreamer_get_audio_format_stream): Removed parameter from javadoc.
(gstreamer_get_audio_format_file): likewise.
* gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java:
Added class javadoc and implementation notes.
(READ): new constant.
(WRITE): likewise.
(QUEUED): likewise.
(CAPACITY_KEY): likewise.
(lock): likewise.
(prefs): new variable.
(GstPipeline constructor): added OS independent rutines to detect
filesystem pipes size plus save and restores this information via
preferences. Now closes open pipe on user abort at VM exit.
(open_native_pipe): new native method.
(close_native_pipe): likewise.
(detect_pipe_size): likewise.
(createForWrite): update to use new native methods.
(setState): removed hack to synchronize reading and writing of the
filesystme named pipe.
(available): implemented.
(drain): new implementation, now correctly waits for data to be consumed
in the pipeline.
(prepareWrite): removed hack to synchronize reading and writing of the
filesystme named pipe.
(CleanPipeline): new inner class, used for cleaning of native pipelines
still opened at VM exit.
* gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine:
(getFramePosition): method still stubbed, now output "implement me"
note when called (used for testing).
(getLongFramePosition): likewise.
(getMicrosecondPosition): likewise.
* include/gnu_javax_sound_sampled_gstreamer_lines_GstPipeline.h:
regenerated.
* native/jni/gstreamer-peer/gst_native_data_line.c:
(setup_pipeline): Changed signature, now uses a file descriptor instead of
char with the name of the native pipeline. Also changed to use "fdsrc"
when creating the GStreamer pipeline.
(Java_gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine_setup_1sink_1pipeline):
now uses gst_native_pipeline_get_pipeline_fd to get the file descriptor
of the native pipeline, instead of gst_native_pipeline_get_pipeline_name.
Chaged to use "autoaudiosink" as GStreamer audio sink.
(gst_newpad): fix indentation.
* native/jni/gstreamer-peer/gst_native_pipeline.c: include new headers for
compilation.
(capacityFID): new filed for caching.
(GST_DETECTED_PIPE_CAPACITY): new field.
(enum): maps READ and WRITE in GstPipeline class.
(_GstNativePipelinePrivate.fd): new field.
(create_name): new function.
(init_pointer_IDs): likewise.
(get_free_space): likewise.
(Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_init_1id_1cache):
cache capacityFID.
(Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_init_1instance):
get value for GST_DETECTED_PIPE_CAPACITY from mapped class.
(Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_set_1state):
removed "unused" attribute from parameters, clean pipeline name on exit.
(Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_open_1native_1pipe):
new function.
(Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_close_1native_1pipe):
likewise.
(Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_create_1named_1pipe):
pipe name created with a dedicated function.
(Java_gnu_javax_sound_sampled_gstreamer_lines_GstPipeline_available): new
function.
* native/jni/gstreamer-peer/gst_native_pipeline.h:
(gst_native_pipeline_clean): removed.
(gst_native_pipeline_get_pipeline_fd): new function.
* native/jni/gstreamer-peer/gst_peer.h: new defines used by the peer.
* native/jni/gstreamer-peer/gstreamer_io_peer.c: (_GST_MALLOC_SIZE_): moved
in gst_peer.h.
|
|
|
|
|
|
| |
* native/fdlibm/dtoa.c: Include mprec.h after system includes.
* native/fdlibm/mprec.h [_EXFUN]: Only define _EXFUN if it is not
already defined.
|
|
|
|
|
| |
* native/jni/native-lib/Makefile.am
(AM_LDFLAGS) Use CLASSPATH_CONVENIENCE flags, as it is a convenience library.
|
|
|
|
| |
* native/fdlibm/dtoa.c: Include stdlib.h to have a declaration for free.
|
|
|
|
|
|
| |
PR 30275
* native/fdlibm/fdlibm.h [_AIX]: Define _ALL_SOURCE
rather than _XOPEN_SOURCE to fix build on AIX 5.
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_local_LocalSocketImpl.c:
Add #ifndef guard around definition of _GNU_SOURCE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c
Removed unused includes.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoSurface.c
Removed unused includes.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c
Removed unusued excludes. Put Xrender includes in HAVE_XRENDER
conditional.
(flush): Use gdk_display_flush() instead of XFlush().
(initState): Use GDK/Cairo functions to get cairo_t object.
(initFromVolatile): Likewise.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c
Removed unused includes.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkRobotPeer.c
Use HAVE_XTEST conditionals for code that uses XTest.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkImage.c
Removed unused includes.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkToolkit.c
Removed unused includes.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkVolatileImage.c
Removed unused includes.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
Removed unused includes. Rewrote frame-extents code to use
gdk_window_get_frame_extents() rather than the X window properties
directly.
* include/gnu_java_awt_peer_gtk_ComponentGraphics.h
(initFromVolatile): Removed width and height parameters.
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(initFromVolatile): Remove width and height parameters.
* gnu/java/awt/peer/gtk/VolatileImageGraphics.java
(VolatileImageGraphics): Use initFromVolatile without width and
height.
* configure.ac: Check for presence of XTest, and define HAVE_XTEST
accordingly.
|
|
|
|
|
| |
* native/jni/midi-alsa/Makefile.am (AM_CFLAGS):
Removed @ERROR_CFLAGS@ to not fail build with GCC 4.2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkComponentPeer.java:
(getLocationOnScreen): Check for GTK main thread.
(gtkWidgetGetLocationOnScreenUnlocked): New native method.
(gtkWindowGetLocationOnScreenUnlocked): New native method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c:
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWindowGetLocationOnScreen):
Delegate to unlocked function.
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWindowGetLocationOnScreenUnlocked):
New function.
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreen):
Delegate to unlocked function.
(Java_gnu_java_awt_peer_gtk_GtkComponentPeer_gtkWidgetGetLocationOnScreenUnlocked):
New function.
|
|
|
|
|
| |
* native/jni/gstreamer-peer/gst_native_pipeline.c:
(init_pointer_IDs): fix typo that prevents compilation on 64 bit systems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gnu/classpath/examples/sound/AudioPlayerSample.java: new file.
* gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java: removed
unused import.
* gnu/javax/sound/sampled/gstreamer/io/GstAudioFileWriter.java: likewise.
* gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java:
(gstreamer_get_audio_format_stream): changed signature tu accept a Pointer
object instead of a BufferedInputStream.
(GstHeader):
(getAudioFormat(InputStream, GstHeader)): new private method.
(getAudioFormat(public)): refactored to use the private getAudioFormat
with shared functionality.
(getAudioFormat(GstHeader header)): removed a redundant check.
(init_id_cache): new native method.
* gnu/javax/sound/sampled/gstreamer/io/GstInputStream.java: new file.
* gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.java:
(GstDataLine.State): removed enum.
(state): removed local variable.
(isRunning): removed method.
(open): likewise.
(setFormat): new methods.
(setOpen): likewise.
(setBufferSize): likewise.
* gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.java:
(createSourcePipeline): new method.
(setup_sink_pipeline): likewise.
(init_id_cache): likewise. Added to the static initializer.
* gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java:
(GstPipeline.State): new enum.
(state): new local variable.
(name): likewise.
(output): likewise.
(source): likewise.
(ready): likewise.
(getState): new method.
(closePipe): likewise.
(create_named_pipe): likewise.
(set_state): likewise.
(available): likewise.
(drain): likewise.
(GstPipeline): likewise.
(close): likewise.
(prepareWrite): likewise.
(flush): likewise.
(write): likewise.
(init_instance): likewise.
(read): likewise.
(createForWrite): likewise.
(setState): likewise.
(getNativeClass): likewise.
(init_id_cache): likewise.
* gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.java:
(pipeline): new local variable.
(opne): likewise.
(isActive): method implemented.
(stop): likewise.
(open): likewise.
(flush): likewise.
(isRunning): likewise.
(start): likewise.
(write): likewise.
(available): likewise.
(drain): likewise.
(close): likewise.
* include/Makefile.am: added entry to generate new header file.
* include/gnu_javax_sound_sampled_gstreamer_io_GstAudioFileReaderNativePeer.h:
regenerated.
* include/gnu_javax_sound_sampled_gstreamer_io_GstInputStream.h: likewise.
* include/gnu_javax_sound_sampled_gstreamer_lines_GstNativeDataLine.h:
likewise.
* include/gnu_javax_sound_sampled_gstreamer_lines_GstPipeline.h:
likewise.
* native/jni/gstreamer-peer/gstclasspathsrc.c: removed.
* native/jni/gstreamer-peer/gstinputstream.c: likewise.
* native/jni/gstreamer-peer/GStreamerIOPeer.c: likewise.
* native/jni/gstreamer-peer/gstinputstream.h: likewise.
* native/jni/gstreamer-peer/gstclasspathsrc.h: likewise.
* native/jni/gstreamer-peer/Makefile.am: new file added for compilation.
code reformat to keep the 80 columns constraint.
* native/jni/gstreamer-peer/gst_native_pipeline.h: new file.
* native/jni/gstreamer-peer/gst_input_stream.c: likewise.
* native/jni/gstreamer-peer/gst_input_stream.h: likewise.
* native/jni/gstreamer-peer/gst_classpath_src.c: likewise.
* native/jni/gstreamer-peer/gst_native_pipeline.c: likewise.
* native/jni/gstreamer-peer/gst_native_data_line.c: likewise.
* native/jni/gstreamer-peer/gst_classpath_src.h: likewise.
* native/jni/gstreamer-peer/gstreamer_io_peer.c: likewise.
* native/jni/gstreamer-peer/gst_peer.c: likewise.
* native/jni/gstreamer-peer/gst_peer.h: likewise.
|
|
|
|
|
|
| |
PR 32645
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphicsCopy.c
(copyPixbuf): Swap asserts.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/sound/sampled/gstreamer: new package hierarchy.
* gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReader.java: new file.
* gnu/javax/sound/sampled/gstreamer/io/GstAudioFileReaderNativePeer.java:
likewise.
* gnu/javax/sound/sampled/gstreamer/lines/GstDataLine.java: likewise.
* gnu/javax/sound/sampled/gstreamer/GStreamerMixer.java: likewise.
* gnu/javax/sound/sampled/gstreamer/GStreamerMixerProvider.java: likewise.
* gnu/javax/sound/AudioSecurityManager.java: likewise.
* gnu/javax/sound/sampled/gstreamer/lines/GstNativeDataLine.java: likewise.
* gnu/javax/sound/sampled/gstreamer/lines/GstSourceDataLine.java: likewise.
* gnu/javax/sound/sampled/gstreamer/lines/GstPipeline.java: likewise.
* gnu/javax/sound/sampled/gstreamer/io/GstAudioFileWriter.java: likewise.
* resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader.in:
likewise.
* resource/META-INF/services/javax.sound.sampled.spi.MixerProvider.in:
likewise.
* resource/META-INF/services/javax.sound.sampled.spi.MixerProvider:
likewise.
* native/jni/gstreamer-peer/gstclasspathsrc.c: likewise.
* native/jni/gstreamer-peer/gstclasspathsrc.h: likewise.
* native/jni/gstreamer-peer/gstinputstream.c: likewise.
* native/jni/gstreamer-peer/gstinputstream.h: likewise.
* native/jni/gstreamer-peer/GStreamerIOPeer.c: likewise.
* native/jni/gstreamer-peer/Makefile.am: likewise.
* native/jni/gstreamer-peer/.cvsignore: likewise.
* include/gnu_javax_sound_sampled_gstreamer_io_GstAudioFileReaderNativePeer.h:
likewise.
* include/Makefile.am: add gstreamer generated headers.
* configure.ac: add gstreamer sound backend configuration.
The backend is currently disabled by default.
* native/jni/Makefile.am: code to allow compilation of the gstreamer
sound backend.
* javax/sound/sampled/spi/MixerProvider.java (isMixerSupported):
indentation fixes.
* javax/sound/sampled/AudioFormat.java (toString): fix method to display
informations only when available.
* javax/sound/sampled/DataLine.java:
(Info.isFormatSupported): indentation fixes.
(Info): indentation fixes.
(Info.toString): indentation fixes.
(Info.matches): indentation fixes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/ClasspathFontPeer.java
(canDisplay): Take character as integer codepoint.
* gnu/java/awt/peer/gtk/GdkFontPeer.java
(canDisplay): Take character as integer codepoint.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(postMouseEvent): Use MouseEvent constructor with absolute coordinates
to avoid deadlock (over getLocationOnScreen()).
* gnu/java/awt/peer/gtk/VolatileImageGraphics.java
(getDeviceConfiguration): Fall back to the default configuration
if the component is not set.
* gnu/java/awt/peer/qt/QtFontMetrics.java
(canDisplay): Take character as integer codepoint.
* gnu/java/awt/peer/qt/QtFontPeer.java
(canDisplay): Take character as integer codepoint.
* gnu/java/awt/peer/x/XFontPeer2.java
(canDisplay): Take character as integer codepoint.
* include/gnu_java_awt_peer_qt_QtFontMetrics.h
(canDisplay): Take character as integer codepoint.
* java/awt/Font.java
(DIALOG): New constant.
(DIALOG_INPUT): New constant.
(MONOSPACED): New constant.
(SANS_SERIF): New constant.
(SERIF): New constant.
(Font(Font)): New constructor.
(canDisplay(char)): Use new canDisplay(int) method.
(canDisplay(int)): New method.
(hasLayoutAttributes): New method.
* java/awt/event/MouseEvent.java
(absX,absY): New fields.
(MouseEvent): New constructor with absolute coordinates.
(getLocationOnScreen): New method.
(getXOnScreen): New method.
(getYOnScreen): New method.
* native/jni/qt-peer/qtfontmetrics.cpp
(canDisplay): Take character as integer codepoint.
|
|
|
|
|
| |
(cpnet_aton) Moved variable declaration of inet6_addr so it is
actually in the scope of its use.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c
(THROW_NO_IPV6): New macro.
(Java_gnu_java_net_VMPlainSocketImpl_bind6) Conditionally
build code if IPv6 facilities are available, otherwise
throw an error.
(Java_gnu_java_net_VMPlainSocketImpl_setMulticastInterface6,
Java_gnu_java_net_VMPlainSocketImpl_join6,
Java_gnu_java_net_VMPlainSocketImpl_leave6,
Java_gnu_java_net_VMPlainSocketImpl_joinGroup6,
Java_gnu_java_net_VMPlainSocketImpl_leaveGroup6)
Use THROW_NO_IPV6.
* native/jni/java-net/java_net_VMInetAddress.c
(Java_java_net_VMInetAddress_getHostByAddr,
Java_java_net_VMInetAddress_getHostByName,
Java_java_net_VMInetAddress_aton) Build IPv6 dependant
code conditionally on IPv6 facilities being available.
Switched if-else blocks where necessary to allow that.
* native/jni/java-net/javanet.c
(_javanet_get_ip_netaddr) Build IPv6 dependant code conditionally
on IPv6 facilities being available.
* native/jni/native-lib/cpnet.c
(cpnet_getHostByName, cpnet_getHostByAddr) Build IPv6 dependant
code conditionally on IPv6 facilities being available.
(cpnet_aton) Moved variable declaration of inet6_addr to the scope
of its use. Build IPv6 dependant code conditionally
on IPv6 facilities being available.
* native/jni/native-lib/cpnet.h (cpnet_newIPV6Address,
cpnet_isIPV6Address, cpnet_IPV6AddressToBytes,
cpnet_bytesToIPV6Address): Make IPv6 dependant utility functions
available conditionally on IPv6 facilities being available.
|
|
|
|
|
|
|
|
|
| |
* configure.ac: Check for MSG_WAITALL, since it does not exist on
Cygwin.
* native/jni/java-nio/gnu_java_nio_VMChannel.c
(Java_gnu_java_nio_VMChannel_receive): Define MSG_WAITALL as 0 if
it does not exist.
|
|
|
|
|
|
|
| |
Fixes bug #30377
* native/jni/java-nio/gnu_java_nio_VMChannel.c
(Java_gnu_java_nio_VMChannel_available): Retry using fstat if ioctl
fails with ENOTTY.
|