diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2014-12-15 16:56:56 +0000 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2014-12-15 16:56:56 +0000 |
commit | 02c305343ba1e25864b77c0381f8bc768927e4a7 (patch) | |
tree | 372844320f2abac1579636198d36ec3a6e7d34eb /wlp/structs.h | |
parent | c1098b321415976df7b6fc77117046b3b515885d (diff) | |
parent | f65b8f618ed0b59f0c2c14321bbfa9de8e802169 (diff) | |
download | pygn-02c305343ba1e25864b77c0381f8bc768927e4a7.tar.gz |
Merge branch 'testsuite' into 'master'
Testsuite
Hopefully this makes my pyg fork presentable.
See merge request !1
Diffstat (limited to 'wlp/structs.h')
-rw-r--r-- | wlp/structs.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/wlp/structs.h b/wlp/structs.h new file mode 100644 index 0000000..92036a7 --- /dev/null +++ b/wlp/structs.h @@ -0,0 +1,35 @@ +/* + * structs.h - Copyright 2000, 2001 by Cosimo Alfarano <Alfarano@CS.UniBo.It> + * You can use this software under the terms of the GPL. If we meet some day, + * and you think this stuff is worth it, you can buy me a beer in return. + * + * Thanks to md for this useful formula. Beer is beer. + */ + +#ifndef _structs_h_ +#define _structs_h_ + +typedef struct wlp_node_t { + char *left,*right; + char *owner; + char type; /* unused */ + struct wlp_node_t *next, *prev; +} wlp_node_t; + +typedef struct wlp_list_t { + int count; + struct wlp_node_t *head, *tail; +} wlp_list_t; + + +/* white list parser data structure manipulation */ +struct wlp_list_t *wlpl_init(struct wlp_node_t *node); +struct wlp_node_t *wlpn_alloc(const char empty); +void wlpn_free(struct wlp_node_t *node); +struct wlp_node_t *wlpn_add(struct wlp_list_t *wlpl,struct wlp_node_t *wlpn); +struct wlp_node_t *wlpn_extract(struct wlp_list_t *wlpl,struct wlp_node_t *wlpn); +/*struct wlp_node_t *wlpn_search(struct wlp_list_t *wlpl,const char id);*/ + +#endif /* _structs_h_ */ + +/* EOF */ |