Search
j0ke.net Open Build Service
>
Projects
>
devel
:
subversion
>
neon24
> neon-sentinel.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File neon-sentinel.patch of Package neon24 (Revision 4)
Currently displaying revision
4
,
show latest
Not cleaned up for upstream use. --- neon-0.24.7/src/ne_string.h.xx 2005-02-02 16:17:02.751228080 +0100 +++ neon-0.24.7/src/ne_string.h 2005-02-02 16:17:46.358594603 +0100 @@ -84,7 +84,11 @@ /* Concatenate all given strings onto the end of the buffer. The * strings must all be NUL-terminated, and MUST be followed by a NULL * argument marking the end of the list. */ -void ne_buffer_concat(ne_buffer *buf, ...); +void ne_buffer_concat(ne_buffer *buf, ...) +#if defined(__GNUC__) && (__GNUC__ >= 4) + __attribute__((__sentinel__)) +#endif +; /* Create a new ne_buffer. */ ne_buffer *ne_buffer_create(void); @@ -127,7 +131,11 @@ /* Return malloc-allocated concatenation of all NUL-terminated string * arguments, up to a terminating NULL. */ -char *ne_concat(const char *str, ...); +char *ne_concat(const char *str, ...) +#if defined(__GNUC__) && (__GNUC__ >= 4) + __attribute__((__sentinel__)) +#endif +; #define NE_ASC2HEX(x) (((x) <= '9') ? ((x) - '0') : (tolower((x)) + 10 - 'a')) #define NE_HEX2ASC(x) ((char) ((x) > 9 ? ((x) - 10 + 'a') : ((x) + '0')))