Print this page
Cstyle cleanup

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libdemangle/common/cxx.c
          +++ new/usr/src/lib/libdemangle/common/cxx.c
↓ open down ↓ 2728 lines elided ↑ open up ↑
2729 2729                  e = conv.ld.buf;
2730 2730                  break;
2731 2731          }
2732 2732          last = first + fd->mangled_size + 1;
2733 2733  
2734 2734  #if defined(_BIG_ENDIAN)
2735 2735          for (t = first + 1; t != last; t++, e++) {
2736 2736                  if (!is_xdigit(t[0]))
2737 2737                          return (first);
2738 2738  
2739      -                unsigned d1 = isdigit_l(t[0], db->cpp_loc) ? t[0] - '0' : t[0] - 'a' + 10;
     2739 +                unsigned d1 = isdigit_l(t[0], db->cpp_loc) ?
     2740 +                    t[0] - '0' : t[0] - 'a' + 10;
2740 2741                  t++;
2741      -                unsigned d0 = isdigit_l(t[0], db->cpp_loc) ? t[0] - '0' : t[0] - 'a' + 10;
     2742 +                unsigned d0 = isdigit_l(t[0], db->cpp_loc) ?
     2743 +                    t[0] - '0' : t[0] - 'a' + 10;
2742 2744  
2743 2745                  *e = (d1 << 4) + d0;
2744 2746          }
2745 2747  #elif defined(_LITTLE_ENDIAN)
2746 2748          for (t = last - 1; t > first; t--, e++) {
2747 2749                  if (!is_xdigit(t[0]))
2748 2750                          return (first);
2749 2751  
2750      -                unsigned d0 = isdigit_l(t[0], db->cpp_loc) ? t[0] - '0' : t[0] - 'a' + 10;
     2752 +                unsigned d0 = isdigit_l(t[0], db->cpp_loc) ?
     2753 +                    t[0] - '0' : t[0] - 'a' + 10;
2751 2754                  t--;
2752      -                unsigned d1 = isdigit_l(t[0], db->cpp_loc) ? t[0] - '0' : t[0] - 'a' + 10;
     2755 +                unsigned d1 = isdigit_l(t[0], db->cpp_loc) ?
     2756 +                    t[0] - '0' : t[0] - 'a' + 10;
2753 2757  
2754 2758                  *e = (d1 << 4) + d0;
2755 2759          }
2756 2760          t = last;
2757 2761  #else
2758 2762  #error One of _BIG_ENDIAN or _LITTLE_ENDIAN must be defined
2759 2763  #endif
2760 2764  
2761 2765          if (t[0] != 'E')
2762 2766                  return (first);
↓ open down ↓ 1451 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX