# define VERBOSE 0
# endif
-static bool
+static inline bool
print_0x8(const char *prefix, unsigned char *buf, unsigned int offs, bool zero)
{
if (!zero && !buf[offs])
return true;
}
-static bool
+static inline bool
print_u8(const char *prefix, unsigned char *buf, unsigned int offs, bool zero)
{
if (!zero && !buf[offs])
return true;
}
-static bool
+static inline bool
print_u16(const char *prefix, unsigned char *buf, unsigned int offs, bool zero)
{
uint16_t val = *(uint16_t *) (buf + offs);
return true;
}
-static bool
+static inline bool
print_x32(const char *prefix, unsigned char *buf, unsigned int offs, bool zero)
{
uint32_t val = *(uint32_t *) (buf + offs);
return true;
}
-static bool
+static inline bool
print_weight(const char *prefix, unsigned char *buf, unsigned int offs,
bool zero)
{
return false;
}
-static char *
+static inline char *
ebcdic2ascii(unsigned char *ebcdic, size_t size)
{
static char ascii_buf[EBCDIC_MAX_LEN];
return ascii_buf;
}
-# if VERBOSE
-static bool
+static inline bool
is_empty(unsigned char *ptr, size_t size)
{
size_t i;
return i == size;
}
-# endif /* !VERBOSE */
-static bool
+static inline bool
print_ebcdic(const char *prefix, unsigned char *addr, unsigned int offs,
size_t size, bool zero, bool blank)
{