ref: b16375893ad58a69c9797fb76c97631de0513eb0
dir: /spread.h/
extern int debug;
typedef struct P P;
typedef struct Node Node;
typedef struct Cell Cell;
typedef struct Response Response;
#define FUNCTION 1
#define STRING 2
int inithoc(void);
void interactivehoc(void);
int loadfile(char *file);
int writefile(char *file);
Response getvalue(char *cell);
void addcell(P cell, char *value, int type);
void rmcell(P cell);
Cell* getcell(P cell);
void gccells(void);
void dumpcells(void);
void foreachcell(void (*f)(Cell*));
void sortcells(void);
void toupperil(char*);
P atop(char*);
char* ptoa(P); // resulting char* is mallocd
#define PEQ(a, b) ((a).x == (b).x && (a).y == (b).y)
struct P {
int x;
int y;
};
struct Cell {
P p;
char *value;
int type;
Cell **points;
int size;
int num;
int indeg;
};
struct Response {
char *msg;
int error;
};