1 |
dashley |
24 |
// rap.cpp : Defines the entry point for the console application. |
2 |
|
|
// |
3 |
|
|
|
4 |
|
|
extern "C" int main_c (int argc, char *argv[]); |
5 |
|
|
/* Must use second source file. The .C extension on the file |
6 |
|
|
** containing main_c() causes the compiler to treat it as a |
7 |
|
|
** C rather than a C++ deck. A person wanting to recompile |
8 |
|
|
** on any SDK except MSVC++ must toss out this software module |
9 |
|
|
** (which is just a wrapper), and rename main_c() in RAP_C.C |
10 |
|
|
** to be main(). |
11 |
|
|
*/ |
12 |
|
|
|
13 |
|
|
int main(int argc, char* argv[]) |
14 |
|
|
{ |
15 |
|
|
int return_value; |
16 |
|
|
/* Return value from the "real" main. This is just a wrapper |
17 |
|
|
** to make coexistence with Microsoft Visual C++ more |
18 |
|
|
** pleasant. |
19 |
|
|
*/ |
20 |
|
|
|
21 |
|
|
return_value = main_c(argc, argv); |
22 |
|
|
/* Call the real main function, and save the |
23 |
|
|
** return value. |
24 |
|
|
*/ |
25 |
|
|
|
26 |
|
|
return(return_value); |
27 |
|
|
/* Return the return value to the external |
28 |
|
|
** environment. |
29 |
|
|
*/ |
30 |
|
|
} |
31 |
|
|
|