File:  [Research Unix] / researchv10no / cmd / mk / src / regexp.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

#include	"mk.h"

Rule *patrule;

regerror(s)
	char *s;
{
	if(patrule)
		Fprint(2, "mk: %s:%d: regular expression error; %s\n",
			patrule->file, patrule->line, s);
	else
		Fprint(2, "mk: %s:%d: regular expression error; %s\n",
			infile, inline, s);
	Exit();
}

rsub(src, r, a, proto, dest)
	char *src, *dest, *proto;
	Rule *r;
	Arc *a;
{
	rdump("rsub", a->match);
	print("rsub(src=%d '%s' proto=%d '%s')\n", src, src, proto, proto);
	*dest = 0;
}

rdump(s, m)
	char *s;
	register regsubexp *m;
{
	register i;

	print("rdump: %s\n", s);
	for(i = 0; i < NREGEXP; i++, m++)
		print("\t%d: %d - %d '%s'\n", i, m->sp, m->ep, m->sp);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.