* mdocml: Enable the framework code to allow more than one mlink per
@ 2013-12-27 15:48 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-12-27 15:48 UTC (permalink / raw)
To: source
Log Message:
-----------
Enable the framework code to allow more than one mlink per mpage.
Not used yet.
Modified Files:
--------------
mdocml:
mandocdb.c
Revision Data
-------------
Index: mandocdb.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandocdb.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -Lmandocdb.c -Lmandocdb.c -u -p -r1.84 -r1.85
--- mandocdb.c
+++ mandocdb.c
@@ -111,6 +111,7 @@ struct mlink {
char *arch; /* architecture from directory */
char *name; /* name from file name (not empty) */
char *fsec; /* section from file name suffix */
+ struct mlink *next; /* singly linked list */
};
struct title {
@@ -826,7 +827,7 @@ mlink_add(struct mlink *mlink, const str
mpage->inodev.st_dev = inodev.st_dev;
ohash_insert(&mpages, slot, mpage);
} else
- abort();
+ mlink->next = mpage->mlinks;
mpage->mlinks = mlink;
}
@@ -851,7 +852,7 @@ mpages_free(void)
mpage = ohash_first(&mpages, &slot);
while (NULL != mpage) {
while (NULL != (mlink = mpage->mlinks)) {
- mpage->mlinks = NULL;
+ mpage->mlinks = mlink->next;
mlink_free(mlink);
}
free(mpage->sec);
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-12-27 15:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-27 15:48 mdocml: Enable the framework code to allow more than one mlink per schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).