summaryrefslogtreecommitdiff
path: root/src/examples/evas
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-28 11:17:51 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-28 11:17:51 +0100
commit188874e289ffb83fd6344d7efe2680c5ad365fd3 (patch)
tree1702d7b5e03e8b939a4fb8cf020bc36b4b72adc4 /src/examples/evas
parent5fd272d0381f5cda6b8b992e14072f884965a415 (diff)
examples - use putenv, not setenv for porting reasons
putenv is more portable than setenv, so usethat instead. this nukes warnings on windows as evil is meant to go private and you thus have no setenv anymore.
Diffstat (limited to 'src/examples/evas')
-rw-r--r--src/examples/evas/evas-3d-blending.c2
-rw-r--r--src/examples/evas/evas-3d-cube.c2
-rw-r--r--src/examples/evas/evas-3d-cube2.c2
-rw-r--r--src/examples/evas/evas-3d-eet.c2
-rw-r--r--src/examples/evas/evas-3d-fog.c2
-rw-r--r--src/examples/evas/evas-3d-frustum.c2
-rw-r--r--src/examples/evas/evas-3d-hull.c2
-rw-r--r--src/examples/evas/evas-3d-md2.c2
-rw-r--r--src/examples/evas/evas-3d-mmap-set.c2
-rw-r--r--src/examples/evas/evas-3d-obj.c2
-rw-r--r--src/examples/evas/evas-3d-parallax-occlusion.c2
-rw-r--r--src/examples/evas/evas-3d-pick.c2
-rw-r--r--src/examples/evas/evas-3d-ply.c2
-rw-r--r--src/examples/evas/evas-3d-proxy.c2
-rw-r--r--src/examples/evas/evas-3d-shadows.c2
-rw-r--r--src/examples/evas/evas-3d-static-lod.c2
-rw-r--r--src/examples/evas/evas-vg-batman.c2
-rw-r--r--src/examples/evas/evas-vg-json.c2
18 files changed, 18 insertions, 18 deletions
diff --git a/src/examples/evas/evas-3d-blending.c b/src/examples/evas/evas-3d-blending.c
index 47271ff460..066961af72 100644
--- a/src/examples/evas/evas-3d-blending.c
+++ b/src/examples/evas/evas-3d-blending.c
@@ -266,7 +266,7 @@ main(void)
266 266
267 if (!ecore_evas_init()) return 0; 267 if (!ecore_evas_init()) return 0;
268 268
269 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 269 putenv("ECORE_EVAS_ENGINE=opengl_x11");
270 ecore_evas = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 270 ecore_evas = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
271 271
272 if (!ecore_evas) return 0; 272 if (!ecore_evas) return 0;
diff --git a/src/examples/evas/evas-3d-cube.c b/src/examples/evas/evas-3d-cube.c
index 3fba86a147..50c3034342 100644
--- a/src/examples/evas/evas-3d-cube.c
+++ b/src/examples/evas/evas-3d-cube.c
@@ -218,7 +218,7 @@ int
218main(void) 218main(void)
219{ 219{
220 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 220 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
221 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 221 putenv("ECORE_EVAS_ENGINE=opengl_x11");
222 222
223 Scene_Data data; 223 Scene_Data data;
224 224
diff --git a/src/examples/evas/evas-3d-cube2.c b/src/examples/evas/evas-3d-cube2.c
index 493cea98ce..026b90a5a0 100644
--- a/src/examples/evas/evas-3d-cube2.c
+++ b/src/examples/evas/evas-3d-cube2.c
@@ -213,7 +213,7 @@ int
213main(void) 213main(void)
214{ 214{
215 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 215 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
216 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 216 putenv("ECORE_EVAS_ENGINE=opengl_x11");
217 217
218 Scene_Data data; 218 Scene_Data data;
219 219
diff --git a/src/examples/evas/evas-3d-eet.c b/src/examples/evas/evas-3d-eet.c
index 5ecd79e350..0272de7db2 100644
--- a/src/examples/evas/evas-3d-eet.c
+++ b/src/examples/evas/evas-3d-eet.c
@@ -98,7 +98,7 @@ int
98main(void) 98main(void)
99{ 99{
100 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 100 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
101 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 101 putenv("ECORE_EVAS_ENGINE=opengl_x11");
102 102
103 if (!ecore_evas_init()) return 0; 103 if (!ecore_evas_init()) return 0;
104 104
diff --git a/src/examples/evas/evas-3d-fog.c b/src/examples/evas/evas-3d-fog.c
index 8bcd51b94e..ec27d632c2 100644
--- a/src/examples/evas/evas-3d-fog.c
+++ b/src/examples/evas/evas-3d-fog.c
@@ -190,7 +190,7 @@ int
190main(void) 190main(void)
191{ 191{
192 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 192 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
193 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 193 putenv("ECORE_EVAS_ENGINE=opengl_x11");
194 Scene_Data data; 194 Scene_Data data;
195 Ecore_Animator *anim; 195 Ecore_Animator *anim;
196 196
diff --git a/src/examples/evas/evas-3d-frustum.c b/src/examples/evas/evas-3d-frustum.c
index 6aacecc825..2d693fc83a 100644
--- a/src/examples/evas/evas-3d-frustum.c
+++ b/src/examples/evas/evas-3d-frustum.c
@@ -405,7 +405,7 @@ main(void)
405 405
406 if (!ecore_evas_init()) return 0; 406 if (!ecore_evas_init()) return 0;
407 407
408 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 408 putenv("ECORE_EVAS_ENGINE=opengl_x11");
409 ecore_evas = ecore_evas_new("opengl_x11", 0, 0, WIDTH, HEIGHT, NULL); 409 ecore_evas = ecore_evas_new("opengl_x11", 0, 0, WIDTH, HEIGHT, NULL);
410 410
411 if (!ecore_evas) return 0; 411 if (!ecore_evas) return 0;
diff --git a/src/examples/evas/evas-3d-hull.c b/src/examples/evas/evas-3d-hull.c
index 6ca12837dc..a5c39752d2 100644
--- a/src/examples/evas/evas-3d-hull.c
+++ b/src/examples/evas/evas-3d-hull.c
@@ -412,7 +412,7 @@ main(void)
412 Scene_Data data; 412 Scene_Data data;
413 413
414 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 414 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
415 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 415 putenv("ECORE_EVAS_ENGINE=opengl_x11");
416 416
417 if (!ecore_evas_init()) return 0; 417 if (!ecore_evas_init()) return 0;
418 418
diff --git a/src/examples/evas/evas-3d-md2.c b/src/examples/evas/evas-3d-md2.c
index 4c93b54ec0..a4edb28833 100644
--- a/src/examples/evas/evas-3d-md2.c
+++ b/src/examples/evas/evas-3d-md2.c
@@ -75,7 +75,7 @@ int
75main(void) 75main(void)
76{ 76{
77 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 77 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
78 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 78 putenv("ECORE_EVAS_ENGINE=opengl_x11");
79 79
80 if (!ecore_evas_init()) return 0; 80 if (!ecore_evas_init()) return 0;
81 81
diff --git a/src/examples/evas/evas-3d-mmap-set.c b/src/examples/evas/evas-3d-mmap-set.c
index df8bdbdd4d..7da515aa61 100644
--- a/src/examples/evas/evas-3d-mmap-set.c
+++ b/src/examples/evas/evas-3d-mmap-set.c
@@ -165,7 +165,7 @@ main(void)
165 Eina_File *obj_file, *ply_file, *eet_file, *md2_file; 165 Eina_File *obj_file, *ply_file, *eet_file, *md2_file;
166 166
167 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 167 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
168 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 168 putenv("ECORE_EVAS_ENGINE=opengl_x11");
169 169
170 if (!ecore_evas_init()) return 0; 170 if (!ecore_evas_init()) return 0;
171 171
diff --git a/src/examples/evas/evas-3d-obj.c b/src/examples/evas/evas-3d-obj.c
index 6bf668ba09..1034b6befc 100644
--- a/src/examples/evas/evas-3d-obj.c
+++ b/src/examples/evas/evas-3d-obj.c
@@ -143,7 +143,7 @@ main(void)
143 char buffer[PATH_MAX], full_file_path[PATH_MAX + 4]; 143 char buffer[PATH_MAX], full_file_path[PATH_MAX + 4];
144 144
145 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 145 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
146 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 146 putenv("ECORE_EVAS_ENGINE=opengl_x11");
147 147
148 if (!ecore_evas_init()) return 0; 148 if (!ecore_evas_init()) return 0;
149 149
diff --git a/src/examples/evas/evas-3d-parallax-occlusion.c b/src/examples/evas/evas-3d-parallax-occlusion.c
index 65d1880559..e3a69a606b 100644
--- a/src/examples/evas/evas-3d-parallax-occlusion.c
+++ b/src/examples/evas/evas-3d-parallax-occlusion.c
@@ -217,7 +217,7 @@ int
217main(void) 217main(void)
218{ 218{
219 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 219 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
220 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 220 putenv("ECORE_EVAS_ENGINE=opengl_x11");
221 221
222 Scene_Data data; 222 Scene_Data data;
223 223
diff --git a/src/examples/evas/evas-3d-pick.c b/src/examples/evas/evas-3d-pick.c
index 5ed8067dc3..600220f955 100644
--- a/src/examples/evas/evas-3d-pick.c
+++ b/src/examples/evas/evas-3d-pick.c
@@ -101,7 +101,7 @@ int
101main(void) 101main(void)
102{ 102{
103 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 103 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
104 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 104 putenv("ECORE_EVAS_ENGINE=opengl_x11");
105 105
106 if (!ecore_evas_init()) return 0; 106 if (!ecore_evas_init()) return 0;
107 107
diff --git a/src/examples/evas/evas-3d-ply.c b/src/examples/evas/evas-3d-ply.c
index ba0b912d0b..3d8693e90a 100644
--- a/src/examples/evas/evas-3d-ply.c
+++ b/src/examples/evas/evas-3d-ply.c
@@ -114,7 +114,7 @@ main(void)
114 } 114 }
115 115
116 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 116 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
117 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 117 putenv("ECORE_EVAS_ENGINE=opengl_x11");
118 118
119 if (!ecore_evas_init()) return 0; 119 if (!ecore_evas_init()) return 0;
120 120
diff --git a/src/examples/evas/evas-3d-proxy.c b/src/examples/evas/evas-3d-proxy.c
index 1a671f811d..8c88143a47 100644
--- a/src/examples/evas/evas-3d-proxy.c
+++ b/src/examples/evas/evas-3d-proxy.c
@@ -201,7 +201,7 @@ int
201main(void) 201main(void)
202{ 202{
203 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 203 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
204 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 204 putenv("ECORE_EVAS_ENGINE=opengl_x11");
205 205
206 Scene_Data data; 206 Scene_Data data;
207 207
diff --git a/src/examples/evas/evas-3d-shadows.c b/src/examples/evas/evas-3d-shadows.c
index eaa2f02f55..315fda70cd 100644
--- a/src/examples/evas/evas-3d-shadows.c
+++ b/src/examples/evas/evas-3d-shadows.c
@@ -626,7 +626,7 @@ main(void)
626 Eina_List *nodes1 = NULL, *nodes2 = NULL; 626 Eina_List *nodes1 = NULL, *nodes2 = NULL;
627 627
628 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 628 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
629 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 629 putenv("ECORE_EVAS_ENGINE=opengl_x11");
630 if (!ecore_evas_init()) return 0; 630 if (!ecore_evas_init()) return 0;
631 631
632 ecore_evas = ecore_evas_new(NULL, 10, 10, WIDTH, HEIGHT, NULL); 632 ecore_evas = ecore_evas_new(NULL, 10, 10, WIDTH, HEIGHT, NULL);
diff --git a/src/examples/evas/evas-3d-static-lod.c b/src/examples/evas/evas-3d-static-lod.c
index 3b08380f1c..f4477289c7 100644
--- a/src/examples/evas/evas-3d-static-lod.c
+++ b/src/examples/evas/evas-3d-static-lod.c
@@ -235,7 +235,7 @@ int
235main(void) 235main(void)
236{ 236{
237 // Unless Evas 3D supports Software renderer, we force use of the gl backend. 237 // Unless Evas 3D supports Software renderer, we force use of the gl backend.
238 setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 238 putenv("ECORE_EVAS_ENGINE=opengl_x11");
239 239
240 Scene_Data data; 240 Scene_Data data;
241 241
diff --git a/src/examples/evas/evas-vg-batman.c b/src/examples/evas/evas-vg-batman.c
index 8625366962..72bdd6c4fe 100644
--- a/src/examples/evas/evas-vg-batman.c
+++ b/src/examples/evas/evas-vg-batman.c
@@ -104,7 +104,7 @@ main(void)
104 104
105 if (!ecore_evas_init()) 105 if (!ecore_evas_init())
106 return -1; 106 return -1;
107 //setenv("ECORE_EVAS_ENGINE", "opengl_x11", 1); 107 //putenv("ECORE_EVAS_ENGINE=opengl_x11");
108 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL); 108 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
109 if (!ee) return -1; 109 if (!ee) return -1;
110 110
diff --git a/src/examples/evas/evas-vg-json.c b/src/examples/evas/evas-vg-json.c
index d0176dbd72..a6c0969381 100644
--- a/src/examples/evas/evas-vg-json.c
+++ b/src/examples/evas/evas-vg-json.c
@@ -59,7 +59,7 @@ int
59main(void) 59main(void)
60{ 60{
61 //Cairo backend is not supported. 61 //Cairo backend is not supported.
62 setenv("ECTOR_BACKEND", "default", 1); 62 putenv("ECTOR_BACKEND=default");
63 63
64 if (!ecore_evas_init()) 64 if (!ecore_evas_init())
65 return EXIT_FAILURE; 65 return EXIT_FAILURE;