#include "unwind_i.h"

static const char *regname[] =
  {
    "eax", "ebx", "ecx", "edx", "esi", "edi", "ebp", "eip", "esp"
  };

const char *
unw_regname (unw_regnum_t reg)
{
  if (reg < NELEMS (regname))
    return regname[reg];
  else
    return "???";
}

Use NELEMS() instead of open code.
(unw_regname): Use NELEMS() instead of open code.

(Logical change 1.39)
