AC_HEADER_STDC
AC_C_CONST
AM_PROG_CC_C_O
+AC_C___ATTRIBUTE__
WIN32_CFLAGS=""
case "$host_os" in
--- /dev/null
+dnl Copyright (C) 2004-2008 Kim Woelders
+dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
+dnl That code is public domain and can be freely used or copied.
+dnl Originally snatched from somewhere...
+
+dnl Macro for checking if the compiler supports __attribute__
+
+dnl Usage: AC_C___ATTRIBUTE__
+dnl call AC_DEFINE for HAVE___ATTRIBUTE__ and __UNUSED__
+dnl if the compiler supports __attribute__, HAVE___ATTRIBUTE__ is
+dnl defined to 1 and __UNUSED__ is defined to __attribute__((unused))
+dnl otherwise, HAVE___ATTRIBUTE__ is not defined and __UNUSED__ is
+dnl defined to nothing.
+
+AC_DEFUN([AC_C___ATTRIBUTE__],
+[
+
+AC_MSG_CHECKING([for __attribute__])
+
+AC_CACHE_VAL([ac_cv___attribute__],
+ [AC_TRY_COMPILE(
+ [
+#include <stdlib.h>
+
+int func(int x);
+int foo(int x __attribute__ ((unused)))
+{
+ exit(1);
+}
+ ],
+ [],
+ [ac_cv___attribute__="yes"],
+ [ac_cv___attribute__="no"]
+ )])
+
+AC_MSG_RESULT($ac_cv___attribute__)
+
+if test "x${ac_cv___attribute__}" = "xyes" ; then
+ AC_DEFINE([HAVE___ATTRIBUTE__], [1], [Define to 1 if your compiler has __attribute__])
+ AC_DEFINE([__UNUSED__], [__attribute__((unused))], [Macro declaring a function argument to be unused])
+ else
+ AC_DEFINE([__UNUSED__], [], [Macro declaring a function argument to be unused])
+fi
+
+])
+
+dnl End of ac_attribute.m4
}
static void
-_loop(double t, int f)
+_loop(double t __UNUSED__, int f __UNUSED__)
{
}
}
Eina_Bool
-engine_software_gdi_args(const char *engine, int width, int height)
+engine_software_gdi_args(const char *engine __UNUSED__, int width, int height)
{
WNDCLASS wc;
RECT rect;
DWORD style;
DWORD exstyle;
int depth;
- int i;
instance = GetModuleHandle(NULL);
if (!instance) return EINA_FALSE;
for (i = 0; i < 1; i++)
{
unsigned int *data, *p;
- int ff;
+
w = 640;
h = 480;
x = (win_w / 2) - (w / 2);
data = evas_object_image_data_get(o_images[i], 1);
st = evas_object_image_stride_get(o_images[i]) >> 2;
p = data;
- ff = (f ^ (f << 8) ^ (f << 16) ^ (f << 24));
for (y = 0; y < h; y++)
{
for (x = 0; x < w; x++)
for (i = 0; i < 1; i++)
{
unsigned int *data, *p;
- int ff, a, r, g, b;
+ int a, r, g, b;
w = 640;
h = 480;
x = (win_w / 2) - (w / 2);
data = evas_object_image_data_get(o_images[i], 1);
st = evas_object_image_stride_get(o_images[i]) >> 2;
p = data;
- ff = (f ^ (f << 8) ^ (f << 16) ^ (f << 24));
for (y = 0; y < h; y++)
{
for (x = 0; x < w; x++)
double fps = 0.0;
double wfps = 0.0;
int t_count = 0;
- int i;
+ unsigned int i;
double avgw = 0.0;
evas_object_hide(o_menu_logo);
double wfps = 0.0;
int t_count = 0;
Menu_Item *mi;
- int i;
+ unsigned int i;
double avgw = 0.0;
evas_object_hide(o_menu_logo);
}
static void
-_ui_key(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_ui_key(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Event_Key_Down *ev;
if (!strcmp(ev->keyname, "Left")) menu_sel++;
if (!strcmp(ev->keyname, "Right")) menu_sel--;
if (menu_sel < 0) menu_sel = 0;
- else if (menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1;
+ else if ((unsigned int)menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1;
menu_anim_sel = menu_sel;
if (!strcmp(ev->keyname, "Return")) _ui_select();
}
static int down_menu_sel = 0;
static void
-_ui_mouse_down(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_ui_mouse_down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Event_Mouse_Down *ev;
}
static void
-_ui_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_ui_mouse_up(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Event_Mouse_Up *ev;
}
static void
-_ui_mouse_move(void *data, Evas *e, Evas_Object *obj, void *event_info)
+_ui_mouse_move(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info)
{
Evas_Event_Mouse_Move *ev;
menu_sel = down_menu_sel + ((ev->cur.canvas.x - down_x) / 25);
/* scroll */
if (menu_sel < 0) menu_sel = 0;
- else if (menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1;
+ else if ((unsigned int)menu_sel >= eina_list_count(menu)) menu_sel = eina_list_count(menu) - 1;
menu_anim_sel = menu_sel;
}
else
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = ICON_SIZE;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x + 8, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = ICON_SIZE;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x + 8, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = ICON_SIZE;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x + 8, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = ICON_SIZE;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x + 8, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = ICON_SIZE;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x + 8, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = ICON_SIZE;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x + 8, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = ICON_SIZE;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x + 8, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = win_w;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = win_w;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = win_w;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = win_w;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = win_w;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = win_w;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = win_w;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x, y);
static void _loop(double t, int f)
{
int i;
- Evas_Coord x, y, w, h, tw, th, cent;
+ Evas_Coord x, y, tw, th, cent;
x = 0;
y = 0 - f;
- w = win_w;
- h = ICON_SIZE;
for (i = 0; i < NUM; i++)
{
evas_object_move(o_images[i], x, y);