|
|
1.1 ! root 1: /* Copyright Bell Telephone Laboratories Whippany, N.J. ! 2: ! 3: * ///////////////////////////////////// ! 4: * ///////////////////////////////////// ! 5: * /////////////// new.c /////////////// ! 6: * /// J. P. Hawkins WH X4610 8C-001 /// ! 7: * ///// Sun Aug 26 06:20:23 1979 ////// ! 8: * ///////////////////////////////////// ! 9: * ///////////////////////////////////// ! 10: ! 11: * ! 12: * ! 13: * routine to clear the contents of the working storage ! 14: */ ! 15: /* "@(#) new.c: V 1.1 12/21/80" */ ! 16: ! 17: #include "bas.h" ! 18: extern char filnam[]; ! 19: extern char txtbuf[]; ! 20: new() ! 21: { ! 22: filnam[0] = '\0'; ! 23: onew(); ! 24: } ! 25: onew() ! 26: { ! 27: int i; ! 28: lbdptr=curptr=linptr=txtbuf; ! 29: inst.thing.linno = 0; ! 30: clear(); ! 31: expunge(); /* clear variable stack and variable symbol tables */ ! 32: for(i=0;i<4;i++) ! 33: txtbuf[i]= '\0'; ! 34: return(0); ! 35: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.