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
34 lines
527 B
C++
34 lines
527 B
C++
/*
|
|
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
|
** Distributed under the terms of the Haiku License.
|
|
*/
|
|
|
|
|
|
#include <Beep.h>
|
|
#include <stdio.h>
|
|
|
|
|
|
status_t
|
|
system_beep(const char *eventName)
|
|
{
|
|
printf("beep event \"%s\" requested.\n", eventName);
|
|
// ToDo: ask media server to beep around
|
|
return B_ERROR;
|
|
}
|
|
|
|
|
|
status_t
|
|
beep()
|
|
{
|
|
return system_beep(NULL);
|
|
}
|
|
|
|
|
|
status_t
|
|
add_system_beep_event(const char *eventName, uint32 flags)
|
|
{
|
|
// ToDo: ask media server to add beep event
|
|
return B_ERROR;
|
|
}
|
|
|