clarify desired behaviour for #34 (is_fileending()).
authorKrista Grothoff <krista@pep-project.org>
Tue, 12 Jul 2016 19:52:16 +0200
changeset 8540d068c87fa66
parent 853 2a7d4445fca0
child 855 27364c55fbaa
clarify desired behaviour for #34 (is_fileending()).
src/message_api.c
     1.1 --- a/src/message_api.c	Tue Jul 12 19:18:04 2016 +0200
     1.2 +++ b/src/message_api.c	Tue Jul 12 19:52:16 2016 +0200
     1.3 @@ -33,6 +33,12 @@
     1.4      return bl && string_equality(bl->mime_type, mt);
     1.5  }
     1.6  
     1.7 +//
     1.8 +// This function presumes the file ending is a proper substring of the
     1.9 +// filename (i.e. if bl->filename is "a.pgp" and fe is ".pgp", it will
    1.10 +// return true, but if bl->filename is ".pgp" and fe is ".pgp", it will
    1.11 +// return false. This is desired behaviour.
    1.12 +//
    1.13  static bool is_fileending(const bloblist_t *bl, const char *fe)
    1.14  {
    1.15      assert(fe);