# HG changeset patch # User epoch # Date 1406864567 0 # Node ID c6c05029393ac1b9105814616f7bff6bac2b9406 # Parent 619467ad01ad3a5b9cf45288093a05491512a2f7 ;) diff -r 619467ad01ad -r c6c05029393a contrib/marc/marc.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/marc/marc.c Fri Aug 01 03:42:47 2014 +0000 @@ -0,0 +1,195 @@ +#include +#include +#include + +//run this on the file from a wget http://marc.ucis.ano/?get=0&version=3 + +#define M_TYPE_NULL 0 +#define M_TYPE_STRING 1 +#define M_TYPE_LIST 2 +#define M_TYPE_DICT 3 + +char *type[]={"NULL","string","list","dict"}; + +int indent; + +void pi() { + int i; + for(i=0;i