~mdw
/
sgt
/
halibut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The Unicode OVERLINE in the text backend documentation was probably supposed
[sgt/halibut]
/
bk_info.c
diff --git
a/bk_info.c
b/bk_info.c
index
5c05817
..
03f8926
100644
(file)
--- a/
bk_info.c
+++ b/
bk_info.c
@@
-279,7
+279,7
@@
void info_backend(paragraph *sourceform, keywordlist *keywords,
indexentry *entry;
for (i = 0; (entry = index234(idx->entries, i)) != NULL; i++) {
indexentry *entry;
for (i = 0; (entry = index234(idx->entries, i)) != NULL; i++) {
- info_idx *ii =
mk
new(info_idx);
+ info_idx *ii =
s
new(info_idx);
info_data id = EMPTY_INFO_DATA;
id.charset = conf.charset;
info_data id = EMPTY_INFO_DATA;
id.charset = conf.charset;
@@
-631,7
+631,7
@@
void info_backend(paragraph *sourceform, keywordlist *keywords,
if (fp)
fclose(fp);
if (fp)
fclose(fp);
- fname =
mknewa(char, strlen(conf.filename) + 40
);
+ fname =
snewn(strlen(conf.filename) + 40, char
);
sprintf(fname, "%s-%d", conf.filename, filenum);
fp = fopen(fname, "w");
if (!fp) {
sprintf(fname, "%s-%d", conf.filename, filenum);
fp = fopen(fname, "w");
if (!fp) {
@@
-678,7
+678,7
@@
static int info_check_index(word *w, node *n, indexdata *idx)
if (ii->nnodes >= ii->nodesize) {
ii->nodesize += 32;
if (ii->nnodes >= ii->nodesize) {
ii->nodesize += 32;
- ii->nodes =
resize(ii->nodes, ii->nodesize
);
+ ii->nodes =
sresize(ii->nodes, ii->nodesize, node *
);
}
ii->nodes[ii->nnodes++] = n;
}
ii->nodes[ii->nnodes++] = n;
@@
-1024,7
+1024,7
@@
static node *info_node_new(char *name, int charset)
{
node *n;
{
node *n;
- n =
mk
new(node);
+ n =
s
new(node);
n->text = empty_info_data;
n->text.charset = charset;
n->up = n->next = n->prev = n->lastchild = n->listnext = NULL;
n->text = empty_info_data;
n->text.charset = charset;
n->up = n->next = n->prev = n->lastchild = n->listnext = NULL;