astyle formatting

This commit is contained in:
Daniel Marjamäki 2014-03-31 03:06:57 +02:00
parent 963a8b51cc
commit 22c4d45ca0
2 changed files with 9 additions and 10 deletions

View File

@ -248,21 +248,20 @@ static void print_stacktrace(FILE* f, bool demangling)
realname = abi::__cxa_demangle(input_buffer, output_buffer, &length, &status); // non-NULL on success
}
}
fprintf(f, "#%d 0x",
i-offset);
if (padLen>0)
fprintf(f, "%0*d",
fprintf(f, "#%d 0x",
i-offset);
if (padLen>0)
fprintf(f, "%0*d",
padLen, 0);
if (realname) {
fprintf(f, "%.*s in %s\n",
fprintf(f, "%.*s in %s\n",
(int)(secondBracketAddress-firstBracketAddress-3), firstBracketAddress+3,
realname);
}
else {
} else {
fprintf(f, "%.*s in %.*s\n",
(int)(secondBracketAddress-firstBracketAddress-3), firstBracketAddress+3,
(int)(firstBracketAddress-symbol), symbol);
}
}
}
free(symbolstrings);
} else {

View File

@ -255,8 +255,8 @@ int main(int argc, char **argv)
// enable backtrac
fout << "RDYNAMIC=-rdynamic\n";
// The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems.
fout << "# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.\n"
// The _GLIBCXX_DEBUG doesn't work in cygwin or other Win32 systems.
fout << "# Set the CPPCHK_GLIBCXX_DEBUG flag. This flag is not used in release Makefiles.\n"
<< "# The _GLIBCXX_DEBUG define doesn't work in Cygwin or other Win32 systems.\n"
<< "ifndef COMSPEC\n"
<< " ifdef ComSpec\n"