babl r372 - in trunk: . babl



Author: martinn
Date: Sat Jan 17 14:03:37 2009
New Revision: 372
URL: http://svn.gnome.org/viewvc/babl?rev=372&view=rev

Log:
* babl/babl.h: Move up forward declaration of BablList.

* babl/babl-list.h: Completely rely on that declaration.


Modified:
   trunk/ChangeLog
   trunk/babl/babl-list.h
   trunk/babl/babl.h

Modified: trunk/babl/babl-list.h
==============================================================================
--- trunk/babl/babl-list.h	(original)
+++ trunk/babl/babl-list.h	Sat Jan 17 14:03:37 2009
@@ -20,20 +20,15 @@
 #define _BABL_LIST_H
 
 #ifndef _BABL_H
-/* babl.h contains forward declaration
- * typedef struct _BablList BablList;
- */
 #error  babl-list.h is only to be included after babl.h
 #endif
 
-
-typedef struct _BablList
+struct _BablList
 {
   int  count;
   int  size;
   Babl **items;
-} _BablList;
-
+};
 
 BablList *
 babl_list_init (void);

Modified: trunk/babl/babl.h
==============================================================================
--- trunk/babl/babl.h	(original)
+++ trunk/babl/babl.h	Sat Jan 17 14:03:37 2009
@@ -33,6 +33,8 @@
 #include "babl-macros.h"
 #include "babl-main.h"
 
+typedef struct _BablList BablList;
+
 /* magic number used at the start of all babl objects, used to do
  * differentiation in polymorphic functions. (as well as manual
  * type check assertions).
@@ -68,8 +70,6 @@
 
 typedef union _Babl Babl;
 
-typedef struct _BablList BablList;
-
 typedef int  (*BablEachFunction) (Babl *entry,
                                   void *data);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]