summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2017-05-08 15:14:27 -0700
committerCedric BAIL <cedric@osg.samsung.com>2017-05-08 15:14:29 -0700
commit77e19c71947365fd56ebfff11c288e7911649569 (patch)
treed6bb6fce5ad61d9434744aa1b0f0c40a7fd17cad
parent94509a3d86b470a54bac9a5974ea5a92847dd061 (diff)
examples: use printf instead of fprintf(stdout, ...)
Summary: Applies same change as e8355c93 for evas, to the remaining examples. This uses the shell command-line: src/examples/evas$ grep -sr 'fprintf(stdout' . | cut -d: -f1 \ | uniq | xargs sed -i "s/fprintf(stdout/printf(/" Note that use of the "fprintf(stdout" construct can generate warnings when -Wformat-security is enabled, if the fprintf statement has no format arguments, so in addition to the stylistic simplification this also helps quell those spurious warnings. Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4836 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/examples/ecore/ecore_con_eet_client_example.c4
-rw-r--r--src/examples/ecore/ecore_con_eet_server_example.c2
-rw-r--r--src/examples/ecore/ecore_evas_window_sizes_example.c22
-rw-r--r--src/examples/ecore/ecore_exe_example.c10
-rw-r--r--src/examples/ecore/ecore_exe_example_child.c4
-rw-r--r--src/examples/edje/edje-animations.c36
-rw-r--r--src/examples/edje/edje-basic.c30
-rw-r--r--src/examples/edje/edje-basic2.c4
-rw-r--r--src/examples/edje/edje-box.c6
-rw-r--r--src/examples/edje/edje-box2.c4
-rw-r--r--src/examples/edje/edje-codegen-example.c2
-rw-r--r--src/examples/edje/edje-color-class.c14
-rw-r--r--src/examples/edje/edje-drag.c6
-rw-r--r--src/examples/edje/edje-edit-part-box.c50
-rw-r--r--src/examples/edje/edje-perspective.c6
-rw-r--r--src/examples/edje/edje-signals-messages.c10
-rw-r--r--src/examples/edje/edje-table.c2
-rw-r--r--src/examples/edje/signals2.c2
-rw-r--r--src/examples/edje/sigtest.c60
-rw-r--r--src/examples/eina/eina_tiler_02.c8
-rw-r--r--src/examples/eio/eio_file_ls.c4
-rw-r--r--src/examples/elementary/flipselector_example.c18
-rw-r--r--src/examples/elementary/general_funcs_example.c10
-rw-r--r--src/examples/elementary/gengrid_example.c24
-rw-r--r--src/examples/elementary/index_example_01.c8
-rw-r--r--src/examples/elementary/performance/camera_light.c4
-rw-r--r--src/examples/elementary/performance/graphical.c4
-rw-r--r--src/examples/elementary/performance/performance.c8
-rw-r--r--src/examples/elementary/slideshow_example.c4
29 files changed, 183 insertions, 183 deletions
diff --git a/src/examples/ecore/ecore_con_eet_client_example.c b/src/examples/ecore/ecore_con_eet_client_example.c
index ad949dd..710f7f0 100644
--- a/src/examples/ecore/ecore_con_eet_client_example.c
+++ b/src/examples/ecore/ecore_con_eet_client_example.c
@@ -36,8 +36,8 @@ static void
36_eet_raw_data_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply EINA_UNUSED, const char *protocol_name EINA_UNUSED, const char *section, void *value, size_t length EINA_UNUSED) 36_eet_raw_data_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply EINA_UNUSED, const char *protocol_name EINA_UNUSED, const char *section, void *value, size_t length EINA_UNUSED)
37{ 37{
38 /* Only a perticular parameter's value is sent by Server. */ 38 /* Only a perticular parameter's value is sent by Server. */
39 fprintf(stdout, "Section: %s\n", section); 39 printf("Section: %s\n", section);
40 fprintf(stdout, "Value: %s\n", (char *) value); 40 printf("Value: %s\n", (char *) value);
41} 41}
42 42
43int main(int argc, const char *argv[]) 43int main(int argc, const char *argv[])
diff --git a/src/examples/ecore/ecore_con_eet_server_example.c b/src/examples/ecore/ecore_con_eet_server_example.c
index cfae8fd..0a48e2d 100644
--- a/src/examples/ecore/ecore_con_eet_server_example.c
+++ b/src/examples/ecore/ecore_con_eet_server_example.c
@@ -43,7 +43,7 @@ _eet_data_cb(void *data EINA_UNUSED, Ecore_Con_Reply *reply, const char *protoco
43 char toSend[] = "Received your message.";// The message to send to client. 43 char toSend[] = "Received your message.";// The message to send to client.
44 ECE_Example *received = value;// The message received from client. 44 ECE_Example *received = value;// The message received from client.
45 45
46 fprintf(stdout, "id: %d\n message: %s\n not_sending: %s\n", 46 printf("id: %d\n message: %s\n not_sending: %s\n",
47 received->id, received->message, received->not_sending); 47 received->id, received->message, received->not_sending);
48 /* The not_sending would be empty as not_sending is not added in the 48 /* The not_sending would be empty as not_sending is not added in the
49 * descriptor. So that value is not sent. 49 * descriptor. So that value is not sent.
diff --git a/src/examples/ecore/ecore_evas_window_sizes_example.c b/src/examples/ecore/ecore_evas_window_sizes_example.c
index 9c71cb5..865f423 100644
--- a/src/examples/ecore/ecore_evas_window_sizes_example.c
+++ b/src/examples/ecore/ecore_evas_window_sizes_example.c
@@ -70,7 +70,7 @@ _on_keydown(void *data EINA_UNUSED,
70 70
71 if (strcmp(ev->key, "h") == 0) /* print help */ 71 if (strcmp(ev->key, "h") == 0) /* print help */
72 { 72 {
73 fprintf(stdout, commands); 73 printf(commands);
74 return; 74 return;
75 } 75 }
76 76
@@ -81,13 +81,13 @@ _on_keydown(void *data EINA_UNUSED,
81 if (min_set) 81 if (min_set)
82 { 82 {
83 ecore_evas_size_min_set(ee, WIDTH / 2, HEIGHT / 2); 83 ecore_evas_size_min_set(ee, WIDTH / 2, HEIGHT / 2);
84 fprintf(stdout, "Imposing a minimum size of %d x %d\n", 84 printf("Imposing a minimum size of %d x %d\n",
85 WIDTH / 2, HEIGHT / 2); 85 WIDTH / 2, HEIGHT / 2);
86 } 86 }
87 else 87 else
88 { 88 {
89 ecore_evas_size_min_set(ee, 0, 0); 89 ecore_evas_size_min_set(ee, 0, 0);
90 fprintf(stdout, "Taking off minimum size restriction from the" 90 printf("Taking off minimum size restriction from the"
91 " window\n"); 91 " window\n");
92 } 92 }
93 return; 93 return;
@@ -100,13 +100,13 @@ _on_keydown(void *data EINA_UNUSED,
100 if (max_set) 100 if (max_set)
101 { 101 {
102 ecore_evas_size_max_set(ee, WIDTH * 2, HEIGHT * 2); 102 ecore_evas_size_max_set(ee, WIDTH * 2, HEIGHT * 2);
103 fprintf(stdout, "Imposing a maximum size of %d x %d\n", 103 printf("Imposing a maximum size of %d x %d\n",
104 WIDTH * 2, HEIGHT * 2); 104 WIDTH * 2, HEIGHT * 2);
105 } 105 }
106 else 106 else
107 { 107 {
108 ecore_evas_size_max_set(ee, 0, 0); 108 ecore_evas_size_max_set(ee, 0, 0);
109 fprintf(stdout, "Taking off maximum size restriction from the" 109 printf("Taking off maximum size restriction from the"
110 " window\n"); 110 " window\n");
111 } 111 }
112 return; 112 return;
@@ -119,13 +119,13 @@ _on_keydown(void *data EINA_UNUSED,
119 if (base_set) 119 if (base_set)
120 { 120 {
121 ecore_evas_size_base_set(ee, WIDTH * 2, HEIGHT * 2); 121 ecore_evas_size_base_set(ee, WIDTH * 2, HEIGHT * 2);
122 fprintf(stdout, "Imposing a base size of %d x %d\n", 122 printf("Imposing a base size of %d x %d\n",
123 WIDTH * 2, HEIGHT * 2); 123 WIDTH * 2, HEIGHT * 2);
124 } 124 }
125 else 125 else
126 { 126 {
127 ecore_evas_size_base_set(ee, 0, 0); 127 ecore_evas_size_base_set(ee, 0, 0);
128 fprintf(stdout, "Taking off base size restriction from the" 128 printf("Taking off base size restriction from the"
129 " window\n"); 129 " window\n");
130 } 130 }
131 return; 131 return;
@@ -138,12 +138,12 @@ _on_keydown(void *data EINA_UNUSED,
138 if (step_set) 138 if (step_set)
139 { 139 {
140 ecore_evas_size_step_set(ee, 40, 40); 140 ecore_evas_size_step_set(ee, 40, 40);
141 fprintf(stdout, "Imposing a step size of %d x %d\n", 40, 40); 141 printf("Imposing a step size of %d x %d\n", 40, 40);
142 } 142 }
143 else 143 else
144 { 144 {
145 ecore_evas_size_step_set(ee, 0, 0); 145 ecore_evas_size_step_set(ee, 0, 0);
146 fprintf(stdout, "Taking off step size restriction from the" 146 printf("Taking off step size restriction from the"
147 " window\n"); 147 " window\n");
148 } 148 }
149 return; 149 return;
@@ -153,7 +153,7 @@ _on_keydown(void *data EINA_UNUSED,
153 { 153 {
154 int x, y, w, h; 154 int x, y, w, h;
155 ecore_evas_screen_geometry_get(ee, &x, &y, &w, &h); 155 ecore_evas_screen_geometry_get(ee, &x, &y, &w, &h);
156 fprintf(stdout, "screen geometry: %d,%d, %dx%d\n", x, y, w, h); 156 printf("screen geometry: %d,%d, %dx%d\n", x, y, w, h);
157 return; 157 return;
158 } 158 }
159} 159}
@@ -195,7 +195,7 @@ main(void)
195 evas_object_show(text); 195 evas_object_show(text);
196 196
197 _canvas_resize_cb(ee); 197 _canvas_resize_cb(ee);
198 fprintf(stdout, commands); 198 printf(commands);
199 ecore_main_loop_begin(); 199 ecore_main_loop_begin();
200 200
201 ecore_evas_free(ee); 201 ecore_evas_free(ee);
diff --git a/src/examples/ecore/ecore_exe_example.c b/src/examples/ecore/ecore_exe_example.c
index aa2bd34..b3c574c 100644
--- a/src/examples/ecore/ecore_exe_example.c
+++ b/src/examples/ecore/ecore_exe_example.c
@@ -16,7 +16,7 @@ _msg_from_child_handler(void *data EINA_UNUSED, int type EINA_UNUSED, void *even
16 16
17 if (dataFromProcess->size >= (BUFFER_SIZE - 1)) 17 if (dataFromProcess->size >= (BUFFER_SIZE - 1))
18 { 18 {
19 fprintf(stdout, "Data too big for bugger. error\n"); 19 printf("Data too big for bugger. error\n");
20 return ECORE_CALLBACK_DONE; 20 return ECORE_CALLBACK_DONE;
21 } 21 }
22 22
@@ -25,11 +25,11 @@ _msg_from_child_handler(void *data EINA_UNUSED, int type EINA_UNUSED, void *even
25 25
26 if (strcmp(msg, "quit") == 0) 26 if (strcmp(msg, "quit") == 0)
27 { 27 {
28 fprintf(stdout, "My child said to me, QUIT!\n"); 28 printf("My child said to me, QUIT!\n");
29 ecore_main_loop_quit(); 29 ecore_main_loop_quit();
30 } 30 }
31 else 31 else
32 fprintf(stdout, "I received a message from my child: %s\n", msg); 32 printf("I received a message from my child: %s\n", msg);
33 33
34 return ECORE_CALLBACK_DONE; 34 return ECORE_CALLBACK_DONE;
35} 35}
@@ -47,7 +47,7 @@ _sendMessage(void *data)
47 if (ecore_exe_send(childHandle, msg, strlen(msg)) != EINA_TRUE) 47 if (ecore_exe_send(childHandle, msg, strlen(msg)) != EINA_TRUE)
48 fprintf(stderr, "Could not send my name to the child\n"); 48 fprintf(stderr, "Could not send my name to the child\n");
49 else 49 else
50 fprintf(stdout, 50 printf(
51 "I'm the father and I sent this message to the child: %s\n", msg); 51 "I'm the father and I sent this message to the child: %s\n", msg);
52 52
53 return ECORE_CALLBACK_RENEW; 53 return ECORE_CALLBACK_RENEW;
@@ -78,7 +78,7 @@ main(void)
78 if (childPid == -1) 78 if (childPid == -1)
79 fprintf(stderr, "Could not retrive the PID!\n"); 79 fprintf(stderr, "Could not retrive the PID!\n");
80 else 80 else
81 fprintf(stdout, "The child process has PID:%u\n", (unsigned int)childPid); 81 printf("The child process has PID:%u\n", (unsigned int)childPid);
82 82
83 ecore_event_handler_add(ECORE_EXE_EVENT_DATA, _msg_from_child_handler, NULL); 83 ecore_event_handler_add(ECORE_EXE_EVENT_DATA, _msg_from_child_handler, NULL);
84 ecore_timer_add(1, _sendMessage, childHandle); 84 ecore_timer_add(1, _sendMessage, childHandle);
diff --git a/src/examples/ecore/ecore_exe_example_child.c b/src/examples/ecore/ecore_exe_example_child.c
index f98d8fe..c22a7e5 100644
--- a/src/examples/ecore/ecore_exe_example_child.c
+++ b/src/examples/ecore/ecore_exe_example_child.c
@@ -21,13 +21,13 @@ _fd_handler_cb(void *data EINA_UNUSED, Ecore_Fd_Handler *fd_handler EINA_UNUSED)
21 21
22 if (numberOfMessages < 3) 22 if (numberOfMessages < 3)
23 { 23 {
24 fprintf(stdout, "My father sent this message to me:%s\n", message); 24 printf("My father sent this message to me:%s\n", message);
25 fflush(stdout); 25 fflush(stdout);
26 return ECORE_CALLBACK_RENEW; 26 return ECORE_CALLBACK_RENEW;
27 } 27 }
28 else 28 else
29 { 29 {
30 fprintf(stdout, "quit\n"); 30 printf("quit\n");
31 fflush(stdout); 31 fflush(stdout);
32 ecore_main_loop_quit(); 32 ecore_main_loop_quit();
33 return ECORE_CALLBACK_DONE; 33 return ECORE_CALLBACK_DONE;
diff --git a/src/examples/edje/edje-animations.c b/src/examples/edje/edje-animations.c
index 65f60c2..65afdc6 100644
--- a/src/examples/edje/edje-animations.c
+++ b/src/examples/edje/edje-animations.c
@@ -75,74 +75,74 @@ _on_key_down(void *data EINA_UNUSED, Evas *evas EINA_UNUSED, Evas_Object *obj, v
75 75
76 if (!strcmp(ev->key, "h")) 76 if (!strcmp(ev->key, "h"))
77 { 77 {
78 fprintf(stdout, commands); 78 printf(commands);
79 return; 79 return;
80 } 80 }
81 else if (!strcmp(ev->key, "plus")) 81 else if (!strcmp(ev->key, "plus"))
82 { 82 {
83 frametime *= 2.0; 83 frametime *= 2.0;
84 fprintf(stdout, "Increasing frametime to: %f\n", frametime); 84 printf("Increasing frametime to: %f\n", frametime);
85 edje_frametime_set(frametime); 85 edje_frametime_set(frametime);
86 } 86 }
87 else if (!strcmp(ev->key, "minus")) 87 else if (!strcmp(ev->key, "minus"))
88 { 88 {
89 frametime /= 2.0; 89 frametime /= 2.0;
90 fprintf(stdout, "Decreasing frametime to: %f\n", frametime); 90 printf("Decreasing frametime to: %f\n", frametime);
91 edje_frametime_set(frametime); 91 edje_frametime_set(frametime);
92 } 92 }
93 else if (!strcmp(ev->key, "equal")) 93 else if (!strcmp(ev->key, "equal"))
94 { 94 {
95 ft = edje_frametime_get(); 95 ft = edje_frametime_get();
96 fprintf(stdout, "Frametime: %f\n", ft); 96 printf("Frametime: %f\n", ft);
97 if (edje_object_play_get(obj)) 97 if (edje_object_play_get(obj))
98 fprintf(stdout, "Object is playing\n"); 98 printf("Object is playing\n");
99 else 99 else
100 fprintf(stdout, "Object was paused\n"); 100 printf("Object was paused\n");
101 if (edje_object_animation_get(obj)) 101 if (edje_object_animation_get(obj))
102 fprintf(stdout, "Animation is running\n"); 102 printf("Animation is running\n");
103 else 103 else
104 fprintf(stdout, "Animation was stopped\n"); 104 printf("Animation was stopped\n");
105 } 105 }
106 else if (!strcmp(ev->key, "s")) 106 else if (!strcmp(ev->key, "s"))
107 { 107 {
108 edje_object_play_set(obj, EINA_FALSE); 108 edje_object_play_set(obj, EINA_FALSE);
109 fprintf(stdout, "Pausing the object\n"); 109 printf("Pausing the object\n");
110 } 110 }
111 else if (!strcmp(ev->key, "p")) 111 else if (!strcmp(ev->key, "p"))
112 { 112 {
113 edje_object_play_set(obj, EINA_TRUE); 113 edje_object_play_set(obj, EINA_TRUE);
114 fprintf(stdout, "Playing the object\n"); 114 printf("Playing the object\n");
115 } 115 }
116 else if (!strcmp(ev->key, "f")) 116 else if (!strcmp(ev->key, "f"))
117 fprintf(stdout, "Freezing object. Count: %d\n", edje_object_freeze(obj)); 117 printf("Freezing object. Count: %d\n", edje_object_freeze(obj));
118 else if (!strcmp(ev->key, "t")) 118 else if (!strcmp(ev->key, "t"))
119 fprintf(stdout, "Thawing object. Count: %d\n", edje_object_thaw(obj)); 119 printf("Thawing object. Count: %d\n", edje_object_thaw(obj));
120 else if (!strcmp(ev->key, "F")) 120 else if (!strcmp(ev->key, "F"))
121 { 121 {
122 edje_freeze(); 122 edje_freeze();
123 fprintf(stdout, "Freezing all objects\n"); 123 printf("Freezing all objects\n");
124 } 124 }
125 else if (!strcmp(ev->key, "T")) 125 else if (!strcmp(ev->key, "T"))
126 { 126 {
127 edje_thaw(); 127 edje_thaw();
128 fprintf(stdout, "Thawing all objects\n"); 128 printf("Thawing all objects\n");
129 } 129 }
130 else if (!strcmp(ev->key, "a")) 130 else if (!strcmp(ev->key, "a"))
131 { 131 {
132 edje_object_animation_set(obj, EINA_TRUE); 132 edje_object_animation_set(obj, EINA_TRUE);
133 fprintf(stdout, "Starting the animation in the Edje object\n"); 133 printf("Starting the animation in the Edje object\n");
134 } 134 }
135 else if (!strcmp(ev->key, "A")) 135 else if (!strcmp(ev->key, "A"))
136 { 136 {
137 edje_object_animation_set(obj, EINA_FALSE); 137 edje_object_animation_set(obj, EINA_FALSE);
138 fprintf(stdout, "Stopping the animation in the Edje object\n"); 138 printf("Stopping the animation in the Edje object\n");
139 } 139 }
140 else if (!strcmp(ev->key, "Escape")) 140 else if (!strcmp(ev->key, "Escape"))
141 ecore_main_loop_quit(); 141 ecore_main_loop_quit();
142 else 142 else
143 { 143 {
144 printf("unhandled key: %s\n", ev->key); 144 printf("unhandled key: %s\n", ev->key);
145 fprintf(stdout, commands); 145 printf(commands);
146 } 146 }
147} 147}
148 148
@@ -191,7 +191,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
191 _on_key_down, NULL); 191 _on_key_down, NULL);
192 evas_object_focus_set(edje_obj, EINA_TRUE); 192 evas_object_focus_set(edje_obj, EINA_TRUE);
193 193
194 fprintf(stdout, commands); 194 printf(commands);
195 195
196 ecore_evas_show(ee); 196 ecore_evas_show(ee);
197 197
diff --git a/src/examples/edje/edje-basic.c b/src/examples/edje/edje-basic.c
index a49cf08..4d56680 100644
--- a/src/examples/edje/edje-basic.c
+++ b/src/examples/edje/edje-basic.c
@@ -51,7 +51,7 @@ _on_keydown(void *data,
51 51
52 if (strcmp(ev->key, "h") == 0) /* print help */ 52 if (strcmp(ev->key, "h") == 0) /* print help */
53 { 53 {
54 fprintf(stdout, commands); 54 printf(commands);
55 return; 55 return;
56 } 56 }
57 else if (strcmp(ev->key, "s") == 0) /* global scaling factor */ 57 else if (strcmp(ev->key, "s") == 0) /* global scaling factor */
@@ -65,7 +65,7 @@ _on_keydown(void *data,
65 65
66 edje_scale_set(scale); 66 edje_scale_set(scale);
67 67
68 fprintf(stdout, "Setting global scaling factor to %f.\n", scale); 68 printf("Setting global scaling factor to %f.\n", scale);
69 69
70 return; 70 return;
71 } 71 }
@@ -81,7 +81,7 @@ _on_keydown(void *data,
81 81
82 edje_object_scale_set(edje_obj, scale); 82 edje_object_scale_set(edje_obj, scale);
83 83
84 fprintf(stdout, "Setting center rectangle's scaling factor to %f.\n", 84 printf("Setting center rectangle's scaling factor to %f.\n",
85 scale); 85 scale);
86 86
87 return; 87 return;
@@ -91,7 +91,7 @@ _on_keydown(void *data,
91 else 91 else
92 { 92 {
93 printf("unhandled key: %s\n", ev->key); 93 printf("unhandled key: %s\n", ev->key);
94 fprintf(stdout, commands); 94 printf(commands);
95 } 95 }
96} 96}
97 97
@@ -163,7 +163,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
163 goto shutdown_edje; 163 goto shutdown_edje;
164 } 164 }
165 165
166 fprintf(stdout, "Loaded Edje object bound to group 'example_group' from" 166 printf("Loaded Edje object bound to group 'example_group' from"
167 " file basic.edj with success!\n"); 167 " file basic.edj with success!\n");
168 168
169 evas_object_move(edje_obj, 20, 20); 169 evas_object_move(edje_obj, 20, 20);
@@ -183,41 +183,41 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
183 evas_object_move(border, 20 - 2, 20 - 2); 183 evas_object_move(border, 20 - 2, 20 - 2);
184 evas_object_show(border); 184 evas_object_show(border);
185 185
186 fprintf(stdout, "'example_data' data field in group 'example_group' has " 186 printf("'example_data' data field in group 'example_group' has "
187 "the value: %s\n", edje_object_data_get(edje_obj, 187 "the value: %s\n", edje_object_data_get(edje_obj,
188 "example_data")); 188 "example_data"));
189 189
190 fprintf(stdout, "Testing if 'part_one' part exists: %s\n", 190 printf("Testing if 'part_one' part exists: %s\n",
191 edje_object_part_exists(edje_obj, "part_one") ? "yes!" : "no"); 191 edje_object_part_exists(edje_obj, "part_one") ? "yes!" : "no");
192 192
193 edje_object_part_geometry_get(edje_obj, "part_one", &x, &y, &w, &h); 193 edje_object_part_geometry_get(edje_obj, "part_one", &x, &y, &w, &h);
194 fprintf(stdout, "The geometry of that part inside the Edje object's area " 194 printf("The geometry of that part inside the Edje object's area "
195 "is: x = %d, y = %d, w = %d, h = %d\n", x, y, w, h); 195 "is: x = %d, y = %d, w = %d, h = %d\n", x, y, w, h);
196 196
197 evas_object_color_get(edje_object_part_object_get(edje_obj, "part_one"), 197 evas_object_color_get(edje_object_part_object_get(edje_obj, "part_one"),
198 &x, &y, &w, &h); 198 &x, &y, &w, &h);
199 fprintf(stdout, "That part's color components are: r = %d, g = %d, b = %d," 199 printf("That part's color components are: r = %d, g = %d, b = %d,"
200 " a = %d\n", x, y, w, h); 200 " a = %d\n", x, y, w, h);
201 201
202 edje_object_size_max_get(edje_obj, &w, &h); 202 edje_object_size_max_get(edje_obj, &w, &h);
203 fprintf(stdout, "The Edje object's max. size is: %d, %d\n", w, h); 203 printf("The Edje object's max. size is: %d, %d\n", w, h);
204 204
205 edje_object_size_min_get(edje_obj, &w, &h); 205 edje_object_size_min_get(edje_obj, &w, &h);
206 fprintf(stdout, "The Edje object's min. size is: %d, %d\n", w, h); 206 printf("The Edje object's min. size is: %d, %d\n", w, h);
207 207
208 edje_object_size_min_calc(edje_obj, &w, &h); 208 edje_object_size_min_calc(edje_obj, &w, &h);
209 fprintf(stdout, "The Edje object's min. size reported by min. size" 209 printf("The Edje object's min. size reported by min. size"
210 " calculation is: w = %d, h = %d\n", w, h); 210 " calculation is: w = %d, h = %d\n", w, h);
211 211
212 edje_object_size_min_restricted_calc(edje_obj, &w, &h, 500, 500); 212 edje_object_size_min_restricted_calc(edje_obj, &w, &h, 500, 500);
213 fprintf(stdout, "The Edje object's min. size reported by *restricted* " 213 printf("The Edje object's min. size reported by *restricted* "
214 "min. size calculation is: w = %d, h = %d\n", w, h); 214 "min. size calculation is: w = %d, h = %d\n", w, h);
215 215
216 edje_object_parts_extends_calc(edje_obj, &x, &y, &w, &h); 216 edje_object_parts_extends_calc(edje_obj, &x, &y, &w, &h);
217 fprintf(stdout, "The Edje object's \"extended\" geometry is: x = %d, " 217 printf("The Edje object's \"extended\" geometry is: x = %d, "
218 "y = %d, w = %d, h = %d\n", x, y, w, h); 218 "y = %d, w = %d, h = %d\n", x, y, w, h);
219 219
220 fprintf(stdout, commands); 220 printf(commands);
221 221
222 ecore_evas_show(ee); 222 ecore_evas_show(ee);
223 223
diff --git a/src/examples/edje/edje-basic2.c b/src/examples/edje/edje-basic2.c
index e3cdde3..2c7fa2e 100644
--- a/src/examples/edje/edje-basic2.c
+++ b/src/examples/edje/edje-basic2.c
@@ -66,7 +66,7 @@ _on_key_down(void *data,
66 } 66 }
67 else 67 else
68 { 68 {
69 fprintf(stdout, "Key %s not supported.\nCommands:%s", ev->key, commands); 69 printf("Key %s not supported.\nCommands:%s", ev->key, commands);
70 return; 70 return;
71 } 71 }
72 72
@@ -130,7 +130,7 @@ main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
130 130
131 ecore_evas_show(ee); 131 ecore_evas_show(ee);
132 132
133 fprintf(stdout, "%s", commands); 133 printf("%s", commands);
134 134
135 ecore_main_loop_begin(); 135 ecore_main_loop_begin();
136 136
diff --git a/src/examples/edje/edje-box.c b/src/examples/edje/edje-box.c
index a36a5a5..4920a70 100644
--- a/src/examples/edje/edje-box.c
+++ b/src/examples/edje/edje-box.c
@@ -113,7 +113,7 @@ _on_bg_key_down(void *data, Evas *e, Evas_Object *o EINA_UNUSED, void *event_inf
113 113
114 if (!strcmp(ev->key, "h")) 114 if (!strcmp(ev->key, "h"))
115 { 115 {
116 fprintf(stdout, commands); 116 printf(commands);
117 return; 117 return;
118 } 118 }
119 if (!strcmp(ev->key, "i")) 119 if (!strcmp(ev->key, "i"))
@@ -151,7 +151,7 @@ _on_bg_key_down(void *data, Evas *e, Evas_Object *o EINA_UNUSED, void *event_inf
151 else 151 else
152 { 152 {
153 printf("unhandled key: %s\n", ev->key); 153 printf("unhandled key: %s\n", ev->key);
154 fprintf(stdout, commands); 154 printf(commands);
155 } 155 }
156} 156}
157 157
@@ -216,7 +216,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
216 rect, EVAS_CALLBACK_MOUSE_DOWN, _on_rect_mouse_down, ee); 216 rect, EVAS_CALLBACK_MOUSE_DOWN, _on_rect_mouse_down, ee);
217 } 217 }
218 218
219 fprintf(stdout, commands); 219 printf(commands);
220 220
221 ecore_evas_show(ee); 221 ecore_evas_show(ee);
222 222
diff --git a/src/examples/edje/edje-box2.c b/src/examples/edje/edje-box2.c
index 21a7115..0b72508 100644
--- a/src/examples/edje/edje-box2.c
+++ b/src/examples/edje/edje-box2.c
@@ -87,7 +87,7 @@ on_keydown(void *data, Evas *evas, Evas_Object *o EINA_UNUSED, void *einfo)
87 mods = evas_key_modifier_get(evas); 87 mods = evas_key_modifier_get(evas);
88 if (!strcmp(ev->key, "h")) 88 if (!strcmp(ev->key, "h"))
89 { 89 {
90 fprintf(stdout, commands); 90 printf(commands);
91 return; 91 return;
92 } 92 }
93 if (evas_key_modifier_is_set(mods, "Shift")) 93 if (evas_key_modifier_is_set(mods, "Shift"))
@@ -211,7 +211,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
211 } 211 }
212 } 212 }
213 213
214 fprintf(stdout, commands); 214 printf(commands);
215 215
216 ecore_evas_show(ee); 216 ecore_evas_show(ee);
217 217
diff --git a/src/examples/edje/edje-codegen-example.c b/src/examples/edje/edje-codegen-example.c
index 9fd4d5d..8464f04 100644
--- a/src/examples/edje/edje-codegen-example.c
+++ b/src/examples/edje/edje-codegen-example.c
@@ -54,7 +54,7 @@ _columns_rows_print(Evas_Object *edje_obj)
54 int cols, rows; 54 int cols, rows;
55 55
56 if (codegen_example_part_four_col_row_size_get(edje_obj, &cols, &rows)) 56 if (codegen_example_part_four_col_row_size_get(edje_obj, &cols, &rows))
57 fprintf(stdout, "Number of columns: %d\nNumber of rows: %d\n", cols, rows); 57 printf("Number of columns: %d\nNumber of rows: %d\n", cols, rows);
58 else 58 else
59 fprintf(stderr, "Cannot get the number of columns and rows\n"); 59 fprintf(stderr, "Cannot get the number of columns and rows\n");
60} 60}
diff --git a/src/examples/edje/edje-color-class.c b/src/examples/edje/edje-color-class.c
index f4647a5..52db84b 100644
--- a/src/examples/edje/edje-color-class.c
+++ b/src/examples/edje/edje-color-class.c
@@ -71,25 +71,25 @@ _color_classes_print(void)
71 Eina_List *classes; 71 Eina_List *classes;
72 char *class_name; 72 char *class_name;
73 73
74 fprintf(stdout, "Getting the color classes\n\n"); 74 printf("Getting the color classes\n\n");
75 classes = edje_color_class_list(); 75 classes = edje_color_class_list();
76 EINA_LIST_FREE(classes, class_name) 76 EINA_LIST_FREE(classes, class_name)
77 { 77 {
78 int r1, r2, r3, g1, g2, g3, b1, b2, b3, 78 int r1, r2, r3, g1, g2, g3, b1, b2, b3,
79 a1, a2, a3; 79 a1, a2, a3;
80 80
81 fprintf(stdout, "\ncolor class: %s\n", class_name); 81 printf("\ncolor class: %s\n", class_name);
82 if (!edje_color_class_get(class_name, &r1, &g1, &b1, &a1, 82 if (!edje_color_class_get(class_name, &r1, &g1, &b1, &a1,
83 &r2, &g2, &b2, &a2, &r3, &g3, &b3, &a3)) 83 &r2, &g2, &b2, &a2, &r3, &g3, &b3, &a3))
84 fprintf(stderr, "Cannot get the color class\n"); 84 fprintf(stderr, "Cannot get the color class\n");
85 else 85 else
86 { 86 {
87 87
88 fprintf(stdout,"Object color r: %d g: %d b: %d a: %d\n", 88 printf("Object color r: %d g: %d b: %d a: %d\n",
89 r1, g1, b1, a1); 89 r1, g1, b1, a1);
90 fprintf(stdout,"Text outline color r: %d g: %d b: %d a: %d\n", 90 printf("Text outline color r: %d g: %d b: %d a: %d\n",
91 r2, g2, b2, a2); 91 r2, g2, b2, a2);
92 fprintf(stdout,"Text shadow color r: %d g: %d b: %d a: %d\n", 92 printf("Text shadow color r: %d g: %d b: %d a: %d\n",
93 r3, g3, b3, a3); 93 r3, g3, b3, a3);
94 } 94 }
95 free(class_name); 95 free(class_name);
@@ -142,9 +142,9 @@ _color_class_callback_delete(void *data, Evas *e EINA_UNUSED, Evas_Object *obj E
142 const char *emission, void *source EINA_UNUSED) 142 const char *emission, void *source EINA_UNUSED)
143{ 143{
144 if (!strcmp(data, "process")) 144 if (!strcmp(data, "process"))
145 fprintf(stdout, "Color class: %s deleted on process level\n", emission); 145 printf("Color class: %s deleted on process level\n", emission);
146 else 146 else
147 fprintf(stdout, "Color class: %s deleted on object level\n", emission); 147 printf("Color class: %s deleted on object level\n", emission);
148} 148}
149 149
150static int 150static int
diff --git a/src/examples/edje/edje-drag.c b/src/examples/edje/edje-drag.c
index 9c1094e..e2e4331 100644
--- a/src/examples/edje/edje-drag.c
+++ b/src/examples/edje/edje-drag.c
@@ -75,7 +75,7 @@ _on_bg_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, voi
75 75
76 if (!strcmp(ev->key, "h")) 76 if (!strcmp(ev->key, "h"))
77 { 77 {
78 fprintf(stdout, commands); 78 printf(commands);
79 return; 79 return;
80 } 80 }
81 else if (!strcmp(ev->key, "Down")) 81 else if (!strcmp(ev->key, "Down"))
@@ -103,7 +103,7 @@ _on_bg_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, voi
103 else 103 else
104 { 104 {
105 printf("unhandled key: %s\n", ev->key); 105 printf("unhandled key: %s\n", ev->key);
106 fprintf(stdout, commands); 106 printf(commands);
107 } 107 }
108} 108}
109 109
@@ -171,7 +171,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
171 171
172 edje_object_signal_callback_add(edje_obj, "drag", PARTNAME, _on_knob_moved, NULL); 172 edje_object_signal_callback_add(edje_obj, "drag", PARTNAME, _on_knob_moved, NULL);
173 173
174 fprintf(stdout, commands); 174 printf(commands);
175 175
176 ecore_evas_show(ee); 176 ecore_evas_show(ee);
177 177
diff --git a/src/examples/edje/edje-edit-part-box.c b/src/examples/edje/edje-edit-part-box.c
index 21c83a5..c001e5d 100644
--- a/src/examples/edje/edje-edit-part-box.c
+++ b/src/examples/edje/edje-edit-part-box.c
@@ -82,12 +82,12 @@ _on_bg_key_down(void *data EINA_UNUSED,
82 82
83 if (!strcmp(ev->key, "h")) 83 if (!strcmp(ev->key, "h"))
84 { 84 {
85 fprintf(stdout, commands); 85 printf(commands);
86 return; 86 return;
87 } 87 }
88 if (!strcmp(ev->key, "p")) 88 if (!strcmp(ev->key, "p"))
89 { 89 {
90 fprintf(stdout, "SOURCE CODE:\n%s \n", edje_edit_source_generate(edje_edit_obj)); 90 printf("SOURCE CODE:\n%s \n", edje_edit_source_generate(edje_edit_obj));
91 return; 91 return;
92 } 92 }
93 if (!strcmp(ev->key, "n")) 93 if (!strcmp(ev->key, "n"))
@@ -99,7 +99,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
99 if (align_x >= 1.0) align_x = 0.0; 99 if (align_x >= 1.0) align_x = 0.0;
100 if (align_y >= 1.0) align_y = 0.0; 100 if (align_y >= 1.0) align_y = 0.0;
101 101
102 fprintf(stdout, "Changing align to x[%f] y[%f] \n", align_x, align_y); 102 printf("Changing align to x[%f] y[%f] \n", align_x, align_y);
103 103
104 if (!edje_edit_part_item_index_align_x_set(edje_edit_obj, "green", 1, align_x)) 104 if (!edje_edit_part_item_index_align_x_set(edje_edit_obj, "green", 1, align_x))
105 fprintf(stderr, "Couldn't set align x for item x2, something is absolutely wrong!!!\n"); 105 fprintf(stderr, "Couldn't set align x for item x2, something is absolutely wrong!!!\n");
@@ -108,7 +108,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
108 108
109 edje_edit_save_all(edje_edit_obj); 109 edje_edit_save_all(edje_edit_obj);
110 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 110 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
111 fprintf(stdout, "Couldn't load edje edit object! \n"); 111 printf("Couldn't load edje edit object! \n");
112 112
113 return; 113 return;
114 } 114 }
@@ -121,7 +121,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
121 if (weight_x >= 30.0) weight_x = 0.0; 121 if (weight_x >= 30.0) weight_x = 0.0;
122 if (weight_y >= 30.0) weight_y = 0.0; 122 if (weight_y >= 30.0) weight_y = 0.0;
123 123
124 fprintf(stdout, "Changing weight to x[%f] y[%f] \n", weight_x, weight_y); 124 printf("Changing weight to x[%f] y[%f] \n", weight_x, weight_y);
125 125
126 if (!edje_edit_part_item_index_weight_x_set(edje_edit_obj, "green", 1, weight_x)) 126 if (!edje_edit_part_item_index_weight_x_set(edje_edit_obj, "green", 1, weight_x))
127 fprintf(stderr, "Couldn't set weight x for item x2, something is absolutely wrong!!!\n"); 127 fprintf(stderr, "Couldn't set weight x for item x2, something is absolutely wrong!!!\n");
@@ -130,7 +130,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
130 130
131 edje_edit_save_all(edje_edit_obj); 131 edje_edit_save_all(edje_edit_obj);
132 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 132 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
133 fprintf(stdout, "Couldn't load edje edit object! \n"); 133 printf("Couldn't load edje edit object! \n");
134 134
135 return; 135 return;
136 } 136 }
@@ -145,14 +145,14 @@ _on_bg_key_down(void *data EINA_UNUSED,
145 if (t >= 32) t = 0; 145 if (t >= 32) t = 0;
146 if (b >= 32) b = 0; 146 if (b >= 32) b = 0;
147 147
148 fprintf(stdout, "Changing paddings. left[%d], right[%d], top[%d], bottom[%d]\n", l, r, t, b); 148 printf("Changing paddings. left[%d], right[%d], top[%d], bottom[%d]\n", l, r, t, b);
149 149
150 if (!edje_edit_part_item_index_padding_set(edje_edit_obj, "green", 1, l, r, t, b)) 150 if (!edje_edit_part_item_index_padding_set(edje_edit_obj, "green", 1, l, r, t, b))
151 fprintf(stderr, "Couldn't set paddings for item x2, something is absolutely wrong!!!\n"); 151 fprintf(stderr, "Couldn't set paddings for item x2, something is absolutely wrong!!!\n");
152 152
153 edje_edit_save_all(edje_edit_obj); 153 edje_edit_save_all(edje_edit_obj);
154 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 154 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
155 fprintf(stdout, "Couldn't load edje edit object! \n"); 155 printf("Couldn't load edje edit object! \n");
156 156
157 return; 157 return;
158 } 158 }
@@ -171,7 +171,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
171 spread_h = 1; 171 spread_h = 1;
172 } 172 }
173 173
174 fprintf(stdout, "Changing spread to w[%d] h[%d] \n", spread_w, spread_h); 174 printf("Changing spread to w[%d] h[%d] \n", spread_w, spread_h);
175 175
176 if (!edje_edit_part_item_index_spread_w_set(edje_edit_obj, "green", 1, spread_w)) 176 if (!edje_edit_part_item_index_spread_w_set(edje_edit_obj, "green", 1, spread_w))
177 fprintf(stderr, "Couldn't set spread w for item x2, something is absolutely wrong!!!\n"); 177 fprintf(stderr, "Couldn't set spread w for item x2, something is absolutely wrong!!!\n");
@@ -180,7 +180,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
180 180
181 edje_edit_save_all(edje_edit_obj); 181 edje_edit_save_all(edje_edit_obj);
182 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 182 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
183 fprintf(stdout, "Couldn't load edje edit object! \n"); 183 printf("Couldn't load edje edit object! \n");
184 184
185 return; 185 return;
186 } 186 }
@@ -193,7 +193,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
193 if (min_w >= 500) min_w = 200; 193 if (min_w >= 500) min_w = 200;
194 if (min_h >= 500) min_h = 200; 194 if (min_h >= 500) min_h = 200;
195 195
196 fprintf(stdout, "Changing min to w[%d] h[%d] \n", min_w, min_h); 196 printf("Changing min to w[%d] h[%d] \n", min_w, min_h);
197 197
198 if (!edje_edit_part_item_index_min_w_set(edje_edit_obj, "green", 1, min_w)) 198 if (!edje_edit_part_item_index_min_w_set(edje_edit_obj, "green", 1, min_w))
199 fprintf(stderr, "Couldn't set min w for item x2, something is absolutely wrong!!!\n"); 199 fprintf(stderr, "Couldn't set min w for item x2, something is absolutely wrong!!!\n");
@@ -202,7 +202,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
202 202
203 edje_edit_save_all(edje_edit_obj); 203 edje_edit_save_all(edje_edit_obj);
204 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 204 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
205 fprintf(stdout, "Couldn't load edje edit object! \n"); 205 printf("Couldn't load edje edit object! \n");
206 206
207 return; 207 return;
208 } 208 }
@@ -215,7 +215,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
215 if (max_w <= 0) max_w = 800; 215 if (max_w <= 0) max_w = 800;
216 if (max_h <= 0) max_h = 800; 216 if (max_h <= 0) max_h = 800;
217 217
218 fprintf(stdout, "Changing max to w[%d] h[%d] \n", max_w, max_h); 218 printf("Changing max to w[%d] h[%d] \n", max_w, max_h);
219 219
220 if (!edje_edit_part_item_index_max_w_set(edje_edit_obj, "green", 1, max_w)) 220 if (!edje_edit_part_item_index_max_w_set(edje_edit_obj, "green", 1, max_w))
221 fprintf(stderr, "Couldn't set max w for item x2, something is absolutely wrong!!!\n"); 221 fprintf(stderr, "Couldn't set max w for item x2, something is absolutely wrong!!!\n");
@@ -224,7 +224,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
224 224
225 edje_edit_save_all(edje_edit_obj); 225 edje_edit_save_all(edje_edit_obj);
226 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 226 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
227 fprintf(stdout, "Couldn't load edje edit object! \n"); 227 printf("Couldn't load edje edit object! \n");
228 228
229 return; 229 return;
230 } 230 }
@@ -238,14 +238,14 @@ _on_bg_key_down(void *data EINA_UNUSED,
238 group_number = 0; 238 group_number = 0;
239 new_source = groups[group_number]; 239 new_source = groups[group_number];
240 240
241 fprintf(stdout, "Changing item's source from [%s] to [%s] \n", source, new_source); 241 printf("Changing item's source from [%s] to [%s] \n", source, new_source);
242 242
243 if (!edje_edit_part_item_index_source_set(edje_edit_obj, "green", 1, new_source)) 243 if (!edje_edit_part_item_index_source_set(edje_edit_obj, "green", 1, new_source))
244 fprintf(stderr, "Couldn't change item's source, something is absolutely wrong!!!\n"); 244 fprintf(stderr, "Couldn't change item's source, something is absolutely wrong!!!\n");
245 245
246 edje_edit_save_all(edje_edit_obj); 246 edje_edit_save_all(edje_edit_obj);
247 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 247 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
248 fprintf(stdout, "Couldn't load edje edit object! \n"); 248 printf("Couldn't load edje edit object! \n");
249 249
250 eina_stringshare_del(source); 250 eina_stringshare_del(source);
251 return; 251 return;
@@ -255,7 +255,7 @@ _on_bg_key_down(void *data EINA_UNUSED,
255 if (!edje_edit_part_item_append(edje_edit_obj, "green", "x_new", "complex_group")) 255 if (!edje_edit_part_item_append(edje_edit_obj, "green", "x_new", "complex_group"))
256 { 256 {
257 edje_edit_part_item_index_del(edje_edit_obj, "green", 3); 257 edje_edit_part_item_index_del(edje_edit_obj, "green", 3);
258 fprintf(stdout, "Successfully removed new item!\n"); 258 printf("Successfully removed new item!\n");
259 } 259 }
260 else 260 else
261 { 261 {
@@ -263,12 +263,12 @@ _on_bg_key_down(void *data EINA_UNUSED,
263 fprintf(stderr, "Couldn't set min w for item x_new, something is absolutely wrong!!!\n"); 263 fprintf(stderr, "Couldn't set min w for item x_new, something is absolutely wrong!!!\n");
264 if (!edje_edit_part_item_index_min_h_set(edje_edit_obj, "green", 3, 200)) 264 if (!edje_edit_part_item_index_min_h_set(edje_edit_obj, "green", 3, 200))
265 fprintf(stderr, "Couldn't set min h for item x_new, something is absolutely wrong!!!\n"); 265 fprintf(stderr, "Couldn't set min h for item x_new, something is absolutely wrong!!!\n");
266 fprintf(stdout, "Successfully added new item!\n"); 266 printf("Successfully added new item!\n");
267 } 267 }
268 268
269 edje_edit_save_all(edje_edit_obj); 269 edje_edit_save_all(edje_edit_obj);
270 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 270 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
271 fprintf(stdout, "Couldn't load edje edit object! \n"); 271 printf("Couldn't load edje edit object! \n");
272 272
273 return; 273 return;
274 } 274 }
@@ -282,14 +282,14 @@ _on_bg_key_down(void *data EINA_UNUSED,
282 layout_number = 0; 282 layout_number = 0;
283 new_layout = layouts[layout_number]; 283 new_layout = layouts[layout_number];
284 284
285 fprintf(stdout, "Changing box's layout from [%s] to [%s] \n", layout, new_layout); 285 printf("Changing box's layout from [%s] to [%s] \n", layout, new_layout);
286 286
287 if (!edje_edit_state_box_layout_set(edje_edit_obj, "green", "default", 0.0, new_layout)) 287 if (!edje_edit_state_box_layout_set(edje_edit_obj, "green", "default", 0.0, new_layout))
288 fprintf(stderr, "Couldn't change layout, something is absolutely wrong!!!\n"); 288 fprintf(stderr, "Couldn't change layout, something is absolutely wrong!!!\n");
289 289
290 edje_edit_save_all(edje_edit_obj); 290 edje_edit_save_all(edje_edit_obj);
291 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 291 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
292 fprintf(stdout, "Couldn't load edje edit object! \n"); 292 printf("Couldn't load edje edit object! \n");
293 293
294 eina_stringshare_del(layout); 294 eina_stringshare_del(layout);
295 return; 295 return;
@@ -304,14 +304,14 @@ _on_bg_key_down(void *data EINA_UNUSED,
304 alt_layout_number = 0; 304 alt_layout_number = 0;
305 new_layout = layouts[alt_layout_number]; 305 new_layout = layouts[alt_layout_number];
306 306
307 fprintf(stdout, "Changing box's alternative layout from [%s] to [%s] \n", layout, new_layout); 307 printf("Changing box's alternative layout from [%s] to [%s] \n", layout, new_layout);
308 308
309 if (!edje_edit_state_box_alt_layout_set(edje_edit_obj, "green", "default", 0.0, new_layout)) 309 if (!edje_edit_state_box_alt_layout_set(edje_edit_obj, "green", "default", 0.0, new_layout))
310 fprintf(stderr, "Couldn't change alternative layout, something is absolutely wrong!!!\n"); 310 fprintf(stderr, "Couldn't change alternative layout, something is absolutely wrong!!!\n");
311 311
312 edje_edit_save_all(edje_edit_obj); 312 edje_edit_save_all(edje_edit_obj);
313 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 313 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
314 fprintf(stdout, "Couldn't load edje edit object! \n"); 314 printf("Couldn't load edje edit object! \n");
315 315
316 eina_stringshare_del(layout); 316 eina_stringshare_del(layout);
317 return; 317 return;
@@ -348,7 +348,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
348 /* loading edje edit object here */ 348 /* loading edje edit object here */
349 edje_edit_obj = edje_edit_object_add(evas); 349 edje_edit_obj = edje_edit_object_add(evas);
350 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group")) 350 if (!edje_object_file_set(edje_edit_obj, edje_file, "box_group"))
351 fprintf(stdout, "Couldn't load edje edit object! \n"); 351 printf("Couldn't load edje edit object! \n");
352 352
353 evas_object_resize(edje_edit_obj, WIDTH, HEIGHT); 353 evas_object_resize(edje_edit_obj, WIDTH, HEIGHT);
354 evas_object_show(edje_edit_obj); 354 evas_object_show(edje_edit_obj);
@@ -358,7 +358,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
358 evas_object_focus_set(edje_edit_obj, EINA_TRUE); 358 evas_object_focus_set(edje_edit_obj, EINA_TRUE);
359 evas_object_event_callback_add(edje_edit_obj, EVAS_CALLBACK_KEY_DOWN, _on_bg_key_down, ee); 359 evas_object_event_callback_add(edje_edit_obj, EVAS_CALLBACK_KEY_DOWN, _on_bg_key_down, ee);
360 360
361 fprintf(stdout, commands); 361 printf(commands);
362 362
363 ecore_evas_show(ee); 363 ecore_evas_show(ee);
364 364
diff --git a/src/examples/edje/edje-perspective.c b/src/examples/edje/edje-perspective.c
index cf0e654..71a75c2 100644
--- a/src/examples/edje/edje-perspective.c
+++ b/src/examples/edje/edje-perspective.c
@@ -100,7 +100,7 @@ _on_bg_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, voi
100 100
101 if (!strcmp(ev->key, "h")) 101 if (!strcmp(ev->key, "h"))
102 { 102 {
103 fprintf(stdout, commands); 103 printf(commands);
104 return; 104 return;
105 } 105 }
106 // just moving the part and text 106 // just moving the part and text
@@ -150,7 +150,7 @@ _on_bg_key_down(void *data, Evas *e EINA_UNUSED, Evas_Object *o EINA_UNUSED, voi
150 else 150 else
151 { 151 {
152 printf("unhandled key: %s\n", ev->key); 152 printf("unhandled key: %s\n", ev->key);
153 fprintf(stdout, commands); 153 printf(commands);
154 } 154 }
155} 155}
156 156
@@ -217,7 +217,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
217 edje_perspective_set(app.ps, 240, 160, 0, app.focal); 217 edje_perspective_set(app.ps, 240, 160, 0, app.focal);
218 edje_perspective_global_set(app.ps, EINA_TRUE); 218 edje_perspective_global_set(app.ps, EINA_TRUE);
219 219
220 fprintf(stdout, commands); 220 printf(commands);
221 221
222 ecore_evas_show(ee); 222 ecore_evas_show(ee);
223 223
diff --git a/src/examples/edje/edje-signals-messages.c b/src/examples/edje/edje-signals-messages.c
index 060e47e..b19d628 100644
--- a/src/examples/edje/edje-signals-messages.c
+++ b/src/examples/edje/edje-signals-messages.c
@@ -53,7 +53,7 @@ _on_keydown(void *data,
53 53
54 if (!strcmp(ev->key, "h")) /* print help */ 54 if (!strcmp(ev->key, "h")) /* print help */
55 { 55 {
56 fprintf(stdout, commands); 56 printf(commands);
57 return; 57 return;
58 } 58 }
59 else if (!strcmp(ev->key, "t")) /* toggle right rectangle's visibility */ 59 else if (!strcmp(ev->key, "t")) /* toggle right rectangle's visibility */
@@ -75,7 +75,7 @@ _on_keydown(void *data,
75 else 75 else
76 { 76 {
77 printf("unhandled key: %s\n", ev->key); 77 printf("unhandled key: %s\n", ev->key);
78 fprintf(stdout, commands); 78 printf(commands);
79 } 79 }
80} 80}
81 81
@@ -90,7 +90,7 @@ static void
90_sig_print(const char *emission, 90_sig_print(const char *emission,
91 const char *source) 91 const char *source)
92{ 92{
93 fprintf(stdout, "Signal %s coming from part %s!\n", emission, source); 93 printf("Signal %s coming from part %s!\n", emission, source);
94} 94}
95 95
96static void 96static void
@@ -138,7 +138,7 @@ _message_handle(void *data EINA_UNUSED,
138 138
139 m = msg; 139 m = msg;
140 140
141 fprintf(stdout, "String message received: %s\n", m->str); 141 printf("String message received: %s\n", m->str);
142} 142}
143 143
144int 144int
@@ -215,7 +215,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
215 evas_object_repeat_events_set(border, EINA_TRUE); 215 evas_object_repeat_events_set(border, EINA_TRUE);
216 evas_object_show(border); 216 evas_object_show(border);
217 217
218 fprintf(stdout, commands); 218 printf(commands);
219 219
220 ecore_evas_show(ee); 220 ecore_evas_show(ee);
221 221
diff --git a/src/examples/edje/edje-table.c b/src/examples/edje/edje-table.c
index 965a0f4..f093069 100644
--- a/src/examples/edje/edje-table.c
+++ b/src/examples/edje/edje-table.c
@@ -41,7 +41,7 @@ _columns_rows_print(Evas_Object *edje_obj)
41 41
42 if (edje_object_part_table_col_row_size_get(edje_obj, "table_part", &cols, 42 if (edje_object_part_table_col_row_size_get(edje_obj, "table_part", &cols,
43 &rows)) 43 &rows))
44 fprintf(stdout, "Number of columns: %d\nNumber of rows: %d\n", cols, rows); 44 printf("Number of columns: %d\nNumber of rows: %d\n", cols, rows);
45 else 45 else
46 fprintf(stderr, "Cannot get the number of columns and rows\n"); 46 fprintf(stderr, "Cannot get the number of columns and rows\n");
47} 47}
diff --git a/src/examples/edje/signals2.c b/src/examples/edje/signals2.c
index 61b6a77..fe705bc 100644
--- a/src/examples/edje/signals2.c
+++ b/src/examples/edje/signals2.c
@@ -57,7 +57,7 @@ _on_mouse_over(void *data, Evas_Object *edje_obj,
57 y = HEIGHT; 57 y = HEIGHT;
58 else if (y < 0) y = 0; 58 else if (y < 0) y = 0;
59 59
60 fprintf(stdout, "Moving object to - (%d,%d)\n", x, y); 60 printf("Moving object to - (%d,%d)\n", x, y);
61 61
62 evas_object_move(edje_obj, x, y); 62 evas_object_move(edje_obj, x, y);
63} 63}
diff --git a/src/examples/edje/sigtest.c b/src/examples/edje/sigtest.c
index b02ae1a..dfa45a3 100644
--- a/src/examples/edje/sigtest.c
+++ b/src/examples/edje/sigtest.c
@@ -47,7 +47,7 @@ _on_keydown(void *data,
47 47
48 if (!strcmp(ev->key, "h")) 48 if (!strcmp(ev->key, "h"))
49 { 49 {
50 fprintf(stdout, commands); 50 printf(commands);
51 return; 51 return;
52 } 52 }
53 else if (!strcmp(ev->key, "e")) 53 else if (!strcmp(ev->key, "e"))
@@ -60,7 +60,7 @@ _on_keydown(void *data,
60 fprintf(stderr, "Could not load 'plain/edje/group' from sigtest.edj: %s\n", errmsg); 60 fprintf(stderr, "Could not load 'plain/edje/group' from sigtest.edj: %s\n", errmsg);
61 } 61 }
62 else 62 else
63 fprintf(stdout, "Loaded Edje object bound to group 'plain/edje/group' from" 63 printf("Loaded Edje object bound to group 'plain/edje/group' from"
64 " file sigtest.edj with success!\n"); 64 " file sigtest.edj with success!\n");
65 return; 65 return;
66 } 66 }
@@ -74,7 +74,7 @@ _on_keydown(void *data,
74 fprintf(stderr, "Could not load 'lua_base' from sigtest.edj: %s\n", errmsg); 74 fprintf(stderr, "Could not load 'lua_base' from sigtest.edj: %s\n", errmsg);
75 } 75 }
76 else 76 else
77 fprintf(stdout, "Loaded Edje object bound to group 'lua_base' from" 77 printf("Loaded Edje object bound to group 'lua_base' from"
78 " file sigtest.edj with success!\n"); 78 " file sigtest.edj with success!\n");
79 return; 79 return;
80 } 80 }
@@ -82,19 +82,19 @@ _on_keydown(void *data,
82 { 82 {
83 Edje_Message_String *msg = malloc(sizeof(*msg)); 83 Edje_Message_String *msg = malloc(sizeof(*msg));
84 84
85 fprintf(stdout, "\n"); 85 printf("\n");
86 msg->str = strdup("C message text"); 86 msg->str = strdup("C message text");
87 edje_object_message_send(edje_obj, EDJE_MESSAGE_STRING, 2, msg); 87 edje_object_message_send(edje_obj, EDJE_MESSAGE_STRING, 2, msg);
88 free(msg); 88 free(msg);
89 fprintf(stdout, "C message sent\n"); 89 printf("C message sent\n");
90 return; 90 return;
91 } 91 }
92 else if (!strcmp(ev->key, "s")) 92 else if (!strcmp(ev->key, "s"))
93 { 93 {
94 fprintf(stdout, "\n"); 94 printf("\n");
95 edje_object_signal_emit(edje_obj, "C signal 1", "Csource"); 95 edje_object_signal_emit(edje_obj, "C signal 1", "Csource");
96 edje_object_signal_emit(edje_obj, "bubbles_lua:C signal 2", "Csource"); 96 edje_object_signal_emit(edje_obj, "bubbles_lua:C signal 2", "Csource");
97 fprintf(stdout, "C signal sent\n"); 97 printf("C signal sent\n");
98 return; 98 return;
99 } 99 }
100 else if (!strcmp(ev->key, "Escape")) 100 else if (!strcmp(ev->key, "Escape"))
@@ -102,7 +102,7 @@ _on_keydown(void *data,
102 else 102 else
103 { 103 {
104 printf("unhandled key: %s\n", ev->key); 104 printf("unhandled key: %s\n", ev->key);
105 fprintf(stdout, commands); 105 printf(commands);
106 } 106 }
107} 107}
108 108
@@ -111,18 +111,18 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
111{ 111{
112 int i; 112 int i;
113 113
114 fprintf(stdout, "C::message id=%d type=%d ", id, type); 114 printf("C::message id=%d type=%d ", id, type);
115 switch (type) 115 switch (type)
116 { 116 {
117 case EDJE_MESSAGE_NONE : 117 case EDJE_MESSAGE_NONE :
118 { 118 {
119 fprintf(stdout, " NONE"); 119 printf(" NONE");
120 break; 120 break;
121 } 121 }
122 122
123 case EDJE_MESSAGE_SIGNAL : 123 case EDJE_MESSAGE_SIGNAL :
124 { 124 {
125 fprintf(stdout, " SIGNAL "); 125 printf(" SIGNAL ");
126 break; 126 break;
127 } 127 }
128 128
@@ -130,7 +130,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
130 { 130 {
131 Edje_Message_String *mmsg = msg; 131 Edje_Message_String *mmsg = msg;
132 132
133 fprintf(stdout, " STRING %s", mmsg->str); 133 printf(" STRING %s", mmsg->str);
134 break; 134 break;
135 } 135 }
136 136
@@ -138,7 +138,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
138 { 138 {
139 Edje_Message_Int *mmsg = msg; 139 Edje_Message_Int *mmsg = msg;
140 140
141 fprintf(stdout, " INT %d", mmsg->val); 141 printf(" INT %d", mmsg->val);
142 break; 142 break;
143 } 143 }
144 144
@@ -146,7 +146,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
146 { 146 {
147 Edje_Message_Float *mmsg = msg; 147 Edje_Message_Float *mmsg = msg;
148 148
149 fprintf(stdout, " FLOAT %f", mmsg->val); 149 printf(" FLOAT %f", mmsg->val);
150 break; 150 break;
151 } 151 }
152 152
@@ -154,9 +154,9 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
154 { 154 {
155 Edje_Message_String_Set *mmsg = msg; 155 Edje_Message_String_Set *mmsg = msg;
156 156
157 fprintf(stdout, " STRING_SET -\n"); 157 printf(" STRING_SET -\n");
158 for (i = 0; i < mmsg->count; i++) 158 for (i = 0; i < mmsg->count; i++)
159 fprintf(stdout, " %s\n", mmsg->str[i]); 159 printf(" %s\n", mmsg->str[i]);
160 break; 160 break;
161 } 161 }
162 162
@@ -164,9 +164,9 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
164 { 164 {
165 Edje_Message_Int_Set *mmsg = msg; 165 Edje_Message_Int_Set *mmsg = msg;
166 166
167 fprintf(stdout, " INT_SET -\n"); 167 printf(" INT_SET -\n");
168 for (i = 0; i < mmsg->count; i++) 168 for (i = 0; i < mmsg->count; i++)
169 fprintf(stdout, " %d\n", mmsg->val[i]); 169 printf(" %d\n", mmsg->val[i]);
170 break; 170 break;
171 } 171 }
172 172
@@ -174,9 +174,9 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
174 { 174 {
175 Edje_Message_Float_Set *mmsg = msg; 175 Edje_Message_Float_Set *mmsg = msg;
176 176
177 fprintf(stdout, " FLOAT_SET -\n"); 177 printf(" FLOAT_SET -\n");
178 for (i = 0; i < mmsg->count; i++) 178 for (i = 0; i < mmsg->count; i++)
179 fprintf(stdout, " %f\n", mmsg->val[i]); 179 printf(" %f\n", mmsg->val[i]);
180 break; 180 break;
181 } 181 }
182 182
@@ -184,7 +184,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
184 { 184 {
185 Edje_Message_String_Int *mmsg = msg; 185 Edje_Message_String_Int *mmsg = msg;
186 186
187 fprintf(stdout, " STRING_INT %s %d", mmsg->str, mmsg->val); 187 printf(" STRING_INT %s %d", mmsg->str, mmsg->val);
188 break; 188 break;
189 } 189 }
190 190
@@ -192,7 +192,7 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
192 { 192 {
193 Edje_Message_String_Float *mmsg = msg; 193 Edje_Message_String_Float *mmsg = msg;
194 194
195 fprintf(stdout, " STRING_FLOAT %s %f", mmsg->str, mmsg->val); 195 printf(" STRING_FLOAT %s %f", mmsg->str, mmsg->val);
196 break; 196 break;
197 } 197 }
198 198
@@ -200,9 +200,9 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
200 { 200 {
201 Edje_Message_String_Int_Set *mmsg = msg; 201 Edje_Message_String_Int_Set *mmsg = msg;
202 202
203 fprintf(stdout, " STRING_INT_SET %s -\n", mmsg->str); 203 printf(" STRING_INT_SET %s -\n", mmsg->str);
204 for (i = 0; i < mmsg->count; i++) 204 for (i = 0; i < mmsg->count; i++)
205 fprintf(stdout, " %d\n", mmsg->val[i]); 205 printf(" %d\n", mmsg->val[i]);
206 break; 206 break;
207 } 207 }
208 208
@@ -210,19 +210,19 @@ _on_message(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, Edje_Message_T
210 { 210 {
211 Edje_Message_String_Float_Set *mmsg = msg; 211 Edje_Message_String_Float_Set *mmsg = msg;
212 212
213 fprintf(stdout, " STRING_FLOAT_SET %s -\n", mmsg->str); 213 printf(" STRING_FLOAT_SET %s -\n", mmsg->str);
214 for (i = 0; i < mmsg->count; i++) 214 for (i = 0; i < mmsg->count; i++)
215 fprintf(stdout, " %f\n", mmsg->val[i]); 215 printf(" %f\n", mmsg->val[i]);
216 break; 216 break;
217 } 217 }
218 } 218 }
219 fprintf(stdout, "\n"); 219 printf("\n");
220} 220}
221 221
222static void 222static void
223_on_signal(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *emission, const char *source) 223_on_signal(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, const char *emission, const char *source)
224{ 224{
225 fprintf(stdout, "C::signal sig=|%s| src=|%s|\n", emission, source); 225 printf("C::signal sig=|%s| src=|%s|\n", emission, source);
226} 226}
227 227
228static void 228static void
@@ -283,7 +283,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
283 goto shutdown_edje; 283 goto shutdown_edje;
284 } 284 }
285 285
286 fprintf(stdout, "Loaded Edje object bound to group 'lua_base' from" 286 printf("Loaded Edje object bound to group 'lua_base' from"
287 " file sigtest.edj with success!\n"); 287 " file sigtest.edj with success!\n");
288 288
289 evas_object_move(edje_obj, 20, 20); 289 evas_object_move(edje_obj, 20, 20);
@@ -305,7 +305,7 @@ main(int argc EINA_UNUSED, char *argv[] EINA_UNUSED)
305 evas_object_move(border, 20 - 2, 20 - 2); 305 evas_object_move(border, 20 - 2, 20 - 2);
306 evas_object_show(border); 306 evas_object_show(border);
307 307
308 fprintf(stdout, commands); 308 printf(commands);
309 309
310 ecore_evas_show(ee); 310 ecore_evas_show(ee);
311 311
diff --git a/src/examples/eina/eina_tiler_02.c b/src/examples/eina/eina_tiler_02.c
index 2e80aaa..8266807 100644
--- a/src/examples/eina/eina_tiler_02.c
+++ b/src/examples/eina/eina_tiler_02.c
@@ -129,7 +129,7 @@ void tiler_calc()
129 itr = eina_tiler_iterator_new(tiler); 129 itr = eina_tiler_iterator_new(tiler);
130 EINA_ITERATOR_FOREACH(itr, rect) 130 EINA_ITERATOR_FOREACH(itr, rect)
131 { 131 {
132 fprintf(stdout, "Result Rect [%d] (%d, %d) (%d x %d)\n", i++, rect->x, rect->y, rect->w, rect->h); 132 printf("Result Rect [%d] (%d, %d) (%d x %d)\n", i++, rect->x, rect->y, rect->w, rect->h);
133 133
134 o = evas_object_rectangle_add(evas); 134 o = evas_object_rectangle_add(evas);
135 evas_object_color_set(o, 0, 255, 0, 255); 135 evas_object_color_set(o, 0, 255, 0, 255);
@@ -254,7 +254,7 @@ _on_key_down(void *data,
254 /* change tiler tile size */ 254 /* change tiler tile size */
255 tile_idx ++; 255 tile_idx ++;
256 tile_idx %= tile_count; 256 tile_idx %= tile_count;
257 fprintf(stdout, "Tiler Size : %d\n", tilesize[tile_idx]); 257 printf("Tiler Size : %d\n", tilesize[tile_idx]);
258 258
259 rect_update(); 259 rect_update();
260 return; 260 return;
@@ -269,7 +269,7 @@ _on_key_down(void *data,
269 } 269 }
270 else 270 else
271 { 271 {
272 fprintf(stdout, "Key %s not supported.\nCommands:%s", ev->key, commands); 272 printf("Key %s not supported.\nCommands:%s", ev->key, commands);
273 return; 273 return;
274 } 274 }
275 275
@@ -285,7 +285,7 @@ main(int argc, char *argv[])
285 Eina_Rectangle *rect; 285 Eina_Rectangle *rect;
286 Eina_Iterator *itr; 286 Eina_Iterator *itr;
287 287
288 fprintf(stdout, "Usage.\nCommands:%s", commands); 288 printf("Usage.\nCommands:%s", commands);
289 289
290 ecore_evas_init(); 290 ecore_evas_init();
291 ecore_init(); 291 ecore_init();
diff --git a/src/examples/eio/eio_file_ls.c b/src/examples/eio/eio_file_ls.c
index 93e6c7a..431f500 100644
--- a/src/examples/eio/eio_file_ls.c
+++ b/src/examples/eio/eio_file_ls.c
@@ -24,7 +24,7 @@ _main_cb(void *data, Eio_File *handler EINA_UNUSED, const char *file)
24{ 24{
25 int *number_of_listed_files = (int *)data; 25 int *number_of_listed_files = (int *)data;
26 26
27 fprintf(stdout, "Processing file:%s\n", file); 27 printf("Processing file:%s\n", file);
28 28
29 (*number_of_listed_files)++; 29 (*number_of_listed_files)++;
30} 30}
@@ -34,7 +34,7 @@ _done_cb(void *data, Eio_File *handler EINA_UNUSED)
34{ 34{
35 int *number_of_listed_files = (int *)data; 35 int *number_of_listed_files = (int *)data;
36 36
37 fprintf(stdout, "Number of listed files:%d\n" \ 37 printf("Number of listed files:%d\n" \
38 "ls operation is done, quitting.\n", *number_of_listed_files); 38 "ls operation is done, quitting.\n", *number_of_listed_files);
39 39
40 ecore_main_loop_quit(); 40 ecore_main_loop_quit();
diff --git a/src/examples/elementary/flipselector_example.c b/src/examples/elementary/flipselector_example.c
index 1feeaaa..5c5a8d6 100644
--- a/src/examples/elementary/flipselector_example.c
+++ b/src/examples/elementary/flipselector_example.c
@@ -49,7 +49,7 @@ _underflow_cb(void *data EINA_UNUSED,
49 Evas_Object *obj EINA_UNUSED, 49 Evas_Object *obj EINA_UNUSED,
50 void *event_info EINA_UNUSED) 50 void *event_info EINA_UNUSED)
51{ 51{
52 fprintf(stdout, "Underflow!\n"); 52 printf("Underflow!\n");
53} 53}
54 54
55void /* overflow callback */ 55void /* overflow callback */
@@ -57,7 +57,7 @@ _overflow_cb(void *data EINA_UNUSED,
57 Evas_Object *obj EINA_UNUSED, 57 Evas_Object *obj EINA_UNUSED,
58 void *event_info EINA_UNUSED) 58 void *event_info EINA_UNUSED)
59{ 59{
60 fprintf(stdout, "Overflow!\n"); 60 printf("Overflow!\n");
61} 61}
62 62
63static Eina_Bool 63static Eina_Bool
@@ -74,19 +74,19 @@ _on_keydown(void *data,
74 74
75 if (strcmp(ev->keyname, "h") == 0) /* print help */ 75 if (strcmp(ev->keyname, "h") == 0) /* print help */
76 { 76 {
77 fprintf(stdout, "%s", commands); 77 printf("%s", commands);
78 } 78 }
79 else if (strcmp(ev->keyname, "n") == 0) /* flip to next item */ 79 else if (strcmp(ev->keyname, "n") == 0) /* flip to next item */
80 { 80 {
81 elm_flipselector_flip_next(fs); 81 elm_flipselector_flip_next(fs);
82 82
83 fprintf(stdout, "Flipping to next item\n"); 83 printf("Flipping to next item\n");
84 } 84 }
85 else if (strcmp(ev->keyname, "p") == 0) /* flip to previous item */ 85 else if (strcmp(ev->keyname, "p") == 0) /* flip to previous item */
86 { 86 {
87 elm_flipselector_flip_prev(fs); 87 elm_flipselector_flip_prev(fs);
88 88
89 fprintf(stdout, "Flipping to previous item\n"); 89 printf("Flipping to previous item\n");
90 } 90 }
91 else if (strcmp(ev->keyname, "f") == 0) /* print first item's label */ 91 else if (strcmp(ev->keyname, "f") == 0) /* print first item's label */
92 { 92 {
@@ -94,7 +94,7 @@ _on_keydown(void *data,
94 94
95 it = elm_flipselector_first_item_get(fs); 95 it = elm_flipselector_first_item_get(fs);
96 96
97 fprintf(stdout, "Flip selector's first item is: %s\n", it ? 97 printf("Flip selector's first item is: %s\n", it ?
98 elm_object_item_text_get(it) : "none"); 98 elm_object_item_text_get(it) : "none");
99 } 99 }
100 else if (strcmp(ev->keyname, "l") == 0) /* print last item's label */ 100 else if (strcmp(ev->keyname, "l") == 0) /* print last item's label */
@@ -103,7 +103,7 @@ _on_keydown(void *data,
103 103
104 it = elm_flipselector_last_item_get(fs); 104 it = elm_flipselector_last_item_get(fs);
105 105
106 fprintf(stdout, "Flip selector's last item is: %s\n", it ? 106 printf("Flip selector's last item is: %s\n", it ?
107 elm_object_item_text_get(it) : "none"); 107 elm_object_item_text_get(it) : "none");
108 } 108 }
109 else if (strcmp(ev->keyname, "s") == 0) /* print selected item's label */ 109 else if (strcmp(ev->keyname, "s") == 0) /* print selected item's label */
@@ -112,7 +112,7 @@ _on_keydown(void *data,
112 112
113 it = elm_flipselector_selected_item_get(fs); 113 it = elm_flipselector_selected_item_get(fs);
114 114
115 fprintf(stdout, "Flip selector's selected item is: %s\n", it ? 115 printf("Flip selector's selected item is: %s\n", it ?
116 elm_object_item_text_get(it) : "none"); 116 elm_object_item_text_get(it) : "none");
117 } 117 }
118 else 118 else
@@ -174,7 +174,7 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
174 174
175 evas_object_show(win); 175 evas_object_show(win);
176 176
177 fprintf(stdout, "%s", commands); 177 printf("%s", commands);
178 elm_run(); 178 elm_run();
179 179
180 return 0; 180 return 0;
diff --git a/src/examples/elementary/general_funcs_example.c b/src/examples/elementary/general_funcs_example.c
index fbc7564..926ccbb 100644
--- a/src/examples/elementary/general_funcs_example.c
+++ b/src/examples/elementary/general_funcs_example.c
@@ -75,10 +75,10 @@ elm_main(int argc EINA_UNUSED,
75 elm_app_compile_lib_dir_set(LIB_DIR); 75 elm_app_compile_lib_dir_set(LIB_DIR);
76 elm_app_info_set(elm_main, "elementary", "images/logo.png"); 76 elm_app_info_set(elm_main, "elementary", "images/logo.png");
77 77
78 fprintf(stdout, "prefix was set to: %s\n", elm_app_prefix_dir_get()); 78 printf("prefix was set to: %s\n", elm_app_prefix_dir_get());
79 fprintf(stdout, "data directory is: %s\n", elm_app_data_dir_get()); 79 printf("data directory is: %s\n", elm_app_data_dir_get());
80 fprintf(stdout, "library directory is: %s\n", elm_app_lib_dir_get()); 80 printf("library directory is: %s\n", elm_app_lib_dir_get());
81 fprintf(stdout, "locale directory is: %s\n", elm_app_locale_dir_get()); 81 printf("locale directory is: %s\n", elm_app_locale_dir_get());
82 82
83 win = elm_win_util_standard_add("top-level-funcs-example", 83 win = elm_win_util_standard_add("top-level-funcs-example",
84 "Elementary Top-level Functions Example"); 84 "Elementary Top-level Functions Example");
@@ -105,7 +105,7 @@ elm_main(int argc EINA_UNUSED,
105 d.btn = elm_button_add(win); 105 d.btn = elm_button_add(win);
106 elm_object_text_set(d.btn, "Click me"); 106 elm_object_text_set(d.btn, "Click me");
107 elm_object_content_set(frame, d.btn); 107 elm_object_content_set(frame, d.btn);
108 fprintf(stdout, "Elementary's finger size is set to %d pixels\n.", 108 printf("Elementary's finger size is set to %d pixels\n.",
109 elm_config_finger_size_get()); 109 elm_config_finger_size_get());
110 evas_object_show(d.btn); 110 evas_object_show(d.btn);
111 111
diff --git a/src/examples/elementary/gengrid_example.c b/src/examples/elementary/gengrid_example.c
index 410b6da..9c786b8 100644
--- a/src/examples/elementary/gengrid_example.c
+++ b/src/examples/elementary/gengrid_example.c
@@ -57,7 +57,7 @@ _always_select_change(void *data,
57 else 57 else
58 elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_DEFAULT); 58 elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_DEFAULT);
59 59
60 fprintf(stdout, "\"Always select\" mode for gengrid items is now %s\n", 60 printf("\"Always select\" mode for gengrid items is now %s\n",
61 always ? "on" : "off"); 61 always ? "on" : "off");
62} 62}
63 63
@@ -72,7 +72,7 @@ _bouncing_change(void *data,
72 72
73 elm_scroller_bounce_set(grid, bounce, bounce); 73 elm_scroller_bounce_set(grid, bounce, bounce);
74 74
75 fprintf(stdout, "Bouncing effect for gengrid is now %s\n", 75 printf("Bouncing effect for gengrid is now %s\n",
76 bounce ? "on" : "off"); 76 bounce ? "on" : "off");
77} 77}
78 78
@@ -87,7 +87,7 @@ _multi_change(void *data,
87 87
88 elm_gengrid_multi_select_set(grid, multi); 88 elm_gengrid_multi_select_set(grid, multi);
89 89
90 fprintf(stdout, "Multi-selection for gengrid is now %s\n", 90 printf("Multi-selection for gengrid is now %s\n",
91 multi ? "on" : "off"); 91 multi ? "on" : "off");
92 92
93 elm_object_disabled_set(before_bt, multi); 93 elm_object_disabled_set(before_bt, multi);
@@ -116,7 +116,7 @@ _no_sel_change(void *data,
116 else 116 else
117 elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_DEFAULT); 117 elm_gengrid_select_mode_set(grid, ELM_OBJECT_SELECT_MODE_DEFAULT);
118 118
119 fprintf(stdout, "Selection for gengrid items is now %s\n", 119 printf("Selection for gengrid items is now %s\n",
120 no_sel ? "disabled" : "enabled"); 120 no_sel ? "disabled" : "enabled");
121} 121}
122 122
@@ -131,7 +131,7 @@ _grid_sel(void *data,
131 131
132 elm_gengrid_item_pos_get(event_info, &x, &y); 132 elm_gengrid_item_pos_get(event_info, &x, &y);
133 133
134 fprintf(stdout, "Item [%p], with data [%p], path %s, at position (%d, %d)," 134 printf("Item [%p], with data [%p], path %s, at position (%d, %d),"
135 " has been selected\n", event_info, data, it->path, x, y); 135 " has been selected\n", event_info, data, it->path, x, y);
136} 136}
137 137
@@ -216,7 +216,7 @@ _clear_cb(void *data,
216{ 216{
217 elm_gengrid_clear(data); 217 elm_gengrid_clear(data);
218 218
219 fprintf(stdout, "Clearing the grid!\n"); 219 printf("Clearing the grid!\n");
220} 220}
221 221
222/* bring in 1st item */ 222/* bring in 1st item */
@@ -277,7 +277,7 @@ _double_click(void *data EINA_UNUSED,
277 Evas_Object *obj EINA_UNUSED, 277 Evas_Object *obj EINA_UNUSED,
278 void *event_info) 278 void *event_info)
279{ 279{
280 fprintf(stdout, "Double click on item with handle %p\n", event_info); 280 printf("Double click on item with handle %p\n", event_info);
281} 281}
282 282
283/* item long press callback */ 283/* item long press callback */
@@ -286,7 +286,7 @@ _long_pressed(void *data EINA_UNUSED,
286 Evas_Object *obj EINA_UNUSED, 286 Evas_Object *obj EINA_UNUSED,
287 void *event_info) 287 void *event_info)
288{ 288{
289 fprintf(stdout, "Long press on item with handle %p\n", event_info); 289 printf("Long press on item with handle %p\n", event_info);
290} 290}
291 291
292/* label fetching callback */ 292/* label fetching callback */
@@ -364,7 +364,7 @@ _grid_scroll_stopped_cb(void *data EINA_UNUSED,
364{ 364{
365 int h_pagenumber = 0, v_pagenumber = 0; 365 int h_pagenumber = 0, v_pagenumber = 0;
366 elm_scroller_current_page_get(obj, &h_pagenumber, &v_pagenumber); 366 elm_scroller_current_page_get(obj, &h_pagenumber, &v_pagenumber);
367 fprintf(stdout, "Grid current horiz page is %d, vert page is %d\n", 367 printf("Grid current horiz page is %d, vert page is %d\n",
368 h_pagenumber, v_pagenumber); 368 h_pagenumber, v_pagenumber);
369} 369}
370 370
@@ -379,7 +379,7 @@ _h_align_change_cb(void *data,
379 379
380 elm_gengrid_align_get(data, NULL, &v_align); 380 elm_gengrid_align_get(data, NULL, &v_align);
381 381
382 fprintf(stdout, "Setting horizontal alignment to %f\n", val); 382 printf("Setting horizontal alignment to %f\n", val);
383 elm_gengrid_align_set(data, val, v_align); 383 elm_gengrid_align_set(data, val, v_align);
384} 384}
385 385
@@ -393,7 +393,7 @@ _v_align_change_cb(void *data,
393 393
394 elm_gengrid_align_get(data, &h_align, NULL); 394 elm_gengrid_align_get(data, &h_align, NULL);
395 395
396 fprintf(stdout, "Setting vertical alignment to %f\n", val); 396 printf("Setting vertical alignment to %f\n", val);
397 elm_gengrid_align_set(data, h_align, val); 397 elm_gengrid_align_set(data, h_align, val);
398} 398}
399 399
@@ -407,7 +407,7 @@ _page_change_cb(void *data,
407 407
408 elm_scroller_page_relative_set(data, val, val); 408 elm_scroller_page_relative_set(data, val, val);
409 409
410 fprintf(stdout, "Setting grid page's relative size to %f\n", val); 410 printf("Setting grid page's relative size to %f\n", val);
411} 411}
412 412
413EAPI_MAIN int 413EAPI_MAIN int
diff --git a/src/examples/elementary/index_example_01.c b/src/examples/elementary/index_example_01.c
index 93f1ee3..a3f8899 100644
--- a/src/examples/elementary/index_example_01.c
+++ b/src/examples/elementary/index_example_01.c
@@ -20,7 +20,7 @@ static const char *dict[] = \
20static void 20static void
21_index_item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) 21_index_item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
22{ 22{
23 fprintf(stdout, "Deleting index node (%s). Comparing index " 23 printf("Deleting index node (%s). Comparing index "
24 "item data reported via callback with the one returned by " 24 "item data reported via callback with the one returned by "
25 "index's API on items: %s.\n", 25 "index's API on items: %s.\n",
26 elm_index_item_letter_get(event_info), 26 elm_index_item_letter_get(event_info),
@@ -36,7 +36,7 @@ _item_del(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED
36 36
37 if (!it) return; 37 if (!it) return;
38 38
39 fprintf(stdout, "Deleting last selected index item, which had letter" 39 printf("Deleting last selected index item, which had letter"
40 " %s (pointing to %p)\n", elm_index_item_letter_get(it), 40 " %s (pointing to %p)\n", elm_index_item_letter_get(it),
41 elm_object_item_data_get(it)); 41 elm_object_item_data_get(it));
42 42
@@ -57,7 +57,7 @@ _active_set(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUS
57 Eina_Bool disabled = elm_index_autohide_disabled_get(data); 57 Eina_Bool disabled = elm_index_autohide_disabled_get(data);
58 elm_index_autohide_disabled_set(data, !disabled); 58 elm_index_autohide_disabled_set(data, !disabled);
59 59
60 fprintf(stdout, "Toggling index programmatically to %s.\n", 60 printf("Toggling index programmatically to %s.\n",
61 !disabled ? "On" : "Off"); 61 !disabled ? "On" : "Off");
62} 62}
63 63
@@ -73,7 +73,7 @@ _index_selected(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
73{ 73{
74 Elm_Object_Item *lit = event_info; 74 Elm_Object_Item *lit = event_info;
75 75
76 fprintf(stdout, "New index item selected. Comparing item reported" 76 printf("New index item selected. Comparing item reported"
77 " via callback with the selection returned by the API: " 77 " via callback with the selection returned by the API: "
78 "%s.\n", lit == elm_index_selected_item_get(obj, 0) ? "OK" : 78 "%s.\n", lit == elm_index_selected_item_get(obj, 0) ? "OK" :
79 "FAIL, something went wrong"); 79 "FAIL, something went wrong");
diff --git a/src/examples/elementary/performance/camera_light.c b/src/examples/elementary/performance/camera_light.c
index 45992ba..3c8f93b 100644
--- a/src/examples/elementary/performance/camera_light.c
+++ b/src/examples/elementary/performance/camera_light.c
@@ -8,7 +8,7 @@ Eina_Bool _alloc_memory(Axis_Key **ckey, Panel_Struct **pobj, Axis_Key **lkey)
8 8
9 if (!(*ckey) || !(*pobj) || !(*lkey)) 9 if (!(*ckey) || !(*pobj) || !(*lkey))
10 { 10 {
11 fprintf(stdout, "Not enough memory - at %s line %d\n", __FILE__, __LINE__); 11 printf("Not enough memory - at %s line %d\n", __FILE__, __LINE__);
12 free(*ckey); 12 free(*ckey);
13 free(*pobj); 13 free(*pobj);
14 free(*lkey); 14 free(*lkey);
@@ -34,7 +34,7 @@ init_panel_camera_light(Evas_Object *win, Eo *camera_node, Eo *light_node, doubl
34 34
35 if (ELM_WIN_UNKNOWN == elm_win_type_get(win)) 35 if (ELM_WIN_UNKNOWN == elm_win_type_get(win))
36 { 36 {
37 fprintf(stdout, "Not appropriate parent object - at %s line %d\n", __FILE__, __LINE__); 37 printf("Not appropriate parent object - at %s line %d\n", __FILE__, __LINE__);
38 return NULL; 38 return NULL;
39 } 39 }
40 40
diff --git a/src/examples/elementary/performance/graphical.c b/src/examples/elementary/performance/graphical.c
index 3aa7e4e..420be6e 100644
--- a/src/examples/elementary/performance/graphical.c
+++ b/src/examples/elementary/performance/graphical.c
@@ -513,7 +513,7 @@ _xml_attr_data(void *data, const char *key, const char *value)
513 format[i] = a[i + 1]; 513 format[i] = a[i + 1];
514 if (strcmp(format, "md2") && strcmp(format, "obj") && strcmp(format, "ply")) 514 if (strcmp(format, "md2") && strcmp(format, "obj") && strcmp(format, "ply"))
515 { 515 {
516 fprintf(stdout, "\nUnsupported fromat file\n"); 516 printf("\nUnsupported fromat file\n");
517 globalGraphical.model_path = NULL; 517 globalGraphical.model_path = NULL;
518 } 518 }
519 free(format); 519 free(format);
@@ -595,7 +595,7 @@ static void _init_graphical()
595 globalGraphical.model_path = NULL; 595 globalGraphical.model_path = NULL;
596 596
597 if (!config) 597 if (!config)
598 fprintf(stdout, "Could not open initial_config.xml, count=4, speed=10, precision=100, perspective=120"); 598 printf("Could not open initial_config.xml, count=4, speed=10, precision=100, perspective=120");
599 else 599 else
600 { 600 {
601 buffer = (char*)(eina_file_map_all(config, EINA_FILE_RANDOM)); 601 buffer = (char*)(eina_file_map_all(config, EINA_FILE_RANDOM));
diff --git a/src/examples/elementary/performance/performance.c b/src/examples/elementary/performance/performance.c
index 1b1091b..0ed4c5f 100644
--- a/src/examples/elementary/performance/performance.c
+++ b/src/examples/elementary/performance/performance.c
@@ -72,7 +72,7 @@ void _value_int_to_char(char *buf, int value, const char *description)
72static Eina_Bool 72static Eina_Bool
73_timer_update(void *data) 73_timer_update(void *data)
74{ 74{
75 fprintf(stdout, " frame rate = %f fps\n", fps_frames / 10.0); 75 printf(" frame rate = %f fps\n", fps_frames / 10.0);
76 fps_frames = 0; 76 fps_frames = 0;
77 return EINA_TRUE; 77 return EINA_TRUE;
78} 78}
@@ -144,7 +144,7 @@ _on_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
144 diff_sec = ((float)time) / CLOCKS_PER_SEC / 10; 144 diff_sec = ((float)time) / CLOCKS_PER_SEC / 10;
145 if (pick) 145 if (pick)
146 { 146 {
147 fprintf(stdout, "Boom! Color pick time expended for pick: %2.7f \n", diff_sec); 147 printf("Boom! Color pick time expended for pick: %2.7f \n", diff_sec);
148 if (n != globalGraphical.mesh_nodebox) 148 if (n != globalGraphical.mesh_nodebox)
149 evas_canvas3d_node_scale_set(n, 0.5, 0.5, 0.5); 149 evas_canvas3d_node_scale_set(n, 0.5, 0.5, 0.5);
150 } 150 }
@@ -157,7 +157,7 @@ _on_mouse_down(void *data, Evas *e EINA_UNUSED, Evas_Object *obj,
157 diff_sec = ((float)time) / CLOCKS_PER_SEC / 10; 157 diff_sec = ((float)time) / CLOCKS_PER_SEC / 10;
158 if (pick) 158 if (pick)
159 { 159 {
160 fprintf(stdout, "Boom! Geometry pick time expended for pick: %2.7f, TexCoord (%f, %f)\n", diff_sec, s, t); 160 printf("Boom! Geometry pick time expended for pick: %2.7f, TexCoord (%f, %f)\n", diff_sec, s, t);
161 if (n != globalGraphical.mesh_nodebox) 161 if (n != globalGraphical.mesh_nodebox)
162 evas_canvas3d_node_scale_set(n, 0.5, 0.5, 0.5); 162 evas_canvas3d_node_scale_set(n, 0.5, 0.5, 0.5);
163 } 163 }
@@ -545,7 +545,7 @@ _load_mesh(void *data EINA_UNUSED, Evas_Object *obj, void *event_info)
545 } 545 }
546 else 546 else
547 { 547 {
548 fprintf(stdout, "\nUnsupported fromat file\n"); 548 printf("\nUnsupported fromat file\n");
549 globalGraphical.model_path = NULL; 549 globalGraphical.model_path = NULL;
550 elm_object_text_set(obj, "load"); 550 elm_object_text_set(obj, "load");
551 } 551 }
diff --git a/src/examples/elementary/slideshow_example.c b/src/examples/elementary/slideshow_example.c
index 6f51674..9f3c300 100644
--- a/src/examples/elementary/slideshow_example.c
+++ b/src/examples/elementary/slideshow_example.c
@@ -174,9 +174,9 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
174 slide_last = slide_it; 174 slide_last = slide_it;
175 175
176 list = elm_slideshow_items_get(slideshow); 176 list = elm_slideshow_items_get(slideshow);
177 fprintf(stdout, "List of items in the slideshow:\n"); 177 printf("List of items in the slideshow:\n");
178 EINA_LIST_FOREACH(list, l, slide_it) 178 EINA_LIST_FOREACH(list, l, slide_it)
179 fprintf(stdout, "\t%s\n", 179 printf("\t%s\n",
180 (const char *)elm_object_item_data_get(slide_it)); 180 (const char *)elm_object_item_data_get(slide_it));
181 181
182 notify = elm_notify_add(win); 182 notify = elm_notify_add(win);