idea: display drivers

James McKenzie jjmckenzie51 at earthlink.net
Sun Feb 7 08:43:41 CST 2010


C.W. Betts wrote:
> Is is just because of the Objective-C code? Would it be safe to make C functions that would call Objective-C?  Such as:
> cheader.h:
> typedef struct struct1 struct1;
> cfuncCreate(struct1 *s);
> cfunc1();
> cfunc2();
> cfuncDestroy (struct1 *s);
>
> cfile.m:
> @interface WHQFunc
> {
>
> }
> -(id)init;
> -(void)dealloc;
> @end
> struct 
> {
> 	WHQFunc *ObjC;
> 	int ids;
> }struct1;
> @implementation WHQFunc
>
> -(id)init
> {
> 	return [super init];
> }
> -(void)dealloc
> {
> 	[super dealloc];
> }
> @end
>
> cfunc1()
> {
>
> }
> cfunc2()
> {
>
> }
> cfuncCreate(struct1 *s)
> {
> 	s = malloc(sizeof(struct1));
> 	[[s->ObjC alloc] init];
> }
> cfuncDestroy (struct1 *s)
> {
> 	[s->ObjC release];
> 	free(s);
> }
>   
No .m files....There can be no code that cannot compile or be ignored on
other *NIX platforms.

James McKenzie




More information about the wine-devel mailing list