summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
06efa57)
repl.c declared global variables, and replsbr.c had extern statements
that hopefully matched them. But they're really inputs into replsbr.c's
code, so move the declarations into a new header file that both then
include, and define them in replsbr.c.
uip/mhmisc.h \
uip/mhoutsbr.h \
uip/mhshowsbr.h \
uip/mhmisc.h \
uip/mhoutsbr.h \
uip/mhshowsbr.h \
int mhl(int, char **);
int mhlsbr(int, char **, FILE *(*)(char *));
int distout (char *, char *, char *);
int mhl(int, char **);
int mhlsbr(int, char **, FILE *(*)(char *));
int distout (char *, char *, char *);
-void replout (FILE *, char *, char *, struct msgs *, int,
- int, char *, char *, char *, int);
int build_form (char *, char *, int *, char *, char *, char *, char *,
char *, char *);
int sendsbr (char **, int, char *, char *, struct stat *, int, const char *);
int build_form (char *, char *, int *, char *, char *, char *, char *,
char *, char *);
int sendsbr (char **, int, char *, char *, struct stat *, int, const char *);
#include "h/done.h"
#include <h/utils.h>
#include "sbr/m_maildir.h"
#include "h/done.h"
#include <h/utils.h>
#include "sbr/m_maildir.h"
#define REPL_SWITCHES \
X("group", 0, GROUPSW) \
#define REPL_SWITCHES \
X("group", 0, GROUPSW) \
-short ccto = -1; /* global for replsbr */
-short cccc = -1;
-short ccme = -1;
-short querysw = 0;
-
static short outputlinelen = OUTPUTLINELEN;
static bool groupreply; /* Is this a group reply? */
static short outputlinelen = OUTPUTLINELEN;
static bool groupreply; /* Is this a group reply? */
#include "h/done.h"
#include <h/utils.h>
#include <sys/file.h> /* L_SET */
#include "h/done.h"
#include <h/utils.h>
#include <sys/file.h> /* L_SET */
-extern short ccto; /* from repl.c */
-extern short cccc;
-extern short ccme;
-extern short querysw;
+short ccto = -1;
+short cccc = -1;
+short ccme = -1;
+short querysw = 0;
--- /dev/null
+/* replsbr.h -- routines to help repl along...
+ *
+ * This code is Copyright (c) 2017, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
+ */
+
+void replout(FILE *inb, char *msg, char *drft, struct msgs *mp,
+ int outputlinelen, int mime, char *form, char *filter, char *fcc,
+ int fmtproc);
+
+extern short ccto;
+extern short cccc;
+extern short ccme;
+extern short querysw;