;[]-----------------------------------------------------------------[] ;| ENTRY.INC -- macro for definining library entry points | ;[]-----------------------------------------------------------------[] ; ; C/C++ Run Time Library - Version 1.5 ; ; Copyright (c) 1991, 1994 by Borland International ; All Rights Reserved. ; ;---------------------------------------------------------------------- ; Name Entry@ - define a user-callable entry point ; ; Usage Entry@ pubname, extname, calltype, parmsize ; ; Notes The Entry@ macro defines a user-callable entry point ; to an internal library function. Pubname specifies ; the name of the user-callable entry point. Extname specifies ; the name of the internal library function. Calltype ; specifies the calling convention (_RTLENTRY, _RTLENTRYF, cdecl, ; pascal, or stdcall). Parmsize specifies the number of ; bytes of parameters passed to the function. ; ; The effect of the macro is to generate a public label ; and a JMP instruction. Entry@ macro pubname, extname, calltype, parmsize Header@ Code_Seg@ ifdef _BUILDRTLDLL Mangle@ publicdll, pubname, <>, calltype, parmsize else Mangle@ public, pubname, <>, calltype, parmsize endif Mangle@ extrn, extname, <:near>, calltype, parmsize Mangle@ <>, pubname, , calltype, parmsize Mangle@ jmp, extname, <>, calltype, parmsize align 4 Mangle@ <>, pubname, , calltype, parmsize Code_EndS@ endm