Reindent recently added files and fix file modes 93/242893/1
authorLukasz Pawelczyk <havner@gmail.com>
Tue, 1 Sep 2020 19:05:28 +0000 (21:05 +0200)
committerLukasz Pawelczyk <havner@gmail.com>
Tue, 1 Sep 2020 19:05:28 +0000 (21:05 +0200)
Change-Id: Ie66b299be62061dea2f204f897ba03fafd94c4cf

python/yaca/__init__.py [changed mode: 0755->0644]
tests/common.h
tests/openssl_mock_impl.c
tests/openssl_mock_redefine.h

old mode 100755 (executable)
new mode 100644 (file)
index 38d5122..eafeb79 100644 (file)
@@ -49,7 +49,7 @@ Nunc ac purus vel sem laoreet interdum quis eget ligula. Aenean id nisl ut quam
 
 constexpr size_t IGNORE = static_cast<size_t>(-1);
 
-#define DEFINE_INVALID(type, name) \
+#define DEFINE_INVALID(type, name)                                                             \
        constexpr type YACA_INVALID_##name = static_cast<type>(-1)
 
 DEFINE_INVALID(yaca_error_e,                 ERROR);
index 7c10355..3af1917 100644 (file)
@@ -39,24 +39,24 @@ static void reset_conditions()
        BIO_reset_just_called = 0;
 }
 
-#define HANDLE_FUNCTION(FNAME, VALUE, COND)                            \
-       do {                                                                                            \
-               if (GET_BOOL_NAME(FNAME)) {                                             \
-                       GET_BOOL_NAME(FNAME) = 0;                                       \
-                       return VALUE;                                                           \
-               }                                                                                               \
-               if (COND) {                                                                             \
-                       reset_conditions();                                                     \
-                       break;                                                                          \
-               }                                                                                               \
-               reset_conditions();                                                             \
-               if (MOCK_fail_nth == 0) {                                               \
-                       break;                                                                          \
-               }                                                                                               \
-               --MOCK_fail_nth;                                                                \
-               if (MOCK_fail_nth == 0) {                                               \
-                       return VALUE;                                                           \
-               }                                                                                               \
+#define HANDLE_FUNCTION(FNAME, VALUE, COND)            \
+       do {                                                                            \
+               if (GET_BOOL_NAME(FNAME)) {                             \
+                       GET_BOOL_NAME(FNAME) = 0;                       \
+                       return VALUE;                                           \
+               }                                                                               \
+               if (COND) {                                                             \
+                       reset_conditions();                                     \
+                       break;                                                          \
+               }                                                                               \
+               reset_conditions();                                             \
+               if (MOCK_fail_nth == 0) {                               \
+                       break;                                                          \
+               }                                                                               \
+               --MOCK_fail_nth;                                                \
+               if (MOCK_fail_nth == 0) {                               \
+                       return VALUE;                                           \
+               }                                                                               \
        } while(0)
 
 
index 06b5adc..2b7750b 100644 (file)
 /* This file is to be included in the source files that want to mockup
  * OpenSSL and libc. After OpenSSL and libc headers. E.g.
 
-#include <openssl/...>
-#include <unistd.h>
+ #include <openssl/...>
+ #include <unistd.h>
 
-#ifdef OPENSSL_MOCKUP
-#include "../tests/openssl_mock_redefine.h"
-#endif
+ #ifdef OPENSSL_MOCKUP
+ #include "../tests/openssl_mock_redefine.h"
+ #endif
 
 */