Reads, stores and prints numbers correctly. Reads and stores lists and

strings, but they don't print correctly.
This commit is contained in:
Simon Brooke 2017-01-07 02:17:54 +00:00
parent 5920b0d04f
commit 85cc542d74
9 changed files with 226 additions and 125 deletions

View file

@ -9,14 +9,14 @@
* the size which, by version 1, it will default to) is the maximum value of an unsigned 32
* bit integer, which is to say 4294967296. However, we'll start small.
*/
#define CONSPAGESIZE 64
#define CONSPAGESIZE 8
/**
* the number of cons pages we will initially allow for. For convenience we'll set up an array
* of cons pages this big; however, later we will want a mechanism for this to be able to grow
* dynamically to the maximum we can currently allow, which is 4294967296.
*/
#define NCONSPAGES 64
#define NCONSPAGES 8
/**
* a cons page is essentially just an array of cons space objects. It might later have a local
@ -56,17 +56,17 @@ void free_cell(struct cons_pointer pointer);
* @param tag the tag of the cell to allocate - must be a valid cons space tag.
* @return the cons pointer which refers to the cell allocated.
*/
struct cons_pointer allocatecell( char* tag);
struct cons_pointer allocate_cell( char* tag);
/**
* initialise the cons page system; to be called exactly once during startup.
*/
void conspagesinit();
void initialise_cons_pages();
/**
* dump the allocated pages to this output stream.
*/
void dumppages( FILE* output);
void dump_pages( FILE* output);
#endif