plan9port/src/libmach/demangler.c
Dan Cross fa325e9b42 Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines.
Remove blank lines from the ends of files.
Change modes on source files so that they
are not executable.

Signed-off-by: Dan Cross <cross@gajendra.net>
2020-01-10 14:54:30 +00:00

27 lines
427 B
C

#include <u.h>
#include <libc.h>
#include <bio.h>
#include <mach.h>
void
main(void)
{
Biobuf b, bout;
char *p, *s;
char buf[100000];
Binit(&b, 0, OREAD);
Binit(&bout, 1, OWRITE);
while((p = Brdline(&b, '\n')) != nil){
p[Blinelen(&b)-1] = 0;
werrstr("no error");
s = demanglegcc2(p, buf);
if(s == p)
Bprint(&bout, "# %s (%r)\n", p);
else
Bprint(&bout, "%s\t%s\n", p, s);
}
Bflush(&bout);
exits(0);
}