1: # include   "mille.h"
   2: 
   3: /*
   4:  * @(#)types.c	1.1 (Berkeley) 4/1/82
   5:  */
   6: 
   7: isrepair(card)
   8: reg CARD    card; {
   9: 
  10:     return card == C_GAS || card == C_SPARE || card == C_REPAIRS || card == C_INIT;
  11: }
  12: 
  13: safety(card)
  14: reg CARD    card; {
  15: 
  16:     switch (card) {
  17:       case C_EMPTY:
  18:       case C_GAS:
  19:       case C_GAS_SAFE:
  20:         return C_GAS_SAFE;
  21:       case C_FLAT:
  22:       case C_SPARE:
  23:       case C_SPARE_SAFE:
  24:         return C_SPARE_SAFE;
  25:       case C_CRASH:
  26:       case C_REPAIRS:
  27:       case C_DRIVE_SAFE:
  28:         return C_DRIVE_SAFE;
  29:       case C_GO:
  30:       case C_STOP:
  31:       case C_RIGHT_WAY:
  32:       case C_LIMIT:
  33:       case C_END_LIMIT:
  34:         return C_RIGHT_WAY;
  35:     }
  36:     /* NOTREACHED */
  37: }

Defined functions

isrepair defined in line 7; used 7 times
safety defined in line 13; used 20 times
Last modified: 1985-04-07
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 885
Valid CSS Valid XHTML 1.0 Strict