Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/* $XConsortium: sparse.c /main/3 1995/11/08 11:07:31 rswiston $ */
/* Copyright (c) 1986, 1987, 1988, 1989 Hewlett-Packard Co. */
/* Sparse.c has a procedure used with the tables generated by program
CONTEXT when the sparse option is used */
int m_sprscon(i, j)
int i, j ;
{
int k ;
for (k = m_trnsptr[i] ; k ; k++) {
if ((int) m_trnsit[k - 1].context > j) return(0) ;
if (! m_trnsit[k - 1].context) return(0) ;
if ((int) m_trnsit[k - 1].context == j)
return(m_trnsit[k - 1].nextcon) ;
}
return(0) ;
}