Make bongocal compile strictly, try to fix some of the bugs in the library...
This commit is contained in:
@@ -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
@@ -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 **/
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user