Category : C Source Code
Archive   : TCLEX.ZIP
Filename : LMOVI.C

 
Output of file : LMOVI.C contained in archive : TCLEX.ZIP
/*
* Bob Denny 28-Aug-82 Remove reference to stdio.h
* Scott Guthery 20-Nov-83 Adapt for IBM PC & DeSmet C
*/

#include
#include

_lmovi(lp, c, st)
register int c;
register int st;
register struct lextab *lp;
{
int base;

while ((base = lp->llbase[st]+c) > lp->llnxtmax ||
(int)(lp->llcheck)[base] != st)
if (st != lp->llendst) {
/*
* This miscompiled on Decus C many years ago
* st = ((int *)lp->lldefault)[st];
*/
base = ((int *)lp->lldefault)[st];
st = base;
}
else
return(-1);
return(((int *)lp->llnext)[base]);
}


  3 Responses to “Category : C Source Code
Archive   : TCLEX.ZIP
Filename : LMOVI.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/