Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PATCH] Add missing PHP_ATTRIBUTE_FORMAT to printf style functions [RSS Feed]

#1 Dec. 27, 2010 22:08:51

Cristian R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PATCH] Add missing PHP_ATTRIBUTE_FORMAT to printf style functions


Signed-off-by: Cristian Rodríguez <cristian.rodrig***@*pensuse.org>
---
main/snprintf.h | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/main/snprintf.h b/main/snprintf.h
index 201a5cb..4371f6a 100644
--- a/main/snprintf.h
+++ b/main/snprintf.h
@@ -78,12 +78,12 @@ typedef enum {


BEGIN_EXTERN_C()
-PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...);
-PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list
ap);
-PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...);
-PHPAPI int ap_php_vsnprintf(char *, size_t, const char *, va_list ap);
-PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap);
-PHPAPI int ap_php_asprintf(char **buf, const char *format, ...);
+PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...)
PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
+PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list
ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0);
+PHPAPI int ap_php_snprintf(char *, size_t, const char *, ...)
PHP_ATTRIBUTE_FORMAT(printf, 3, 4);
+PHPAPI int ap_php_vsnprintf(char *, size_t, const char *, va_list ap)
PHP_ATTRIBUTE_FORMAT(printf, 3, 0);
+PHPAPI int ap_php_vasprintf(char **buf, const char *format, va_list ap)
PHP_ATTRIBUTE_FORMAT(printf, 2, 0);
+PHPAPI int ap_php_asprintf(char **buf, const char *format, ...)
PHP_ATTRIBUTE_FORMAT(printf, 2, 3);
PHPAPI int php_sprintf (char* s, const char* format, ...)
PHP_ATTRIBUTE_FORMAT(printf, 2, 3);
PHPAPI char * php_gcvt(double value, int ndigit, char dec_point, char
exponent, char *buf);
PHPAPI char * php_conv_fp(register char format, register double num,
--
1.7.3.4


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PATCH] Add missing PHP_ATTRIBUTE_FORMAT to printf style functions [RSS Feed]

Board footer

Moderator control

Enjoy the 23rd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support