int c_width; /* width of field */
int c_cwidth; /* width of component */
int c_length; /* length in lines */
- long c_flags;
+ unsigned long c_flags;
struct mcomp *c_next;
};
struct pair {
char *p_name;
- long p_flags;
+ unsigned long p_flags;
};
static struct pair pairs[] = {
struct triple {
char *t_name;
- long t_on;
- long t_off;
+ unsigned long t_on;
+ unsigned long t_off;
};
static struct triple triples[] = {
static void process (char *, char *, int, int);
static void mhlfile (FILE *, char *, int, int);
static int mcomp_flags (char *);
-static char *mcomp_add (long, char *, char *);
+static char *mcomp_add (unsigned long, char *, char *);
static void mcomp_format (struct mcomp *, struct mcomp *);
static struct mcomp *add_queue (struct mcomp **, struct mcomp **, char *, char *, int);
static void free_queue (struct mcomp **, struct mcomp **);
static void putcomp (struct mcomp *, struct mcomp *, int);
-static char *oneline (char *, long);
-static void putstr (char *, long);
-static void putch (char, long);
+static char *oneline (char *, unsigned long);
+static void putstr (char *, unsigned long);
+static void putch (char, unsigned long);
static void intrser (int);
static void pipeser (int);
static void quitser (int);
static char *
-mcomp_add (long flags, char *s1, char *s2)
+mcomp_add (unsigned long flags, char *s1, char *s2)
{
char *dp;
static char *
-oneline (char *stuff, long flags)
+oneline (char *stuff, unsigned long flags)
{
int spc;
char *cp, *ret;
static void
-putstr (char *string, long flags)
+putstr (char *string, unsigned long flags)
{
/* To not count, for the purpose of counting columns, all of
the bytes of a multibyte character. */
lm = 0;
#ifdef MULTIBYTE_SUPPORT
- (void) mbtowc (NULL, NULL, 0); /* reset shift state */
+ if (mbtowc (NULL, NULL, 0)) {} /* reset shift state */
char_len = 0;
#else
NMH_UNUSED (char_len);
static void
-putch (char ch, long flags)
+putch (char ch, unsigned long flags)
{
char buf[BUFSIZ];