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