diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-20 20:56:32 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2016-12-21 18:50:24 +0100 |
commit | 0bd6bfb2b643ea2b4b1440dfd917ba752f0c0d15 (patch) | |
tree | 52ad6d0e988b933f55c76426bb17bcd3a93eee17 /libc/misc/gnu/obprintf.c | |
parent | 013f366f501c928315cc2893f0f2348c8956d09e (diff) |
remove obstack support
Remove __UCLIBC_HAS_OBSTACK__ as it isn't very uptodate and
maintained part. It shouldn't be required for any software and
mostly shipped with stuff which use it. (f.e. binutils-gdb)
Diffstat (limited to 'libc/misc/gnu/obprintf.c')
-rw-r--r-- | libc/misc/gnu/obprintf.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/libc/misc/gnu/obprintf.c b/libc/misc/gnu/obprintf.c deleted file mode 100644 index 3f8eda832..000000000 --- a/libc/misc/gnu/obprintf.c +++ /dev/null @@ -1,29 +0,0 @@ -/* Copyright (C) 2013 Gentoo Foundation - * Licensed under LGPL v2.1 or later, see the file COPYING.LIB in this tarball. - */ - -#include <stdio.h> -#include <stdarg.h> -#include <obstack.h> - -int -obstack_vprintf (struct obstack *obstack, const char *format, va_list args) -{ - int n; - char *s; - n = vasprintf(&s, format, args); - obstack_grow(obstack, s, n); - return n; -} -libc_hidden_def(obstack_vprintf) - -int -obstack_printf (struct obstack *obstack, const char *format, ...) -{ - int n; - va_list ap; - va_start (ap, format); - n = obstack_vprintf (obstack, format, ap); - va_end (ap); - return n; -} |