Landtiger LPC1768 C BigLib
1
A self made, custom C library for the LandTiger board.
Loading...
Searching...
No Matches
cl_types.h
Go to the documentation of this file.
1
#ifndef __CL_TYPES_H
2
#define __CL_TYPES_H
3
4
// COMPARE FUNCTION
5
7
typedef
int (*
CL_CompareFn
)(
const
void
*,
const
void
*);
8
9
#define _COMPARE_FN(__name, __a_param, __b_param, ...) \
10
_PRIVATE int __name(const void *const __a_param, const void *const __b_param) __VA_ARGS__
11
12
// ERRORS
13
19
// #define CL_AUTO_SIZE 0
20
// #define CL_AUTO_SIZE_BASE_COUNT 10
21
23
typedef
enum
24
{
26
CL_ERR_OK
= 0,
27
29
CL_ERR_INVALID_PARAMS
,
30
32
CL_ERR_OUT_OF_BOUNDS
,
33
35
CL_ERR_NO_MEMORY
,
36
38
CL_ERR_NOT_FOUND
,
39
41
CL_ERR_EMPTY
,
42
}
CL_Error
;
43
44
#endif
CL_CompareFn
int(* CL_CompareFn)(const void *, const void *)
A function pointer type for comparing two elements.
Definition
cl_types.h:7
CL_Error
CL_Error
Specify this in the size parameter of the collections initialization to tell the library that the num...
Definition
cl_types.h:24
CL_ERR_EMPTY
@ CL_ERR_EMPTY
Empty collection.
Definition
cl_types.h:41
CL_ERR_NOT_FOUND
@ CL_ERR_NOT_FOUND
Not found.
Definition
cl_types.h:38
CL_ERR_OUT_OF_BOUNDS
@ CL_ERR_OUT_OF_BOUNDS
Out of bounds.
Definition
cl_types.h:32
CL_ERR_NO_MEMORY
@ CL_ERR_NO_MEMORY
No memory available.
Definition
cl_types.h:35
CL_ERR_INVALID_PARAMS
@ CL_ERR_INVALID_PARAMS
Invalid arguments.
Definition
cl_types.h:29
CL_ERR_OK
@ CL_ERR_OK
No error.
Definition
cl_types.h:26
Keil
Include
Collections
cl_types.h
Generated by
1.9.8