SCCS-vsn: usr.bin/diff/diffh/diffh.c 4.3
-static char sccsid[] = "@(#)diffh.c 4.2 %G%";
+static char sccsid[] = "@(#)diffh.c 4.3 %G%";
#include <stdio.h>
#include <ctype.h>
#include <stdio.h>
#include <ctype.h>
{
char *s0,*s1;
FILE *dopen();
{
char *s0,*s1;
FILE *dopen();
+ register int status = 0;
+
while(*argv[1]=='-') {
argc--;
argv++;
while(*argv[1]=='-') {
argc--;
argv++;
if(cmp(s0,s1)!=0) {
if(!easysynch()&&!hardsynch())
progerr("5");
if(cmp(s0,s1)!=0) {
if(!easysynch()&&!hardsynch())
progerr("5");
} else {
clrl(0,n0);
clrl(1,n1);
}
}
if(s0==NULL&&s1==NULL)
} else {
clrl(0,n0);
clrl(1,n1);
}
}
if(s0==NULL&&s1==NULL)
if(s0==NULL)
output(-1,INF);
if(s1==NULL)
output(INF,-1);
if(s0==NULL)
output(-1,INF);
if(s1==NULL)
output(INF,-1);
}
/* synch on C successive matches*/
}
/* synch on C successive matches*/
char *s,*t;
{
fprintf(stderr,"diffh: %s%s\n",s,t);
char *s,*t;
{
fprintf(stderr,"diffh: %s%s\n",s,t);
}
/*stub for resychronization beyond limits of text buf*/
}
/*stub for resychronization beyond limits of text buf*/