# 2.11BSD#431 - /usr/src/new/PORT/hexdump/hexdump.h

##### Macros

    F_ADDRESS         X
    F_BPAD            X
    F_C               X
    F_CHAR            X
    F_DBL             X
    F_IGNORE          X
    F_INT             X
    F_P               X
    F_SETREP          X
    F_STR             X
    F_TEXT            X
    F_U               X
    F_UINT            X

##### struct's

    _fs               X
    _fu               X
    _pr               X

##### enums's

    _vflag            X

##### typedef's

    FS                X
    FU                X
    PR                X

       1: /*
       2:  * Copyright (c) 1989 The Regents of the University of California.
       3:  * All rights reserved.
       4:  *
       5:  * Redistribution and use in source and binary forms are permitted
       6:  * provided that: (1) source distributions retain this entire copyright
       7:  * notice and comment, and (2) distributions including binaries display
       8:  * the following acknowledgement:  ``This product includes software
       9:  * developed by the University of California, Berkeley and its contributors''
      10:  * in the documentation or other materials provided with the distribution
      11:  * and in all advertising materials mentioning features or use of this
      12:  * software. Neither the name of the University nor the names of its
      13:  * contributors may be used to endorse or promote products derived
      14:  * from this software without specific prior written permission.
      15:  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
      16:  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
      17:  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
      18:  *
      19:  *	@(#)hexdump.h	5.4 (Berkeley) 6/1/90
      20:  */
      21:
      22: typedef struct _pr {
      23:     struct _pr *nextpr;     /* next print unit */
      24: #define F_ADDRESS   0x001       /* print offset */
      25: #define F_BPAD      0x002       /* blank pad */
      26: #define F_C     0x004       /* %_c */
      27: #define F_CHAR      0x008       /* %c */
      28: #define F_DBL       0x010       /* %[EefGf] */
      29: #define F_INT       0x020       /* %[di] */
      30: #define F_P     0x040       /* %_p */
      31: #define F_STR       0x080       /* %s */
      32: #define F_U     0x100       /* %_u */
      33: #define F_UINT      0x200       /* %[ouXx] */
      34: #define F_TEXT      0x400       /* no conversions */
      35:     u_int flags;            /* flag values */
      36:     int bcnt;           /* byte count */
      37:     char *cchar;            /* conversion character */
      38:     char *fmt;          /* printf format */
      39:     char *nospace;          /* no whitespace version */
      40: } PR;
      41:
      42: typedef struct _fu {
      43:     struct _fu *nextfu;     /* next format unit */
      44:     struct _pr *nextpr;     /* next print unit */
      45: #define F_IGNORE    0x01        /* %_A */
      46: #define F_SETREP    0x02        /* rep count set, not default */
      47:     u_int flags;            /* flag values */
      48:     int reps;           /* repetition count */
      49:     int bcnt;           /* byte count */
      50:     char *fmt;          /* format string */
      51: } FU;
      52:
      53: typedef struct _fs {            /* format strings */
      54:     struct _fs *nextfs;     /* linked list of format strings */
      55:     struct _fu *nextfu;     /* linked list of format units */
      56:     int bcnt;
      57: } FS;
      58:
      59: extern FS *fshead;          /* head of format strings list */
      60: extern int blocksize;           /* data block size */
      61: enum _vflag { ALL, DUP, FIRST, WAIT };  /* -v values */
      62: char *emalloc();

#### Defined struct's

_fs defined in line 53; used 2 times

- in line 54(2)

_fu defined in line 42; used 4 times

- in line 43(2), 55(2)

_pr defined in line 22; used 4 times

- in line 23(2), 44(2)

#### Defined enum's

_vflag defined in line 61; used 8 times

- in /usr/src/new/PORT/hexdump/display.c line 33(2), 195(2)
- in /usr/src/new/PORT/hexdump/hexsyntax.c line 34(2)
- in /usr/src/new/PORT/hexdump/odsyntax.c line 34(2)

#### Defined typedef's

FS defined in line 57; used 12 times

- in line 59
- in /usr/src/new/PORT/hexdump/display.c line 122
- in /usr/src/new/PORT/hexdump/hexdump.c line 34, 44
- in /usr/src/new/PORT/hexdump/hexsyntax.c line 35
- in /usr/src/new/PORT/hexdump/odsyntax.c line 35
- in /usr/src/new/PORT/hexdump/parse.c line 64-65(2), 71(2), 142, 195

FU defined in line 51; used 8 times

- in /usr/src/new/PORT/hexdump/display.c line 121-123(2)
- in /usr/src/new/PORT/hexdump/parse.c line 31, 66, 88(2), 144, 199

PR defined in line 40; used 7 times

- in /usr/src/new/PORT/hexdump/conv.c line 29, 79
- in /usr/src/new/PORT/hexdump/display.c line 124, 174
- in /usr/src/new/PORT/hexdump/parse.c line 198, 211(2)

#### Defined macros

F_ADDRESS defined in line 24; used 3 times

- in /usr/src/new/PORT/hexdump/display.c line 41
- in /usr/src/new/PORT/hexdump/parse.c line 337, 391

F_BPAD defined in line 25; used 3 times

- in /usr/src/new/PORT/hexdump/display.c line 44, 140, 183

F_C defined in line 26; used 2 times

- in /usr/src/new/PORT/hexdump/display.c line 47
- in /usr/src/new/PORT/hexdump/parse.c line 349

F_CHAR defined in line 27; used 2 times

- in /usr/src/new/PORT/hexdump/display.c line 50
- in /usr/src/new/PORT/hexdump/parse.c line 256

F_DBL defined in line 28; used 2 times

- in /usr/src/new/PORT/hexdump/display.c line 53
- in /usr/src/new/PORT/hexdump/parse.c line 303

F_IGNORE defined in line 45; used 2 times

- in /usr/src/new/PORT/hexdump/display.c line 134
- in /usr/src/new/PORT/hexdump/parse.c line 334

F_INT defined in line 29; used 3 times

- in /usr/src/new/PORT/hexdump/display.c line 68
- in /usr/src/new/PORT/hexdump/parse.c line 267, 274

F_P defined in line 30; used 2 times

- in /usr/src/new/PORT/hexdump/display.c line 86
- in /usr/src/new/PORT/hexdump/parse.c line 353

F_SETREP defined in line 46; used 2 times

- in /usr/src/new/PORT/hexdump/parse.c line 102, 416

F_STR defined in line 31; used 2 times

- in /usr/src/new/PORT/hexdump/display.c line 89
- in /usr/src/new/PORT/hexdump/parse.c line 317

F_TEXT defined in line 34; used 3 times

- in /usr/src/new/PORT/hexdump/display.c line 92, 140
- in /usr/src/new/PORT/hexdump/parse.c line 223

F_U defined in line 32; used 2 times

- in /usr/src/new/PORT/hexdump/display.c line 95
- in /usr/src/new/PORT/hexdump/parse.c line 357

F_UINT defined in line 33; used 3 times

- in /usr/src/new/PORT/hexdump/display.c line 98
- in /usr/src/new/PORT/hexdump/parse.c line 278, 286

#### Usage of this include

hexdump.h used 6 times

- in /usr/src/new/PORT/hexdump/conv.c line 26
- in /usr/src/new/PORT/hexdump/display.c line 31
- in /usr/src/new/PORT/hexdump/hexdump.c line 32
- in /usr/src/new/PORT/hexdump/hexsyntax.c line 26
- in /usr/src/new/PORT/hexdump/odsyntax.c line 26
- in /usr/src/new/PORT/hexdump/parse.c line 29

Last modified: 1990-06-02 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1056 |