10 * parse a single tuple
13 _ndbparsetuple(char *cp, Ndbtuple **tp)
19 /* a '#' starts a comment lasting till new line */
21 if(*cp == '#' || *cp == '\n')
25 setmalloctag(t, getcallerpc(&cp));
30 while(*cp != '=' && !ISWHITE(*cp) && *cp != '\n')
35 strncpy(t->attr, p, len);
43 while(*cp != '\n' && *cp != '"')
48 } else if(*cp == '#'){
52 while(!ISWHITE(*cp) && *cp != '\n')
63 * parse all tuples in a line. we assume that the
64 * line ends in a '\n'.
66 * the tuples are linked as a list using ->entry and
67 * as a ring using ->line.
70 _ndbparseline(char *cp)
73 Ndbtuple *first, *last;
76 while(*cp != '#' && *cp != '\n'){
78 cp = _ndbparsetuple(cp, &t);
89 setmalloctag(t, getcallerpc(&cp));
93 ndbsetmalloctag(first, getcallerpc(&cp));