Annotation of researchv10no/cmd/cfront/libstring/pair_list.c, revision 1.1

1.1     ! root        1: #include "pair_list.h"
        !             2: 
        !             3: listimplement(pair)
        !             4: 
        !             5: pair&
        !             6: pair::operator=(pair& pp)
        !             7: {
        !             8:        name = pp.name;
        !             9:        count = pp.count;
        !            10:        return *this;
        !            11: }
        !            12: 
        !            13: ostream&
        !            14: operator<< ( ostream& oo, pair &p )
        !            15: {
        !            16:        oo << "(" << p.name << ", " << p.count << ")";
        !            17:        return  oo;
        !            18: }
        !            19: 
        !            20: ostream&
        !            21: myOut ( ostream& oo, pair_list &p )
        !            22: {
        !            23:        pair_list_iterator      pi(p);
        !            24:        pair    aPair;
        !            25:        while ( pi.nextX(aPair) )
        !            26:                oo << aPair << NL;
        !            27:        return  oo;
        !            28: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.