~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-tools/woe32dll/export.h

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
 /* Ensure that the variable x is exported from the library, and that a
96
96
    pseudo-variable IMP(x) is available.  */
97
97
#define VARIABLE(x) \
98
 
 /* Export x without redefining x.  This code was found by compiling a  \
99
 
    snippet:                                                            \
100
 
      extern __declspec(dllexport) int x; int x = 42;  */               \
101
 
 asm (".section .drectve\n");                                           \
102
 
 asm (".ascii \" -export:" #x ",data\"\n");                             \
103
 
 asm (".data\n");                                                       \
104
 
 /* Allocate a pseudo-variable IMP(x).  */                              \
105
 
 extern int x;                                                          \
 
98
 /* Export x without redefining x.  This code was found by compiling a  \
 
99
    snippet:                                                            \
 
100
      extern __declspec(dllexport) int x; int x = 42;  */               \
 
101
 asm (".section .drectve\n");                                           \
 
102
 asm (".ascii \" -export:" #x ",data\"\n");                             \
 
103
 asm (".data\n");                                                       \
 
104
 /* Allocate a pseudo-variable IMP(x).  */                              \
 
105
 extern int x;                                                          \
106
106
 void * IMP(x) = &x;