Initial community commit
This commit is contained in:
parent
537bcbc862
commit
fc06254474
16440 changed files with 4239995 additions and 2 deletions
29
Src/Plugins/Visualization/vis_avs/evallib/LMOVB.C
Normal file
29
Src/Plugins/Visualization/vis_avs/evallib/LMOVB.C
Normal file
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Bob Denny 28-Aug-82 Remove reference to stdio.h
|
||||
* Scott Guthery 20-Nov-83 Adapt for IBM PC & DeSmet C
|
||||
*/
|
||||
|
||||
#include <lex.h>
|
||||
|
||||
_lmovb(lp, c, st)
|
||||
register int c, st;
|
||||
register struct lextab *lp;
|
||||
{
|
||||
int base;
|
||||
|
||||
while ((base = lp->llbase[st]+c) > lp->llnxtmax ||
|
||||
(lp->llcheck[base] & 0377) != st) {
|
||||
|
||||
if (st != lp->llendst) {
|
||||
/*
|
||||
* This miscompiled on Decus C many years ago:
|
||||
* st = lp->lldefault[st] & 0377;
|
||||
*/
|
||||
base = lp->lldefault[st] & 0377;
|
||||
st = base;
|
||||
}
|
||||
else
|
||||
return(-1);
|
||||
}
|
||||
return(lp->llnext[base]&0377);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue