Version: 0.3.0
* Preliminary autoconf support
* Switched to getopt()
* New option: -C (demangle C++ names)
* New options: --help, --version
* Display "format" (printf-like) argument types
* Updated manual page
* New option: -e
diff --git a/output.c b/output.c
index 52dc201..856f43c 100644
--- a/output.c
+++ b/output.c
@@ -1,3 +1,7 @@
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <stdarg.h>
#include <time.h>
@@ -8,6 +12,10 @@
#include "options.h"
#include "output.h"
+#if HAVE_LIBIBERTY
+#include "demangle.h"
+#endif
+
static pid_t current_pid = 0;
static int current_column = 0;
@@ -112,7 +120,11 @@
current_pid=proc->pid;
proc->type_being_displayed = type;
begin_of_line(type, proc);
+#if HAVE_LIBIBERTY
+ current_column += fprintf(output, "%s(", my_demangle(function_name));
+#else
current_column += fprintf(output, "%s(", function_name);
+#endif
func = name2func(function_name);
if (!func) {