# 2.11BSD#431 - /usr/src/new/jove/tune.h

##### Macros

    ABBREV            X
    ANSICODES         X
    BACKUPFILES       X
    BIFF              X
    BSD4_2            X
    BSD4_3            X
    BUFSIZ            X
    CHDIR             X
    CMT_FMT           X
    DFLT_MODE         X
    F_COMPLETION      X
    ID_CHAR           X
    INPUT_SIG         X
    IPROCS            X
    JOB_CONTROL       X
    KILL0             X
    LINT_ARGS         X
    LISP              X
    LOAD_AV           X
    MENLO_JCL         X
    MY_MALLOC         X
    NBUF              X
    NOGETPWENT        X
    PIPEPROCS         X
    RESHAPING         X
    SMALL             X
    SPELL             X
    SUBPROCS          X
    SYSV              X
    TUNED             X
    UNIX              X
    VFORK             X
    VMUNIX            X
    WIRED_TERMS       X
    byte_copy         X
    bzero             X
    iAPX286           X
    index             X
    rindex            X
    sighold           X
    sigrelse          X
    vfork             X

##### typedef's

    disk_line         X

       1: /***************************************************************************
       2:  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
       3:  * is provided to you without charge, and with no warranty.  You may give  *
       4:  * away copies of JOVE, including sources, provided that this notice is    *
       5:  * included in all the files.                                              *
       6:  ***************************************************************************/
       7:
       8: #define TUNED       /* don't touch this */
       9:
      10: /*#define MAC 1		/* alas, there is no command line for this */
      11:
      12: #ifdef MAC
      13: #	define defined(x) (x) /* take this out and you're in trouble... */
      14: #endif
      15:
      16:
      17: /* The operating system (MSDOS or MAC) must be defined by this point.
      18:    IBMPC is defined in the Makefile. All MAC defines should be
      19:    numerical (i.e. #define MAC 1) so that defined() will work. */
      20:
      21: #if !(defined(MSDOS) || defined(MAC))
      22: #	define UNIX
      23: #endif
      24:
      25:
      26: #ifdef UNIX
      27:             /* pick your version of Unix */
      28: #   define BSD4_2   /* Berkeley 4.2 BSD */
      29: #   define BSD4_3   /* Berkeley 4.3 BSD and 2.10 BSD */
      30: /*# define SYSV		/* for (System III/System V) UNIX systems */
      31: /*# define SYSVR2	/* system 5, rel. 2 */
      32:             /* M_XENIX is defined by the Compiler */
      33: #endif /* UNIX */
      34:
      35: #ifdef SYSVR2
      36: #   ifndef SYSV
      37: #	define SYSV   /* SYSV is a subset of SYSVR2 */
      38: #   endif
      39: #endif
      40:
      41: #ifdef BSD4_3
      42: #   ifndef BSD4_2
      43: #	define BSD4_2 /* 4.3 is 4.2 only different. */
      44: #   endif
      45: #endif
      46:
      47: #ifdef M_XENIX
      48: #   define iAPX286 1    /* we have segments. */
      49: #endif
      50:
      51: #ifdef MSDOS
      52: #   ifdef M_I86LM       /* large memory model */
      53: #		define NBUF 64
      54: #	else
      55: #		define NBUF 3
      56: #   		define SMALL
      57: #   endif
      58: #   define BUFSIZ   512     /* or 1024 */
      59: #endif
      60:
      61: #ifdef UNIX
      62: #   if vax || sel || sun || pyr || mc68000 || tahoe || iAPX286 || GOULD_NP1 || u3b2 || accel || elxsi || apollo
      63: #	define VMUNIX     /* Virtual Memory UNIX */
      64: #	define BUFSIZ 1024
      65: #	if iAPX286
      66: #	    define NBUF   48  /* NBUF*BUFSIZ must be less than 64 kB */
      67: #	else
      68: #	    define NBUF   64  /* number of disk buffers */
      69: #	endif /* iAPX286 */
      70: #   else
      71: #	define SMALL
      72: #	define BUFSIZ 512 /* or 1024 */
      73: #	define NBUF   3
      74: #   endif
      75: #   ifdef pdp11
      76:     /*
      77: 	 * On most systems, defining LOAD_AV will haul in stdio since
      78: 	 * nlist(3) uses stdio.  But under 2.10BSD, there's a system call
      79: 	 * to get the load average.  This means that only the getpwent code
      80: 	 * in get_hdir in io.c causes stdio to be loaded.  Since that's 6Kb
      81: 	 * of text space, it's better to use the less general version of
      82: 	 * get_hdir.  This merely points out that NO standard library
      83: 	 * routine should use a system as large as stdio.
      84: 	 */
      85: #	define NOGETPWENT
      86: #   endif
      87: #
      88: # define LOAD_AV    /* Use the load average for various commands.
      89: #			   Do not define this if you lack a load average
      90: #			   system call and kmem is read protected. */
      91: #
      92: #   define VFORK    /* define this if you have vfork(2) */
      93: #
      94: #   define JOB_CONTROL  /* if you have job stopping */
      95: #
      96: #   ifdef JOB_CONTROL
      97: #       define MENLO_JCL
      98: #       define IPROCS   /* Interactive processes only work with JOB_CONTROL. */
      99: #   endif
     100: #
     101: #   define SUBPROCS /* only on UNIX systems (NOT INCORPORATED YET) */
     102: #endif /* UNIX */
     103:
     104:
     105: #ifdef SMALL
     106:     typedef unsigned short  disk_line;
     107: #else
     108: #   if defined(iAPX286) || defined(MSDOS) || defined(MAC)
     109:     typedef long    disk_line;
     110: #   else
     111:     typedef int disk_line;
     112: #   endif /* iAPX286 */
     113: #endif /* SMALL */
     114:
     115: #define BACKUPFILES /* enable the backup files code */
     116: #define F_COMPLETION    /* filename completion */
     117: #define ABBREV      /* word abbreviation mode */
     118: #if !(defined(IBMPC) || defined(MAC))
     119: #   define ANSICODES    /* extra commands that process ANSI codes */
     120: #   define ID_CHAR  /* include code to IDchar */
     121: #   define WIRED_TERMS  /* include code for wired terminals */
     122: #endif
     123: #define CHDIR       /* cd command and absolute pathnames */
     124: #define LISP        /* include the code for Lisp Mode */
     125: #define CMT_FMT     /* include the comment formatting routines */
     126:
     127: #ifdef UNIX
     128: #   define BIFF     /* if you have biff (or the equivalent) */
     129: #   define KILL0    /* kill(pid, 0) returns 0 if proc exists */
     130: #   define SPELL    /* spell words and buffer commands */
     131: #if !sun && !iAPX286
     132: #   define MY_MALLOC    /* use more memory efficient malloc (not on suns) */
     133: #endif
     134: #endif
     135:
     136: #define DFLT_MODE   0666    /* file will be created with this mode */
     137:
     138: #ifdef BSD4_3
     139: #   define RESHAPING    /* enable windows to handle reshaping */
     140: #endif
     141:
     142: #ifdef BSD4_2           /* byte_copy(from, to, len) */
     143: #   define  byte_copy bcopy /* use fast assembler version */
     144: #endif
     145:
     146: #ifdef IPROCS
     147: #   ifdef BSD4_2
     148: #	define INPUT_SIG  SIGIO
     149: #   else
     150: #	define PIPEPROCS      /* do it with pipes */
     151: #	define INPUT_SIG  SIGTINT
     152: #   endif
     153: #endif
     154:
     155: #ifndef VFORK
     156: #   define vfork    fork
     157: #endif
     158:
     159: #if defined(SYSV) || defined(MSDOS) || defined(M_XENIX)
     160: #   define byte_copy(s2, s1, n) memcpy(s1, s2, n)
     161: #   define bzero(s, n)  memset(s, 0, n)
     162: #   define index    strchr
     163: #   define rindex   strrchr
     164: #endif
     165:
     166: #ifdef MAC
     167: #	undef F_COMPLETION    /* can't do it with spaces in filenames */
     168: #	undef CHDIR
     169: #	define CHDIR 1
     170: #	define rindex strrchr
     171: #	define index strchr
     172: #	define bzero(s,n) setmem(s,n,0)
     173: #	define LINT_ARGS
     174: #	define NBUF 64
     175: #	define BUFSIZ 1024
     176: #endif
     177:
     178: /* These are here since they define things in tune.c.  If you add things to
     179:    tune.c, add them here too, if necessary. */
     180:
     181: #ifndef NOEXTERNS
     182: extern char
     183:     *d_tempfile,
     184:     *p_tempfile,
     185:     *Recover,
     186:     *Joverc,
     187:
     188: #ifdef PIPEPROCS
     189:     *Portsrv,
     190: #endif
     191:
     192: #ifdef MSDOS
     193:     CmdDb[],
     194: #else
     195:     *CmdDb,
     196: #endif
     197:
     198:     TmpFilePath[],
     199:     Shell[],
     200:     ShFlags[];
     201: #endif /* NOEXTERNS */
     202:
     203: #ifdef BSD4_2
     204: extern long SigMask;
     205:
     206: #  define   sighold(s)  sigblock(SigMask |= 1L << ((s)-1))
     207: #  define   sigrelse(s) sigsetmask(SigMask &= ~(1L << ((s)-1)))
     208: #endif

#### Defined typedef's

disk_line defined in line 106; used 25 times

- in line 109-111(2)
- in /usr/src/new/jove/io.c line 54, 214, 922, 970, 985, 992, 1026, 1035, 1280
- in /usr/src/new/jove/jove.h line 232, 412
- in /usr/src/new/jove/misc.c line 85
- in /usr/src/new/jove/re1.c line 60
- in /usr/src/new/jove/rec.c line 64-68(2), 121
- in /usr/src/new/jove/recover.c line 117, 141, 458, 479-484(3), 497

#### Defined macros

ABBREV defined in line 117; used 13 times

- in /usr/src/new/jove/abbrev.c line 10
- in /usr/src/new/jove/funcdefs.c line 299, 330, 369, 500, 573
- in /usr/src/new/jove/insert.c line 132, 145, 322
- in /usr/src/new/jove/iproc.c line 170, 178
- in /usr/src/new/jove/jove.h line 478
- in /usr/src/new/jove/vars.c line 18

ANSICODES defined in line 119; used 5 times

- in /usr/src/new/jove/funcdefs.c line 19, 277
- in /usr/src/new/jove/misc.c line 11, 296, 313

BACKUPFILES defined in line 115; used 6 times

- in /usr/src/new/jove/io.c line 121, 669, 830, 1372
- in /usr/src/new/jove/jove.h line 462
- in /usr/src/new/jove/vars.c line 57

BIFF defined in line 128; used 8 times

- in /usr/src/new/jove/disp.c line 841
- in /usr/src/new/jove/jove.c line 84, 367, 499, 531, 670
- in /usr/src/new/jove/jove.h line 489
- in /usr/src/new/jove/vars.c line 32

BSD4_2 defined in line 43; used 20 times

- in line 42, 142-147(2), 203
- in /usr/src/new/jove/fp.c line 135
- in /usr/src/new/jove/io.c line 1412
- in /usr/src/new/jove/iproc.c line 295
- in /usr/src/new/jove/jove.c line 86, 503, 517
- in /usr/src/new/jove/jove.h line 47
- in /usr/src/new/jove/portsrv.c line 20, 149
- in /usr/src/new/jove/proc.c line 495, 505, 602
- in /usr/src/new/jove/recover.c line 65
- in /usr/src/new/jove/scandir.c line 28
- in /usr/src/new/jove/util.c line 109, 818

BSD4_3 defined in line 29; used 2 times

- in line 41, 138

BUFSIZ defined in line 175; used 19 times

- in /usr/src/new/jove/fp.c line 407
- in /usr/src/new/jove/io.c line 1099, 1152-1153(3), 1291, 1382-1383(2)
- in /usr/src/new/jove/jove.c line 1065
- in /usr/src/new/jove/jove.h line 90
- in /usr/src/new/jove/re1.c line 226, 246, 254
- in /usr/src/new/jove/recover.c line 21, 40, 149-153(3), 498

CHDIR defined in line 169; used 20 times

- in line 168
- in /usr/src/new/jove/disp.c line 1014
- in /usr/src/new/jove/funcdefs.c line 56, 311, 358, 470, 491
- in /usr/src/new/jove/io.c line 32, 51, 57, 65, 77, 83, 91, 250, 612, 1436
- in /usr/src/new/jove/jove.c line 458, 1221
- in /usr/src/new/jove/proc.c line 718

CMT_FMT defined in line 125; used 5 times

- in /usr/src/new/jove/c.c line 367
- in /usr/src/new/jove/funcdefs.c line 249, 387
- in /usr/src/new/jove/jove.h line 543
- in /usr/src/new/jove/vars.c line 29

DFLT_MODE defined in line 136; used 1 times

- in /usr/src/new/jove/io.c line 656

F_COMPLETION defined in line 116; used 10 times

- in line 167
- in /usr/src/new/jove/ask.c line 17, 338, 559
- in /usr/src/new/jove/jove.h line 501, 509, 540
- in /usr/src/new/jove/scandir.c line 10
- in /usr/src/new/jove/vars.c line 24, 35

ID_CHAR defined in line 120; used 17 times

- in /usr/src/new/jove/disp.c line 29, 48, 511, 518, 554, 1121
- in /usr/src/new/jove/jove.c line 386
- in /usr/src/new/jove/jove.h line 493
- in /usr/src/new/jove/screen.c line 574, 587, 1232, 1243, 1270, 1328, 1335
- in /usr/src/new/jove/term.c line 204
- in /usr/src/new/jove/vars.c line 96

INPUT_SIG defined in line 151; used 4 times

- in /usr/src/new/jove/jove.c line 723, 738
- in /usr/src/new/jove/portsrv.c line 54, 65

IPROCS defined in line 98; used 39 times

- in line 146
- in /usr/src/new/jove/buf.c line 132, 316, 701
- in /usr/src/new/jove/disp.c line 1083
- in /usr/src/new/jove/extend.c line 966-970(2)
- in /usr/src/new/jove/funcdefs.c line 217, 318, 362, 376, 417, 423, 437, 483, 496, 538, 555
- in /usr/src/new/jove/io.c line 12
- in /usr/src/new/jove/iproc.c line 12
- in /usr/src/new/jove/jove.c line 219, 419, 428, 443, 686, 721, 736, 980, 1216
- in /usr/src/new/jove/jove.h line 213, 235, 330, 537
- in /usr/src/new/jove/proc.c line 487, 587, 615, 713
- in /usr/src/new/jove/term.c line 22
- in /usr/src/new/jove/vars.c line 73

JOB_CONTROL defined in line 94; used 15 times

- in line 96
- in /usr/src/new/jove/disp.c line 119, 167
- in /usr/src/new/jove/extend.c line 12
- in /usr/src/new/jove/funcdefs.c line 162, 462, 562
- in /usr/src/new/jove/io.c line 335, 370
- in /usr/src/new/jove/jove.c line 396, 1052
- in /usr/src/new/jove/proc.c line 590, 619, 634, 705

KILL0 defined in line 129; used 1 times

- in /usr/src/new/jove/recover.c line 547

LINT_ARGS defined in line 173; used 25 times

- in /usr/src/new/jove/abbrev.c line 33
- in /usr/src/new/jove/argcount.c line 16
- in /usr/src/new/jove/ask.c line 27
- in /usr/src/new/jove/buf.c line 24
- in /usr/src/new/jove/c.c line 19
- in /usr/src/new/jove/case.c line 16
- in /usr/src/new/jove/disp.c line 27
- in /usr/src/new/jove/extend.c line 31, 85, 248
- in /usr/src/new/jove/fmt.c line 23
- in /usr/src/new/jove/fp.c line 32
- in /usr/src/new/jove/getch.c line 17
- in /usr/src/new/jove/insert.c line 17
- in /usr/src/new/jove/io.c line 44, 1123, 1145
- in /usr/src/new/jove/jove.c line 46
- in /usr/src/new/jove/macros.c line 17
- in /usr/src/new/jove/move.c line 16
- in /usr/src/new/jove/paragraph.c line 15
- in /usr/src/new/jove/proc.c line 21
- in /usr/src/new/jove/re.c line 17
- in /usr/src/new/jove/re1.c line 24
- in /usr/src/new/jove/screen.c line 28

LISP defined in line 124; used 13 times

- in /usr/src/new/jove/abbrev.c line 186
- in /usr/src/new/jove/ctype.c line 133
- in /usr/src/new/jove/disp.c line 987
- in /usr/src/new/jove/funcdefs.c line 235, 274, 407, 433
- in /usr/src/new/jove/insert.c line 211, 268, 325, 341, 648
- in /usr/src/new/jove/jove.h line 143

LOAD_AV defined in line 88; used 2 times

- in /usr/src/new/jove/disp.c line 1047
- in /usr/src/new/jove/proc.c line 679

MENLO_JCL defined in line 97; used 2 times

- in /usr/src/new/jove/jove.c line 111
- in /usr/src/new/jove/jove.h line 48

MY_MALLOC defined in line 132; used 1 times

- in /usr/src/new/jove/malloc.c line 10

NBUF defined in line 174; used 3 times

- in /usr/src/new/jove/io.c line 1112, 1133, 1174

NOGETPWENT defined in line 85; used 1 times

- in /usr/src/new/jove/io.c line 527

PIPEPROCS defined in line 150; used 12 times

- in line 188
- in /usr/src/new/jove/funcdefs.c line 222, 319, 363, 377, 556
- in /usr/src/new/jove/iproc.c line 16
- in /usr/src/new/jove/jove.c line 219, 721, 736
- in /usr/src/new/jove/jove.h line 238
- in /usr/src/new/jove/portsrv.c line 14

RESHAPING defined in line 139; used 1 times

- in /usr/src/new/jove/screen.c line 460

SMALL defined in line 71; used 1 times

- in line 105

SPELL defined in line 130; used 5 times

- in /usr/src/new/jove/funcdefs.c line 159, 196, 459, 550
- in /usr/src/new/jove/proc.c line 341

SUBPROCS defined in line 101; never used
SYSV defined in line 37; used 14 times

- in line 36, 159
- in /usr/src/new/jove/jove.c line 26, 77, 174, 286, 336, 563, 577, 643, 1237
- in /usr/src/new/jove/recover.c line 98
- in /usr/src/new/jove/scandir.c line 69
- in /usr/src/new/jove/term.c line 15

TUNED defined in line 8; used 1 times

- in /usr/src/new/jove/jove.h line 13

UNIX defined in line 22; used 34 times

- in line 26, 61, 127
- in /usr/src/new/jove/disp.c line 834, 921, 973
- in /usr/src/new/jove/io.c line 22, 335, 370, 525, 703
- in /usr/src/new/jove/jove.c line 25, 61, 152, 436, 472, 562, 642, 727-732(2), 750, 1043, 1236, 1269
- in /usr/src/new/jove/jove.h line 547
- in /usr/src/new/jove/scandir.c line 17, 26
- in /usr/src/new/jove/util.c line 108, 123, 134, 625
- in /usr/src/new/jove/vars.c line 14, 50, 93

VFORK defined in line 92; used 1 times

- in line 155

VMUNIX defined in line 63; used 3 times

- in /usr/src/new/jove/io.c line 111
- in /usr/src/new/jove/jove.c line 1144
- in /usr/src/new/jove/jove.h line 194

WIRED_TERMS defined in line 121; used 3 times

- in /usr/src/new/jove/screen.c line 1366, 1439, 1518

byte_copy defined in line 160; used 16 times

- in /usr/src/new/jove/disp.c line 777, 807
- in /usr/src/new/jove/io.c line 1071
- in /usr/src/new/jove/macros.c line 236, 326
- in /usr/src/new/jove/re.c line 864-873(8)
- in /usr/src/new/jove/util.c line 545, 686, 693

bzero defined in line 172; used 4 times

- in /usr/src/new/jove/mac.c line 175, 184, 559
- in /usr/src/new/jove/re.c line 275

iAPX286 defined in line 48; used 4 times

- in line 62-65(2), 108, 131

index defined in line 171; used 18 times

- in /usr/src/new/jove/abbrev.c line 241
- in /usr/src/new/jove/ask.c line 192, 358
- in /usr/src/new/jove/c.c line 113, 328
- in /usr/src/new/jove/extend.c line 207, 945
- in /usr/src/new/jove/funcdefs.c line 628
- in /usr/src/new/jove/io.c line 505, 595, 716
- in /usr/src/new/jove/mac.c line 237
- in /usr/src/new/jove/macros.c line 314
- in /usr/src/new/jove/paragraph.c line 418-423(2)
- in /usr/src/new/jove/re.c line 156
- in /usr/src/new/jove/recover.c line 342-346(2)

rindex defined in line 170; used 9 times

- in /usr/src/new/jove/ask.c line 471-477(4)
- in /usr/src/new/jove/io.c line 1388, 1424
- in /usr/src/new/jove/util.c line 669-676(3)

sighold defined in line 206; used 7 times

- in /usr/src/new/jove/disp.c line 121
- in /usr/src/new/jove/extend.c line 967
- in /usr/src/new/jove/jove.c line 420, 738-739(2)
- in /usr/src/new/jove/proc.c line 588-591(2)

sigrelse defined in line 207; used 10 times

- in /usr/src/new/jove/disp.c line 169
- in /usr/src/new/jove/extend.c line 971
- in /usr/src/new/jove/jove.c line 429, 444, 723-724(2)
- in /usr/src/new/jove/proc.c line 616-620(2), 706, 714

vfork defined in line 156; used 1 times

- in /usr/src/new/jove/proc.c line 596

#### Usage of this include

tune.h used 5 times

- in /usr/src/new/jove/getch.c line 8
- in /usr/src/new/jove/jove.h line 14
- in /usr/src/new/jove/mac.c line 11
- in /usr/src/new/jove/malloc.c line 8
- in /usr/src/new/jove/portsrv.c line 12

Last modified: 1994-01-01 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1074 |