home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
OS2-YACC.ZIP
/
YSTUNI.1C
< prev
next >
Wrap
Text File
|
1989-09-29
|
917b
|
35 lines
/*
HEADER: CUG nnn.nn;
TITLE: YACC - Yet Another Compilier-Compilier
VERSION: 1.0 for IBM-PC
DATE: JAN 28, 1985
DESCRIPTION: LALR(1) Parser Generator. From UNIX
KEYWORDS: Parser Generator Compilier-Compilier YACC
SYSTEM: IBM-PC and Compatiables
FILENAME: YSTUNI.1C
WARNINGS: This program is not for the casual user. It will
be useful primarily to expert developers.
CRC: N/A
SEE-ALSO: LEX and PREP
AUTHORS: Scott Guthery 11100 leafwood lane Austin, TX 78750
COMPILERS: DESMET-C
REFERENCES: UNIX Systems Manuals
*/
#include "y1.h"
int setunion( register int *a, register int *b )
{
/* set a to the union of a and b */
/* return 1 if b is not a subset of a, 0 otherwise */
register int i, x, sub;
sub = 0;
SETLOOP(i)
{
*a = (x = *a)|*b++;
if( *a++ != x ) sub = 1;
}
return( sub );
}