Commit Graph

9 Commits

Author SHA1 Message Date
Ingo Weinhold
758b1d0e05 Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
  declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
  explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
  something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
  'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
  is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
  Otherwise the an inner class with that name is considered as friend.
  gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-12 23:27:14 +00:00
Ingo Weinhold
d8247d2bd9 Changes due to moving RegistrarDefs stuff into the BPrivate namespace.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10815 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-18 01:14:50 +00:00
Ingo Weinhold
58b5124e46 Replace ClipboardTree by Clipboard, a class just representing a clipboard.
The clipboards are managed in a simple string->Clipboard map.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10703 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-13 00:45:55 +00:00
Ingo Weinhold
132c664be7 Added TODO. The implementation should be revised. BClipboard::{Local,System}Count() is broken and I can see why. Instead of just fixing that a reimiplementation is probably best.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10683 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-12 03:41:06 +00:00
shadow303
6cdadea727 Added missing instances of "case"
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1893 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-09 21:19:49 +00:00
DarkWyrm
e4840f5bd2 Checkin for Gabe Yoder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1826 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-02 23:33:33 +00:00
DarkWyrm
b010ca6720 Checkin for Gabe Yoder
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1590 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-22 00:08:45 +00:00
Ingo Weinhold
c09fb4b971 Added doxygen comments.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@495 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-28 13:37:26 +00:00
Ingo Weinhold
4b8a71155a Added a registrar skeleton.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@374 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-07-21 22:40:07 +00:00