[Fribidi-discuss] EXPORT_C and IMPORT_C

Behdad Esfahbod behdad at bamdad.org
Sun Mar 3 10:53:05 EST 2002


I believe that two macros will solve the problem, maybe with the
names FRIBIDI_EXPORT and FRIBIDI_DECLARE, I will do these too.

Yours,
behdad


On Tue, 26 Feb 2002, Omer Zak wrote:

> Once the FriBidiEnv patch is incorporated into the standard source code
> database, there will be only two items, which are specific to the Symbian
> EPOC 6 port, and which require source code files to be modified (except
> for fribidi_env.h,fribidi_env.c, which are port-specific anyway).
> 
> One of them is that FriBidiChar has to be typedef'ed as uint16 rather than
> as uint32 (to avoid wasteful conversions from & into native EPOC
> datatypes).  Not a big problem - change in just one place.
> 
> The other item, which is more problematic, is that all exported functions
> in *.c files have to be defined with the EXPORT_C keyword, and the
> corresponding functions in *.h files - with the IMPORT_C keyword.
> 
> Those keywords will be necessary for both EPOC and MS-Windows DLL builds.
> 
> Any ideas how to cater to those ports without incurring the following
> disadvantages:
> 1. Wasteful wrapper code (especially, function calls with long argument
>    lists).
> 2. Cluttered code for ports, which don't need those keywords.
> 
> For example, will it be OK if the following keywords are used to flag
> functions intended for use by code outside of the FriBidi package:
> PUBLIC_FUNCTION_DEFINITION  - to be #define'd as EXPORT_C in EPOC ports
>                               and as nothing in other ports.
> PUBLIC_FUNCTION_DECLARATION - to be #define'd as IMPORT_C in EPOC ports
>                               and as nothing in other ports.
> 
> Does anyone have a better idea?
>                                              --- Omer
> WARNING TO SPAMMERS:  see at http://www.zak.co.il/spamwarning.html
> 
> 
> _______________________________________________
> Fribidi-discuss mailing list
> Fribidi-discuss at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fribidi-discuss
> 

-- 
Behdad Esfahbod				12 Esfand 1380, 2002 Mar 3 
<behdad at bamdad dot org>		[Finger for Geek Code]

Q:	Do you know what the death rate around here is?
A:	One per person.





More information about the FriBidi mailing list