Annotation of researchv10no/cmd/mk/src/regexp.c, revision 1.1.1.1

1.1       root        1: #include       "mk.h"
                      2: 
                      3: Rule *patrule;
                      4: 
                      5: regerror(s)
                      6:        char *s;
                      7: {
                      8:        if(patrule)
                      9:                Fprint(2, "mk: %s:%d: regular expression error; %s\n",
                     10:                        patrule->file, patrule->line, s);
                     11:        else
                     12:                Fprint(2, "mk: %s:%d: regular expression error; %s\n",
                     13:                        infile, inline, s);
                     14:        Exit();
                     15: }
                     16: 
                     17: rsub(src, r, a, proto, dest)
                     18:        char *src, *dest, *proto;
                     19:        Rule *r;
                     20:        Arc *a;
                     21: {
                     22:        rdump("rsub", a->match);
                     23:        print("rsub(src=%d '%s' proto=%d '%s')\n", src, src, proto, proto);
                     24:        *dest = 0;
                     25: }
                     26: 
                     27: rdump(s, m)
                     28:        char *s;
                     29:        register regsubexp *m;
                     30: {
                     31:        register i;
                     32: 
                     33:        print("rdump: %s\n", s);
                     34:        for(i = 0; i < NREGEXP; i++, m++)
                     35:                print("\t%d: %d - %d '%s'\n", i, m->sp, m->ep, m->sp);
                     36: }

unix.superglobalmegacorp.com

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