# 2.11BSD#431 - /usr/src/ucb/window/string.h

##### Variables

    str_head          X

##### Macros

    STR_DEBUG         X
    str_alloc         X
    str_cmp           X
    str_free          X
    str_offset        X
    str_stos          X

##### struct's

    string            X

       1: /*
       2:  * @(#)string.h	3.5 4/24/85
       3:  */
       4:
       5: /*
       6:  * Copyright (c) 1983 Regents of the University of California,
       7:  * All rights reserved.  Redistribution permitted subject to
       8:  * the terms of the Berkeley Software License Agreement.
       9:  */
      10:
      11: #define STR_DEBUG
      12:
      13: char *str_cpy();
      14: char *str_ncpy();
      15: char *str_cat();
      16: char *str_itoa();
      17:
      18: #define str_cmp(a, b)   strcmp(a, b)
      19:
      20: #ifdef STR_DEBUG
      21: struct string {
      22:     struct string *s_forw;
      23:     struct string *s_back;
      24:     char s_data[1];
      25: };
      26:
      27: struct string str_head;
      28:
      29: #define str_offset ((unsigned)str_head.s_data - (unsigned)&str_head)
      30: #define str_stos(s) ((struct string *)((unsigned)(s) - str_offset))
      31:
      32: char *str_alloc();
      33: int str_free();
      34: #else
      35: #define str_free(s) free(s)
      36: #define str_alloc(s)    malloc(s)
      37: #endif

#### Defined variables

str_head defined in line 27; used 14 times

- in line 29(2)
- in /usr/src/ucb/window/cmd6.c line 66(2)
- in /usr/src/ucb/window/string.c line 101-105(7), 115-118(3)

#### Defined struct's

string defined in line 21; used 14 times

- in line 22-27(6)
- in /usr/src/ucb/window/cmd6.c line 60(2)
- in /usr/src/ucb/window/string.c line 96-98(4), 113(2)

#### Defined macros

STR_DEBUG defined in line 11; used 3 times

- in line 20
- in /usr/src/ucb/window/cmd6.c line 56
- in /usr/src/ucb/window/string.c line 91

str_alloc defined in line 36; used 5 times

- in line 32
- in /usr/src/ucb/window/lcmd2.c line 277
- in /usr/src/ucb/window/string.c line 23, 42, 68

str_cmp defined in line 18; never used
str_free defined in line 35; used 25 times

- in line 33
- in /usr/src/ucb/window/cmd3.c line 62
- in /usr/src/ucb/window/context.c line 69, 95
- in /usr/src/ucb/window/lcmd2.c line 218, 288
- in /usr/src/ucb/window/parser1.c line 26, 75, 141-145(2)
- in /usr/src/ucb/window/parser2.c line 76, 103
- in /usr/src/ucb/window/parser3.c line 51, 75, 114, 148
- in /usr/src/ucb/window/parser4.c line 147, 183-184(2)
- in /usr/src/ucb/window/parser5.c line 59, 93, 137, 164-168(2)
- in /usr/src/ucb/window/var.c line 94

str_offset defined in line 29; used 2 times

- in line 30
- in /usr/src/ucb/window/string.c line 98

str_stos defined in line 30; never used

#### Usage of this include

string.h used 10 times

- in /usr/src/ucb/window/cmd3.c line 12
- in /usr/src/ucb/window/cmd6.c line 12
- in /usr/src/ucb/window/context.c line 14
- in /usr/src/ucb/window/lcmd1.c line 12
- in /usr/src/ucb/window/lcmd2.c line 12
- in /usr/src/ucb/window/main.c line 14
- in /usr/src/ucb/window/parser.h line 15
- in /usr/src/ucb/window/scanner.c line 15
- in /usr/src/ucb/window/string.c line 11
- in /usr/src/ucb/window/var.c line 13

Last modified: 1987-02-17 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 561 |