[futurebasic] FBtoC: conflicting types for 'CFStringTokenizerRef'

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2009 : Group Archive : Group : All Groups

From: "Edwards, Waverly" <Waverly.Edwards@...>
Date: Sun, 1 Nov 2009 12:39:32 -0600
I translated CFStringTokenizer.h, it was short and easy but I ran into a problem.

I could not figure out how to make a suitable substitute for 

typedef struct __CFStringTokenizer * CFStringTokenizerRef;

I defined CFStringTokenizerRef as  

#define CFStringTokenizerRef as pointer

because it is a pointer to a record.  I didnt find the record __CFStringTokenizer
anywhere including the headers and docs, so it seemed reasonable to define it
that way.  However, once I compile I get this message

conflicting types for 'CFStringTokenizerRef' 

I couldnt think of a way to fix the problem so I ended up doing the following

#define oCFStringTokenizerRef as pointer

then replacing all references to CFStringTokenizerRef with oCFStringTokenizerRef.

There were no complaints from the compiler but I would like to know if there is a
better way to resolve these type of issues.  This isnt the first time I've run into this
particular type of problem.  I resolved it the same way in the past but if there is a 
right way, I would like to know.


Thanks,


W.