if (!(cond)){\
return;\
}\
-} while(0)
+} while (0)
#define RET_IF_FAIL(cond, err) do {\
if (!(cond)){\
return err;\
}\
-} while(0)
+} while (0)
#define CATCH_IF_FAIL(cond) do {\
if (!(cond)){\
goto CATCH;\
}\
-} while(0)
+} while (0)
#define CATCH_IF_FAIL_X(cond, expr) do {\
if (!(cond)){\
expr;\
goto CATCH;\
}\
-} while(0)
+} while (0)
#define GOTO_IF_FAIL(cond, catch_block) do {\
if (!(cond)){\
goto catch_block;\
}\
-} while(0)
+} while (0)
#define SAFE_DELETE(x) do {\
- if (x != NULL) {\
+ if (x != NULL){\
free(x); \
x = NULL;\
}\
-} while(0)
+} while (0)
#define _SAFE_DUP(x) ((x) ? strdup(x) : NULL)
appdata_s *ad = data;
int ret = password_handler_set_password(ad->pin_buffer);
- if (ret != 0 ) {
+ if (ret != 0) {
_ERR("failed");
ks_notify(ad->ts_Caller, false);
elm_exit();
elm_object_text_set(popup, "Incorrect PIN");
evas_object_show(popup);
-
}
-void clicked_cb(void *data, Evas_Object *obj, void *event_info) {
-
+void clicked_cb(void *data, Evas_Object *obj, void *event_info)
+{
char edj_path[PATH_MAX] = {0, };
-
appdata_s *ad = data;
Evas_Object* Button;
ad->pin_buffer = elm_entry_entry_get(ad->entry);
-
if ((ad->pin_buffer != NULL) &&
- (*ad->pin_buffer!='\0')) {
+ (*ad->pin_buffer != '\0')) {
/* New Base Layout */
app_get_resource(EDJ_FILE, edj_path, (int)PATH_MAX);
ad->layout_confirm = elm_layout_add(ad->Naviframe);
evas_object_show(ad->Button);
/*entry*/
- ad->entry= elm_entry_add(ad->layout);
+ ad->entry = elm_entry_add(ad->layout);
evas_object_size_hint_weight_set(ad->entry, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ad->entry, EVAS_HINT_FILL,
static void
app_control(app_control_h app_control, void *data)
{
- if (app_control == NULL || data == NULL) {
+ if (app_control == NULL) {
_ERR("app_control or data NULL");
elm_exit();
}