Joseph Myers
85b58ca564
re PR c/12165 (Typedef'ed variables ignore typedef's const qualifier)
...
PR c/12165
* c-decl.c (grokdeclarator): Take type qualifiers of typedefed
array type from the array element type.
testsuite:
* gcc.dg/array-quals-1.c, gcc.dg/c90-idem-qual-3.c,
gcc.dg/c99-idem-qual-3.c: New tests.
From-SVN: r75514
2004-01-07 19:40:03 +00:00
Andreas Tobler
51dc0a0aad
re PR libgcj/13011 (gij -jar simple.jar generates: Exception during runtime initialization)
...
2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
PR libgcj/13011:
* libjava.jar/simple.jar: Add a working MANIFEST.MF.
From-SVN: r75513
2004-01-07 19:54:00 +01:00
Michael Koch
40f8ee2d8d
Array.java: Merged documentation with classpath.
...
2004-01-07 Michael Koch <konqueror@gmx.de>
* java/lang/reflect/Array.java: Merged documentation with classpath.
From-SVN: r75512
2004-01-07 18:46:18 +00:00
Andreas Tobler
6838645e85
jartool.c (make_manifest): Fix off-by-one bug when creating an empty MANIFEST.MF.
...
2004-01-07 Andreas Tobler <a.tobler@schweiz.ch>
* jartool.c (make_manifest): Fix off-by-one bug when creating
an empty MANIFEST.MF.
From-SVN: r75511
2004-01-07 19:46:04 +01:00
Michael Koch
9b773289f8
2004-01-07 Michael Koch <konqueror@gmx.de>
...
* java/text/CollationElementIterator.java
(textIndex): Renamed from index.
* java/text/CollationKey.java
(collator): New member.
(CollationKey): New argument for parent collator.
(equals): Check for same collator, source string and key array.
* java/text/RuleBasedCollator.java:
Reformated.
(RuleBasedCollator): Don't re-initialize frenchAccents with default
value.
(getCollationElementIterator): Rewritten.
(getCollationKey): Added new argument to CollationKey constructor.
From-SVN: r75510
2004-01-07 18:40:08 +00:00
Loren J. Rittle
677e7ddcee
(re-open) PR libstdc++/12658
...
(re-open) PR libstdc++/12658
* src/locale_init.cc (locale::locale): Remove ill-scoped mutex.
(locale::global): Likewise.
From-SVN: r75509
2004-01-07 17:40:45 +00:00
Paolo Carlini
d8f5bd5016
9318-in.cc: Remove redundant #include.
...
2004-01-07 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_istream/extractors_other/char/9318-in.cc:
Remove redundant #include.
* testsuite/27_io/basic_ostream/endl/char/1.cc: Likewise.
* testsuite/27_io/basic_ostream/ends/char/1.cc: Likewise,
re-enable normal testing.
* testsuite/27_io/basic_ostream/ends/char/2.cc: Remove redundant
#include.
* testsuite/27_io/basic_ostream/flush/char/1.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/1.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/2.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/3.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/4.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/5.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/6.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/char/8.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/7.cc:
More properly, #include <locale>.
* testsuite/27_io/basic_ostream/inserters_character/wchar_t/8.cc:
Remove redundant #include.
* testsuite/27_io/basic_ostream/inserters_other/char/2.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_other/char/3.cc: Remove
redundant DejaGnu directive.
* testsuite/27_io/basic_ostream/inserters_other/char/4.cc: Remove
redundant #include.
From-SVN: r75508
2004-01-07 17:13:51 +00:00
Michael Koch
26067b8be8
2004-01-07 Michael Koch <konqueror@gmx.de>
...
* gnu/java/nio/DatagramChannelImpl.java
(blocking): Removed.
(DatagramChannelImpl): Call configureBlocking().
(implConfigureBlocking): Dont initialize blocking.
* gnu/java/nio/ServerSocketChannelImpl.java
(blocking): Removed.
(ServerSocketChannelImpl): Call configureBlocking().
(implConfigureBlocking): Dont initialize blocking.
* gnu/java/nio/SocketChannelImpl.java
(blocking): Removed.
(SocketChannelImpl): Call configureBlocking().
(implConfigureBlocking): Dont initialize blocking.
(connect): Use isBlocking().
* java/nio/channels/spi/AbstractSelectableChannel.java
(configureBlocking): Use blockingLock() instead of LOCK.
Set blocking after successfully called implConfigureBlocking().
(register): Use blockingLock() instead of LOCK.
From-SVN: r75507
2004-01-07 16:51:49 +00:00
Michael Koch
89e4eb2a34
ServerSocket.java (isBound): Fixed documentation.
...
2004-01-07 Michael Koch <konqueror@gmx.de>
* java/net/ServerSocket.java (isBound): Fixed documentation.
From-SVN: r75506
2004-01-07 16:37:45 +00:00
Sascha Brawer
b3db7ef158
DefaultBoundedRangeModel.java: Documented API.
...
2004-01-07 Sascha Brawer <brawer@dandelis.ch>
* javax/swing/DefaultBoundedRangeModel.java: Documented API.
(changeEvent): Create event object on demand.
(DefaultBoundedRangeModel, toString, setValue, setExtent,
setMinimum, setMaximum, setValueIsAdjusting, setRangeProperties,
fireStateChanged): Re-written.
* javax/swing/event/EventListenerList.java: Reformatted, document
typical usage.
(toString): Implemented.
(getListeners): Re-written.
(remove): Re-written.
(add): Re-written.
(NO_LISTENERS): New singleton field.
(listenerList): Declare as transient; document.
(serialVersionUID): Document.
(getListenerCount(Class)): More efficient implementation,
also accepts null argument. Improve Javadoc.
(getListenerCount()): Remove unnecessary cast; docfix.
* javax/swing/undo/UndoableEditSupport.java:
Re-format, document.
(UndoableEditSupport): Set realSource field. Improve documentation.
(_postEdit): Iterate over cloned listener vector.
(toString): Don't emit realSource.
(beginUpdate, endUpdate): Support nested updates.
(postEdit): Use compound edit if present.
From-SVN: r75505
2004-01-07 14:42:04 +00:00
Alan Modra
b48a0c1869
* gcc.dg/winline-7.c: Don't cast void * to int.
...
From-SVN: r75503
2004-01-07 23:10:42 +10:30
Benjamin Kosnik
b61f9bf039
check_performance: Use -pthread.
...
2004-01-06 Benjamin Kosnik <bkoz@redhat.com>
Stefan Olsson <stefan@snon.net>
* scripts/check_performance: Use -pthread.
* testsuite/performance/allocator.cc: Tweaks, add list.
* testsuite/performance/allocator_thread.cc: New.
Co-Authored-By: Stefan Olsson <stefan@snon.net>
From-SVN: r75499
2004-01-07 05:59:19 +00:00
Jerry Quinn
9a01c9b061
locale_facets.h: Document public classes and functions.
...
2003-01-06 Jerry Quinn <jlquinn@optonline.net>
* include/bits/locale_facets.h: Document public classes and
functions.
* include/bits/locale_facets.tcc (time_get::_M_extract_via_format):
Add comment.
From-SVN: r75498
2004-01-07 05:22:37 +00:00
Alan Modra
93c9d1bae6
rs6000.c (rs6000_dbx_register_number): New function.
...
* config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
* config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
* config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
(DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
* config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
From-SVN: r75497
2004-01-07 11:51:28 +10:30
Eric Christopher
deae8de664
mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
...
2004-01-06 Eric Christopher <echristo@redhat.com>
* config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
(DWARF2_DEBUGGING_INFO): Define.
(PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
* config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
* config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
for irix as.
(SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
* config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
* config/mips/iris5gas.h: Ditto.
(DBX_DEBUGGING_INFO): Remove.
(DWARF2_DEBUGGING_INFO): Ditto.
(MIPS_DEBUGGING_INFO): Ditto.
(PREFERRED_DEBUGGING_TYPE): Ditto.
* config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
(PREFERRED_DEBUGGING_TYPE): Ditto.
(SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
* config/mips/elf64.h: Ditto.
From-SVN: r75496
2004-01-07 00:52:32 +00:00
GCC Administrator
470ea489e3
Daily bump.
...
From-SVN: r75493
2004-01-07 00:16:06 +00:00
Graydon Hoare
257dd2808c
Container.java (swapComponents): Add forgotten function, required for JLayeredPane change.
...
2004-01-06 Graydon Hoare <graydon@redhat.com>
* java/awt/Container.java (swapComponents): Add forgotten
function, required for JLayeredPane change.
From-SVN: r75491
2004-01-07 00:11:51 +00:00
Geoffrey Keating
084f5a3539
t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
...
* config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
(TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
* config/rs6000/darwin-ldouble.c: New.
From-SVN: r75490
2004-01-06 23:49:39 +00:00
Geoffrey Keating
550d138775
emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for constants.
...
* emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
for constants.
(constant_subword): Delete.
* rtl.h (constant_subword): Delete prototype.
(immed_double_const): Is not in varasm.c.
* simplify-rtx.c (simplify_immed_subreg): New.
(simplify_subreg): Use simplify_immed_subreg.
From-SVN: r75487
2004-01-06 22:51:00 +00:00
Jan Hubicka
fed2b31685
makefile.in (stageprofile_flags_to_pass): use -fprofile-generate.
...
* makefile.in (stageprofile_flags_to_pass): use -fprofile-generate.
(stagefeedback_flags_to_pass): use -fprofile-use.
From-SVN: r75486
2004-01-06 22:49:44 +00:00
Geoffrey Keating
0c90aa3c5c
rs6000.md (floatsitf2): Use expand_float rather than trying to generate RTL directly.
...
* config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
than trying to generate RTL directly.
(fix_trunctfsi2): Use expand_fix rather than trying to generate
RTL directly.
From-SVN: r75485
2004-01-06 21:03:06 +00:00
Michael Koch
5f383ba58b
CollationElementIterator.java: Reformated.
...
2004-01-06 Michael Koch <konqueror@gmx.de>
* java/text/CollationElementIterator.java: Reformated.
(CollationElementIterator): Changed order of arguments.
* java/text/RuleBasedCollator.java
(RuleBasedCollator): Merged class documentation.
(CollationElement): Added documentation.
(compare): Reformated, renamed arguments.
(equals): Likewise.
(getCollationElementIterator): Likewise.
(getCollationKey): Likewise.
From-SVN: r75484
2004-01-06 20:19:31 +00:00
Geoffrey Keating
64d961b859
* dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
...
From-SVN: r75483
2004-01-06 20:06:12 +00:00
David Edelsohn
72b385617a
xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each function into a separate macro.
...
* config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
function into a separate macro.
(read_only_data_section): Add void argument.
(private_data_section): Same.
(read_only_private_data_section): Same.
(toc_section): Same.
From-SVN: r75482
2004-01-06 14:49:26 -05:00
Jan Hubicka
0aaae060e1
* invoke.texi: Remove typo in last change.
...
From-SVN: r75479
2004-01-06 18:26:12 +00:00
Graydon Hoare
68f14fb08a
JLayeredPane.java: Fix semantics, add javadocs.
...
2004-01-06 Graydon Hoare <graydon@redhat.com>
* javax/swing/JLayeredPane.java: Fix semantics, add javadocs.
From-SVN: r75478
2004-01-06 18:02:23 +00:00
Graydon Hoare
68dad68725
missing changelog entry
...
From-SVN: r75477
2004-01-06 17:54:08 +00:00
Jan Hubicka
9a60938822
re PR target/10301 (Side effects of architecture specific flags are not documented.)
...
PR target/10301
* config.gcc: Accept opteron and athlon-64 as variants
of k8.
* i386.c (override_options): Likewise.
* invoke.texi (i386 -mtune): Expand documentation.
From-SVN: r75476
2004-01-06 17:31:10 +00:00
Kazu Hirata
5d3cc25206
alias.c: Fix comment typos.
...
* alias.c: Fix comment typos.
* builtins.c: Likewise.
* cfg.c: Likewise.
* df.c: Likewise.
* dominance.c: Likewise.
* dwarf2out.c: Likewise.
* emit-rtl.c: Likewise.
* expr.c: Likewise.
* final.c: Likewise.
* fold-const.c: Likewise.
* gcse.c: Likewise.
* genattrtab.c: Likewise.
* genrecog.c: Likewise.
* gensupport.c: Likewise.
* ggc-zone.c: Likewise.
* integrate.c: Likewise.
* local-alloc.c: Likewise.
* loop.c: Likewise.
* recog.c: Likewise.
* regmove.c: Likewise.
* reg-stack.c: Likewise.
* reorg.c: Likewise.
* rtlanal.c: Likewise.
* rtl.h: Likewise.
* sched-ebb.c: Likewise.
* simplify-rtx.c: Likewise.
* toplev.c: Likewise.
* varasm.c: Likewise.
From-SVN: r75475
2004-01-06 16:51:21 +00:00
Kazu Hirata
95ea367d2d
install.texi: Fix typos.
...
* doc/install.texi: Fix typos.
* doc/invoke.texi: Likewise.
* doc/md.texi: Likewise.
From-SVN: r75474
2004-01-06 16:21:17 +00:00
Michael Koch
a023ec34d1
Connection.java: Reformated copyright.
...
2004-01-06 Michael Koch <konqueror@gmx.de>
* gnu/java/net/protocol/file/Connection.java:
Reformated copyright.
(hdrHash): Removed.
(hdrVec): Removed.
(gotHeaders): Removed.
(getHeaderField): Removed.
(getHeaderField): Removed.
(getHeaderFieldKey): Removed.
(getKey): Removed.
(getField): Removed.
(getHeaders): Removed.
From-SVN: r75473
2004-01-06 15:00:11 +00:00
Michael Koch
9ba6f952f0
DateTimeAtCompleted.java, [...]: New files.
...
2004-01-06 Michael Koch <konqueror@gmx.de>
* javax/print/attribute/standard/DateTimeAtCompleted.java,
javax/print/attribute/standard/DateTimeAtCreation.java,
javax/print/attribute/standard/DateTimeAtProcessing.java,
javax/print/attribute/standard/JobImpressionsCompleted.java,
javax/print/attribute/standard/JobKOctets.java,
javax/print/attribute/standard/JobKOctetsProcessed.java,
javax/print/attribute/standard/JobMediaSheetsCompleted.java,
javax/print/attribute/standard/JobPrioritySupported.java: New files.
* Makefile.am (javax_source_files): Added new files.
* Makefile.in: Regenerated.
From-SVN: r75471
2004-01-06 13:48:52 +00:00
Paolo Carlini
b80115c4b7
1.cc: Remove redundant #includes.
...
2004-01-06 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_istream/extractors_other/char/1.cc:
Remove redundant #includes.
* testsuite/27_io/basic_istream/extractors_other/char/2.cc:
Likewise.
* testsuite/27_io/basic_istream/extractors_other/char/3.cc:
Likewise.
* testsuite/27_io/basic_istream/get/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/get/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/getline/char/3.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/6360.cc: Likewise.
* testsuite/27_io/basic_istream/ignore/char/7220.cc: Likewise.
* testsuite/27_io/basic_istream/peek/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/peek/char/6414.cc: Likewise.
* testsuite/27_io/basic_istream/putback/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/read/char/1.cc: Likewise.
* testsuite/27_io/basic_istream/read/char/2.cc: Likewise.
* testsuite/27_io/basic_istream/read/char/3.cc: Likewise.
* testsuite/27_io/basic_istream/readsome/char/6746-1.cc:
Likewise.
* testsuite/27_io/basic_istream/readsome/char/6746-2.cc:
Likewise.
* testsuite/27_io/basic_istream/readsome/char/8258.cc:
Likewise.
* testsuite/27_io/basic_istream/seekg/char/2346-fstream.cc:
Likewise.
* testsuite/27_io/basic_istream/seekg/char/2346-sstream.cc:
Likewise.
* testsuite/27_io/basic_istream/seekg/char/8348-1.cc: Likewise.
* testsuite/27_io/basic_istream/seekg/char/8348-2.cc: Likewise.
* testsuite/27_io/basic_istream/tellg/char/8348.cc: Likewise.
From-SVN: r75469
2004-01-06 12:20:42 +00:00
Kazuhiro Inaoka
f26ef71360
Fix defintion of TRAMPOLINE_SIZE
...
From-SVN: r75468
2004-01-06 11:00:28 +00:00
Jan Hubicka
bcf1755434
i386-sse-5.c: New test
...
* gcc.dg/i386-sse-5.c: New test
* g++.dg/eh/simd-1.c: Add -w argument for i386.
* i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
(function_arg_advance): Do not pass aggregates in SSE; deal handling
of MMX_REGPARM.
(function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
add MMX_REGPARM.
* i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
(SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
(MMX_REGPARM_MAX): Similarly for -mmmx.
From-SVN: r75467
2004-01-06 10:49:58 +00:00
Michael Koch
a67e295f56
2004-01-06 Michael Koch <konqueror@gmx.de>
...
* java/net/URLConnection.java
(contentHandler): Removed.
(locale): Removed.
(getHeaderFields): Return an empty map instead of null.
(getContent): Connect if needed, renamed "cType" to "type" and
"contentHandler" to "ch" and made it a local variable.
(getPermission): Don't use package in class name.
(setDefaultRequestProperty): Fixed typo in documentation.
(initializeDateFormats): Made locale a local variable.
From-SVN: r75466
2004-01-06 08:54:20 +00:00
Michael Koch
907cdc7fad
2004-01-06 Michael Koch <konqueror@gmx.de>
...
* java/lang/Package.java
(getPackage): Get the current class loader directly.
* java/lang/SecurityManager.java
(currentLoadedClass): Dont iterate over class contexts.
(classLoaderDepth): Don't check class loaders if everything is allowed.
From-SVN: r75465
2004-01-06 08:34:58 +00:00
Kazu Hirata
24746a428d
linux.h: Fix comment formatting.
...
* config/sh/linux.h: Fix comment formatting.
* config/sh/netbsd-elf.h: Likewise.
* config/sh/sh.c: Likewise.
* config/sh/sh.h: Likewise.
* config/sh/vxworks.h: Likewise.
From-SVN: r75462
2004-01-06 04:21:52 +00:00
Kelley Cook
dedebde10a
gcc_update (files_generated): Revert 2003-12-18 change.
...
contrib/
2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
* gcc_update (files_generated): Revert 2003-12-18 change.
gcc/ada/
2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
Update comment and copyright date.
* stamp-xgnatug: Delete.
From-SVN: r75461
2004-01-06 02:39:27 +00:00
Mark Mitchell
221bfb0334
re PR c++/13057 (regparm attribute not applied to destructor)
...
PR c++/13057
* class.c (build_clone): Copy type attributes from the original
function to the clone.
From-SVN: r75460
2004-01-06 02:26:13 +00:00
Mark Mitchell
856363c883
re PR c++/12815 (Code compiled with optimization behaves unexpectedly)
...
PR c++/12815
* class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
references as constant.
From-SVN: r75458
2004-01-06 00:52:36 +00:00
Mark Mitchell
962c082399
re PR c++/12815 (Code compiled with optimization behaves unexpectedly)
...
PR c++/12816
* class.c (build_vtbl_ref_1): Do not unconditionally mark vtable
references as constant.
PR c++/12815
* g++.dg/rtti/typeid4.C: New test.
From-SVN: r75457
2004-01-06 00:52:10 +00:00
GCC Administrator
96f7369ac5
Daily bump.
...
From-SVN: r75453
2004-01-06 00:16:07 +00:00
Kazu Hirata
f7e7e31875
system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
...
* system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
* toplev.c (output_file_directive): Don't use
ASM_OUTPUT_MAIN_SOURCE_FILENAME.
From-SVN: r75448
2004-01-05 22:08:26 +00:00
Thomas Fitzsimmons
a8c2775c37
2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
...
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEvents.c
(pre_event_handler): Set all insets to 0 when a Configure event
is received for a GtkPlug.
* gnu/java/awt/EmbeddedWindow.java (window_id): Rename handle.
Make handle long, not int.
(EmbeddedWindow()): New constructor.
(EmbeddedWindow(int)): Rename window_id to handle. Make handle
long, not int.
(setHandle): New method.
(getHandle): Return long, not int.
* gnu/java/awt/peer/EmbeddedWindowPeer.java (embed): New method
declaration.
* gnu/java/awt/peer/gtk/GtkEmbeddedWindowPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkEmbeddedWindowPeer.c:
(create(long)): Take long parameter, not int. Cast gtk_plug_new
argument to GdkNativeWindow.
(construct): New method.
(embed): New method.
From-SVN: r75447
2004-01-05 21:41:21 +00:00
Thomas Fitzsimmons
6037221c71
2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
...
* gnu/java/awt/peer/gtk/GtkScrollPanePeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollPanePeer.c
(create(int, int)): New method.
(create): Call new create method.
(gtkScrolledWindowNew, gtkScrolledWindowSetSize): Remove
methods.
(childResized): Remove native implementation. Implement in
Java.
(getHScrollbarHeight, getVScrollbarWidth): Call
gtk_widget_size_request to get scrollbar dimensions.
* java/awt/ScrollPane.java (getViewportSize): Reimplement. Only
call getVScrollbarWidth and getHScrollbarHeight when vertical
and horizontal scrollbars respectively are needed.
(doLayout): Enlarge child if it is smaller than the viewport.
From-SVN: r75446
2004-01-05 21:35:33 +00:00
Eric Botcazou
4b6eeb9ac4
* gcc.dg/compat/sdata-section.h: Declare 'abort'.
...
From-SVN: r75445
2004-01-05 21:29:39 +00:00
Fernando Nasser
975fde59af
Dialog.java (constructor): Accept null title as per spec.
...
* java/awt/Dialog.java (constructor): Accept null title as per spec.
* java/awt/FileDialog.java (constructor): Throw exception on invalid
argument as per spec.
From-SVN: r75444
2004-01-05 21:23:12 +00:00
Fernando Nasser
b7a9b4af03
Choice.java (add): Leave posting of ItemEvents to peer.
...
2004-01-05 Fernando Nasser <fnasser@redhat.com>
* java/awt/Choice.java (add): Leave posting of ItemEvents to peer.
(insert): Ditto.
(remove): Ditto. Also, Check for valid argument.
(removeAll): Use peer interface method.
* gnu/java/awt/peer/gtk/GtkChoicePeer.java (nativeAdd): New name for
native add function.
(nativeRemove): New name for native remove function.
(getHistory): New native function.
(constructor): Generate ItemEvent.
(add): Ditto, if selection is changed.
(remove): Ditto, ditto.
(removeAll): Add implementation.
(handleEvent): Remove. Dead code.
(choicePostItemEvent): Add comment.
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
(Java_gnu_java_awt_peer_gtk_GtkChoicePeer_append): Add comments.
(Java_gnu_java_awt_peer_gtk_GtkChoicePeer_add): Rename to...
(Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeAdd): New name. Add
comments and fix condition to change selection.
(Java_gnu_java_awt_peer_gtk_GtkChoicePeer_remove): Rename to...
(Java_gnu_java_awt_peer_gtk_GtkChoicePeer_nativeRemove): New name. Add
remove all capability.
(Java_gnu_java_awt_peer_gtk_GtkChoicePeer_getHistory): New function.
(item_activate): Add cast to remove compiler warning.
From-SVN: r75443
2004-01-05 21:18:06 +00:00
Thomas Fitzsimmons
b17fc9eb25
2004-01-05 Thomas Fitzsimmons <fitzsim@redhat.com>
...
* gnu/java/awt/peer/gtk/GtkComponentPeer.java,
jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(getPreferredSize): Call preferredSize.
(preferredSize): Call gtkWidgetGetPreferredDimensions.
(getMinimumSize): Call minimumSize.
(minimumSize): Call gtkWidgetGetPreferredDimensions.
(gtkWidgetGetDimensions): Return the peer widget's current size
request.
(gtkWidgetGetPreferredDimensions): Return the peer widget's
natural size request.
From-SVN: r75442
2004-01-05 21:13:46 +00:00