diff options
| author | rimio <vasi.vilvoiu@gmail.com> | 2018-02-26 00:26:03 +0200 |
|---|---|---|
| committer | rimio <vasi.vilvoiu@gmail.com> | 2018-02-26 00:26:03 +0200 |
| commit | 5c5694dc87e2a752809ee40bac6604fd3a8a275e (patch) | |
| tree | a981155d71c03066465a2229b05f014e321b1d04 /src/ecbor_internal.h | |
| parent | b55c1a59c7404b979891ff8ec328cddc2dd681fb (diff) | |
Partial decoder (WIP)
Diffstat (limited to 'src/ecbor_internal.h')
| -rw-r--r-- | src/ecbor_internal.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/ecbor_internal.h b/src/ecbor_internal.h new file mode 100644 index 0000000..f0ec24b --- /dev/null +++ b/src/ecbor_internal.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) 2018 Vasile Vilvoiu <vasi.vilvoiu@gmail.com> + * + * libecbor is free software; you can redistribute it and/or modify + * it under the terms of the MIT license. See LICENSE for details. + */ + +#ifndef _ECBOR_INTERNAL_H_ +#define _ECBOR_INTERNAL_H_ + +/* Don't rely on <stddef.h> for this */ +#define NULL 0 +#define false 0 +#define true 1 + +/* Additional value meanings */ +enum { + ECBOR_ADDITIONAL_1BYTE = 24, + ECBOR_ADDITIONAL_2BYTE = 25, + ECBOR_ADDITIONAL_4BYTE = 26, + ECBOR_ADDITIONAL_8BYTE = 27, + + ECBOR_ADDITIONAL_INDEFINITE = 31 +}; + +#endif
\ No newline at end of file |
