summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 00:51:57 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2012-03-28 00:51:57 +0000
commitb576677f94cd07df5aebb7ec53a7716c3c8a8ce2 (patch)
treec0852cb091a86052a06c8d9f5ed54b15cd2eefa0 /src
parent1b002ba78596f34d00cfa20bb7f55d1f67fc26ed (diff)
elm examples: Define __UNUSED__ when HAVE_CONFIG_H is not defined.
SVN revision: 69678
Diffstat (limited to 'src')
-rw-r--r--src/examples/box_example_02.c3
-rw-r--r--src/examples/bubble_example_01.c2
-rw-r--r--src/examples/check_example_01.c2
-rw-r--r--src/examples/colorselector_example_01.c2
-rw-r--r--src/examples/efl_thread_1.c5
-rw-r--r--src/examples/efl_thread_2.c5
-rw-r--r--src/examples/efl_thread_3.c5
-rw-r--r--src/examples/efl_thread_4.c5
-rw-r--r--src/examples/efl_thread_5.c5
-rw-r--r--src/examples/efl_thread_6.c5
-rw-r--r--src/examples/efl_thread_win32_1.c5
-rw-r--r--src/examples/efl_thread_win32_2.c5
-rw-r--r--src/examples/efl_thread_win32_3.c5
-rw-r--r--src/examples/efl_thread_win32_4.c5
-rw-r--r--src/examples/flip_example_01.c2
-rw-r--r--src/examples/glview_example_01.c5
-rw-r--r--src/examples/hover_example_01.c4
-rw-r--r--src/examples/hoversel_example_01.c2
-rw-r--r--src/examples/label_example_01.c2
-rw-r--r--src/examples/menu_example_01.c2
-rw-r--r--src/examples/notify_example_01.c2
-rw-r--r--src/examples/panel_example_01.c2
-rw-r--r--src/examples/photocam_example_01.c2
-rw-r--r--src/examples/radio_example_01.c2
-rw-r--r--src/examples/scroller_example_01.c2
-rw-r--r--src/examples/separator_example_01.c2
-rw-r--r--src/examples/table_example_01.c2
-rw-r--r--src/examples/table_example_02.c2
28 files changed, 91 insertions, 1 deletions
diff --git a/src/examples/box_example_02.c b/src/examples/box_example_02.c
index 3e4b3d1..16ac525 100644
--- a/src/examples/box_example_02.c
+++ b/src/examples/box_example_02.c
@@ -1,3 +1,6 @@
1//Compile with:
2//gcc -g `pkg-config --cflags --libs elementary` box_example_02.c -o box_example_02
3
1#include <Elementary.h> 4#include <Elementary.h>
2#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
3# include "elementary_config.h" 6# include "elementary_config.h"
diff --git a/src/examples/bubble_example_01.c b/src/examples/bubble_example_01.c
index 3061b6c..21db797 100644
--- a/src/examples/bubble_example_01.c
+++ b/src/examples/bubble_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9void 11void
diff --git a/src/examples/check_example_01.c b/src/examples/check_example_01.c
index 84e5923..a232193 100644
--- a/src/examples/check_example_01.c
+++ b/src/examples/check_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static void _print(void *data, Evas_Object *obj, void *event_info); 11static void _print(void *data, Evas_Object *obj, void *event_info);
diff --git a/src/examples/colorselector_example_01.c b/src/examples/colorselector_example_01.c
index 1b97dc7..a9225b7 100644
--- a/src/examples/colorselector_example_01.c
+++ b/src/examples/colorselector_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static void _change_color(void *data, Evas_Object *obj, void *event_info); 11static void _change_color(void *data, Evas_Object *obj, void *event_info);
diff --git a/src/examples/efl_thread_1.c b/src/examples/efl_thread_1.c
index baa67ae..5edf777 100644
--- a/src/examples/efl_thread_1.c
+++ b/src/examples/efl_thread_1.c
@@ -2,6 +2,11 @@
2//gcc -o efl_thread_1 efl_thread_1.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_1 efl_thread_1.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#include <pthread.h> 4#include <pthread.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
5 10
6static Evas_Object *win = NULL; 11static Evas_Object *win = NULL;
7static Evas_Object *rect = NULL; 12static Evas_Object *rect = NULL;
diff --git a/src/examples/efl_thread_2.c b/src/examples/efl_thread_2.c
index a7c7493..4b736d7 100644
--- a/src/examples/efl_thread_2.c
+++ b/src/examples/efl_thread_2.c
@@ -2,6 +2,11 @@
2//gcc -o efl_thread_2 efl_thread_2.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_2 efl_thread_2.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#include <pthread.h> 4#include <pthread.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
5 10
6static Evas_Object *win = NULL; 11static Evas_Object *win = NULL;
7static Evas_Object *rect = NULL; 12static Evas_Object *rect = NULL;
diff --git a/src/examples/efl_thread_3.c b/src/examples/efl_thread_3.c
index cdaa2ad..ae807a6 100644
--- a/src/examples/efl_thread_3.c
+++ b/src/examples/efl_thread_3.c
@@ -2,6 +2,11 @@
2//gcc -o efl_thread_3 efl_thread_3.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_3 efl_thread_3.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#include <pthread.h> 4#include <pthread.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
5 10
6static Evas_Object *win = NULL; 11static Evas_Object *win = NULL;
7static Evas_Object *rect = NULL; 12static Evas_Object *rect = NULL;
diff --git a/src/examples/efl_thread_4.c b/src/examples/efl_thread_4.c
index eca9c4c..0c67f72 100644
--- a/src/examples/efl_thread_4.c
+++ b/src/examples/efl_thread_4.c
@@ -2,6 +2,11 @@
2//gcc -o efl_thread_4 efl_thread_4.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_4 efl_thread_4.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#include <pthread.h> 4#include <pthread.h>
5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h"
7#else
8# define __UNUSED__
9#endif
5 10
6static Evas_Object *win = NULL; 11static Evas_Object *win = NULL;
7static Evas_Object *rect = NULL; 12static Evas_Object *rect = NULL;
diff --git a/src/examples/efl_thread_5.c b/src/examples/efl_thread_5.c
index 8e64dd2..4af200f 100644
--- a/src/examples/efl_thread_5.c
+++ b/src/examples/efl_thread_5.c
@@ -1,6 +1,11 @@
1//Compile with: 1//Compile with:
2//gcc -o efl_thread_5 efl_thread_5.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_5 efl_thread_5.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#ifdef HAVE_CONFIG_H
5# include "elementary_config.h"
6#else
7# define __UNUSED__
8#endif
4 9
5static Ecore_Thread *th = NULL; 10static Ecore_Thread *th = NULL;
6 11
diff --git a/src/examples/efl_thread_6.c b/src/examples/efl_thread_6.c
index 6f40862..c995739 100644
--- a/src/examples/efl_thread_6.c
+++ b/src/examples/efl_thread_6.c
@@ -1,6 +1,11 @@
1//Compile with: 1//Compile with:
2//gcc -o efl_thread_6 efl_thread_6.c -g `pkg-config --cflags --libs elementary` 2//gcc -o efl_thread_6 efl_thread_6.c -g `pkg-config --cflags --libs elementary`
3#include <Elementary.h> 3#include <Elementary.h>
4#ifdef HAVE_CONFIG_H
5# include "elementary_config.h"
6#else
7# define __UNUSED__
8#endif
4 9
5static Evas_Object *win = NULL; 10static Evas_Object *win = NULL;
6static Evas_Object *rect = NULL; 11static Evas_Object *rect = NULL;
diff --git a/src/examples/efl_thread_win32_1.c b/src/examples/efl_thread_win32_1.c
index 75d8465..7cdf995 100644
--- a/src/examples/efl_thread_win32_1.c
+++ b/src/examples/efl_thread_win32_1.c
@@ -3,6 +3,11 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#define WIN32_LEAN_AND_MEAN 4#define WIN32_LEAN_AND_MEAN
5#include <windows.h> 5#include <windows.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
6 11
7static Evas_Object *win = NULL; 12static Evas_Object *win = NULL;
8static Evas_Object *rect = NULL; 13static Evas_Object *rect = NULL;
diff --git a/src/examples/efl_thread_win32_2.c b/src/examples/efl_thread_win32_2.c
index a84c242..101bfb4 100644
--- a/src/examples/efl_thread_win32_2.c
+++ b/src/examples/efl_thread_win32_2.c
@@ -3,6 +3,11 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#define WIN32_LEAN_AND_MEAN 4#define WIN32_LEAN_AND_MEAN
5#include <windows.h> 5#include <windows.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
6 11
7static Evas_Object *win = NULL; 12static Evas_Object *win = NULL;
8static Evas_Object *rect = NULL; 13static Evas_Object *rect = NULL;
diff --git a/src/examples/efl_thread_win32_3.c b/src/examples/efl_thread_win32_3.c
index bda2405..eff6fce 100644
--- a/src/examples/efl_thread_win32_3.c
+++ b/src/examples/efl_thread_win32_3.c
@@ -3,6 +3,11 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#define WIN32_LEAN_AND_MEAN 4#define WIN32_LEAN_AND_MEAN
5#include <windows.h> 5#include <windows.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
6 11
7static Evas_Object *win = NULL; 12static Evas_Object *win = NULL;
8static Evas_Object *rect = NULL; 13static Evas_Object *rect = NULL;
diff --git a/src/examples/efl_thread_win32_4.c b/src/examples/efl_thread_win32_4.c
index 4b1171b..f882d80 100644
--- a/src/examples/efl_thread_win32_4.c
+++ b/src/examples/efl_thread_win32_4.c
@@ -3,6 +3,11 @@
3#include <Elementary.h> 3#include <Elementary.h>
4#define WIN32_LEAN_AND_MEAN 4#define WIN32_LEAN_AND_MEAN
5#include <windows.h> 5#include <windows.h>
6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h"
8#else
9# define __UNUSED__
10#endif
6 11
7static Evas_Object *win = NULL; 12static Evas_Object *win = NULL;
8static Evas_Object *rect = NULL; 13static Evas_Object *rect = NULL;
diff --git a/src/examples/flip_example_01.c b/src/examples/flip_example_01.c
index dcce714..95e84e2 100644
--- a/src/examples/flip_example_01.c
+++ b/src/examples/flip_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static void _change_interaction(void *data, Evas_Object *obj, void *event_info); 11static void _change_interaction(void *data, Evas_Object *obj, void *event_info);
diff --git a/src/examples/glview_example_01.c b/src/examples/glview_example_01.c
index 107c1b7..3e06a51 100644
--- a/src/examples/glview_example_01.c
+++ b/src/examples/glview_example_01.c
@@ -11,6 +11,11 @@
11#include <Elementary.h> 11#include <Elementary.h>
12#include <Evas_GL.h> 12#include <Evas_GL.h>
13#include <stdio.h> 13#include <stdio.h>
14#ifdef HAVE_CONFIG_H
15# include "elementary_config.h"
16#else
17# define __UNUSED__
18#endif
14 19
15typedef struct _GLData GLData; 20typedef struct _GLData GLData;
16 21
diff --git a/src/examples/hover_example_01.c b/src/examples/hover_example_01.c
index 3a337cb..7e04718 100644
--- a/src/examples/hover_example_01.c
+++ b/src/examples/hover_example_01.c
@@ -4,10 +4,12 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static void 11static void
10_show_hover(void *data, Evas_Object *obj, void *event_info) 12_show_hover(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
11{ 13{
12 evas_object_show(data); 14 evas_object_show(data);
13} 15}
diff --git a/src/examples/hoversel_example_01.c b/src/examples/hoversel_example_01.c
index 10cda69..d290329 100644
--- a/src/examples/hoversel_example_01.c
+++ b/src/examples/hoversel_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static void _print_items(void *data, Evas_Object *obj, void *event_info); 11static void _print_items(void *data, Evas_Object *obj, void *event_info);
diff --git a/src/examples/label_example_01.c b/src/examples/label_example_01.c
index b9e26a6..30f76eb 100644
--- a/src/examples/label_example_01.c
+++ b/src/examples/label_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9EAPI_MAIN int 11EAPI_MAIN int
diff --git a/src/examples/menu_example_01.c b/src/examples/menu_example_01.c
index 5b33d47..480d9a4 100644
--- a/src/examples/menu_example_01.c
+++ b/src/examples/menu_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static void 11static void
diff --git a/src/examples/notify_example_01.c b/src/examples/notify_example_01.c
index 33c4b78..855298e 100644
--- a/src/examples/notify_example_01.c
+++ b/src/examples/notify_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static void _hide(void *data, Evas_Object *obj, void *event_info); 11static void _hide(void *data, Evas_Object *obj, void *event_info);
diff --git a/src/examples/panel_example_01.c b/src/examples/panel_example_01.c
index 8e848bf..13649d7 100644
--- a/src/examples/panel_example_01.c
+++ b/src/examples/panel_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9EAPI_MAIN int 11EAPI_MAIN int
diff --git a/src/examples/photocam_example_01.c b/src/examples/photocam_example_01.c
index 4a5eba8..b4270b1 100644
--- a/src/examples/photocam_example_01.c
+++ b/src/examples/photocam_example_01.c
@@ -5,6 +5,8 @@
5#include <Elementary.h> 5#include <Elementary.h>
6#ifdef HAVE_CONFIG_H 6#ifdef HAVE_CONFIG_H
7# include "elementary_config.h" 7# include "elementary_config.h"
8#else
9# define __UNUSED__
8#endif 10#endif
9 11
10static void _fit(void *data, Evas_Object *obj, void *event_info); 12static void _fit(void *data, Evas_Object *obj, void *event_info);
diff --git a/src/examples/radio_example_01.c b/src/examples/radio_example_01.c
index ec5741b..61e9f29 100644
--- a/src/examples/radio_example_01.c
+++ b/src/examples/radio_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static int val = 1; 11static int val = 1;
diff --git a/src/examples/scroller_example_01.c b/src/examples/scroller_example_01.c
index 3f31efe..482e42e 100644
--- a/src/examples/scroller_example_01.c
+++ b/src/examples/scroller_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9static const char *text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse bibendum, nibh eget vehicula tempus, libero dui aliquam dui, eget pellentesque nulla est id mi. Sed orci nisl, mattis vitae dignissim scelerisque, imperdiet vel arcu. Integer ut libero id massa commodo dignissim sed at orci. Quisque sollicitudin eleifend malesuada. Donec orci orci, mollis quis euismod vel, tincidunt nec ipsum. Sed ut nulla ligula, ut commodo tellus. Duis non felis in odio fringilla venenatis eget in metus. Mauris molestie ipsum tortor. Suspendisse potenti. Curabitur facilisis ultricies cursus. In euismod viverra risus sit amet pharetra. Sed mauris lorem, volutpat a vehicula quis, interdum nec erat. Suspendisse auctor bibendum fringilla. Curabitur tincidunt sem risus.\ 11static const char *text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse bibendum, nibh eget vehicula tempus, libero dui aliquam dui, eget pellentesque nulla est id mi. Sed orci nisl, mattis vitae dignissim scelerisque, imperdiet vel arcu. Integer ut libero id massa commodo dignissim sed at orci. Quisque sollicitudin eleifend malesuada. Donec orci orci, mollis quis euismod vel, tincidunt nec ipsum. Sed ut nulla ligula, ut commodo tellus. Duis non felis in odio fringilla venenatis eget in metus. Mauris molestie ipsum tortor. Suspendisse potenti. Curabitur facilisis ultricies cursus. In euismod viverra risus sit amet pharetra. Sed mauris lorem, volutpat a vehicula quis, interdum nec erat. Suspendisse auctor bibendum fringilla. Curabitur tincidunt sem risus.\
diff --git a/src/examples/separator_example_01.c b/src/examples/separator_example_01.c
index fbfc6f2..ab0afa8 100644
--- a/src/examples/separator_example_01.c
+++ b/src/examples/separator_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9EAPI_MAIN int 11EAPI_MAIN int
diff --git a/src/examples/table_example_01.c b/src/examples/table_example_01.c
index 754b5a9..35d8eca 100644
--- a/src/examples/table_example_01.c
+++ b/src/examples/table_example_01.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9EAPI_MAIN int 11EAPI_MAIN int
diff --git a/src/examples/table_example_02.c b/src/examples/table_example_02.c
index 3845aca..0d42c34 100644
--- a/src/examples/table_example_02.c
+++ b/src/examples/table_example_02.c
@@ -4,6 +4,8 @@
4#include <Elementary.h> 4#include <Elementary.h>
5#ifdef HAVE_CONFIG_H 5#ifdef HAVE_CONFIG_H
6# include "elementary_config.h" 6# include "elementary_config.h"
7#else
8# define __UNUSED__
7#endif 9#endif
8 10
9EAPI_MAIN int 11EAPI_MAIN int