add possibility to iterate with the parser, update unit tests, update README

This commit is contained in:
ado
2021-02-28 19:22:54 +01:00
parent e62afbb8a5
commit 1ddc61c62e
5 changed files with 210 additions and 31 deletions

View File

@@ -1,4 +1,7 @@
#pragma once
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <vector>
namespace ss {
@@ -21,7 +24,6 @@ inline ssize_t get_line(char** lineptr, size_t* n, FILE* stream) {
return getline(lineptr, n, stream);
}
#else
#include <cstdint>
using ssize_t = int64_t;
inline ssize_t get_line(char** lineptr, size_t* n, FILE* stream) {
size_t pos;