each_solvable in Source almost working
authorDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 26 Oct 2007 13:57:13 +0000 (13:57 +0000)
committerDuncan Mac-Vicar P <dmacvicar@suse.de>
Fri, 26 Oct 2007 13:57:13 +0000 (13:57 +0000)
src/pool.c
src/pool.h

index 0c0a279..fda74cc 100644 (file)
@@ -64,6 +64,7 @@ static char *initpool_data[] = {
 Pool *
 pool_create(void)
 {
+  printf("POOL CREATE");
   int count, totalsize = 0;
   Pool *pool;
   Solvable *s;
index e48e5b0..433ac76 100644 (file)
@@ -17,8 +17,8 @@ extern "C" {
 #include "queue.h"
 
 // bool
-#ifndef SWIG
 #ifndef __cplusplus
+#ifndef SWIG
  typedef _Bool bool;
 #endif
 #endif
@@ -76,11 +76,8 @@ struct _Pool {
   Solvable *solvables;
   int nsolvables;
 
-#ifdef SWIG
-  _Bool promoteepoch;
-#else
   bool promoteepoch;
-#endif
+
   Id *id2arch;                 /* map arch ids to scores */
   Id lastarch;                 /* last valid entry in id2arch */