diff options
author | Massimiliano Ghilardi <massimiliano.ghilardi@gmail.com> | 2023-01-12 20:06:31 (GMT) |
---|---|---|
committer | Massimiliano Ghilardi <massimiliano.ghilardi@gmail.com> | 2023-01-12 20:06:31 (GMT) |
commit | cade2c07eeadbd230b9c64607750813415b8231e (patch) | |
tree | 1d5eae0ae687b9af42afd543db62b6082957ce19 /src/defines.h | |
parent | 57cc8e95ac7f96ff6eae17b46edc60b01f2d0e0a (diff) | |
download | powwow-cade2c07eeadbd230b9c64607750813415b8231e.zip powwow-cade2c07eeadbd230b9c64607750813415b8231e.tar.gz powwow-cade2c07eeadbd230b9c64607750813415b8231e.tar.bz2 |
implement command #substitute [string[=[text]]]
Diffstat (limited to 'src/defines.h')
-rw-r--r-- | src/defines.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/defines.h b/src/defines.h index 1e273e1..87687ef 100644 --- a/src/defines.h +++ b/src/defines.h @@ -215,15 +215,25 @@ typedef struct aliasnode { int active; } aliasnode; -typedef struct marknode { - struct marknode *next; +typedef struct basenode { char *pattern; - int attrcode; - char *start, *end; + char *start, *end; // temporary data: start/end of current line match char mbeg; char wild; +} basenode; + +typedef struct marknode { + struct marknode *next; + basenode b; + int attrcode; } 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_ */ - |