Update documentation

main
Hammy 3 years ago
parent 6e62654ced
commit 86f52f6670

@ -1,23 +1,19 @@
#include "list.h" #include "list.h"
#include "stdarg.h" #include "stdarg.h"
/*
* -- ERROR CODES --
*
* [ERRNO 2147483646] -> Cannot Allocate Memory To Backing Array
* [ERRNO 2167483645] -> Cannot Reallocate Memory To Backing Array
* [ERRNO 2147483644] -> Index Out Of Bounds For Retrieving Element
* [ERRNO 2147483643] -> Values 2147483646 -> 2147483642 Cannot Be Inserted Into List
* [ERRNO 2147483642] -> Element Does Not Exist Within List
*/
#define DEFAULT_MAX_SIZE 10 #define DEFAULT_MAX_SIZE 10
#define ERRNO_SIZE 5
// [ERRNO 2147483646] -> Cannot Allocate Memory To Backing Array
#define ERRNO_001 2147483646 #define ERRNO_001 2147483646
// [ERRNO 2167483645] -> Cannot Reallocate Memory To Backing Array
#define ERRNO_002 2147483645 #define ERRNO_002 2147483645
// [ERRNO 2147483644] -> Index Out Of Bounds For Retrieving Element
#define ERRNO_003 2147483644 #define ERRNO_003 2147483644
// [ERRNO 2147483643] -> Values 2147483646 -> 2147483642 Cannot Be Inserted Into List
#define ERRNO_004 2147483643 #define ERRNO_004 2147483643
// [ERRNO 2147483642] -> Element Does Not Exist Within List
#define ERRNO_005 2147483642 #define ERRNO_005 2147483642
#define ERRNO_SIZE 5
List *List_createList(int maxSize, int currentSize); List *List_createList(int maxSize, int currentSize);

Loading…
Cancel
Save