Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/lib/include
Modified Files:
evas_private.h
Log Message:
now that documentation is looking nicer
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/include/evas_private.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -3 -r1.14 -r1.15
--- evas_private.h 9 Feb 2003 04:22:45 -0000 1.14
+++ evas_private.h 21 Feb 2003 10:28:24 -0000 1.15
@@ -2,6 +2,8 @@
#define EVAS_PRIVATE_H
#endif
+#define _GNU_SOURCE
+
/* complain when peole pass in wrong object types etc. */
#define MAGIC_DEBUG
@@ -93,6 +95,32 @@
#define MERR_NONE() _evas_alloc_error = EVAS_ALLOC_ERROR_NONE
#define MERR_FATAL() _evas_alloc_error = EVAS_ALLOC_ERROR_FATAL
#define MERR_BAD() _evas_alloc_error = EVAS_ALLOC_ERROR_RECOVERED
+
+#define EVAS_OBJECT_IMAGE_FREE_FILE_AND_KEY(o) \
+ if ((o)->cur.file) \
+ { \
+ free((o)->cur.file); \
+ if ((o)->prev.file == (o)->cur.file) \
+ (o)->prev.file = NULL; \
+ (o)->cur.file = NULL; \
+ } \
+ if ((o)->cur.key) \
+ { \
+ free((o)->cur.key); \
+ if ((o)->prev.key == (o)->cur.key) \
+ (o)->prev.key = NULL; \
+ (o)->cur.key = NULL; \
+ } \
+ if ((o)->prev.file) \
+ { \
+ free((o)->prev.file); \
+ (o)->prev.file = NULL; \
+ } \
+ if ((o)->prev.key) \
+ { \
+ free((o)->prev.key); \
+ (o)->prev.key = NULL; \
+ }
struct _Evas_Rectangle
{
-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs