diff options
author | emersion <contact@emersion.fr> | 2019-01-08 10:05:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 10:05:37 +0100 |
commit | 140bc2dd5b81205df58bf06e695788e689fae397 (patch) | |
tree | 6a88913630734736763b12ec0b10da68ef413256 /include | |
parent | Merge pull request #3337 from RedSoxFan/fix-seat-cmd-cursor (diff) | |
parent | fixup! stringop.c: rewrite strip_whitespace (diff) | |
download | sway-140bc2dd5b81205df58bf06e695788e689fae397.tar.gz sway-140bc2dd5b81205df58bf06e695788e689fae397.tar.zst sway-140bc2dd5b81205df58bf06e695788e689fae397.zip |
Merge pull request #3275 from ianyfan/remove-readline
Rewrite strip_whitespace and remove readline.c
Diffstat (limited to 'include')
-rw-r--r-- | include/readline.h | 10 | ||||
-rw-r--r-- | include/stringop.h | 5 |
2 files changed, 1 insertions, 14 deletions
diff --git a/include/readline.h b/include/readline.h deleted file mode 100644 index ee2eba5d..00000000 --- a/include/readline.h +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | #ifndef _SWAY_READLINE_H | ||
2 | #define _SWAY_READLINE_H | ||
3 | |||
4 | #include <stdio.h> | ||
5 | |||
6 | char *read_line(FILE *file); | ||
7 | char *peek_line(FILE *file, int line_offset, long *position); | ||
8 | char *read_line_buffer(FILE *file, char *string, size_t string_len); | ||
9 | |||
10 | #endif | ||
diff --git a/include/stringop.h b/include/stringop.h index d1bfa29d..f7ca60a5 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -3,10 +3,7 @@ | |||
3 | 3 | ||
4 | #include "list.h" | 4 | #include "list.h" |
5 | 5 | ||
6 | // array of whitespace characters to use for delims | 6 | void strip_whitespace(char *str); |
7 | extern const char whitespace[]; | ||
8 | |||
9 | char *strip_whitespace(char *str); | ||
10 | char *strip_comments(char *str); | 7 | char *strip_comments(char *str); |
11 | void strip_quotes(char *str); | 8 | void strip_quotes(char *str); |
12 | 9 | ||