Back to index

courier  0.68.2
Defines
intl-exports.c File Reference

Go to the source code of this file.

Defines

#define IMP(x)   _imp__##x
#define VARIABLE(x)

Define Documentation

#define IMP (   x)    _imp__##x

Definition at line 21 of file intl-exports.c.

#define VARIABLE (   x)
Value:
/* Export x without redefining x.  This code was found by compiling a  \
    snippet:                                                            \
      extern __declspec(dllexport) int x; int x = 42;  */               \
 asm (".section .drectve\n");                                           \
 asm (".ascii \" -export:" #x ",data\"\n");                             \
 asm (".data\n");                                                       \
 /* Allocate a pseudo-variable IMP(x).  */                              \
 extern int x;                                                          \
 void * IMP(x) = &x;

Definition at line 25 of file intl-exports.c.