summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-01-31 13:35:54 +0100
committerStefan Schmidt <s.schmidt@samsung.com>2020-01-31 14:14:01 +0100
commit87a7252912125e2983eebc73becb63907fb1355e (patch)
tree544234cb21fa152e0fafcff64d9bd26d2109a816
parent3def8bf571b7606df67b68663916aa53aea57159 (diff)
exactness: cleanup some coding style isues
Just a few that I spotted when looking over the code.
-rw-r--r--src/bin/exactness/inspect.c14
-rw-r--r--src/bin/exactness/recorder.c6
2 files changed, 13 insertions, 7 deletions
diff --git a/src/bin/exactness/inspect.c b/src/bin/exactness/inspect.c
index 15242b8d9d..1f06f50795 100644
--- a/src/bin/exactness/inspect.c
+++ b/src/bin/exactness/inspect.c
@@ -104,7 +104,8 @@ _action_specific_info_get(const Exactness_Action *act, char output[1024])
104 sprintf(output, "Direction %d Z %d", t->direction, t->z); 104 sprintf(output, "Direction %d Z %d", t->direction, t->z);
105 break; 105 break;
106 } 106 }
107 case EXACTNESS_ACTION_MULTI_UP: case EXACTNESS_ACTION_MULTI_DOWN: 107 case EXACTNESS_ACTION_MULTI_UP:
108 case EXACTNESS_ACTION_MULTI_DOWN:
108 { 109 {
109 Exactness_Action_Multi_Event *t = act->data; 110 Exactness_Action_Multi_Event *t = act->data;
110 if (!t->d) 111 if (!t->d)
@@ -124,7 +125,8 @@ _action_specific_info_get(const Exactness_Action *act, char output[1024])
124 t->d, t->x, t->y, t->rad, t->radx, t->rady, t->pres, t->ang, t->fx, t->fy); 125 t->d, t->x, t->y, t->rad, t->radx, t->rady, t->pres, t->ang, t->fx, t->fy);
125 break; 126 break;
126 } 127 }
127 case EXACTNESS_ACTION_KEY_UP: case EXACTNESS_ACTION_KEY_DOWN: 128 case EXACTNESS_ACTION_KEY_UP:
129 case EXACTNESS_ACTION_KEY_DOWN:
128 { 130 {
129 Exactness_Action_Key_Down_Up *t = act->data; 131 Exactness_Action_Key_Down_Up *t = act->data;
130 sprintf(output, "Keyname %s Key %s String %s Compose %s Keycode %d", 132 sprintf(output, "Keyname %s Key %s String %s Compose %s Keycode %d",
@@ -172,11 +174,13 @@ _are_scenario_entries_different(Exactness_Action *act1, Exactness_Action *act2)
172 { 174 {
173 case EXACTNESS_ACTION_MOUSE_WHEEL: 175 case EXACTNESS_ACTION_MOUSE_WHEEL:
174 return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Mouse_Wheel)); 176 return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Mouse_Wheel));
175 case EXACTNESS_ACTION_MULTI_DOWN: case EXACTNESS_ACTION_MULTI_UP: 177 case EXACTNESS_ACTION_MULTI_DOWN:
178 case EXACTNESS_ACTION_MULTI_UP:
176 return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Event)); 179 return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Event));
177 case EXACTNESS_ACTION_MULTI_MOVE: 180 case EXACTNESS_ACTION_MULTI_MOVE:
178 return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Move)); 181 return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Multi_Move));
179 case EXACTNESS_ACTION_KEY_UP: case EXACTNESS_ACTION_KEY_DOWN: 182 case EXACTNESS_ACTION_KEY_UP:
183 case EXACTNESS_ACTION_KEY_DOWN:
180 return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Key_Down_Up)); 184 return !!memcmp(act1->data, act2->data, sizeof(Exactness_Action_Key_Down_Up));
181 case EXACTNESS_ACTION_EFL_EVENT: 185 case EXACTNESS_ACTION_EFL_EVENT:
182 { 186 {
@@ -313,7 +317,7 @@ _grp_text_get(void *data, Evas_Object *gl, const char *part EINA_UNUSED)
313 if (!compare) 317 if (!compare)
314 { 318 {
315 Exactness_Unit *unit = efl_key_data_get(gl, "unit"); 319 Exactness_Unit *unit = efl_key_data_get(gl, "unit");
316 sprintf(buf2, "Fonts directory: %s", unit->fonts_path?unit->fonts_path:"None"); 320 sprintf(buf2, "Fonts directory: %s", unit->fonts_path ? unit->fonts_path : "None");
317 } 321 }
318 else 322 else
319 { 323 {
diff --git a/src/bin/exactness/recorder.c b/src/bin/exactness/recorder.c
index 895d3f88f2..3023deffe8 100644
--- a/src/bin/exactness/recorder.c
+++ b/src/bin/exactness/recorder.c
@@ -135,7 +135,8 @@ _event_pointer_cb(void *data, const Efl_Event *event)
135 if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t)); 135 if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
136 break; 136 break;
137 } 137 }
138 case EFL_POINTER_ACTION_DOWN: case EFL_POINTER_ACTION_UP: 138 case EFL_POINTER_ACTION_DOWN:
139 case EFL_POINTER_ACTION_UP:
139 { 140 {
140 double rad = 0, radx = 0, rady = 0, pres = 0, ang = 0, fx = 0, fy = 0; 141 double rad = 0, radx = 0, rady = 0, pres = 0, ang = 0, fx = 0, fy = 0;
141 int b = efl_input_pointer_button_get(evp); 142 int b = efl_input_pointer_button_get(evp);
@@ -147,7 +148,8 @@ _event_pointer_cb(void *data, const Efl_Event *event)
147 if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t)); 148 if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, &t, sizeof(t));
148 break; 149 break;
149 } 150 }
150 case EFL_POINTER_ACTION_IN: case EFL_POINTER_ACTION_OUT: 151 case EFL_POINTER_ACTION_IN:
152 case EFL_POINTER_ACTION_OUT:
151 { 153 {
152 if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, NULL, 0); 154 if (n_evas >= 0) _add_to_list(evt, n_evas, timestamp, NULL, 0);
153 break; 155 break;