1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00:00

CSS: Document reparent_selector and make it static.

This commit is contained in:
Kalle Olavi Niemitalo 2007-07-15 19:54:22 +03:00 committed by Witold Filipczyk
parent abd900eeff
commit 8785ffc980

View File

@ -170,7 +170,20 @@ struct selector_pkg {
struct css_selector *selector;
};
struct css_selector *
/** Move a CSS selector and its leaves into a new list. If a similar
* selector already exists in the list, merge them.
*
* \param sels
* The list to which \a selector should be moved. Must not be NULL.
* \param selector
* The selector that should be moved. Must not be NULL. If it is
* already in some list, this function removes it from there.
* \param watch
* This function updates \a *watch if it merges that selector into
* another one. \a watch must not be NULL but \a *watch may be.
*
* \return \a selector or the one into which it was merged. */
static struct css_selector *
reparent_selector(struct list_head *sels, struct css_selector *selector,
struct css_selector **watch)
{