diff options
author | Filippos Karapetis | 2009-02-16 22:45:23 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-02-16 22:45:23 +0000 |
commit | 6ec40aa9f64101c82daa621610bb9d66a85b4001 (patch) | |
tree | 3a072176fab27dd1f642179ffa4fb068776d6a9b /engines/sci/engine | |
parent | dbb8ad9da18a4289071bec086f64b8e79f92fb19 (diff) | |
download | scummvm-rg350-6ec40aa9f64101c82daa621610bb9d66a85b4001.tar.gz scummvm-rg350-6ec40aa9f64101c82daa621610bb9d66a85b4001.tar.bz2 scummvm-rg350-6ec40aa9f64101c82daa621610bb9d66a85b4001.zip |
Removed unused code and defines
svn-id: r38385
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/scriptconsole.cpp | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/engines/sci/engine/scriptconsole.cpp b/engines/sci/engine/scriptconsole.cpp index 7679040745..96e6614e39 100644 --- a/engines/sci/engine/scriptconsole.cpp +++ b/engines/sci/engine/scriptconsole.cpp @@ -124,104 +124,6 @@ unsigned int cmd_paramlength; cmd_param_t *cmd_params; -/********** dmalloc functions **********/ - -#ifdef WITH_DMALLOC - -int -c_dm_stats(state_t * s) { - dmalloc_log_stats(); - return 0; -} - -int -c_dm_log_unfreed(state_t * s) { - dmalloc_log_unfreed(); - return 0; -} - -int -c_dm_verify(state_t * s) { - unsigned long pointer_var; - void *ptr; - - pointer_var = strtoul(cmd_params[0].str, NULL, 0); - ptr = (void *) pointer_var; - - dmalloc_verify(ptr); - - return 0; -} - -int -c_dm_debug(state_t * s) { - if (cmd_paramlength) { - long newval = strtol(cmd_params[0].str, NULL, 0); - - sciprintf("Setting dmalloc_debug(%ld)\n", newval); - dmalloc_debug(newval); - } else - sciprintf("dmalloc_debug is at 0x%lx\n", dmalloc_debug_current()); - return 0; -} - -int -c_dm_mark(state_t * s) { - unsigned long mark = dmalloc_mark(); - - dmalloc_message("------------- MARK 0x%lx ---------------\n", mark); - sciprintf("mark 0x%lx\n", mark); - return 0; -} - -int -c_dm_chmark(state_t * s) { - unsigned long mark = strtoul(cmd_params[0].str, NULL, 0); - sciprintf("Checking mark 0x%lx\n", mark); - dmalloc_message("--- Mark 0x%lx:\n", mark); - dmalloc_log_changed(mark, 1, 1, 1); - return 0; -} - -int -c_dm_print(state_t * s) { - int i; - for (i = 0; i < cmd_paramlength; i++) - dmalloc_message("%s\n", cmd_params[i].str); - return 0; -} - -void -con_init_dmalloc() { - con_hook_command(c_dm_stats, "dm_stats", "", - "Prints memory usage stats\n to the dmalloc output file\n\n dm_stats"); - con_hook_command(c_dm_log_unfreed, "dm_log_unfreed", "", - "Prints unfreed pointer\n information to the dmalloc\n output file\n\n" - "USAGE\n\n dm_log_unfreed"); - con_hook_command(c_dm_verify, "dm_verify", "s", - "Verifies one pointer,\n prints output to dmalloc file\n\nUSAGE\n\n" - " dm_verify <ptr>\n dm_verify 0\n\n 'dm_verify 0' will verify\n ALL current pointers.\n"); - con_hook_command(c_dm_debug, "dm_debug", "s*", - "Sets the dmalloc debug\n state or displays it\n\nUSAGE\n\n dm_debug <mode>\n dm_debug"); - con_hook_command(c_dm_mark, "dm_mark", "", - "Gets a mark describing\n the current heap state\n\nUSAGE\n\n dm_mark\n\n" - " The mark is written to the\n dmalloc output file and\n to sci output.\n\nSEE ALSO\n\n cm_chmark"); - con_hook_command(c_dm_chmark, "dm_chmark", "s", - "Checks changes in the\n heap state since a certain\n mark was retrieved\n\n" - "USAGE\n\n c_dm_chmark <mark>\n\n Output is written to the\n dmalloc output file.\n\n Use dm_mark to retrieve a\n" - " mark.\n\nSEE ALSO\n\n c_dm_mark"); - con_hook_command(c_dm_print, "dm_print", "s*", - "Prints something to the\n dmalloc output.\n\nUSAGE\n\n dm_print <text>"); -} -#else /* WITH_DMALLOC */ - -void -con_init_dmalloc(void) { -} - -#endif /* WITH_DMALLOC */ - - void _cmd_exit(void) { int t; @@ -320,8 +222,6 @@ con_init(void) { " ?obj.idx may be used to disambiguate 'obj'\n" " by the index 'idx'.\n"); - con_init_dmalloc(); - con_hook_int(&con_passthrough, "con_passthrough", "scicon->stdout passthrough"); } |