From 257315fd9c0b47064a38a0789ba121ffe3e36bc3 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Tue, 15 Apr 2008 11:25:12 -0400 Subject: Get libconfig building on darwin --- libconfig/Data.h | 5 ++--- libconfig/Data.m | 6 ------ libconfig/String.m | 1 + libconfig/config.m | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/libconfig/Data.h b/libconfig/Data.h index 966310f..df84788 100644 --- a/libconfig/Data.h +++ b/libconfig/Data.h @@ -40,7 +40,6 @@ * Generic Entry and Data objects. */ @interface DataObject: Object --dealloc; -(char *)createCStr; -(String *)createStr; -setFromBuffer: (const char *)buffer withLength: (int)len; @@ -54,8 +53,8 @@ } -init; --setKey: keyName; --setData: dataPtr; +-setKey: (String *)keyName; +-setData: (DataObject *)dataPtr; -getKey; -getData; @end diff --git a/libconfig/Data.m b/libconfig/Data.m index 3b48c7a..77fe5c7 100644 --- a/libconfig/Data.m +++ b/libconfig/Data.m @@ -38,12 +38,6 @@ #include @implementation DataObject --dealloc -{ - free(self); - return nil; -} - -(char *)createCStr { return NULL; diff --git a/libconfig/String.m b/libconfig/String.m index 9a0bc5a..9a8c0b3 100644 --- a/libconfig/String.m +++ b/libconfig/String.m @@ -28,6 +28,7 @@ #include "String.h" #include +#include #include #include diff --git a/libconfig/config.m b/libconfig/config.m index b0d13a9..59e4679 100644 --- a/libconfig/config.m +++ b/libconfig/config.m @@ -1,7 +1,6 @@ #include "conf.h" #include "config.h" #include "nastipc.h" -#include "thread.h" #include "BuffIO.h" #include "ArrayData.h" @@ -10,6 +9,7 @@ #include "StringData.h" #include +#include #include RCSID("$Id: config.m,v 1.5 2001/11/09 15:54:38 shmit Exp $"); -- cgit v1.2.3