1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

core: add limits for buffers (max 10000 buffers opened, number of a buffer: between 1 and INT_MAX - 10000)

This commit is contained in:
Sebastien Helleu
2013-11-30 18:45:19 +01:00
parent 3e90657ab0
commit 92d6074931
3 changed files with 69 additions and 11 deletions
+5
View File
@@ -20,6 +20,7 @@
#ifndef __WEECHAT_GUI_BUFFER_H
#define __WEECHAT_GUI_BUFFER_H 1
#include <limits.h>
#include <regex.h>
struct t_hashtable;
@@ -46,6 +47,10 @@ enum t_gui_buffer_notify
#define GUI_BUFFER_MAIN "weechat"
#define GUI_BUFFERS_MAX 10000
#define GUI_BUFFER_NUMBER_MAX (INT_MAX - 10000)
#define GUI_TEXT_SEARCH_DISABLED 0
#define GUI_TEXT_SEARCH_BACKWARD 1
#define GUI_TEXT_SEARCH_FORWARD 2