diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-06-28 19:41:18 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-06-28 19:41:18 +0000 |
commit | a952147446af3305e46ea1c7139c951c2f777752 (patch) | |
tree | e0ecc6c53be20cead23b7d702f6f9a18f83cb22e /include | |
parent | daec10d1871f3b17980a9de27edcb66a471adf3e (diff) |
Remove the ill-advised ast_restrdupa API call and related structures
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@72492 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/strings.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index ab610982c..d1799de51 100644 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -244,24 +244,6 @@ void ast_join(char *s, size_t len, char * const w[]); */ int ast_get_time_t(const char *src, time_t *dst, time_t _default, int *consumed); -/* The realloca lets us ast_restrdupa(), but you can't mix any other ast_strdup calls! */ - -struct ast_realloca { - char *ptr; - int alloclen; -}; - -#define ast_restrdupa(ra, s) \ - ({ \ - if ((ra)->ptr && strlen(s) + 1 < (ra)->alloclen) { \ - strcpy((ra)->ptr, s); \ - } else { \ - (ra)->ptr = alloca(strlen(s) + 1 - (ra)->alloclen); \ - if ((ra)->ptr) (ra)->alloclen = strlen(s) + 1; \ - } \ - (ra)->ptr; \ - }) - /*! * Support for dynamic strings. * |