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 /src/rb_str.c | |
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 'src/rb_str.c')
-rw-r--r-- | src/rb_str.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/rb_str.c b/src/rb_str.c index 07b2844..f6b3878 100644 --- a/src/rb_str.c +++ b/src/rb_str.c @@ -4,7 +4,7 @@ typedef uint8_t byte; -static char *__rb_gets2(t_rb *rb, const char *const *delim, +static char *__rb_gets2(rb_t *rb, const char *const *delim, const byte *data, size_t size) { char *ret = NULL; @@ -37,7 +37,7 @@ static char *__rb_gets2(t_rb *rb, const char *const *delim, return ret; } -char *rb_gets2(t_rb *rb, const char *const *delim) +char *rb_gets2(rb_t *rb, const char *const *delim) { size_t size; char *ret; @@ -58,7 +58,7 @@ char *rb_gets2(t_rb *rb, const char *const *delim) return ret; } -char *rb_gets(t_rb *rb, const char *delimit) +char *rb_gets(rb_t *rb, const char *delimit) { char *data = malloc((rb->size_filled) * sizeof(char)); @@ -81,7 +81,7 @@ char *rb_gets(t_rb *rb, const char *delimit) return ret; } -t_rb *rb_vprintf(t_rb *rb, const char *fmt, va_list ap) +rb_t *rb_vprintf(rb_t *rb, const char *fmt, va_list ap) { char *buffer; @@ -102,7 +102,7 @@ t_rb *rb_vprintf(t_rb *rb, const char *fmt, va_list ap) } __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, ...) { va_list ap; |