#
758b1d0e |
|
12-Nov-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
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
|
#
4cbc183b |
|
21-Jul-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added option "-t" to specify the window title. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13797 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
42244cf3 |
|
14-Jul-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Changed MiniTerminal command line arguments. Location and size are now specified via options -l and -s. An arbitrary program can be run in the terminal instead of a shell. * Console::fState was never initialized which could cause the terminal to not print anything. * stdin, -out, and -err were set in MiniView::Start() and in MiniView::ExecuteShell(). Thus resetting them in the latter method after executing the shell had no effect. Removed it in the former method and now reset them after loading, but before resuming the shell. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13676 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
758b1d0e05fe1042cce6e00d194a147802d4f9be |
|
12-Nov-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
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
|
#
4cbc183b53c514dfa87690f2e4ffb596dbeb708f |
|
21-Jul-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Added option "-t" to specify the window title. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13797 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
42244cf30eecf46a9e9e45953b0cc05870f765c1 |
|
14-Jul-2005 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
* Changed MiniTerminal command line arguments. Location and size are now specified via options -l and -s. An arbitrary program can be run in the terminal instead of a shell. * Console::fState was never initialized which could cause the terminal to not print anything. * stdin, -out, and -err were set in MiniView::Start() and in MiniView::ExecuteShell(). Thus resetting them in the latter method after executing the shell had no effect. Removed it in the former method and now reset them after loading, but before resuming the shell. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13676 a95241bf-73f2-0310-859d-f6bbb57e9c96
|