Mercurial > hg
changeset 1424:bb1cc8902d0e
Allow "/buffer list" when debugging mode is disabled
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sun, 17 Feb 2008 21:19:48 +0100 |
parents | 757ebe4df0b9 |
children | b0cfd9ab4b9f |
files | mcabber/src/commands.c mcabber/src/hbuf.c mcabber/src/hbuf.h mcabber/src/screen.c mcabber/src/screen.h |
diffstat | 5 files changed, 1 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/mcabber/src/commands.c Sun Feb 17 21:15:30 2008 +0100 +++ b/mcabber/src/commands.c Sun Feb 17 21:19:48 2008 +0100 @@ -208,6 +208,7 @@ compl_add_category_word(COMPL_BUFFER, "scroll_lock"); compl_add_category_word(COMPL_BUFFER, "scroll_unlock"); compl_add_category_word(COMPL_BUFFER, "scroll_toggle"); + compl_add_category_word(COMPL_BUFFER, "list"); // Group category compl_add_category_word(COMPL_GROUP, "fold"); @@ -1481,10 +1482,8 @@ buffer_date(arg); } else if (*subcmd == '%') { buffer_percent(subcmd+1, arg); -#ifdef ENABLE_DEBUG } else if (!strcasecmp(subcmd, "list")) { scr_BufferList(); -#endif } else { scr_LogPrint(LPRINT_NORMAL, "Unrecognized parameter!"); }
--- a/mcabber/src/hbuf.c Sun Feb 17 21:15:30 2008 +0100 +++ b/mcabber/src/hbuf.c Sun Feb 17 21:19:48 2008 +0100 @@ -412,7 +412,6 @@ return g_list_nth(hbuf, pc*hlen/100); } -#ifdef ENABLE_DEBUG // hbuf_get_blocks_number() // Returns the number of allocated hbuf_block's. guint hbuf_get_blocks_number(GList *hbuf) @@ -427,6 +426,5 @@ } return count; } -#endif /* vim: set expandtab cindent cinoptions=>2\:2(0: For Vim users... */
--- a/mcabber/src/hbuf.h Sun Feb 17 21:15:30 2008 +0100 +++ b/mcabber/src/hbuf.h Sun Feb 17 21:19:48 2008 +0100 @@ -47,9 +47,7 @@ GList *hbuf_jump_date(GList *hbuf, time_t t); GList *hbuf_jump_percent(GList *hbuf, int pc); -#ifdef ENABLE_DEBUG guint hbuf_get_blocks_number(GList *p_hbuf); -#endif #endif /* __HBUF_H__ */
--- a/mcabber/src/screen.c Sun Feb 17 21:15:30 2008 +0100 +++ b/mcabber/src/screen.c Sun Feb 17 21:19:48 2008 +0100 @@ -2661,7 +2661,6 @@ update_panels(); } -#ifdef ENABLE_DEBUG // buffer_list() // key: winId/jid // value: winbuf structure @@ -2686,7 +2685,6 @@ scr_setmsgflag_if_needed(SPECIAL_BUFFER_STATUS_ID, TRUE); update_roster = TRUE; } -#endif // scr_set_chatmode() // Public function to (un)set chatmode...
--- a/mcabber/src/screen.h Sun Feb 17 21:15:30 2008 +0100 +++ b/mcabber/src/screen.h Sun Feb 17 21:19:48 2008 +0100 @@ -167,10 +167,7 @@ void scr_RosterClearColor(void); void scr_MucColor(const char *muc, muccoltype type); void scr_MucNickColor(const char *nick, const char *color); - -#ifdef ENABLE_DEBUG void scr_BufferList(void); -#endif void readline_transpose_chars(void); void readline_forward_kill_word(void);