X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fmhlsbr.c;h=fbd25037d1d6645d4aa81d8709169b849c8ab050;hp=e7f34c21c3b16edad426c2768d1ae50ec24731ae;hb=ced6090a330d3d83d0bce709f756aa3d7d65fea4;hpb=337338b404931f06f0db2119c9e145e8ca5a9860 diff --git a/uip/mhlsbr.c b/uip/mhlsbr.c index e7f34c2..fbd2503 100644 --- a/uip/mhlsbr.c +++ b/uip/mhlsbr.c @@ -1,10 +1,10 @@ /* - * mhlsbr.c -- main routines for nmh message lister - * - * This code is Copyright (c) 2002, by the authors of nmh. See the - * COPYRIGHT file in the root directory of the nmh distribution for - * complete copyright information. - */ +** mhlsbr.c -- main routines for nmh message lister +** +** This code is Copyright (c) 2002, by the authors of nmh. See the +** COPYRIGHT file in the root directory of the nmh distribution for +** complete copyright information. +*/ #include #include @@ -16,23 +16,23 @@ #include /* - * MAJOR BUG: - * for a component containing addresses, ADDRFMT, if COMPRESS is also - * set, then addresses get split wrong (not at the spaces between commas). - * To fix this correctly, putstr() should know about "atomic" strings that - * must NOT be broken across lines. That's too difficult for right now - * (it turns out that there are a number of degernate cases), so in - * oneline(), instead of - * - * (*onelp == '\n' && !onelp[1]) - * - * being a terminating condition, - * - * (*onelp == '\n' && (!onelp[1] || (flags & ADDRFMT))) - * - * is used instead. This cuts the line prematurely, and gives us a much - * better chance of getting things right. - */ +** MAJOR BUG: +** for a component containing addresses, ADDRFMT, if COMPRESS is also +** set, then addresses get split wrong (not at the spaces between commas). +** To fix this correctly, putstr() should know about "atomic" strings that +** must NOT be broken across lines. That's too difficult for right now +** (it turns out that there are a number of degernate cases), so in +** oneline(), instead of +** +** (*onelp == '\n' && !onelp[1]) +** +** being a terminating condition, +** +** (*onelp == '\n' && (!onelp[1] || (flags & ADDRFMT))) +** +** is used instead. This cuts the line prematurely, and gives us a much +** better chance of getting things right. +*/ #define ONECOMP 0 #define TWOCOMP 1 @@ -245,15 +245,15 @@ static FILE *(*mhl_action) () = (FILE *(*) ()) 0; /* - * Redefine a couple of functions. - * These are undefined later in the code. - */ +** Redefine a couple of functions. +** These are undefined later in the code. +*/ #define adios mhladios #define done mhldone /* - * prototypes - */ +** prototypes +*/ static void mhl_format (char *, int, int); static int evalvar (struct mcomp *); static int ptoi (char *, int *); @@ -264,7 +264,8 @@ static void mhlfile (FILE *, char *, int, int); static int mcomp_flags (char *); static char *mcomp_add (long, char *, char *); static void mcomp_format (struct mcomp *, struct mcomp *); -static struct mcomp *add_queue (struct mcomp **, struct mcomp **, char *, char *, int); +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); @@ -557,10 +558,10 @@ mhl_format (char *file, int length, int width) case ',': case '=': /* - * Split this list of fields to ignore, - * and copy it to the end of the current - * "ignores" list. - */ + ** Split this list of fields to ignore, + ** and copy it to the end of the current + ** "ignores" list. + */ if (!mh_strcasecmp (name, "ignores")) { char **tmparray, **p; int n = 0; @@ -573,7 +574,10 @@ mhl_format (char *file, int length, int width) while (*p++) n++; - /* copy pointers to split fields to ignores array */ + /* + ** copy pointers to split fields + ** to ignores array + */ ip = copyip (tmparray, ip, MAXARGS - num_ignores); num_ignores += n; continue; @@ -1413,9 +1417,9 @@ putch (char ch) default: /* - * If we are forwarding this message, and the first - * column contains a dash, then add a dash and a space. - */ + ** If we are forwarding this message, and the first + ** column contains a dash, then add a dash and a space. + */ if (column == 0 && forwflg && (dashstuff >= 0) && ch == '-') { putchar ('-'); putchar (' '); @@ -1501,10 +1505,10 @@ face_format (struct mcomp *c1) /* - * faceproc is two elements defining the image agent's location: - * Internet host - * UDP port - */ +** faceproc is two elements defining the image agent's location: +** Internet host +** UDP port +*/ #include #include @@ -1568,9 +1572,9 @@ bad_faceproc: ; } /* - * COMMENTED OUT - * This version doesn't use sockets - */ +** COMMENTED OUT +** This version doesn't use sockets +*/ #if 0 static int @@ -1694,9 +1698,9 @@ mhlsbr (int argc, char **argv, FILE *(*action)()) mhl_action = action; /* - * If signal is at default action, then start ignoring - * it, else let it set to its current action. - */ + ** If signal is at default action, then start ignoring + ** it, else let it set to its current action. + */ if ((istat = SIGNAL (SIGINT, SIG_IGN)) != SIG_DFL) SIGNAL (SIGINT, istat); if ((qstat = SIGNAL (SIGQUIT, SIG_IGN)) != SIG_DFL) @@ -1707,7 +1711,10 @@ mhlsbr (int argc, char **argv, FILE *(*action)()) default: SIGNAL (SIGINT, istat); SIGNAL (SIGQUIT, qstat); - SIGNAL (SIGPIPE, SIG_IGN); /* should probably change to block instead */ + SIGNAL (SIGPIPE, SIG_IGN); /* + ** should probably change to block + ** instead + */ if (ontty == PITTY) m_pclose (); SIGNAL (SIGPIPE, pstat);