Re: CML2 0.2.0

From: Eric S. Raymond (esr@thyrsus.com)
Date: Fri Jun 02 2000 - 14:59:58 EST


mike_phillips@urscorp.com <mike_phillips@urscorp.com>:
> (Apologies if you receive a half finished e-mail, pressing the wrong
> button doesn't help :)
> Scenario:
>
> foo required bar, bas required bar.
>
>
> foo.select(type (module or builtin) ) {
> for each req in foo.requires {
> if (req.hardlink) {
> /* Do nothing, user knows what there are doing */
> } else {
> req.select(type)
> }
> }
>
> foo.hardlink = true ;
> foo.selected = type ;
> }
>
> foo.unselect {
> for each req in foo.requires {
> if (req.hardlink) {
> /* Do nothing */
> } else {
> for each parent in req.parents {
> if (parent.selected) {
> break ;
> /* Something else required this,
> don't touch */
> }
> }
> req.selected = none ;
> }
> }
>
> for each parent in foo.parents {
> parent.unselect ;
> } /* This could get real recursive, real fast */
>
> foo.selected = none ;
> foo.hardlink = false ;
> }
>
> Or something similar, of course you need to maintain a list of
> requirements and parents for each node.
>
> Mike

I can't read your pseudocode. What is "hardlink"?

-- 
		<a href="http://www.tuxedo.org/~esr">Eric S. Raymond</a>

The direct use of physical force is so poor a solution to the problem of limited resources that it is commonly employed only by small children and great nations. -- David Friedman

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jun 07 2000 - 21:00:16 EST