Watt-32 tcp/ip  2.2 dev-rel.10
wattcp.c
Go to the documentation of this file.
1 
4 #ifdef __HIGHC__
5 
6 #if __HIGHC__ <= 0x0331
7 #include <language.cf>
8 #endif
9 
10 #include "wattcp.h"
11 #include "strings.h"
12 
13 #pragma Calling_convention(PASCAL)
14 #define DLL_PROCESS_DETACH 0
15 #define DLL_PROCESS_ATTACH 1
16 
17 /*
18  * For imported data, we redefine the imported name with the
19  * -import switch when linking, and then use a macro to dereference
20  * the imported name to get to the real variable.
21  */
22 
23 #define IMP_PREFIX(name) __imp_##name
24 #define IMPVAR(name,type) (***(type ***)((BYTE*)(&IMP_PREFIX(name))+2))
25 
26 DWORD DllEntryPoint (void *hDll, DWORD reason, void *reserved)
27 {
28 #if defined(USE_DEBUG)
29  if (reason == DLL_PROCESS_ATTACH)
30  outs ("WATTCP.DLL: Process attach\n"); /* cannot use _LANG() here */
31 #endif
32  ARGSUSED (hDll);
33  ARGSUSED (reserved);
34  return (1);
35 }
36 
37 #endif /* __HIGHC__ */
Core definitions.