]> diplodocus.org Git - nmh/blobdiff - h/mh.h
Use a dynamically-allocated buffer for character set conversion, and
[nmh] / h / mh.h
diff --git a/h/mh.h b/h/mh.h
index 354f3fa5ddd70a2a24d7b8dbb907f0bec2c097d6..4e8be7bc5339bdca1214d2a3fc70a5fa617db968 100644 (file)
--- a/h/mh.h
+++ b/h/mh.h
@@ -79,7 +79,7 @@ struct swit {
 /*
  * Macros to use when declaring struct swit arrays.
  *
- * These macros are what known as X-Macros.  In your source code you
+ * These macros use a technique known as X-Macros.  In your source code you
  * use them like this:
  *
  * #define FOO_SWITCHES \
@@ -89,6 +89,10 @@ struct swit {
  *
  * The argument to each entry in FOO_SWITCHES are the switch name (sw),
  * the minchars field (see above) and the return value for this switch.
+ * Note that the last entry in the above definition must either omit the
+ * continuation backslash, or be followed by a blank line.  In the nmh
+ * code the style is to have every line include a backslash and follow
+ * the SWITCHES macro definition by a blank line.
  *
  * After you define FOO_SWITCHES, you instantiate it as follows:
  *
@@ -118,8 +122,6 @@ struct swit {
 
 extern struct swit anoyes[];   /* standard yes/no switches */
 
-#define ATTACHFORMATS 3                /* Number of send attach formats. */
-
 /*
  * general folder attributes
  */
@@ -163,17 +165,16 @@ unsigned int bvector_at (bvector_t, size_t);
 const unsigned long *bvector_bits (bvector_t);
 size_t bvector_maxsize (bvector_t);
 
-struct svector;
 typedef struct svector *svector_t;
 
 svector_t svector_create (size_t);
 void svector_free (svector_t);
 char *svector_push_back (svector_t, char *);
 char *svector_at (svector_t, size_t);
+char **svector_find(svector_t, const char *);
 char **svector_strs (svector_t);
 size_t svector_size (svector_t);
 
-struct ivector;
 typedef struct ivector *ivector_t;
 
 ivector_t ivector_create (size_t);
@@ -355,8 +356,6 @@ typedef struct m_getfld_state *m_getfld_state_t;
 #define LINK   "@"             /* Name of link to file to which you are */
                                /* replying. */
 
-#define NMH_ATTACH_HEADER "Nmh-Attachment"  /* Default header for -attach */
-
 /*
  * credentials management
  */