summaryrefslogtreecommitdiffstats
path: root/smenu.h
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2015-10-30 23:04:16 +0100
committerpgen <p.gen.progs@gmail.com>2015-10-30 23:04:16 +0100
commit0102ed2a7e20f7beeb2bcc2195cb5d9f81b351a6 (patch)
tree30be4e5dc13423b353e093cc465158662b9af0ff /smenu.h
parentcbccf97a3186a04d14650105b057380e6e0ad197 (diff)
Improve the word substitution mechanism
- Add a -S option to do substitution on all words - Allow more than one -S/-I/-E option with cumulative effects - Adjust the manual accordingly and fix its use of fonts
Diffstat (limited to 'smenu.h')
-rw-r--r--smenu.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/smenu.h b/smenu.h
index 259f112..ab213b5 100644
--- a/smenu.h
+++ b/smenu.h
@@ -25,6 +25,7 @@ typedef struct win_s win_t;
typedef struct word_s word_t;
typedef struct color_s color_t;
typedef struct limits_s limits_t;
+typedef struct sed_s sed_t;
void help(win_t * win, term_t * term, int last_line);
void usage(void);
@@ -108,7 +109,5 @@ void sig_handler(int s);
void set_new_first_column(win_t * win, term_t * term, word_t * word_a);
-int parse_replacement_string(char *str, regex_t * re, char **rs, int *global,
- int *visual);
-int replace(char *orig, char *subst, regex_t * re, int global, char *buf,
- size_t bufsiz);
+int parse_sed_like_string(sed_t * sed);
+int replace(char *orig, sed_t * sed, char *buf, size_t bufsiz);