Some common declarations for the DavisDB project. More...
#include <limits.h>
Go to the source code of this file.
Defines | |
#define | BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)])) |
A helpful macro for compile-time assertions. | |
Typedefs | |
typedef unsigned int | uint |
Shorthand for unsigned int. | |
typedef unsigned char | uchar |
Shorthand for unsigned char. | |
typedef unsigned long | ulong |
Shorthand for unsigned long. | |
Enumerations | |
enum | ReturnCode { RC_OK, RC_EOF, RC_PAGE_PINNED, RC_PAGE_NOT_IN_BUFFER, RC_PAGE_UNPINNED, RC_PAGE_FREE, RC_INVALID_PAGE, RC_FILE_OPEN, RC_CLOSED_FILE, RC_FILE_NOT_FOUND, RC_INVALID_ARGUMENT, RC_FILE_ALREADY_EXISTS, RC_PAGE_NOT_FOUND, RC_PAGE_NOT_DIRTY, RC_NOT_OPEN_FILE, RC_RECORD_TOO_LARGE, RC_RECORD_NOT_FOUND, RC_RECORD_ALREADY_IN_INDEX, RC_OUT_OF_MEMORY, RC_OUT_OF_BUFFER, RC_INCOMPLETE_READ, RC_INCOMPLETE_WRITE, RC_INCOMPLETE_HEADER_READ, RC_INCOMPLETE_HEADER_WRITE, RC_PAGE_IN_BUFFER, RC_INVALID_NAME, RC_UNIX, RC_CORRUPT_FILE, RC_FILE_TOO_BIG, RC_UNIMPLEMENTED } |
Some common declarations for the DavisDB project.
#define BUILD_BUG_ON | ( | condition | ) | ((void)sizeof(char[1 - 2*!!(condition)])) |
A helpful macro for compile-time assertions.
A helpful macro for compile-time assertions, used to break the build if the condition is not satisfied. This can be useful, e.g., to ensure that a given structure will fit on a PF_PAGE_SIZE-byte page. See AllocationPage for sample usage.
enum ReturnCode |
Standard return codes for DavisDB components, indicating success or various errors and exceptions.