[FFmpeg-cvslog] avstring: Mark some character handling functions av_const

Henrik Gramner git at videolan.org
Fri Nov 7 22:39:08 CET 2014


ffmpeg | branch: master | Henrik Gramner <henrik at gramner.com> | Wed Nov  5 00:05:42 2014 +0100| [4981baf9b803f3c4866b2e97fdadb008c62dc7ad] | committer: Martin Storsjö

avstring: Mark some character handling functions av_const

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4981baf9b803f3c4866b2e97fdadb008c62dc7ad
---

 libavutil/avstring.h |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libavutil/avstring.h b/libavutil/avstring.h
index 9a18ddd..7c30ee1 100644
--- a/libavutil/avstring.h
+++ b/libavutil/avstring.h
@@ -154,22 +154,22 @@ char *av_get_token(const char **buf, const char *term);
 /**
  * Locale-independent conversion of ASCII isdigit.
  */
-int av_isdigit(int c);
+av_const int av_isdigit(int c);
 
 /**
  * Locale-independent conversion of ASCII isgraph.
  */
-int av_isgraph(int c);
+av_const int av_isgraph(int c);
 
 /**
  * Locale-independent conversion of ASCII isspace.
  */
-int av_isspace(int c);
+av_const int av_isspace(int c);
 
 /**
  * Locale-independent conversion of ASCII characters to uppercase.
  */
-static inline int av_toupper(int c)
+static inline av_const int av_toupper(int c)
 {
     if (c >= 'a' && c <= 'z')
         c ^= 0x20;
@@ -179,7 +179,7 @@ static inline int av_toupper(int c)
 /**
  * Locale-independent conversion of ASCII characters to lowercase.
  */
-static inline int av_tolower(int c)
+static inline av_const int av_tolower(int c)
 {
     if (c >= 'A' && c <= 'Z')
         c ^= 0x20;
@@ -189,7 +189,7 @@ static inline int av_tolower(int c)
 /**
  * Locale-independent conversion of ASCII isxdigit.
  */
-int av_isxdigit(int c);
+av_const int av_isxdigit(int c);
 
 /*
  * Locale-independent case-insensitive compare.



More information about the ffmpeg-cvslog mailing list