Commit 3a1bd388 authored by Chris Müller's avatar Chris Müller

lib: don't use a typedef for standard tuples

lib: use int for return_codes (negative error numbers)
lib: Rename OKAY to CRY_OKAY.
parent f1294baa
......@@ -20,18 +20,19 @@
#define CRYSTAL_STANDARD_H
#include <stdlib.h>
#include <stdint.h>
#define crydefine__tuple(type, T) \
typedef struct T { \
struct T { \
return_code code; \
type data; \
} T
}
#define OKAY 0
#define CRY_OKAY 0
typedef void* pointer;
typedef const void* const_pointer;
typedef unsigned int return_code;
typedef int return_code;
crydefine__tuple(pointer, tuple_pointer);
crydefine__tuple(const char*, tuple_string);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment