X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_getfld.c;h=42bb72fbbf11178ad2a163b40ea02f0d1e0464ec;hp=be871c4e8031fba720d654c33a76022d975bfbee;hb=916690191222433a6923a4be54b0d8f6ac01bd02;hpb=ecc90fb56b43863f4c33ed62da4abe898b17d7fb diff --git a/sbr/m_getfld.c b/sbr/m_getfld.c index be871c4..42bb72f 100644 --- a/sbr/m_getfld.c +++ b/sbr/m_getfld.c @@ -48,6 +48,9 @@ loop caused m_getfld() to return FMTERR. So, that logic was changed to check for (*eom_action) and act accordingly. + [ Note by meillo 2011-10: + as msh was removed from mmh, m_eomsbr() became irrelevant. ] + This worked fine, until one day: someone didn't use four CTRL:A's as their delimiters. So, the bullet got bit and we read mts.h and continue to struggle on. It's not that bad though, since the only time @@ -665,23 +668,6 @@ m_unknown(FILE *iob) } -void -m_eomsbr (int (*action)(int)) -{ - if ((eom_action = action)) { - msg_style = MS_MSH; - *msg_delim = 0; - fdelimlen = 1; - delimend = fdelim; - } else { - msg_style = MS_MMDF; - msg_delim = (char *)fdelim + 1; - fdelimlen = strlen((char *)fdelim); - delimend = (unsigned char *)(msg_delim + edelimlen); - } -} - - /* * test for msg delimiter string */