rstrcasecmp() and rstrncasecmp() are "pure" functions
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 9 Oct 2008 13:17:53 +0000 (16:17 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 9 Oct 2008 13:17:53 +0000 (16:17 +0300)
rpmio/rpmstring.h

index f9d00aa..de880fc 100644 (file)
@@ -106,11 +106,13 @@ static inline unsigned char rnibble(char c)
 /** \ingroup rpmstring
  * Locale insensitive strcasecmp(3).
  */
+RPM_GNUC_PURE
 int rstrcasecmp(const char * s1, const char * s2)              ;
 
 /** \ingroup rpmstring
  * Locale insensitive strncasecmp(3).
  */
+RPM_GNUC_PURE
 int rstrncasecmp(const char *s1, const char * s2, size_t n)    ;
 
 /** \ingroup rpmstring