Commit e7114fd1 authored by Niels Möller's avatar Niels Möller

* src/parse.c (parse_rest): New function.

Rev: src/parse.c:1.32
Rev: src/parse.h:1.24
parent 4f113ee3
......@@ -306,6 +306,18 @@ parse_atom_list(struct simple_buffer *buffer, unsigned limit)
return parse_atoms(&sub_buffer, limit);
}
struct lsh_string *
parse_rest(struct simple_buffer *buffer)
{
UINT32 length = LEFT;
struct lsh_string *s = ssh_format("%ls", length, HERE);
ADVANCE(length);
assert(!LEFT);
return s;
}
/* Returns success (i.e. 1) iff there is no data left */
int
parse_eod(struct simple_buffer *buffer)
......
......@@ -83,6 +83,10 @@ struct int_list *parse_atoms(struct simple_buffer *buffer, unsigned limit);
* read. Returns a NULL pointer on error. */
struct int_list *parse_atom_list(struct simple_buffer *buffer, unsigned limit);
/* Copies the rest of the buffer into a string. */
struct lsh_string *
parse_rest(struct simple_buffer *buffer);
/* Returns success (i.e. 1) iff there is no data left */
int parse_eod(struct simple_buffer *buffer);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment