Idris2/tests/chez/chez013/struct.h
Stiopa Koltsov 60d597fccd Use pragma once instead of include guard
Pragma once is supported by all compilers for the last ten years.
Better use it instead of include guards (which use different styles
in different files).
2021-06-28 12:05:22 +01:00

20 lines
295 B
C

#pragma once
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);