# 2.11BSD#431 - /usr/ingres/source/gutil/trace.c

##### Functions

    tTfp              X
    tTnext            X
    tTon              X
    tTrace            X
    tTurn             X

##### Variables

    tT                X
    tTany             X
    tTbuffer          X
    tTp               X
    tTsav             X

##### Macros

    tTNCUTOFF         X
    tTNFUNC           X

       1: # define    tTNFUNC     100
       2: # define    tTNCUTOFF   70
       3:
       4: int     tT[tTNFUNC];
       5: char        *tTp, tTsav, tTany;
       6: char        tTbuffer[100];
       7:
       8: tTrace(argc, argv, flag)
       9: int *argc;
      10: char    **argv;
      11: char    flag;
      12: {
      13:     register int    fno;
      14:     int     f;
      15:     register char   **ps, **pd;
      16:     int     cnt;
      17:
      18:     ps = pd = argv;
      19:     for (cnt = *argc; cnt > 0; cnt--)
      20:     {
      21:         if ((*ps)[0] != '-' || (*ps)[1] != flag)
      22:         {
      23:             *pd++ = *ps++;
      24:             continue;
      25:         }
      26:         tTany++;
      27:         tTp = tTbuffer;
      28:         smove((*ps)+2, tTbuffer);
      29:         (*argc)--;
      30:         ps++;
      31:         if (!*tTp)
      32:         {
      33:             for (fno = 0; fno < tTNCUTOFF; fno++)
      34:                 tTon(fno, -1);
      35:             continue;
      36:         }
      37:         do
      38:         {
      39:             fno = tTnext();
      40:             tTurn(fno);
      41:
      42:             if (tTsav == '/')
      43:             {
      44:                 f = fno + 1;
      45:                 fno = tTnext();
      46:                 while (f < fno)
      47:                     tTon(f++, -1);
      48:                 tTurn(fno);
      49:             }
      50:         }  while(tTsav);
      51:     }
      52:     *pd = 0;
      53: }
      54:
      55: tTnext()
      56: {
      57:     register char   *c;
      58:     int     i;
      59:
      60:     c = tTp;
      61:     while (*tTp >= '0' && *tTp <= '9')
      62:         tTp++;
      63:     tTsav = *tTp;
      64:     *tTp++ = '\0';
      65:     atoi(c, &i);
      66:     return (i);
      67: }
      68:
      69: tTurn(fno1)
      70: int fno1;
      71: {
      72:     register int    pt;
      73:     register int    fno;
      74:
      75:     fno = fno1;
      76:     if (tTsav == '.')
      77:     {
      78:         while (tTsav == '.')
      79:         {
      80:             pt = tTnext();
      81:             tTon(fno, pt);
      82:         }
      83:     }
      84:     else
      85:         tTon(fno, -1);
      86: }
      87:
      88:
      89: tTon(fun1, pt1)
      90: int fun1;
      91: int pt1;
      92: {
      93:     register int        i;
      94:     register int        fun;
      95:     register int        pt;
      96:
      97:     fun = fun1;
      98:     pt = pt1;
      99:     if (pt >= 0)
     100:         tT[fun] |= (1<<pt%16);
     101:     else
     102:         tT[fun] = 0177777;
     103: }
     104:
     105:
     106: /*
     107: **  CHECK TRACE FLAG AND PRINT INFORMATION
     108: **
     109: **	This routine is equivalent to
     110: **		if (tTf(m, n))
     111: **			printf(a1, a2, a3, a4, a5, a6);
     112: **
     113: **	and can be called to reduce process space.  The return value
     114: **	is the value of the flag.
     115: */
     116:
     117: tTfp(m, n, a1, a2, a3, a4, a5, a6)
     118: int m;
     119: int n;
     120: char    *a1, *a2, *a3, *a4, *a5, *a6;
     121: {
     122:     register int    rtval;
     123:
     124:     if (rtval = tTf(m, n))
     125:         printf(a1, a2, a3, a4, a5, a6);
     126:     return (rtval);
     127: }

#### Defined functions

tTfp defined in line 117; used 48 times

- in /usr/ingres/source/access/accbuf.c line 76, 230
- in /usr/ingres/source/access/inpcloser.c line 26
- in /usr/ingres/source/access/page.c line 167
- in /usr/ingres/source/dbu/destroy.c line 78
- in /usr/ingres/source/dbu/index.c line 56
- in /usr/ingres/source/monitor/mcall.c line 52
- in /usr/ingres/source/monitor/shell.c line 46
- in /usr/ingres/source/parser/attfcn.c line 48, 64
- in /usr/ingres/source/parser/call_p.c line 24
- in /usr/ingres/source/parser/call_tree.c line 22, 29
- in /usr/ingres/source/parser/master.grammar line 375, 548, 572, 631, 881
- in /usr/ingres/source/parser/rngfcn.c line 76
- in /usr/ingres/source/parser/tree.c line 113
- in /usr/ingres/source/parser/xdot.c line 33
- in /usr/ingres/source/parser/yyerror.y line 92
- in /usr/ingres/source/qrymod/integrity.c line 74, 90
- in /usr/ingres/source/qrymod/protect.c line 219, 949, 958, 970
- in /usr/ingres/source/qrymod/readtree.c line 72
- in /usr/ingres/source/qrymod/view.c line 247, 257
- in /usr/ingres/source/scanner/name.c line 65
- in /usr/ingres/source/scanner/string.c line 79
- in /usr/ingres/source/scanner/yylex.c line 27
- in /usr/ingres/source/support/purge.c line 69, 115, 126
- in /usr/ingres/source/support/subs.c line 49-53(2), 71, 114, 126, 166, 185-189(2), 211, 222, 241

tTnext defined in line 55; used 3 times

- in line 39, 45, 80

tTon defined in line 89; used 4 times

- in line 34, 47, 81-85(2)

tTrace defined in line 8; used 13 times

- in /usr/ingres/source/dbu/main.c line 121
- in /usr/ingres/source/decomp/main.c line 21
- in /usr/ingres/source/monitor/main.c line 76
- in /usr/ingres/source/ovqp/main.c line 23
- in /usr/ingres/source/parser/main.c line 27
- in /usr/ingres/source/qrymod/main.c line 117
- in /usr/ingres/source/support/creatdb.c line 267
- in /usr/ingres/source/support/destroydb.c line 48
- in /usr/ingres/source/support/helpr.c line 28
- in /usr/ingres/source/support/printr.c line 30
- in /usr/ingres/source/support/purge.c line 62
- in /usr/ingres/source/support/restore.c line 68
- in /usr/ingres/source/support/sysmod.c line 97

tTurn defined in line 69; used 2 times

- in line 40, 48

#### Defined variables

tT defined in line 4; used 4 times

- in line 100-102(2)
- in /usr/ingres/source/gutil/tTf.s line 28, 35

tTany defined in line 5; used 3 times

- in line 26
- in /usr/ingres/source/gutil/tTf.s line 27-31(2)

tTbuffer defined in line 6; used 2 times

- in line 27-28(2)

tTp defined in line 5; used 8 times

- in line 27-31(2), 60-64(6)

tTsav defined in line 5; used 5 times

- in line 42, 50, 63, 76-78(2)

#### Defined macros

tTNCUTOFF defined in line 2; used 1 times

- in line 33

tTNFUNC defined in line 1; used 1 times

- in line 4

Last modified: 1995-02-04 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 690 |