diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2014-12-15 11:29:38 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2014-12-15 11:36:35 +0100 |
commit | e3ab39bf39d0ba75f6eb504752ef0ffb4bf4a3b1 (patch) | |
tree | a82d339953922d01c5a27dfa00ff811cc2723ab8 /wlp/yytest.c | |
parent | c1098b321415976df7b6fc77117046b3b515885d (diff) | |
download | pygn-e3ab39bf39d0ba75f6eb504752ef0ffb4bf4a3b1.tar.gz |
I am able to build the extension with setup.py
Diffstat (limited to 'wlp/yytest.c')
-rw-r--r-- | wlp/yytest.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/wlp/yytest.c b/wlp/yytest.c new file mode 100644 index 0000000..74c6fe7 --- /dev/null +++ b/wlp/yytest.c @@ -0,0 +1,25 @@ +#include <stdio.h> + +#include "structs.h" +#include "macro.h" + + + +int parse(FILE *file); + +struct wlp_list_t *list; + +int main(int argc,char **argv) { + struct wlp_node_t *tmp; + int count; + + parse(NULL); + + if(list) + for(tmp = list->head, count=0; + tmp != list->head || count == 0; + tmp = tmp->next, count++) + printf("FOUND(%d) '%s' '%s' '%s'\n",count,tmp->left,tmp->right,tmp->owner); + + return(0); +} |