[VSDK] Problems with header files

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Feb 10 10:43:28 CST 2003


on 2/10/03 5:17 AM, Eric Forget at forgete at cafederic.com wrote:

Hi Eric,

> I've created a prefix file to make compiling with GCC a lot faster: between
> 30x and 100x! Here is an excerpt:
> 
> #ifdef __OBJC__
>   #import <Cocoa/Cocoa.h>
> #endif
> 
> #ifdef __cplusplus
>   #import <VSDK/VSDK.h>
> #endif
> 
> You should note that it doesn't work like the one from CodeWarrior. It will
> be precompiled 3 times: 1 for C, 1 for C++ and 1 for Objective-C. So you
> decide which one for each files...
> 
> I have found a few problems with the header files of VSDK:
> 
> 1) <VSDK.h>:29 should be:
> 
>   #    ifdef __GNUC__
> 
> And not:
> 
>   #    ifdef __GNUG__

FXIED


> 2) <VSDK.h>:40 requires:
> 
>   #include <Carbon/Carbon.h>

FIXED

> 3) <VSDK.h>:123 requires:
> 
>   #include ??? // Equivalent of 2)

You sure ?
There is no single Equivalent  to Carbon.h it seems.

> 4) <VSDK_String.h> The following function requires "const" for char*
> parameters...
> 
> FBL_EXP    FBL_BitSet*
> Find( char* inLeftValue, bool inLeftInclude, char* inRightValue, bool
> inRightInclude );

In fact const must be added not only here, but in VDK_Field::Find() also,
Yes?

I will do this now.

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://listserv.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list