Print this page
rm code review

Split Close
Expand all
Collapse all
          --- old/usr/src/common/ctf/ctf_types.c
          +++ new/usr/src/common/ctf/ctf_types.c
↓ open down ↓ 46 lines elided ↑ open up ↑
  47   47          }
  48   48  
  49   49          if (sizep)
  50   50                  *sizep = size;
  51   51          if (incrementp)
  52   52                  *incrementp = increment;
  53   53  
  54   54          return (size);
  55   55  }
  56   56  
       57 +void
       58 +ctf_set_ctt_size(ctf_type_t *tp, ssize_t size)
       59 +{
       60 +        if (size > CTF_MAX_SIZE) {
       61 +                tp->ctt_size = CTF_LSIZE_SENT;
       62 +                tp->ctt_lsizehi = CTF_SIZE_TO_LSIZE_HI(size);
       63 +                tp->ctt_lsizelo = CTF_SIZE_TO_LSIZE_LO(size);
       64 +        } else {
       65 +                tp->ctt_size = (ushort_t)size;
       66 +        }
       67 +}
       68 +
  57   69  /*
  58   70   * Iterate over the members of a STRUCT or UNION.  We pass the name, member
  59   71   * type, and offset of each member to the specified callback function.
  60   72   */
  61   73  int
  62   74  ctf_member_iter(ctf_file_t *fp, ctf_id_t type, ctf_member_f *func, void *arg)
  63   75  {
  64   76          ctf_file_t *ofp = fp;
  65   77          const ctf_type_t *tp;
  66   78          ssize_t size, increment;
↓ open down ↓ 1242 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX