Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=yaxmenu.git;a=commitdiff;h=6edf232b74ce89b31a720cc774ebdb0d4ab726fe
commit 6edf232b74ce89b31a720cc774ebdb0d4ab726fe Author: James Buren <r...@frugalware.org> Date: Thu Dec 3 18:03:17 2009 -0600 autostring.c * move as_new() to below local static inline function definitions diff --git a/src/autostring.c b/src/autostring.c index 8eb4f7a..23fa08a 100644 --- a/src/autostring.c +++ b/src/autostring.c @@ -9,18 +9,6 @@ struct _as { size_t ml; }; -as_t *as_new(void) { - as_t *as; - - as = xnew(as_t,1); - - as->str = xnew(char,as->ml = AUTOSTRING_INITIAL_LENGTH); - - _as_putc(as,as->cl = 0); - - return as; -} - static inline void _as_putc(as_t *as,char ch) { assert(as); @@ -42,6 +30,18 @@ static inline void _as_puts(as_t *as,const char *str) { _as_putc(as,'\0'); } +as_t *as_new(void) { + as_t *as; + + as = xnew(as_t,1); + + as->str = xnew(char,as->ml = AUTOSTRING_INITIAL_LENGTH); + + _as_putc(as,as->cl = 0); + + return as; +} + void as_puts(as_t *as,size_t num,...) { va_list args; _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git