version 1.13, 2015/11/06 15:50:33 |
version 1.14, 2015/11/07 18:07:44 |
|
|
struct tag *tp; |
struct tag *tp; |
|
|
tp = ecalloc(sizeof (struct tag), 1); |
tp = ecalloc(sizeof (struct tag), 1); |
tp->tag_file = save(file); |
tp->tag_file = estrdup(file); |
tp->tag_linenum = linenum; |
tp->tag_linenum = linenum; |
tp->tag_endline = endline; |
tp->tag_endline = endline; |
if (pattern == NULL) |
if (pattern == NULL) |
tp->tag_pattern = NULL; |
tp->tag_pattern = NULL; |
else |
else |
tp->tag_pattern = save(pattern); |
tp->tag_pattern = estrdup(pattern); |
return (tp); |
return (tp); |
} |
} |
|
|