projects
/
my-code
/
api.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
some improvements to bmp_write_file function (still untested!)
[my-code/api.git]
/
list
/
list.h
1
/* list.h -- list headers */
2
3
#include <stdio.h>
4
5
#define L_SUCCESS 1
6
#define L_ERROR -1
7
8
#define C_NUMBER (1<<0)
9
#define C_DATA (1<<1)
10
11
typedef struct s_list_element {
12
struct s_list_element *next;
13
void *data;
14
int number;
15
} t_list_element;
16
17
typedef struct s_list {
18
t_list_element start;
19
unsigned char method;
20
t_list_element *current;
21
} t_list;