Commit Graph

27903 Commits

Author SHA1 Message Date
Stefano Ceccherini
4a7ad412f6 revert r28970, since they cause crashes. Still looking into it
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28997 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 14:05:12 +00:00
Stephan Aßmus
708f40e5a9 Fixed GCC version check according to Michael.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28996 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 12:36:36 +00:00
Michael Lotz
09a009d4af Move include directories for C++ headers to the beginning. This makes
include_next work properly with newer headers. GCC 4.3.2 has a <cstddef> in its
C++ headers for example that does an include_next of <stddef.h>. The latter is
located in the C headers. For this to work, the include directory for the C
headers needs to be specified later than the one of the C++ headers.
With that Haiku is now completely buildable with GCC 4.3.2.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 03:23:21 +00:00
Michael Lotz
bc840cd466 Remove this panic. This one is triggered when booting my GCC 4.3.2 built image
but I don't see why. If someone still knows why this was put there, please check.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 03:15:35 +00:00
Michael Lotz
ce837badf2 Fix GCC2 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 03:10:17 +00:00
Michael Lotz
fb3e35fcec Fixing all headers/namespaces/name lookup problems that hinder a GCC 4.3.2
build. I sure hope that this doesn't break the build for anyone else.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 03:05:15 +00:00
Michael Lotz
7e359a9b53 Having the first argument to main() non-int is an error in GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28991 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 02:37:28 +00:00
Michael Lotz
0644703068 Having the first argument to main() non-int is an error in GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28990 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 02:07:37 +00:00
Michael Lotz
aacebf533d Having the first argument to main() non-int is an error in GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28989 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 01:55:40 +00:00
Michael Lotz
f89856e548 Having the first argument to main() non-int is an error in GCC 4.3.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 01:49:32 +00:00
Michael Lotz
ddb785a296 Better return B_ERROR when not compiling the actual call in.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 01:30:29 +00:00
Michael Lotz
c9c7eecd8e Comment out problematic inline asm statement for GCC 4. The direct reference
to sAPMBiosEntry generates undefined symbols and I'm not in a condition to fix
this right now. Added a TODO.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 01:24:47 +00:00
Michael Lotz
eff61480cc Fix header and add std namespace to nothrow.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 01:21:27 +00:00
François Revol
a0a4211e6d - fix typo, it's "dumb" terminal type :)
- move setting the terminal window title to COMMAND_PROMPT, it fixes issues like beeping when editting the command line.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 01:02:04 +00:00
Michael Lotz
64f7e20f9c Add -ffreestanding to kernel C/C++ flags. This means that ISO conventions like
the main() signature are not applied and do not generate errors when violated.
Our bootloader has a non-standard main() signature for example, which is of
course fine.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28983 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 00:40:41 +00:00
Michael Lotz
18cd67c760 Add missing headers (malloc/free, string functions, memcpy, etc. undeclared).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-23 00:36:25 +00:00
Michael Lotz
b668bf21b2 Change function name to work with stricter name lookup in GCC 4.3. See
http://gcc.gnu.org/gcc-4.3/porting_to.html for reference.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-22 23:10:50 +00:00
Philippe Houdoin
28eeacfd7f Ooops, cursor base address register should be the last written, as it's the trigger register.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28980 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 22:20:03 +00:00
Jérôme Duval
65641d7f8d ok.. seems I mixed up NS device id and AMD vendor id.
Both devices are now checked for.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 21:02:15 +00:00
Philippe Houdoin
9d2810262f Specify both cursor width and height.
BTW, changing cursor shape when he's invisible will show it immediatly
right now. Sounds like wrong... 


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28978 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 20:22:29 +00:00
Axel Dörfler
78e1849576 * atomic_test_and_set() did actually not test if the lock was lost, and
would therefore not always work correctly.
* Minor cleanup, added return register for completeness.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28977 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 11:28:50 +00:00
Axel Dörfler
cb744e5c22 * Implemented Copy(), Cut(), and Paste() for the hex mode. Additionally, the
text view will now accept raw data in text mode as well.
* This closes bug #3327.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28976 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 08:31:44 +00:00
Axel Dörfler
8bc239bc55 * Resolved a TODO and implemented an is_valid_utf8() function that replaces the
former is_valid_ascii(). This function is now also exported in the header.
* Some cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28975 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 08:30:24 +00:00
Rene Gollent
2409f4caa6 Fix a few style violations from my previous commit. (thanks Axel!)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28974 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-21 01:22:30 +00:00
Michael Lotz
23ce8ab1da Tiny cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28973 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 20:59:40 +00:00
Axel Dörfler
c6790819de * Use the new get_device_icon() call under Haiku. This fixes bug #3325.
* Whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28972 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 20:38:44 +00:00
Stefano Ceccherini
530ce9aaab added mbtest to the build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28971 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 16:10:39 +00:00
Stefano Ceccherini
64f6abaa91 Imported some wide char functions from freebsd, adapted to the build, tried to integrate them with the glibc we are using. The mbtest supplied in ticket #2822 seems to work, without regressions. Please shout if there are issues.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28970 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 16:09:58 +00:00
Stephan Aßmus
a4a780dbed Removed left over.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28969 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 12:17:10 +00:00
Axel Dörfler
8e8b747220 * Fixed minor style issue :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28968 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 10:39:07 +00:00
Axel Dörfler
01b60f3d7e * Fixed one more case of a resulting 0 byte buffer. Also added a test case for
it to the test app. This finally fixes ticket #2594.
* Of course, I neither saw this one before, nor did I accidently reproduce it
  with a test :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 10:38:05 +00:00
Stephan Aßmus
a4ef4a4915 Beginnings of a test app that shows all Interface Kit controls in various
configurations so that one can work better on the look.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 09:27:41 +00:00
François Revol
9b7603b992 This should definitely fix CD booting, it was still looking for the tgz at 192k while zbeos is now almost 300k... Maybe we need something more failproof but it shoudl do for now.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28965 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 04:40:57 +00:00
François Revol
f62e434974 Fix error signedness, 10l for Oliver!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28964 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 02:22:57 +00:00
Rene Gollent
5d1e75d3cb If we're going to fail because of a missing CD drive, never show the CD player window at all instead of flickering it briefly. This fixes ticket #2333.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28963 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 01:42:15 +00:00
Rene Gollent
bd98bd9555 Slightly tweak the volume slider's tracking logic to keep attention on the mouse even if it exits the view. This allows click dragging without having to be quite as precise. Fixes ticket #3317.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28962 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-20 01:07:42 +00:00
Axel Dörfler
b2cd5c48e7 * Applied Scott's patch to remove the duplicate definitions, thus closing
bug #2237. Thanks!
* Cleaned up the file a bit (removed the _P() and fixed indentation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28961 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 22:20:28 +00:00
Jérôme Duval
f26379bcfd added svgz as an extension for SVG
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28960 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 19:46:32 +00:00
Axel Dörfler
a107d1676e * Made the get_token_list() function behave the same way as under BeOS. This
simplifies the code in the Switcher, but has the drawback that the window
  list is not "static" anymore, ie. the items in the window list of the Deskbar
  will now jump around as in BeOS.
* However, EasyMove now works under Haiku as well out of the box, if that is
  something we want :)
* Maybe we should instead add another parameter to the window list to make
  it sorted or not; sorting the list as it's done now is much simpler and
  faster on the server.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28959 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 19:16:43 +00:00
Axel Dörfler
93f76bfb7e * Turns out the assert was wrong; since the previous buffer can be adjacent to
the next buffer, it can also cause the new buffer to start at the same
  sequence as the next buffer.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28958 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 17:40:20 +00:00
Michael Lotz
236ecca7da Fix missing mutex_unlock() in case of opening an already removed device.
Spotted by Mika Lindqvist, thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28957 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 17:35:56 +00:00
Stephan Aßmus
7f6629a943 Tweaking the look again, trying to take some of Axel's suggestions
into account. I think the shadow bevel on the right is a spoiler
though, and will change that back. But Axel can compare this way...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 16:54:16 +00:00
Stefano Ceccherini
ee9b4396bf fCheckMouseTracking was never initialized to false, causing spurious selections when opening a new tab. Fixes bug #2910
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28955 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 16:01:43 +00:00
Stefano Ceccherini
321bba933d Vertical menu scrolling was enabled also in case the menu was wider than the screen, but this is obviously wrong. The menu window was also resized to be the height of the screen in this case, and it was the cause of bug #3174. Note that horizontal scrolling is not yet implemented
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28954 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 15:31:31 +00:00
Michael Lotz
a8b0095433 Style cleanup. Please at least try to...
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28953 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 12:33:59 +00:00
Axel Dörfler
c2177fe861 * The Switcher now "remembers" the first app when doing a quick switch over
more than one application, so that will be the next app to switch to for the
  next switch.
* This solution is not entirely perfect, though, as it needs to visually bring
  the first app to front inbetween to work.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28952 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 11:46:53 +00:00
Stephan Aßmus
ce5d64725d * Renamed the drawing functions in DrawingEngine to
remove the *Gradient part. In general, there is
  a lot of code duplication now, also in Painter. I
  will need to find a way to elliminate this again.
  Also, all the stroking functions should be gradient
  enabled as well.
* Improved the look of the DefaultDecorater, inspired
  by the patch from Dennis Washington. I did not adopt
  the changes which give backwards compatibility
  problems, though, like changing the window border
  width or the single border decorator color. But I
  reckon these changes are overall even a bit smoother.
* Fixed a long standing decorator bug, where the resize
  area of the border was visually different than the
  click recognition.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28951 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 10:31:43 +00:00
Axel Dörfler
82fcd4339f * Shortened all strndup() buffers by one to have the same outcome as with
the previous local strndup() implementation.
* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28950 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 10:08:06 +00:00
François Revol
9c2491ccc4 Implement B_GET_ICON_NAME to return "devices/drive-removable-media-usb" as it seems correct as per the FreeDesktop.org Icon Naming Specification we agreed to use for now, cf. http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28949 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 02:19:27 +00:00
Michael Lotz
9cad6c3632 Add ioctl cases for B_GET_ICON, B_GET_ICON_NAME and B_GET_VECTOR_ICON. The first
won't be implemented, the second currently isn't and the third is. This gets
rid of the frequent "unhandled ioctl" messages when using USB drives and also
adds the nice pendrive icon to the mount list when using USB storage devices.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28948 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-01-19 01:58:05 +00:00