Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* This program is linked against SOM shared libraries, which the loader |
2 | automatically loads along with the program itself). | |
3 | */ | |
4 | ||
5 | #include <stdio.h> | |
085dd6e6 JM |
6 | #ifdef PROTOTYPES |
7 | extern "C" int solib_main (int); | |
c906108c | 8 | |
085dd6e6 JM |
9 | static int |
10 | solib_wrapper (int (*function)(int)) | |
11 | #else | |
c906108c SS |
12 | extern int solib_main (int); |
13 | ||
14 | static int | |
15 | solib_wrapper (function) | |
16 | int (*function)(int); | |
085dd6e6 | 17 | #endif |
c906108c SS |
18 | { |
19 | return (*function)(100); | |
20 | } | |
21 | ||
22 | ||
085dd6e6 | 23 | int main () |
c906108c SS |
24 | { |
25 | int result; | |
26 | ||
27 | /* This is an indirect call to solib_main. */ | |
28 | result = solib_wrapper (solib_main); | |
085dd6e6 | 29 | return 0; |
c906108c | 30 | } |