hirc

IRC client
Log | Files | Refs

commit 270c09a56a4fbdb1117c45615ac7c71f84a86474
parent e9966b422586161ecc4bdae66669355065a009d9
Author: hhvn <dev@hhvn.uk>
Date:   Wed,  1 Dec 2021 15:20:25 +0000

hirc.h: remove COMMANDARG_MAX as command_getopts doesn't use array

The plan was originally to return an array with each opt,
but the while loop method seemed a simpler approach.

Diffstat:
Mhirc.h | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/hirc.h b/hirc.h @@ -6,9 +6,6 @@ #include "struct.h" #define PARAM_MAX 64 #define INPUT_MAX 8192 -#define COMMANDARG_MAX (INPUT_MAX / 5) - /* Theoretical max: -a o -b o -c o * - * 12345 */ #define MAX_HISTORY 8192 /* real maximum = MAX_HISTORY * (channels + servers + queries) */ #define strcmp_n(s1, s2) s1 == s2 ? 0 : (s1 ? s2 ? strcmp(s1, s2) : -1 : -1)