]> diplodocus.org Git - nmh/commitdiff
Removed m_eomsbr() from m_getfld.c, and its scan_eom_action()
authorDavid Levine <levinedl@acm.org>
Mon, 4 Aug 2014 01:10:45 +0000 (20:10 -0500)
committerDavid Levine <levinedl@acm.org>
Mon, 4 Aug 2014 01:10:45 +0000 (20:10 -0500)
wrapper.  It was only used by msh, which was removed by commit
e6917522a770cf2dba9997ca047977bc55fac061.

h/prototypes.h
sbr/m_getfld.c
uip/scansbr.c

index a21a7180ec7947bfaaafb524c4bff76c1052a149..4c5c3bb12cd61b7b4f9dbf66da511e476b4f23dd 100644 (file)
@@ -214,7 +214,6 @@ int m_atoi (char *);
 char *m_backup (char *);
 int m_convert (struct msgs *, char *);
 char *m_draft (char *, char *, int, int *);
 char *m_backup (char *);
 int m_convert (struct msgs *, char *);
 char *m_draft (char *, char *, int, int *);
-void m_eomsbr (m_getfld_state_t, int (*)(int));
 void m_getfld_state_reset (m_getfld_state_t *);
 void m_getfld_state_destroy (m_getfld_state_t *);
 void m_getfld_track_filepos (m_getfld_state_t *, FILE *);
 void m_getfld_state_reset (m_getfld_state_t *);
 void m_getfld_state_destroy (m_getfld_state_t *);
 void m_getfld_track_filepos (m_getfld_state_t *, FILE *);
@@ -293,7 +292,6 @@ void ruserpass (char *, char **, char **);
 int remdir (char *);
 void scan_detect_mbox_style (FILE *);
 void scan_finished ();
 int remdir (char *);
 void scan_detect_mbox_style (FILE *);
 void scan_finished ();
-void scan_eom_action (int (*)());
 void scan_reset_m_getfld_state ();
 int seq_addmsg (struct msgs *, char *, int, int, int);
 int seq_addsel (struct msgs *, char *, int, int);
 void scan_reset_m_getfld_state ();
 int seq_addmsg (struct msgs *, char *, int, int, int);
 int seq_addsel (struct msgs *, char *, int, int);
index 63b3fda21fd87713a60f4c2a34ff331e329d8923..fa6518359326b42994b01090d64826403b60cce8 100644 (file)
    state to FLD.
 
    void m_unknown(FILE *iob):  Determines the message delimiter string
    state to FLD.
 
    void m_unknown(FILE *iob):  Determines the message delimiter string
-   for the maildrop.  Called by inc, scan, and msh when reading from a
+   for the maildrop.  Called by inc and scan when reading from a
    maildrop file.
 
    maildrop file.
 
-   void m_eomsbr (int (*action)(int)):  Sets the hook to check for end
-   of message in a maildrop.  Called only by msh.
-
    State variables
    ===============
    m_getfld() retains state internally between calls in the
    State variables
    ===============
    m_getfld() retains state internally between calls in the
@@ -850,23 +847,6 @@ m_unknown(m_getfld_state_t *gstate, FILE *iob)
 }
 
 
 }
 
 
-void
-m_eomsbr (m_getfld_state_t s, int (*action)(int))
-{
-    if ((s->eom_action = action)) {
-       s->msg_style = MS_MSH;
-       *s->msg_delim = 0;
-       s->fdelimlen = 1;
-       s->delimend = s->fdelim;
-    } else {
-       s->msg_style = MS_MMDF;
-       s->msg_delim = s->fdelim + 1;
-       s->fdelimlen = strlen (s->fdelim);
-       s->delimend = s->msg_delim + s->edelimlen;
-    }
-}
-
-
 /*
  * test for msg delimiter string
  */
 /*
  * test for msg delimiter string
  */
index a07889e48b424cced88deee44d9e1b93d0f3e6db..abcb496253dd28d0ae4fe6dd822d9dc2b87a771f 100644 (file)
@@ -391,11 +391,6 @@ scan_detect_mbox_style (FILE *f) {
     m_unknown (&gstate, f);
 }
 
     m_unknown (&gstate, f);
 }
 
-void
-scan_eom_action (int (*action)()) {
-    m_eomsbr (gstate, action);
-}
-
 void
 scan_reset_m_getfld_state () {
     m_getfld_state_reset (&gstate);
 void
 scan_reset_m_getfld_state () {
     m_getfld_state_reset (&gstate);