File: check_index1.c

package info (click to toggle)
magnus 20060324-5.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,436 kB
  • ctags: 20,462
  • sloc: cpp: 130,217; ansic: 37,090; tcl: 10,970; perl: 1,109; makefile: 966; sh: 403; yacc: 372; csh: 57; awk: 33; asm: 10
file content (38 lines) | stat: -rw-r--r-- 898 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* File check_index1.c */
#include "tc.h"
#include "ct.h"

Void
tc_check_index1(tc_pvar)
struct  tc_str_vars     *tc_pvar;
{
#include "tc_void.h"
register Int	*ct;
register Int	j;
register Int	i;
register Int	ncol;
	ct = COSET_TABLE;
	ncol = NCOL;
 	for (j = 2; j <= NCOL; j++) { 
                if (CT(1, j)) 
                        continue; 
/* it is possible to have a zero entry in row 1. look down all rows in
* this column looking for a non-zero entry.
*/
                for(i=NCOL+1;i<NEXTDF;i+=NCOL) 
                        if (CT(i, j)) 
                                goto conti;
		return;
conti:		continue;
         }
/* we have a group of INDEX 1, set INDEX1, set all entries in the
* first row to 1 and return.
*/
         INDEX1 = TRUE; 
	 COMPCT = TRUE; 
         NEXTDF = COSET1 + COSET; 
         for (i = 1; i <= NCOL; i++)
                CT(1, i) = 1;
         return;
}