History

Add av_printf_format, for marking printf style format strings and their parameters

Martin Storsjö committed 15 years ago

Commit 67e9ae11 parent 9e197043 files · +6 −1Browse files

Unified · Split

3 files
  1. doc/APIchanges +3 −0
  2. libavutil/attributes.h +2 −0
  3. libavutil/avutil.h +1 −1
doc/APIchanges+3−0
@@ -13,6 +13,9 @@ libavutil: 2011-04-18 · 12 unmodified lines
1313
1414 API changes, most recent first:
1515
16+2011-06-xx - xxxxxxx - lavu 51.8.0 - attributes.h
17+ Add av_printf_format().
18+
1619 2011-06-xx - xxxxxxx - lavf 53.2.0 - avformat.h
1720 Add avformat_open_input and avformat_write_header().
1821 Deprecate av_open_input_stream, av_open_input_file,
libavutil/attributes.h+2−0
@@ -127,8 +127,10 @@ · 126 unmodified lines
127127
128128 #ifdef __GNUC__
129129 # define av_builtin_constant_p __builtin_constant_p
130+# define av_printf_format(fmtpos, attrpos) __attribute__((__format__(__printf__, fmtpos, attrpos)))
130131 #else
131132 # define av_builtin_constant_p(x) 0
133+# define av_printf_format(fmtpos, attrpos)
132134 #endif
133135
134136 #endif /* AVUTIL_ATTRIBUTES_H */
libavutil/avutil.h+1−1
@@ -40,7 +40,7 @@ · 39 unmodified lines
4040 #define AV_VERSION(a, b, c) AV_VERSION_DOT(a, b, c)
4141
4242 #define LIBAVUTIL_VERSION_MAJOR 51
43−#define LIBAVUTIL_VERSION_MINOR 7
43+#define LIBAVUTIL_VERSION_MINOR 8
4444 #define LIBAVUTIL_VERSION_MICRO 0
4545
4646 #define LIBAVUTIL_VERSION_INT AV_VERSION_INT(LIBAVUTIL_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t