Print this page
rm code review

@@ -52,10 +52,22 @@
                 *incrementp = increment;
 
         return (size);
 }
 
+void
+ctf_set_ctt_size(ctf_type_t *tp, ssize_t size)
+{
+        if (size > CTF_MAX_SIZE) {
+                tp->ctt_size = CTF_LSIZE_SENT;
+                tp->ctt_lsizehi = CTF_SIZE_TO_LSIZE_HI(size);
+                tp->ctt_lsizelo = CTF_SIZE_TO_LSIZE_LO(size);
+        } else {
+                tp->ctt_size = (ushort_t)size;
+        }
+}
+
 /*
  * Iterate over the members of a STRUCT or UNION.  We pass the name, member
  * type, and offset of each member to the specified callback function.
  */
 int