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

Loading…
Cancel
Save