Warnings defenestrated. Object check really should be enabled by default now.

SVN revision: 12712
This commit is contained in:
xcomputerman 2005-01-03 22:04:04 +00:00 committed by xcomputerman
parent 111faea997
commit b4a29f186d
7 changed files with 8 additions and 10 deletions

View File

@ -552,8 +552,6 @@ e_border_unshade(E_Border *bd, E_Direction dir)
void void
e_border_maximize(E_Border *bd) e_border_maximize(E_Border *bd)
{ {
E_Zone *zone;
E_OBJECT_CHECK(bd); E_OBJECT_CHECK(bd);
if ((bd->shaded) || (bd->shading)) return; if ((bd->shaded) || (bd->shading)) return;

View File

@ -94,7 +94,7 @@ e_desk_current_get(E_Zone *zone)
{ {
Evas_List *l; Evas_List *l;
E_OBJECT_CHECK(zone); E_OBJECT_CHECK_RETURN(zone, NULL);
for (l = zone->desks; l; l = l->next) for (l = zone->desks; l; l = l->next)
{ {

View File

@ -23,6 +23,7 @@ EAPI void e_desk_show(E_Desk *desk);
EAPI E_Desk *e_desk_current_get(E_Zone *zone); EAPI E_Desk *e_desk_current_get(E_Zone *zone);
EAPI void e_desk_next(E_Zone *zone); EAPI void e_desk_next(E_Zone *zone);
EAPI void e_desk_prev(E_Zone *zone); EAPI void e_desk_prev(E_Zone *zone);
EAPI void e_desk_remove(E_Desk *desk);
#endif #endif

View File

@ -124,7 +124,6 @@ E_Menu *
e_int_menus_desktops_new(void) e_int_menus_desktops_new(void)
{ {
E_Menu *m; E_Menu *m;
E_Menu_Item *mi;
m = e_menu_new(); m = e_menu_new();
e_menu_pre_activate_callback_set(m, _e_int_menus_desktops_pre_cb, NULL); e_menu_pre_activate_callback_set(m, _e_int_menus_desktops_pre_cb, NULL);

View File

@ -75,7 +75,7 @@ e_object_free(E_Object *obj)
int int
e_object_ref(E_Object *obj) e_object_ref(E_Object *obj)
{ {
E_OBJECT_CHECK(obj); E_OBJECT_CHECK_RETURN(obj, -1);
obj->references++; obj->references++;
return obj->references; return obj->references;
} }
@ -85,7 +85,7 @@ e_object_unref(E_Object *obj)
{ {
int ref; int ref;
E_OBJECT_CHECK(obj); E_OBJECT_CHECK_RETURN(obj, -1);
obj->references--; obj->references--;
ref = obj->references; ref = obj->references;
if (obj->references <= 0) e_object_free(obj); if (obj->references <= 0) e_object_free(obj);

View File

@ -10,8 +10,8 @@
/* OBJECT_CHECK is a simple null pointer and magic number check with no */ /* OBJECT_CHECK is a simple null pointer and magic number check with no */
/* debug output */ /* debug output */
//#define OBJECT_PARANOIA_CHECK /* #define OBJECT_PARANOIA_CHECK
//#define OBJECT_CHECK #define OBJECT_CHECK */
#ifndef __GLIBC__ #ifndef __GLIBC__
# ifdef OBJECT_PARANOIA_CHECK # ifdef OBJECT_PARANOIA_CHECK

View File

@ -140,7 +140,7 @@ e_zone_current_get(E_Container *con)
{ {
Evas_List *l; Evas_List *l;
E_OBJECT_CHECK(con); E_OBJECT_CHECK_RETURN(con, NULL);
l = con->zones; l = con->zones;
/* FIXME: Should return the zone the pointer is currently in */ /* FIXME: Should return the zone the pointer is currently in */
return (E_Zone *)l->data; return (E_Zone *)l->data;
@ -164,7 +164,7 @@ e_zone_bg_reconfigure(E_Zone *zone)
Evas_List * Evas_List *
e_zone_clients_list_get(E_Zone *zone) e_zone_clients_list_get(E_Zone *zone)
{ {
E_OBJECT_CHECK(zone); E_OBJECT_CHECK_RETURN(zone, NULL);
return zone->clients; return zone->clients;
} }