Commit Graph

29716 Commits

Author SHA1 Message Date
Stephan Aßmus
b5ec3e5669 * Coding style clean-up.
* Use std::nothrow and check allocations.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-07 19:35:14 +00:00
Rene Gollent
c0e1e0eaac Fix GCC4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-07 19:07:34 +00:00
Stephan Aßmus
bb56a763a6 Resolved TODOs in PluginManager about leaking plugins when they are no longer
needed. I've added MediaPlugin* fields to Reader and Decoder plugin classes
which are set when the PluginManager hands out new instances. This way the
manager knows what plugin created the Decoder or Reader instance in the
Destroy*() methods and can decrease the reference count accordingly. Also added
some FBC stuffing to Decoder and Reader. All media plugins need to be recompiled,
in case anyone has some outside the Haiku tree.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-07 18:11:05 +00:00
Stephan Aßmus
5fa2230d99 Just saw that _Remove(index) here was as broken as in TList.h.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-07 18:04:32 +00:00
Stephan Aßmus
85af513ad6 Remove() was completely broken if not removing the very last item.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-07 17:56:59 +00:00
Michael Lotz
acf58ffdab Cleanup. Line length, white space.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-07 14:54:11 +00:00
Axel Dörfler
e52400cf24 * Fixed a race condition in the former _Detach*() functions: since atomic_get()
was used, two different threads could decide to share the same mutable string.
* Renamed some functions to make clearer what they do, ie. _Detach() is now
  called _MakeWritable().
* Cleaned up some questionable semantics, like the const char* parameter in
  _DetachWith() - you can now choose to copy the original string or not with
  a boolean. This also makes sure that the string is actually copied when it
  has to, which wasn't the case before (but that was no problem with the way
  that function was used).
* Made the header compliant with our style guide.
* Further cleanup.
* All BString related unit tests are passed, so I guess I didn't break too
  much :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-06 11:23:17 +00:00
Stephan Aßmus
a55f3fb022 Patch by Joe Prostko: Add linking to libstdc++ in some places, which is
necessary when compiling the code for example with -O1 or with the upcomming
GCC 4.4. Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-06 10:35:14 +00:00
Ryan Leavengood
be7bee59b6 Added Eiffel, Rexx and Ruby file extensions to source code file type.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 23:21:53 +00:00
Philippe Saint-Pierre
ed3e75317e Load the bitmaps from resources rather than from a byte array in a
header. Fixing a TODO in MouseView.cpp

This patch was in ticket #3754. (Thanks to Axel for the reminder and 
thanks to Brecht for your help extracting the images from the header!)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 21:21:06 +00:00
Axel Dörfler
759e46ea2c * Improved variable naming.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 15:59:21 +00:00
Axel Dörfler
477a4ca70e * vfs_boot.cpp now also exports gReadOnlyBootDevice which is true when the
boot device is actually read-only (even if it's using the write overlay).
* Do not create a swap file on a read-only device - this would really be a
  stupid use of the write overlay (just saw this happening on an older
  machine).
* Made swap_file_{add|delete}() take a const char* path - there was no reason
  this was writable, and this also avoids casting away the const when adding
  the default swap file.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 15:52:58 +00:00
Axel Dörfler
bfd4c59b63 * Added DPMS support to the VESA driver, in case the hardware/BIOS supports it.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 13:03:05 +00:00
Rene Gollent
08acbdd994 Fix gcc4 build. Closes ticket #3996.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 12:33:22 +00:00
Axel Dörfler
4a8250546b * Unmounting a volume now actually works, this fixes bug #3671.
* Added -u as an alias for -unmount. Added -readonly as an alias for -ro.
* Made the volume/fs column width depending on the terminal size.
* Now lists the volumes (-l) when invoked without any arguments instead of
  showing the help text.
* Improved output of not mounted volumes.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 09:49:43 +00:00
Rudolf Cornelissen
bc84e16481 comments update only: newly discovered PLL info/trouble. needs to be investigated more.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 09:10:40 +00:00
Axel Dörfler
7e7aeaeba4 * Fixed wrong partition name in mkfs, closing ticket #3954.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 09:06:11 +00:00
Stephan Aßmus
483f3c84d9 Added lightbulb icon made by zuMi (idea alerts). Great work, thanks a lot!
Fixes alert part of ticket #1429.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 08:43:41 +00:00
Stephan Aßmus
03807931d8 Patch by Geert Hendrickx:
* Fixed remapping the Control keys.
* Adjusted the caps-lock shifted keys, in case someone decides to exchange
  the left backspace key for the caps-lock key again.

Thanks a lot!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 08:22:09 +00:00
Axel Dörfler
2c604c0df5 * CircularBuffer is now save to use even if the buffer allocation failed. This
fixes bug #3985.
* This happened as ViewHistory::Update() can obviously be called before the
  view is really layouted. Therefore it now restricts the view size to 16384.
* Since the Update() happens in Draw(), it looks like this is actually a problem
  of our layout engine (as the size is computed via BView::Frame()).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 08:20:43 +00:00
Axel Dörfler
c0fba701e1 * Added dprintf_no_syslog() to our kernel emulation layer.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 08:14:31 +00:00
Axel Dörfler
1f40b5d26c * Removed Menu preferences. This closes ticket #3976.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 07:47:08 +00:00
Axel Dörfler
d5f3f51106 * Fixed wrong localhost. This fixes bug #3990.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 07:37:24 +00:00
Rene Gollent
a63261ea5a Added files missed in previous commit. Thanks Urias.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 03:50:21 +00:00
Rene Gollent
80829ec813 Imported Gerald Zajac's ATI Mach64 / Rage driver and removed the old GPL-only mach64 driver that wasn't even part of the image anyways. Thanks!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-05 02:50:25 +00:00
Axel Dörfler
cb8948154c * Only call Removed() on the device if the device actually got removed, not if
only one of its partitions went away. This should fix #3983.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 21:06:06 +00:00
Axel Dörfler
9ca4077700 * Fixed a bug that let _InvalidateAfter() access already freed memory, and would
also mess up the file map, causing all sorts of file corruption.
* This fixes bug #3991 (and eventually some others).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 12:29:15 +00:00
Axel Dörfler
2b665ac362 * Simplified computation as suggested by Ingo.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 12:27:09 +00:00
Axel Dörfler
9b9bbca910 * Fixed Map::GetFileMap(), added some more tests.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 12:11:37 +00:00
Axel Dörfler
503e56854f * Started a file_map test app.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 10:50:09 +00:00
Axel Dörfler
584ba8989e * Fixed debug build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 09:57:31 +00:00
Ingo Weinhold
7927ebb672 Moved the appending of '*'/'&' for pointer/reference parameters to the gcc 2
demangler, where it belongs. The gcc 4 stack traces look correct now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 02:00:45 +00:00
Ingo Weinhold
15394881a8 * Implemented demangling support for the current gcc ABI. Looks good so far
save for the additional '&'/'*' print_demangled_call() is printing for
  reference/pointer arguments.
* Moved the new demangler and the gcc 2 demangler into the same module
  always supporting both (the right one is chosen). In mixed gcc 2/gcc 4
  environments we obviously need both of them.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-04 01:47:05 +00:00
Axel Dörfler
cf2a26ea96 * Don't overwrite the history buffer when you issue the same command more than
once.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 21:05:29 +00:00
Jérôme Duval
ce684bcc33 Adding lrintf declarations conflicts on avcodec when building gcc4. Noticed by Michael Weirauch.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 20:36:29 +00:00
Rudolf Cornelissen
7843b5bfa3 re-enabled EDID native modeline grabbing with I2C bus 2 enabled. Now EDID is correctly fetched on all my cards, including G72 id0x1d1 and NV43 id0x141. info is stored in shared_info, not actually used yet though. (wip)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 19:20:04 +00:00
Ingo Weinhold
813d6a742f print_demangled_call(): Use a heap allocated buffer. This allows us to be more
generous with the size.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 13:36:35 +00:00
Ingo Weinhold
360d4974b9 Replaced the temporary storage used in the kernel debug command parser. We now
have a simple dedicated heap for the kernel debugger with stacked allocation
pools (deleting a pool frees all memory allocated in it). The heap should
eventually be used for all commands that need temporary storage too large for
the stack instead of each using its own static buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 12:28:49 +00:00
Axel Dörfler
5734ece852 * Improved output.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 12:16:25 +00:00
Axel Dörfler
e07e55403c * Removed debug output of the old pad fields that no longer exist.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30947 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-03 12:14:16 +00:00
Rudolf Cornelissen
c1db4db3cc modified I2C code to read the third bus on cards that can support it. Dumping EDID scanning results in logfile only for now (testing..) Bumped version to 0.92.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30946 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 20:37:59 +00:00
Jérôme Duval
59d67522ea added lrint and llrint functions to math.h
added generic implementations for ppc and m68k


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30945 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 20:24:18 +00:00
Gerasim Troeglazov
30bc84e971 Update NTFS-3g Library to stable 2009.4.4 version. Clean up code. Now write support enabled by default.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30944 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 12:21:10 +00:00
David McPaul
4cf2271b57 Bring matroska library up to latest version. Allows V2 matroska file playback
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30943 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 09:34:16 +00:00
David McPaul
938fd5a7e0 Update to v1.61 of MatroskaParser library
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30942 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-02 09:15:14 +00:00
Axel Dörfler
656341901e * Reintroduced the find_own_image() function, as I think this is the cleaner
approach.
* Made get_next_line() static as it should have been in the first place.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30941 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 20:47:41 +00:00
Axel Dörfler
e9c7d49aa0 * Minor cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 20:44:59 +00:00
imker
2e750f8bc8 Optional package for vim editor added.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30939 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 20:21:55 +00:00
Rudolf Cornelissen
dd67a9b2d4 added enabling I2C buses for NV40 arch cards. hopefully this makes the buses work on GF6100 (noted in bug #2780) and maybe others. added a few registerdefines (wip).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30938 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 20:06:21 +00:00
Ingo Weinhold
fa773c0ae5 vnode_path_to_vnode(): Don't propagate the traverseLeafLink flag, if we've
decided to recursively resolve a symlink. We only have to do the resolution
when the flag is true anyway or the symlink is not the last component of
our path, in which case we have to resolve it anyway. Fixes #3986.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30937 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-06-01 11:12:12 +00:00