Idris2/tests/chez/chez013/struct.h
Edwin Brady a972778eab Add test script
They don't all pass yet, for minor reasons. Coming shortly...
Unfortunately the startup overhead for chez is really noticeable here!
2020-05-19 18:25:18 +01:00

23 lines
326 B
C

#ifndef _STRUCT_H
#define _STRUCT_H
typedef struct {
int x;
int y;
} point;
typedef struct {
char* name;
point* pt;
} namedpoint;
point* mkPoint(int x, int y);
void freePoint(point* pt);
namedpoint* mkNamedPoint(char* str, point* p);
void freeNamedPoint(namedpoint* np);
char* getString(void *p);
#endif