Make bongocal compile strictly, try to fix some of the bugs in the library...

This commit is contained in:
alexhudson
2009-07-19 13:24:54 +00:00
parent 5d4dc5377c
commit 4f01ac0677
11 changed files with 158 additions and 67 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
#define BONGOCAL_RAW_H
#include <xpl.h>
#include <ical.h>
#include <libical/ical.h>
#include <bongojson.h>
XPL_BEGIN_C_LINKAGE
+9 -5
View File
@@ -316,14 +316,15 @@ typedef struct _BongoList BongoList;
typedef struct _BongoSList BongoSList;
struct _BongoList {
void *data;
BongoList *next;
BongoList *prev;
void *data;
BongoList *next;
BongoList *prev;
};
struct _BongoSList {
void *data;
BongoSList *next;
void *data;
BongoSList *next;
};
BongoList *BongoListCopy(BongoList *list);
@@ -346,6 +347,9 @@ void BongoSListFreeDeep(BongoSList *slist);
int BongoSListLength(BongoSList *slist);
BongoSList *BongoSListDelete(BongoSList *list, void *data, BOOL deep);
void *BongoListIntToVoid (int val);
int BongoListVoidToInt (void * ptr);
/** end lists.c **/
/** begin array.c **/
+8
View File
@@ -22,6 +22,14 @@
#ifndef XPL_H
#define XPL_H
// this define should be used to mark function parameters that are currently
// unused but ought to be used / will be used in the future.
#define UNUSED_PARAMETER(x) if(x) {}
// this define should be used to mark function parameters that are unused
// and possibly should be removed.
#define UNUSED_PARAMETER_REFACTOR(x) if(x) {}
#include "xplutil.h"
#include "xplthread.h"
#include "xplservice.h"