aboutsummaryrefslogtreecommitdiff
path: root/tmux.h
diff options
context:
space:
mode:
authornicm <nicm>2020-03-31 16:53:23 +0000
committernicm <nicm>2020-03-31 16:53:23 +0000
commite6d1b6770c14e401fc131e9bfa5a5d2068b9211f (patch)
tree4e2a48928d80c5341cb3f16595c1424fc832541b /tmux.h
parentcc8b41f294974cdfb1ddfe3b907da58374ff130f (diff)
downloadrtmux-e6d1b6770c14e401fc131e9bfa5a5d2068b9211f.tar.gz
rtmux-e6d1b6770c14e401fc131e9bfa5a5d2068b9211f.tar.bz2
rtmux-e6d1b6770c14e401fc131e9bfa5a5d2068b9211f.zip
Add non-regex search variants to avoid the performance cost for people
with large histories or long lines.
Diffstat (limited to 'tmux.h')
-rw-r--r--tmux.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/tmux.h b/tmux.h
index 53bbc222..20559144 100644
--- a/tmux.h
+++ b/tmux.h
@@ -1048,9 +1048,6 @@ struct environ_entry {
char *name;
char *value;
- int flags;
-#define ENVIRON_HIDDEN 0x1
-
RB_ENTRY(environ_entry) entry;
};
@@ -1960,10 +1957,10 @@ struct environ_entry *environ_first(struct environ *);
struct environ_entry *environ_next(struct environ_entry *);
void environ_copy(struct environ *, struct environ *);
struct environ_entry *environ_find(struct environ *, const char *);
-void printflike(4, 5) environ_set(struct environ *, const char *, int,
- const char *, ...);
+void printflike(3, 4) environ_set(struct environ *, const char *, const char *,
+ ...);
void environ_clear(struct environ *, const char *);
-void environ_put(struct environ *, const char *, int);
+void environ_put(struct environ *, const char *);
void environ_unset(struct environ *, const char *);
void environ_update(struct options *, struct environ *, struct environ *);
void environ_push(struct environ *);