diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2013-12-23 19:51:14 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2014-01-18 13:44:28 +0100 |
commit | 68122955675e2b7a5652760d609b91eec34b80b7 (patch) | |
tree | 1d5b6ae1a5f15905b190177bf3b11319ab5be1ed /rb_str.h | |
parent | 646515d288da8aec7dc266f7d30047320b271742 (diff) |
rb: t_rb has been renamed to rb_t
t_rb will be kept in the source files for backward compatibility.
However, it will not have to be used anymore.
Diffstat (limited to 'rb_str.h')
-rw-r--r-- | rb_str.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -17,7 +17,7 @@ * common use case: * request = rb_gets(rb, "\r\n") */ -char *rb_gets(t_rb *rb, const char *delim); +char *rb_gets(rb_t *rb, const char *delim); /* * same as the above function but takes a null terminated array of delimiters @@ -29,19 +29,19 @@ char *rb_gets(t_rb *rb, const char *delim); * request = rb_gets(rb, (const char *[]){"\n", "\r", "\r\n", NULL}) * which will return a request disregarding whether netcat or telnet is used */ -char *rb_gets2(t_rb *rb, const char *const *delim); +char *rb_gets2(rb_t *rb, const char *const *delim); /* * this functions writes str to the ring buffer pointed by rb. If the ring * buffer is not large enough to contain all the data, the beginning will be * overriden. However, a buffer overflow is not susceptible to happen. */ -static inline t_rb *rb_puts(t_rb *rb, const char *str) +static inline rb_t *rb_puts(rb_t *rb, const char *str) { return rb_put(rb, str, strlen(str)); } -t_rb *rb_vprintf(t_rb *rb, const char *fmt, va_list list); +rb_t *rb_vprintf(rb_t *rb, const char *fmt, va_list list); /* * function which behaves like sprintf but which writes into a ring buffer @@ -49,6 +49,6 @@ t_rb *rb_vprintf(t_rb *rb, const char *fmt, va_list list); * the beginning will be overriden. However, a buffer overflow will not occur */ __attribute__((format(printf, 2, 3))) -t_rb *rb_printf(t_rb *rb, const char *fmt, ...); +rb_t *rb_printf(rb_t *rb, const char *fmt, ...); #endif /* RB_STR_H */ |