summaryrefslogtreecommitdiffstats
path: root/linker/linker_format.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-10-29 17:37:13 -0700
committerElliott Hughes <enh@google.com>2012-10-30 16:35:38 -0700
commit18a206c81d9743481e364384affd43306911283d (patch)
tree2f211404b359cb7278f6963bb82f507e6c9a2050 /linker/linker_format.h
parent06b596104a9ed3ac089abd00186a5698d7e8544f (diff)
downloadbionic-18a206c81d9743481e364384affd43306911283d.zip
bionic-18a206c81d9743481e364384affd43306911283d.tar.gz
bionic-18a206c81d9743481e364384affd43306911283d.tar.bz2
More dynamic linker cleanup.
I still want to break linker_format out into its own library so we can reuse it for malloc debugging and so forth. (There are many similar pieces of code in bionic, but the linker's one seems to be the most complete/functional.) Change-Id: If3721853d28937c8e821ca1d23cf200e228a409a
Diffstat (limited to 'linker/linker_format.h')
-rw-r--r--linker/linker_format.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/linker/linker_format.h b/linker/linker_format.h
index 3766b62..b8873c0 100644
--- a/linker/linker_format.h
+++ b/linker/linker_format.h
@@ -25,25 +25,17 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
+
#ifndef _LINKER_FORMAT_H
#define _LINKER_FORMAT_H
#include <stdarg.h>
#include <stddef.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Formatting routines for the dynamic linker's debug traces */
-/* We want to avoid dragging the whole C library fprintf() */
-/* implementation into the dynamic linker since this creates */
-/* issues (it uses malloc()/free()) and increases code size */
-
+// Formatting routines for the dynamic linker's debug traces
+// We want to avoid dragging the whole C library fprintf()
+// implementation into the dynamic linker since this creates
+// issues (it uses malloc()/free()) and increases code size.
int format_buffer(char *buffer, size_t bufsize, const char *format, ...);
-#ifdef __cplusplus
-};
-#endif
-
#endif /* _LINKER_FORMAT_H */