# 2.11BSD#431 - /usr/src/new/rn/search.h

##### Macros

    NALTS             X
    NBRA              X

       1: /* $Header: search.h,v 4.3 85/05/01 11:50:46 lwall Exp $
       2:  *
       3:  * $Log:	search.h,v $
       4:  * Revision 4.3  85/05/01  11:50:46  lwall
       5:  * Baseline for release with 4.3bsd.
       6:  *
       7:  */
       8:
       9: #ifndef NBRA
      10: #define NBRA    10      /* the maximum number of meta-brackets in an
      11: 				   RE -- \( \) */
      12: #define NALTS   10      /* the maximum number of \|'s */
      13:
      14: typedef struct {
      15:     char *expbuf;       /* The compiled search string */
      16:     int eblen;          /* Length of above buffer */
      17:     char *alternatives[NALTS];  /* The list of \| seperated alternatives */
      18:     char *braslist[NBRA];   /* RE meta-bracket start list */
      19:     char *braelist[NBRA];   /* RE meta-bracket end list */
      20:     char *brastr;       /* saved match string after execute() */
      21:     char nbra;          /* The number of meta-brackets int the most
      22: 				   recenlty compiled RE */
      23:     bool do_folding;        /* fold upper and lower case? */
      24: } COMPEX;
      25:
      26: void    search_init();
      27: void    init_compex();
      28: void    free_compex();
      29: char    *getbracket();
      30: void    case_fold();
      31: char    *compile();
      32: void    grow_eb();
      33: char    *execute();
      34: bool    advance();
      35: bool    backref();
      36: bool    cclass();
      37: #endif

#### Defined macros

NALTS defined in line 12; used 1 times

- in line 17

NBRA defined in line 10; used 7 times

- in line 9, 18-19(2)
- in /usr/src/new/rn/artsrch.h line 9
- in /usr/src/new/rn/only.h line 9
- in /usr/src/new/rn/search.c line 172, 222

#### Usage of this include

search.h used 10 times

- in /usr/src/new/rn/art.c line 31
- in /usr/src/new/rn/artsrch.c line 11
- in /usr/src/new/rn/artsrch.h line 10
- in /usr/src/new/rn/cheat.c line 12
- in /usr/src/new/rn/intrp.c line 27
- in /usr/src/new/rn/ng.c line 50
- in /usr/src/new/rn/ngsrch.c line 13
- in /usr/src/new/rn/only.c line 11
- in /usr/src/new/rn/only.h line 10
- in /usr/src/new/rn/search.c line 31

Last modified: 1987-03-16 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 488 |