Annotation of researchv10no/cmd/basic/bite/src/goto.c, revision 1.1

1.1     ! root        1: /* Copyright Bell Telephone Laboratories Whippany, N.J.
        !             2: 
        !             3:  *     ***********************************
        !             4:  *     ***********************************
        !             5:  *     ************** GOTO ***************
        !             6:  *     *** R. B. Drake WH 8C-005 X4163 ***
        !             7:  *     **** Fri Aug 24 17:33:53 1979 *****
        !             8:  *     ***********************************
        !             9:  *     ***********************************
        !            10: 
        !            11: */
        !            12: /*   "@(#) goto.c:  V 1.1  12/21/80" */
        !            13: 
        !            14: #include "bas.h"
        !            15: __goto()
        !            16: {
        !            17:        int savno;
        !            18:        extern int start;
        !            19:        extern char *ptr,*curptr;
        !            20:        savno = inst.thing.linno;
        !            21:        start=atoi(expr);
        !            22:        fetch(start,&ptr);
        !            23:        if(inst.thing.linno != start)
        !            24:        {
        !            25:                error(savno,0);
        !            26:                inst.thing.linno = savno;
        !            27:                return(-1);
        !            28:        }
        !            29:        ptr = curptr;
        !            30:        return(0);
        !            31: }

unix.superglobalmegacorp.com

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