• R/O
  • SSH

libctools: Commit

This library contains code that extends and simplifies different operations
for C language based programs.


Commit MetaInfo

Revision64ab4dbcdbdc2fb56d979d01bd87d210cdb021e5 (tree)
Zeit2022-10-07 10:55:55
AutorSergey Gusarov <laborer2008@gmai...>
CommiterSergey Gusarov

Log Message

Code style fixes

Ändern Zusammenfassung

Diff

diff -r f9db305d50cc -r 64ab4dbcdbdc src/os/mutex.c
--- a/src/os/mutex.c Fri Oct 07 04:42:15 2022 +0300
+++ b/src/os/mutex.c Fri Oct 07 04:55:55 2022 +0300
@@ -162,7 +162,7 @@
162162
163163 MutexPointer createMutex(void) CT_NOEXCEPT
164164 {
165-# if defined(CT_COMPL_MINGW) && defined (PTW32_VERSION)
165+# if defined (CT_COMPL_MINGW) && defined (PTW32_VERSION)
166166 CT_COMPILE_WARNING(Unimplemented yet)
167167 return (MutexPointer)CT_NULL;
168168 # else
@@ -198,7 +198,7 @@
198198 CT_CHECK_PTR_AND_RETURN(mutexDoublePointer);
199199 CT_CHECK_PTR_AND_RETURN(*mutexDoublePointer);
200200
201-# if defined(CT_COMPL_MINGW) && defined (PTW32_VERSION)
201+# if defined (CT_COMPL_MINGW) && defined (PTW32_VERSION)
202202 CT_COMPILE_WARNING(Unimplemented yet)
203203 # else
204204 const int kErrCode = pthread_mutex_destroy(*mutexDoublePointer);
@@ -216,7 +216,7 @@
216216 {
217217 CT_CHECK_PTR_AND_RETURN(mutexPointer);
218218
219-# if defined(CT_COMPL_MINGW) && defined (PTW32_VERSION)
219+# if defined (CT_COMPL_MINGW) && defined (PTW32_VERSION)
220220 CT_COMPILE_WARNING(Unimplemented yet)
221221 # else
222222 const int kErrCode = pthread_mutex_lock(mutexPointer);
@@ -231,7 +231,7 @@
231231 {
232232 CT_CHECK_PTR_AND_RETURN(mutexPointer);
233233
234-# if defined(CT_COMPL_MINGW) && defined (PTW32_VERSION)
234+# if defined (CT_COMPL_MINGW) && defined (PTW32_VERSION)
235235 CT_COMPILE_WARNING(Unimplemented yet)
236236 # else
237237 const int kErrCode = pthread_mutex_unlock(mutexPointer);
diff -r f9db305d50cc -r 64ab4dbcdbdc src/os/stack_trace/demangle.c
--- a/src/os/stack_trace/demangle.c Fri Oct 07 04:42:15 2022 +0300
+++ b/src/os/stack_trace/demangle.c Fri Oct 07 04:55:55 2022 +0300
@@ -91,4 +91,4 @@
9191
9292 CT_END_NAMESPACE
9393
94-#endif // defined (CT_STACK_TRACE_AVAILABLE)
94+#endif // defined (CT_STACK_TRACE_AVAILABLE)
diff -r f9db305d50cc -r 64ab4dbcdbdc src/os/stack_trace/demangle.h
--- a/src/os/stack_trace/demangle.h Fri Oct 07 04:42:15 2022 +0300
+++ b/src/os/stack_trace/demangle.h Fri Oct 07 04:55:55 2022 +0300
@@ -29,6 +29,6 @@
2929 */
3030 extern CT_SHARED_API char* demangle(const char* functionName) CT_NOEXCEPT;
3131
32-#endif // defined (CT_STACK_TRACE_AVAILABLE)
32+#endif // defined (CT_STACK_TRACE_AVAILABLE)
3333
3434 CT_END_NAMESPACE
diff -r f9db305d50cc -r 64ab4dbcdbdc src/os/stack_trace/glibc.c
--- a/src/os/stack_trace/glibc.c Fri Oct 07 04:42:15 2022 +0300
+++ b/src/os/stack_trace/glibc.c Fri Oct 07 04:55:55 2022 +0300
@@ -78,11 +78,11 @@
7878 CT_CHECK_PTR(strings[j]);
7979 if (CT_LIKELY(strings[j]))
8080 {
81- buf[0]='\t';
81+ buf[0] = '\t';
8282 buf++;
8383
8484 # ifdef CT_BT_DEBUG
85- if (doDemangle)
85+ if (doDemangle)
8686 oneString = demangle(strings[j]);
8787 else
8888 # endif
@@ -97,12 +97,12 @@
9797 strncpy(buf, oneString, length);
9898
9999 # ifdef CT_BT_DEBUG
100- if (doDemangle)
100+ if (doDemangle)
101101 free(oneString);
102102 # endif
103103 buf += length;
104104
105- buf[0]='\n';
105+ buf[0] = '\n';
106106 buf++;
107107 }
108108 }
@@ -118,4 +118,4 @@
118118
119119 CT_END_NAMESPACE
120120
121-#endif // defined (CT_LIBC_GLIBC)
121+#endif // defined (CT_LIBC_GLIBC)
Show on old repository browser