elm examples: Define __UNUSED__ when HAVE_CONFIG_H is not defined.

SVN revision: 69678
This commit is contained in:
Daniel Juyung Seo 2012-03-28 00:51:57 +00:00
parent a1888419bd
commit a654866ee2
28 changed files with 91 additions and 1 deletions

View File

@ -1,3 +1,6 @@
//Compile with:
//gcc -g `pkg-config --cflags --libs elementary` box_example_02.c -o box_example_02
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
void

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static void _print(void *data, Evas_Object *obj, void *event_info);

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static void _change_color(void *data, Evas_Object *obj, void *event_info);

View File

@ -2,6 +2,11 @@
//gcc -o efl_thread_1 efl_thread_1.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#include <pthread.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -2,6 +2,11 @@
//gcc -o efl_thread_2 efl_thread_2.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#include <pthread.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -2,6 +2,11 @@
//gcc -o efl_thread_3 efl_thread_3.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#include <pthread.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -2,6 +2,11 @@
//gcc -o efl_thread_4 efl_thread_4.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#include <pthread.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -1,6 +1,11 @@
//Compile with:
//gcc -o efl_thread_5 efl_thread_5.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Ecore_Thread *th = NULL;

View File

@ -1,6 +1,11 @@
//Compile with:
//gcc -o efl_thread_6 efl_thread_6.c -g `pkg-config --cflags --libs elementary`
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -3,6 +3,11 @@
#include <Elementary.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -3,6 +3,11 @@
#include <Elementary.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -3,6 +3,11 @@
#include <Elementary.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -3,6 +3,11 @@
#include <Elementary.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static Evas_Object *win = NULL;
static Evas_Object *rect = NULL;

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static void _change_interaction(void *data, Evas_Object *obj, void *event_info);

View File

@ -11,6 +11,11 @@
#include <Elementary.h>
#include <Evas_GL.h>
#include <stdio.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
typedef struct _GLData GLData;

View File

@ -4,10 +4,12 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static void
_show_hover(void *data, Evas_Object *obj, void *event_info)
_show_hover(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
evas_object_show(data);
}

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static void _print_items(void *data, Evas_Object *obj, void *event_info);

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
EAPI_MAIN int

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static void

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static void _hide(void *data, Evas_Object *obj, void *event_info);

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
EAPI_MAIN int

View File

@ -5,6 +5,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static void _fit(void *data, Evas_Object *obj, void *event_info);

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static int val = 1;

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
static 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.\

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
EAPI_MAIN int

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
EAPI_MAIN int

View File

@ -4,6 +4,8 @@
#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#else
# define __UNUSED__
#endif
EAPI_MAIN int