Remove separate GCC4 versions of add_debug_command()/remove_debug_command() and
add the const in any case. As Axel points out these are C functions and we do not affect binary compatibility by changing their signature. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29124 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -499,23 +499,15 @@ print_debugger_command_usage(const char* commandName)
|
||||
// #pragma mark - public API
|
||||
|
||||
int
|
||||
#if __GNUC__ > 2
|
||||
add_debugger_command(const char *name, int (*func)(int, char **),
|
||||
const char *desc)
|
||||
#else
|
||||
add_debugger_command(char *name, int (*func)(int, char **), char *desc)
|
||||
#endif
|
||||
{
|
||||
return add_debugger_command_etc(name, func, desc, NULL, 0);
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
#if __GNUC__ > 2
|
||||
remove_debugger_command(const char * name, int (*func)(int, char **))
|
||||
#else
|
||||
remove_debugger_command(char * name, int (*func)(int, char **))
|
||||
#endif
|
||||
{
|
||||
struct debugger_command *cmd = sCommands;
|
||||
struct debugger_command *prev = NULL;
|
||||
|
||||
Reference in New Issue
Block a user