aboutsummaryrefslogtreecommitdiffstats
path: root/src/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/defines.h')
-rw-r--r--src/defines.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/defines.h b/src/defines.h
index 1e273e1..52d50fe 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -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_ */
-