|
|
@ -80,6 +80,7 @@ settrace(wordlist *wl, int what, char *name) |
|
|
db_type = DB_SAVE; |
|
|
db_type = DB_SAVE; |
|
|
break; |
|
|
break; |
|
|
} |
|
|
} |
|
|
|
|
|
tfree(s); |
|
|
/* wrd_chtrace(NULL, TRUE, what); */ |
|
|
/* wrd_chtrace(NULL, TRUE, what); */ |
|
|
} else { |
|
|
} else { |
|
|
switch (what) { |
|
|
switch (what) { |
|
|
@ -95,10 +96,12 @@ settrace(wordlist *wl, int what, char *name) |
|
|
} |
|
|
} |
|
|
/* v(2) --> 2, i(vds) --> vds#branch */ |
|
|
/* v(2) --> 2, i(vds) --> vds#branch */ |
|
|
db_nodename1 = copynode(s); |
|
|
db_nodename1 = copynode(s); |
|
|
|
|
|
tfree(s); |
|
|
|
|
|
if (!db_nodename1) /* skip on error */ |
|
|
|
|
|
continue; |
|
|
/* wrd_chtrace(s, TRUE, what); */ |
|
|
/* wrd_chtrace(s, TRUE, what); */ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
tfree(s); /*DG avoid memoy leak */ |
|
|
|
|
|
d = TMALLOC(struct dbcomm, 1); |
|
|
d = TMALLOC(struct dbcomm, 1); |
|
|
d->db_analysis = name; |
|
|
d->db_analysis = name; |
|
|
d->db_type = db_type; |
|
|
d->db_type = db_type; |
|
|
@ -157,7 +160,7 @@ copynode(char *s) |
|
|
char *l, *r; |
|
|
char *l, *r; |
|
|
char *ret = NULL; |
|
|
char *ret = NULL; |
|
|
|
|
|
|
|
|
if (strstr(s, "(")) |
|
|
|
|
|
|
|
|
if (strchr(s, '(')) |
|
|
s = stripWhiteSpacesInsideParens(s); |
|
|
s = stripWhiteSpacesInsideParens(s); |
|
|
else |
|
|
else |
|
|
s = copy(s); |
|
|
s = copy(s); |
|
|
@ -167,6 +170,12 @@ copynode(char *s) |
|
|
return s; |
|
|
return s; |
|
|
|
|
|
|
|
|
r = strchr(s, ')'); |
|
|
r = strchr(s, ')'); |
|
|
|
|
|
if (!r) { |
|
|
|
|
|
fprintf(cp_err, "Warning: Missing ')' in %s\n Not saved!\n", s); |
|
|
|
|
|
tfree(s); |
|
|
|
|
|
return NULL; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
*r = '\0'; |
|
|
*r = '\0'; |
|
|
if (*(l - 1) == 'i' || *(l - 1) == 'I') |
|
|
if (*(l - 1) == 'i' || *(l - 1) == 'I') |
|
|
ret = tprintf("%s#branch", l + 1); |
|
|
ret = tprintf("%s#branch", l + 1); |
|
|
|