fix violations of coding rule at framework
authorsunghan <sh924.chang@samsung.com>
Mon, 14 Aug 2017 08:38:50 +0000 (17:38 +0900)
committersunghan <sh924.chang@samsung.com>
Mon, 14 Aug 2017 08:42:46 +0000 (17:42 +0900)
arastorage :
[M04] Operators have following space rules.
Put a space around(on each side of) most binary and ternary operators

iotbus :
[M08] Open braces for enum, union and struct go on the same line.

framework/include/iotbus/iotbus_gpio.h
framework/include/iotbus/iotbus_i2c.h
framework/include/iotbus/iotbus_pwm.h
framework/include/iotbus/iotbus_spi.h
framework/include/iotbus/iotbus_uart.h
framework/src/arastorage/relation.h

index f589434..4426373 100644 (file)
@@ -85,8 +85,7 @@ struct _iotbus_gpio_s;
 typedef struct _iotbus_gpio_s *iotbus_gpio_context_h;
 
 #ifdef __cplusplus
-extern "C"
-{
+extern "C" {
 #endif
 
 typedef void (*gpio_isr_cb)(void *user_data);
index 526b62b..0fc3401 100644 (file)
@@ -56,8 +56,7 @@ typedef enum {
 } iotbus_i2c_mode_e;
 
 #ifdef __cplusplus
-extern "C"
-{
+extern "C" {
 #endif
 
 /**
index 8e9df82..08e22fd 100644 (file)
@@ -56,8 +56,7 @@ typedef enum {
  * Public Function
  */
 #ifdef __cplusplus
-extern "C"
-{
+extern "C" {
 #endif
 
 /**
index c9a6533..32103de 100644 (file)
@@ -65,8 +65,7 @@ struct _iotbus_spi_s;
 typedef struct _iotbus_spi_s *iotbus_spi_context_h;
 
 #ifdef __cplusplus
-extern "C"
-{
+extern "C" {
 #endif
 
 /**
index 5be2a0f..0febde5 100644 (file)
@@ -53,8 +53,7 @@ struct _iotbus_uart_s;
 typedef struct _iotbus_uart_s *iotbus_uart_context_h;
 
 #ifdef __cplusplus
-extern "C"
-{
+extern "C" {
 #endif
 
 /**
index cdd266c..08fedbb 100644 (file)
 #define GET_POS(a) ((a) % (sizeof(uint32_t) * 8))
 
 /* This decides int array size to present all tuples in relation */
-#define GET_CURSOR_DATA_ARR_SIZE(a) (((a) / (sizeof(uint32_t)*8)) + 1)
+#define GET_CURSOR_DATA_ARR_SIZE(a) (((a) / (sizeof(uint32_t) * 8)) + 1)
 
 /* Set a bit to 1 */
-#define BIT_SET(a, b) ((a) |= (1u<<(b)))
+#define BIT_SET(a, b) ((a) |= (1u << (b)))
 
 /* Clear a bit to 0 */
-#define BIT_CLEAR(a, b) ((a) &= ~(1u<<(b)))
+#define BIT_CLEAR(a, b) ((a) &= ~(1u << (b)))
 
 /* Reverse a bit */
-#define BIT_FLIP(a, b) ((a) ^= (1u<<(b)))
+#define BIT_FLIP(a, b) ((a) ^= (1u << (b)))
 
 /* Check a bit whether 1 or 0 */
-#define BIT_CHECK(a, b) ((a) & (1u<<(b)))
+#define BIT_CHECK(a, b) ((a) & (1u << (b)))
 
 /* Check cursor is empty or not */
 #define IS_EMPTY_CURSOR(a) ((a) == NULL || (a)->total_rows <= 0 || (a)->cursor_rows <= 0)