mirror of
https://github.com/carp-lang/Carp.git
synced 2024-10-26 13:51:50 +03:00
25 lines
345 B
C
25 lines
345 B
C
#ifndef PRELUDE_H
|
|
#define PRELUDE_H
|
|
|
|
#include <assert.h>
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
|
|
typedef char* string;
|
|
typedef char* pattern;
|
|
|
|
// Array
|
|
typedef struct {
|
|
size_t len;
|
|
void *data;
|
|
} Array;
|
|
|
|
bool not(bool b) {
|
|
return !b;
|
|
}
|
|
|
|
bool and(bool x, bool y) { return x && y; }
|
|
bool or(bool x, bool y) { return x || y; }
|
|
|
|
#endif
|