Merge pull request #3275 from ianyfan/remove-readline

Rewrite strip_whitespace and remove readline.c
This commit is contained in:
emersion 2019-01-08 10:05:37 +01:00 committed by GitHub
commit 140bc2dd5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 161 additions and 274 deletions

View file

@ -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

View file

@ -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);