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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user