1: #include "../h/rt.h"
   2: 
   3: /*
   4:  * mkint - make an integer descriptor for l in *d.  A long integer is used
   5:  *  if the value is too large for a regular integer.
   6:  */
   7: 
   8: mkint(l, d)
   9: long l;
  10: register struct descrip *d;
  11:    {
  12: #ifdef LONGS
  13:    extern struct b_int *alclint();
  14: 
  15:    if (l < (long)(int)MINSHORT || l > (long)(int)MAXSHORT) {
  16:       hneed(sizeof(struct b_int));
  17:       d->type = D_LONGINT;
  18:       BLKLOC(*d) = alclint(l);
  19:       }
  20:    else {
  21:       d->type = D_INTEGER;
  22:       INTVAL(*d) = (int)l;
  23:       }
  24: #else LONGS
  25:    d->type = D_INTEGER;
  26:    INTVAL(*d) = (int)l;
  27: #endif LONGS
  28:    }

Defined functions

mkint defined in line 8; used 2 times
Last modified: 1984-11-18
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 872
Valid CSS Valid XHTML 1.0 Strict