1999-04-16 01:35:26 +00:00
|
|
|
/* This program is linked against SOM shared libraries, which the loader
|
|
|
|
automatically loads along with the program itself).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <stdio.h>
|
1999-06-28 16:06:02 +00:00
|
|
|
#ifdef PROTOTYPES
|
|
|
|
extern "C" int solib_main (int);
|
1999-04-16 01:35:26 +00:00
|
|
|
|
1999-06-28 16:06:02 +00:00
|
|
|
static int
|
|
|
|
solib_wrapper (int (*function)(int))
|
|
|
|
#else
|
1999-04-16 01:35:26 +00:00
|
|
|
extern int solib_main (int);
|
|
|
|
|
|
|
|
static int
|
|
|
|
solib_wrapper (function)
|
|
|
|
int (*function)(int);
|
1999-06-28 16:06:02 +00:00
|
|
|
#endif
|
1999-04-16 01:35:26 +00:00
|
|
|
{
|
|
|
|
return (*function)(100);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
1999-06-28 16:06:02 +00:00
|
|
|
int main ()
|
1999-04-16 01:35:26 +00:00
|
|
|
{
|
|
|
|
int result;
|
|
|
|
|
|
|
|
/* This is an indirect call to solib_main. */
|
|
|
|
result = solib_wrapper (solib_main);
|
1999-06-28 16:06:02 +00:00
|
|
|
return 0;
|
1999-04-16 01:35:26 +00:00
|
|
|
}
|