mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-16 07:34:45 +03:00
60d597fccd
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).
20 lines
295 B
C
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);
|