cleaned up comments in ktypes header

master
Anton Lydike 3 years ago
parent b5893aacab
commit c71ee1498c

@ -26,7 +26,7 @@ enum process_status {
PROC_WAIT_SLEEP = 3,
};
// process structure:
// forward define structs for recursive references
typedef struct ProcessControlBlock ProcessControlBlock;
struct loaded_binary;
@ -91,10 +91,12 @@ typedef struct Optional##type { \
#define has_value(optional) (optional.error == 0)
#define has_error(optional) (!has_value(optional))
typedef unsigned int size_t;
// define some type aliases that only contain ascii character
// they are used in the name of the struct optional_<name>
typedef void* voidptr;
typedef ProcessControlBlock* pcbptr;
// size_t is another standard type
typedef unsigned int size_t;
// create optionals for required types
CreateOptionalOfType(int);

Loading…
Cancel
Save