X-Git-Url: https://hackdaworld.org/gitweb/?p=my-code%2Fapi.git;a=blobdiff_plain;f=list%2Flist.h;h=b415f90ddc284e23fd624080920b994619a922ec;hp=c500c1a58b64cc834c13856fd80a09a9547d7f22;hb=7a01a093081adee6313dc0805f91fb84548e092e;hpb=040060604e2dc08d17d900825072aad88206ae3b diff --git a/list/list.h b/list/list.h index c500c1a..b415f90 100644 --- a/list/list.h +++ b/list/list.h @@ -2,9 +2,11 @@ #include +#define L_SUCCESS 1 +#define L_ERROR -1 -#define SINGLE 'S' -#define DOUBLE 'D' +#define C_NUMBER (1<<0) +#define C_DATA (1<<1) typedef struct s_list_element { struct s_list_element *next; @@ -14,4 +16,6 @@ typedef struct s_list_element { typedef struct s_list { t_list_element start; + unsigned char method; + t_list_element *current; } t_list;