code: def _typedef_both(t, base=0, item=0, leng=None, refs=None, kind=_kind_static, heap=False):
      '''Add new typedef for both data and code.
      '''
      v = _Typedef(base=_basicsize(t, base=base), item=_itemsize(t, item),
                   refs=refs, leng=leng,
                   both=True, kind=kind, type=t)
      v.save(t, base=base, heap=heap)
      return f _typedef_both(t, base=0, item=0, leng=None, refs=None, kind=_kind_static, heap=False):
      '''Add new typedef for both data and code.
      '''
      v = _Typedef(base=_basicsize(t, base=base), item=_itemsize(t, item),
                   refs=refs, leng=leng,
                   both=True, kind=kind, type=t)
      v.save(t, base=base, heap=heap)
      return v
docs: Add new typedef for both data and code.