aboutsummaryrefslogtreecommitdiffstats
path: root/src/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/defines.h')
-rw-r--r--src/defines.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/src/defines.h b/src/defines.h
index 194b933..52d50fe 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -75,8 +75,8 @@
#define PARAMLEN 99 /* initial length of text strings */
#define MAX_MAPLEN 1000 /* maximum length of automapped path */
#define MIN_WORDLEN 3 /* the minimum length for history words */
-#define MAX_WORDS 512 /* number of words kept for TAB-completion */
-#define MAX_HIST 128 /* number of history lines kept */
+#define MAX_WORDS 4096 /* number of words kept for TAB-completion */
+#define MAX_HIST 2048 /* number of history lines kept */
#define LOG_MAX_HASH 7
#define MAX_HASH (1<<LOG_MAX_HASH) /* max hash value, must be a power of 2 */
#define NUMPARAM 10 /* number of local unnamed params allowed
@@ -215,15 +215,25 @@ typedef struct aliasnode {
int active;
} aliasnode;
+typedef struct basenode {
+ char *pattern;
+ char *start, *end; // temporary data: start/end of current line match
+ char mbeg; // match from beginning of string
+ char wild;
+} basenode;
+
typedef struct marknode {
struct marknode *next;
- char *pattern;
+ basenode b;
int attrcode;
- char *start, *end;
- char mbeg;
- char wild;
} marknode;
+typedef struct substnode {
+ struct substnode *next;
+ basenode b;
+ char *replacement;
+} substnode;
+
typedef struct triggernode {
struct triggernode *next;
char *command, *label;
@@ -303,4 +313,3 @@ typedef struct editsess {
} editsess;
#endif /* _DEFINES_H_ */
-