Annotation of 43BSDReno/include/regexp.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1986 by University of Toronto.
        !             3:  * Copyright (c) 1989 The Regents of the University of California.
        !             4:  * All rights reserved.
        !             5:  *
        !             6:  * This code is derived from software contributed to Berkeley
        !             7:  * by Henry Spencer.
        !             8:  *
        !             9:  * Redistribution and use in source and binary forms are permitted
        !            10:  * provided that: (1) source distributions retain this entire copyright
        !            11:  * notice and comment, and (2) distributions including binaries display
        !            12:  * the following acknowledgement:  ``This product includes software
        !            13:  * developed by the University of California, Berkeley and its contributors''
        !            14:  * in the documentation or other materials provided with the distribution
        !            15:  * and in all advertising materials mentioning features or use of this
        !            16:  * software. Neither the name of the University nor the names of its
        !            17:  * contributors may be used to endorse or promote products derived
        !            18:  * from this software without specific prior written permission.
        !            19:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
        !            20:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
        !            21:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            22:  *
        !            23:  *     @(#)regexp.h    1.5 (Berkeley) 6/1/90
        !            24:  */
        !            25: 
        !            26: /*
        !            27:  * Definitions etc. for regexp(3) routines.
        !            28:  *
        !            29:  * Caveat:  this is V8 regexp(3) [actually, a reimplementation thereof],
        !            30:  * not the System V one.
        !            31:  */
        !            32: #define NSUBEXP  10
        !            33: typedef struct regexp {
        !            34:        char *startp[NSUBEXP];
        !            35:        char *endp[NSUBEXP];
        !            36:        char regstart;          /* Internal use only. */
        !            37:        char reganch;           /* Internal use only. */
        !            38:        char *regmust;          /* Internal use only. */
        !            39:        int regmlen;            /* Internal use only. */
        !            40:        char program[1];        /* Unwarranted chumminess with compiler. */
        !            41: } regexp;
        !            42: 
        !            43: #if __STDC__ || c_plusplus
        !            44: extern regexp *regcomp(const char *);
        !            45: extern int regexec(const  regexp *, const char *);
        !            46: extern void regsub(const  regexp *, const char *, char *);
        !            47: extern void regerror(const char *);
        !            48: #else
        !            49: extern regexp *regcomp();
        !            50: extern int regexec();
        !            51: extern void regsub();
        !            52: extern void regerror();
        !            53: #endif

unix.superglobalmegacorp.com

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