Annotation of 43BSD/contrib/icon/rt/addmem.c, revision 1.1.1.1

1.1       root        1: #include "../h/rt.h"
                      2: #ifdef SETS
                      3: /*
                      4:  * addmem - add a new set element block in the correct spot in
                      5:  *  the bucket chain.
                      6:  */
                      7: 
                      8: addmem(ps,pe,pl)
                      9: struct descrip *pl;
                     10: struct b_set *ps;
                     11: struct b_selem *pe;
                     12:    {
                     13:    ps->setsize++;
                     14:    if (!NULLDESC(*pl) ) {
                     15:       BLKLOC(pe->sblink) = BLKLOC(*pl);
                     16:       pe->sblink.type = D_SELEM;
                     17:       }
                     18:    BLKLOC(*pl) = (union block *) pe;
                     19:    pl->type = D_SELEM;
                     20:    }
                     21: #else SETS
                     22: char junk;        /* prevent null object file */
                     23: #endif SETS

unix.superglobalmegacorp.com

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