Ignore:
Timestamp:
May 26, 2003, 4:43:12 PM (22 years ago)
Author:
zap
Message:

See ChangeLog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/os2thunk.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r235 r236  
    66typedef unsigned long _far16ptr;
    77
    8 _far16ptr _emx_32to16 (void *ptr);
    9 void *_emx_16to32 (_far16ptr ptr);
     8_far16ptr _libc_32to16 (void *ptr);
     9void *_libc_16to32 (_far16ptr ptr);
    1010
    11 unsigned long _emx_thunk1 (void *args, void *fun);
     11unsigned long _libc_thunk1 (void *args, void *fun);
    1212
    1313#define _THUNK_PASCAL_PROLOG(SIZE) \
     
    1717#define _THUNK_PASCAL_SHORT(ARG)    (*--((unsigned short *)_tp) = (ARG))
    1818#define _THUNK_PASCAL_LONG(ARG)     (*--((unsigned long *)_tp) = (ARG))
    19 #define _THUNK_PASCAL_FLAT(ARG)     _THUNK_PASCAL_LONG (_emx_32to16 (ARG))
     19#define _THUNK_PASCAL_FLAT(ARG)     _THUNK_PASCAL_LONG (_libc_32to16 (ARG))
    2020#define _THUNK_PASCAL_FAR16(ARG)    _THUNK_PASCAL_LONG (ARG)
    2121#define _THUNK_PASCAL_FUNCTION(FUN) APIENTRY _16_##FUN
    22 #define _THUNK_PASCAL_CALL(FUN)     _emx_thunk1 (_tb, (void *)(_16_##FUN)); })
    23 #define _THUNK_PASCAL_CALLI(FUN)    _emx_thunk1 (_tb, (void *)(FUN)); })
     22#define _THUNK_PASCAL_CALL(FUN)     _libc_thunk1 (_tb, (void *)(_16_##FUN)); })
     23#define _THUNK_PASCAL_CALLI(FUN)    _libc_thunk1 (_tb, (void *)(FUN)); })
    2424
    2525#define _THUNK_C_PROLOG(SIZE) \
     
    2929#define _THUNK_C_SHORT(ARG)    (*((unsigned short *)_tp)++ = (ARG))
    3030#define _THUNK_C_LONG(ARG)     (*((unsigned long *)_tp)++ = (ARG))
    31 #define _THUNK_C_FLAT(ARG)     _THUNK_C_LONG (_emx_32to16 (ARG))
     31#define _THUNK_C_FLAT(ARG)     _THUNK_C_LONG (_libc_32to16 (ARG))
    3232#define _THUNK_C_FAR16(ARG)    _THUNK_C_LONG (ARG)
    3333#define _THUNK_C_FUNCTION(FUN) _16__##FUN
    34 #define _THUNK_C_CALL(FUN)     _emx_thunk1 (_tb, (void *)(_16__##FUN)); })
    35 #define _THUNK_C_CALLI(FUN)    _emx_thunk1 (_tb, (void *)(FUN)); })
     34#define _THUNK_C_CALL(FUN)     _libc_thunk1 (_tb, (void *)(_16__##FUN)); })
     35#define _THUNK_C_CALLI(FUN)    _libc_thunk1 (_tb, (void *)(FUN)); })
    3636
    3737#define _THUNK_PROLOG(SIZE)  _THUNK_PASCAL_PROLOG (SIZE)
     
    4646
    4747#define MAKE16P(sel,off)   ((_far16ptr)((sel) << 16 | (off)))
    48 #define MAKEP(sel,off)     _emx_16to32 (MAKE16P (sel, off))
     48#define MAKEP(sel,off)     _libc_16to32 (MAKE16P (sel, off))
    4949#define SELECTOROF(farptr) ((SEL)((farptr) >> 16))
    5050#define OFFSETOF(farptr)   ((USHORT)(farptr))
Note: See TracChangeset for help on using the changeset viewer.