limit.h (765B)
1 /* This program is licensed under the terms of GNU GPL v3 or (at your option) 2 * any later version. Copyright (C) 2022-2026 Страхиња Радић. 3 * See the file LICENSE for exact copyright and license details. */ 4 5 /* Limits */ 6 /* clang-format off */ 7 enum { 8 L_PATH_MAX = 0, 9 L_LINE_MAX = 1, 10 L_LIMIT_COUNT = 2 11 }; 12 /* clang-format on */ 13 14 extern long limits[]; 15 16 /* buffer growth factor, in lines */ 17 #define ALLOC_DELTA 50 18 /* line growth factor, in characters */ 19 #define LINE_ALLOC_DELTA 85 20 /* initial line size (not length) */ 21 #define LINE_DEFAULT 85 22 /* maximum size of field in input dialog */ 23 #define MAXINPUT (512 + 1) 24 /* maximum chars for UTF-8 representations of Unicode chars, per Unicode char */ 25 #define UTF8REPMAX 6 26 27 int init_limits(const char* dir);