struct db_context contains 282 bytes in 5 blocks (ref 0) d=(nil) 0x1f64e70 */
| 32 | |
| 33 | /* struct db_context contains 282 bytes in 5 blocks (ref 0) d=(nil) 0x1f64e70 */ |
| 34 | static struct node *parse(const char *line) |
| 35 | { |
| 36 | struct node *n = new_node(); |
| 37 | const char *p; |
| 38 | |
| 39 | p = strstr(line, " contains "); |
| 40 | p += strlen(" contains "); |
| 41 | p += strspn(line, " "); |
| 42 | n->len = strtol(p, NULL, 0); |
| 43 | p = strstr(p, "d="); |
| 44 | if (p[2] != '(') |
| 45 | n->destructor = true; |
| 46 | return n; |
| 47 | } |
| 48 | |
| 49 | static void add_child(struct node *parent, struct node *child) |
| 50 | { |
no test coverage detected