mirror of
https://github.com/swaywm/sway.git
synced 2026-02-13 04:28:07 -05:00
Merge pull request #3275 from ianyfan/remove-readline
Rewrite strip_whitespace and remove readline.c
This commit is contained in:
commit
140bc2dd5b
15 changed files with 161 additions and 274 deletions
|
|
@ -1,10 +0,0 @@
|
|||
#ifndef _SWAY_READLINE_H
|
||||
#define _SWAY_READLINE_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
char *read_line(FILE *file);
|
||||
char *peek_line(FILE *file, int line_offset, long *position);
|
||||
char *read_line_buffer(FILE *file, char *string, size_t string_len);
|
||||
|
||||
#endif
|
||||
|
|
@ -3,10 +3,7 @@
|
|||
|
||||
#include "list.h"
|
||||
|
||||
// array of whitespace characters to use for delims
|
||||
extern const char whitespace[];
|
||||
|
||||
char *strip_whitespace(char *str);
|
||||
void strip_whitespace(char *str);
|
||||
char *strip_comments(char *str);
|
||||
void strip_quotes(char *str);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue