[mlpack-git] master: Minor formatting fixes (remove tabs). (59d07ef)
gitdub at mlpack.org
gitdub at mlpack.org
Tue Apr 12 11:09:28 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/8d77f4231046703d5c0c05ed4795458f98267968...78f53daf5a91e221432c93ea43fbdc9de2ec2f15
>---------------------------------------------------------------
commit 59d07efe735a618ce10c636be3810ab7d1b02c18
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Apr 12 11:08:41 2016 -0400
Minor formatting fixes (remove tabs).
>---------------------------------------------------------------
59d07efe735a618ce10c636be3810ab7d1b02c18
src/mlpack/core/util/backtrace.cpp | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/src/mlpack/core/util/backtrace.cpp b/src/mlpack/core/util/backtrace.cpp
index 644dfed..1a3e4f5 100644
--- a/src/mlpack/core/util/backtrace.cpp
+++ b/src/mlpack/core/util/backtrace.cpp
@@ -62,9 +62,9 @@ std::vector<Backtrace::Frames> Backtrace::stack;
#ifdef HAS_BFD_DL
// Binary File Descriptor objects.
-bfd* abfd = 0; // Descriptor datastructure.
-asymbol **syms = 0; // Symbols datastructure.
-asection *text = 0; // Strings datastructure.
+bfd* abfd = 0; // Descriptor datastructure.
+asymbol **syms = 0; // Symbols datastructure.
+asection *text = 0; // Strings datastructure.
#endif
#ifdef HAS_BFD_DL
@@ -116,7 +116,7 @@ void Backtrace::DecodeAddress(long addr)
if (!abfd)
{
char ename[1024];
- int l = readlink("/proc/self/exe",ename,sizeof(ename));
+ int l = readlink("/proc/self/exe", ename, sizeof(ename));
if (l == -1)
{
perror("Failed to open executable!\n");
@@ -145,7 +145,7 @@ void Backtrace::DecodeAddress(long addr)
if (offset > 0)
{
- if(FIND_LINE)
+ if (FIND_LINE)
{
DemangleFunction();
// Save retrieved informations.
@@ -189,7 +189,7 @@ std::string Backtrace::ToString()
return stackStr;
}
- for(unsigned int i = 0; i < stack.size(); i++)
+ for (size_t i = 0; i < stack.size(); i++)
{
frame = stack[i];
@@ -197,9 +197,9 @@ std::string Backtrace::ToString()
it << i + 1;
stackStr += "[bt]: (" + it.str() + ") "
- + frame.file + ":"
- + lineOss.str() + " "
- + frame.function + ":\n";
+ + frame.file + ":"
+ + lineOss.str() + " "
+ + frame.function + ":\n";
lineOss.str("");
it.str("");
More information about the mlpack-git
mailing list