diff options
Diffstat (limited to 'src/main.c')
-rwxr-xr-x | src/main.c | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -360,6 +360,7 @@ static void app_resume(void *user_data) _ALM_ENTER_; //update_genlist(0,0,0); int data_count = 0; + int i = 0; get_alarm_count(&data_count); ALM_INFO(" Data count in app resume %d", data_count); if (data_count >= 1) { @@ -387,7 +388,7 @@ ALM_INFO(" Data count in app resume %d", data_count); local_data = view_get_local_data(); loc_count = eina_list_count(local_data); struct genlist_item_data *gendata = NULL; - for (int i = 0; i < loc_count ; i++) { + for (i = 0; i < loc_count ; i++) { gendata = (struct genlist_item_data *)eina_list_nth(local_data, i); if (!gendata) { ALM_ERR("Failed at elm_object_item_data_get(). Gendata is NULL."); @@ -518,6 +519,7 @@ void populate_genlist() Evas_Object *genlist = NULL; genlist = view_get_genlist(); Eina_List *local_data = view_get_local_data(); + int i = 0; struct genlist_item_data *gendata = NULL; int loc_count = eina_list_count(local_data); ALM_INFO("populate_genlist %d", loc_count); @@ -531,7 +533,7 @@ void populate_genlist() //itc->func.content_get = _gl_icon_get; itc->func.del = _gl_del; if (genlist != NULL) { - for (int i = 0; i < loc_count; i++) { + for (i = 0; i < loc_count; i++) { gendata = (struct genlist_item_data *)eina_list_nth(local_data, i); if (gendata) { ALM_INFO("Going to append"); @@ -1142,6 +1144,7 @@ static void _edit_screen_layout(Evas_Object *parent, char *layout_file, char *in void update_genlist_first() { _ALM_ENTER_; + int i = 0; Evas_Object *genlist = NULL; Evas_Object *nf = NULL; Evas_Object *circle_genlist = NULL; @@ -1183,7 +1186,7 @@ void update_genlist_first() ALM_INFO(" update_genlist last_alarm_id gendata->alarm_id; %d %d ", last_alarm_id , gendata->alarm_id); - for (int i = 0; i < loc_count ; i++) { + for (i = 0; i < loc_count ; i++) { gendata = (struct genlist_item_data *)eina_list_nth(local_data, i); if (last_alarm_id == gendata->alarm_id) { ALM_INFO("reached the focus "); @@ -1204,6 +1207,7 @@ void update_genlist_first() void update_genlist(mode_type e, int type) { _ALM_ENTER_; + int i = 0; int last_alarm_id = 0; Evas_Object *genlist = NULL; Evas_Object *nf = NULL; @@ -1256,7 +1260,7 @@ void update_genlist(mode_type e, int type) } ALM_INFO(" update_genlist last_alarm_id %d ", last_alarm_id); - for (int i = 0; i < loc_count ; i++) { + for (i = 0; i < loc_count ; i++) { gendata = (struct genlist_item_data *)eina_list_nth(local_data, i); if (last_alarm_id == gendata->alarm_id) { ALM_INFO("reached the focus "); @@ -1295,11 +1299,11 @@ static void _save_button_pressed(void *data, Evas_Object *obj, void *event_info) ALM_ERR("inside _save_button_pressed"); //view_get_datetime(); ALM_INFO(" CHECKING PRESSED "); + int weekly = 0, i = 0; #if 0 - for (int i = 0; i < REPEAT_DAY_NUM; i++) + for (i = 0; i < REPEAT_DAY_NUM; i++) ALM_INFO(" CHECKING %d", s_info.is_pressed[i]); #endif - int weekly = 0, i = 0; for (i = 0; i < REPEAT_DAY_NUM; i++) { if (s_info.is_pressed[i] == 1) { weekly |= 1 << i; |