URI: 
       thandle memdraw memlayer - plan9port - [fork] Plan 9 from user space
  HTML git clone git://src.adamsgaard.dk/plan9port
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit f6bb301372d996200aafe71726d36b36a69e7724
   DIR parent 7e8275c89834c5cba2f9f5beedc95b4ff8b65a36
  HTML Author: rsc <devnull@localhost>
       Date:   Sun, 25 Jun 2006 23:48:51 +0000
       
       handle memdraw memlayer
       
       Diffstat:
         M bin/9l                              |      17 +++++++++++++++--
       
       1 file changed, 15 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/bin/9l b/bin/9l
       t@@ -52,6 +52,10 @@ then
                                eval "need$i=true"
                        done
                fi
       +        if $verbose
       +        then
       +                echo "autolibs1 $autolibs"
       +        fi
        
                # fetch dependencies out of libraries
                workq="$autolibs"
       t@@ -69,8 +73,13 @@ then
                                        grep '__p9l_autolib_[a-zA-Z0-9+-]*$' |
                                        sed 's/.*__p9l_autolib_//' |
                                        sort -u |
       -                                egrep -v 'thread|draw'
       +                                egrep -v '^(thread|draw)$'
                                `
       +                        # fix up libraries that really need draw
       +                        if [ "x$i" = "xmemdraw" -o "x$i" = "xmemlayer" -o "x$i" = "xframe" ]
       +                        then
       +                                a="$a draw"
       +                        fi
                                okayfn="true"
                                for j in $a
                                do
       t@@ -85,7 +94,10 @@ then
                                                okayfn="$okayfn && have$j"
                                        fi
                                done
       -                        # echo "can$i: $okayfn"
       +                        if $verbose
       +                        then
       +                                echo "can$i: $okayfn"
       +                        fi
                                eval "can$i() { $okayfn; }"
                        done
                done
       t@@ -100,6 +112,7 @@ then
                done
                havethread() { false; }
                havesec() { false; }
       +        canmemlayer() { havedraw; }
        
                # now find correct order
                libsl=""