version 1.28, 2020/03/13 15:32:29 |
version 1.30, 2020/03/21 00:17:31 |
|
|
struct tag_entry *entry; |
struct tag_entry *entry; |
unsigned int slot; |
unsigned int slot; |
|
|
|
if (tag_data.info.free == NULL) |
|
return; |
entry = ohash_first(&tag_data, &slot); |
entry = ohash_first(&tag_data, &slot); |
while (entry != NULL) { |
while (entry != NULL) { |
free(entry->nodes); |
free(entry->nodes); |
|
|
entry = ohash_next(&tag_data, &slot); |
entry = ohash_next(&tag_data, &slot); |
} |
} |
ohash_delete(&tag_data); |
ohash_delete(&tag_data); |
|
tag_data.info.free = NULL; |
} |
} |
|
|
/* |
/* |
Line 86 tag_put(const char *s, int prio, struct roff_node *n) |
|
Line 89 tag_put(const char *s, int prio, struct roff_node *n) |
|
if (n->child == NULL || n->child->type != ROFFT_TEXT) |
if (n->child == NULL || n->child->type != ROFFT_TEXT) |
return; |
return; |
s = n->child->string; |
s = n->child->string; |
if (s[0] == '\\' && (s[1] == '&' || s[1] == 'e')) |
switch (s[0]) { |
s += 2; |
case '-': |
|
s++; |
|
break; |
|
case '\\': |
|
switch (s[1]) { |
|
case '&': |
|
case '-': |
|
case 'e': |
|
s += 2; |
|
break; |
|
default: |
|
break; |
|
} |
|
break; |
|
default: |
|
break; |
|
} |
} |
} |
|
|
/* |
/* |