comparison lwasm/struct.c @ 223:211fc8038b8d

More unicorn stuff - structs and macros Settled on an output format for unicorn stuff and added structs and macros to that output. Format is: TYPE: <key>=<value>[,<key>=<value>]* Any <value> which has special characters will use urlencoding. Values with multiple values use a semicolon as a separator.
author William Astle <lost@l-w.ca>
date Sun, 15 Jul 2012 20:14:51 -0600
parents ccaecdff3fc2
children 8764142b3192
comparison
equal deleted inserted replaced
222:03f7192fcd20 223:211fc8038b8d
61 s = lw_alloc(sizeof(structtab_t)); 61 s = lw_alloc(sizeof(structtab_t));
62 s -> name = lw_strdup(l -> sym); 62 s -> name = lw_strdup(l -> sym);
63 s -> next = as -> structs; 63 s -> next = as -> structs;
64 s -> fields = NULL; 64 s -> fields = NULL;
65 s -> size = 0; 65 s -> size = 0;
66 s -> definedat = l;
66 as -> structs = s; 67 as -> structs = s;
67 as -> cstruct = s; 68 as -> cstruct = s;
68 69
69 skip_operand(p); 70 skip_operand(p);
70 71