Commit b6c22406 authored by Niels Möller's avatar Niels Möller
Browse files

* parse.c (parse_atom_list): New limit argument; longer lists will

return NULL.

Rev: src/parse.h:1.15
parent c9810403
......@@ -79,7 +79,7 @@ int parse_next_atom(struct simple_buffer *buffer, int *result);
/* Creates a list of integers. The 0 atom means an unknown atom was
* read. Returns a NULL pointer on error. */
struct int_list *parse_atom_list(struct simple_buffer *buffer);
struct int_list *parse_atom_list(struct simple_buffer *buffer, unsigned limit);
/* 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