38 #include <sys/types.h>
41 #define MAXLINEBUFFER 10000
87 while ( c != ColonOpt && c !=
',' && c !=
'\n' && c !=
'|' && c != EOF )
96 if ( (c =
InChar(f)) ==
'|' ||
Space(c) || c == EOF )
break;
110 while ( ( c =
InChar(f) ) ==
' ' || c ==
'\t' )
136 while ( Sp > s &&
Space(*(Sp-1)) ) Sp--;
140 Msg[0] = (
Space(c) ?
'.' : c );
172 char Buffer[1000]=
"", *EndBuff;
173 int AttCeiling=100, ClassCeiling=100;
222 if ( EndBuff == Buffer || *EndBuff !=
'\0' )
246 while (
ReadName(Nf, Buffer, 1000,
':') )
255 if ( ( *Buffer ==
'a' || *Buffer ==
'A' ) &&
256 ! memcmp(Buffer+1,
"ttributes ", 10) &&
257 ! memcmp(Buffer+strlen(Buffer)-6,
"cluded", 6) )
259 AttExIn = ( ! memcmp(Buffer+strlen(Buffer)-8,
"in", 2) ? 1 : -1 );
268 while (
ReadName(Nf, Buffer, 1000,
':') )
294 if ( ++
MaxAtt >= AttCeiling )
386 sprintf(Buffer,
"%g < %s <= %g",
391 sprintf(Buffer,
"%s > %g",
431 char Buffer[1000]=
"", *p;
433 int ValCeiling=100, BaseYear;
438 if ( ! (
ReadName(Nf, Buffer, 1000,
':') ) )
449 if ( ! strcmp(Buffer,
"continuous") )
453 if ( ! strcmp(Buffer,
"timestamp") )
462 BaseYear = gmtime(&clock)->tm_year + 1900;
467 if ( ! strcmp(Buffer,
"date") )
472 if ( ! strcmp(Buffer,
"time") )
477 if ( ! memcmp(Buffer,
"discrete", 8) )
483 v = atoi(&Buffer[8]);
494 if ( ! strcmp(Buffer,
"ignore") )
499 if ( ! strcmp(Buffer,
"label") )
532 if ( ! memcmp(Buffer,
"[ordered]", 9) )
536 for ( p = Buffer+9 ;
Space(*p) ; p++ )
548 if ( ! (
ReadName(Nf, Buffer, 1000,
':') ) )
553 if ( ++MaxAttVal[MaxAtt] >= ValCeiling )
565 if (
Ordered(MaxAtt) && MaxAttVal[MaxAtt] <= 3 )
587 while ( n <= Last && strcmp(Val, List[n]) ) n++;
589 return ( n <= Last ? n : First-1 );
615 for ( e = 0 ; ; e++ )
620 if ( ! DefUses[Att] )