/* [<][>][^][v][top][bottom][index][help] */
DEFINITIONS
This source file includes following definitions.
- __typeof__
- foo
- dmtcp_get_libc_dlsym_addr
- dmtcp_event_hook
- main
1 #include <stdio.h>
2 #include "../../../include/dmtcp.h"
3
4 #if 0
5 static __typeof__(&bar) fn \
6 = (__typeof__(&bar)) -1;
7
8 int bar(a) { return 10+a; }
9 #endif
10
11 extern "C" int foo()
12 __attribute((weak));
13
14 extern "C" int foo() {
15 static int y = 5;
16 y++;
17 return y; }
18
19 #if 0
20 void *dmtcp_get_libc_dlsym_addr() {
21 return NULL;
22 }
23 extern "C"
24 void dmtcp_event_hook(DmtcpEvent_t event, DmtcpEventData_t *data)
25 {
26 DMTCP_NEXT_EVENT_HOOK(event,data);
27 }
28 #endif
29
30 #if 1
31 int main() {
32 printf("foo(): %d\n", foo());
33 printf("foo(): %d\n", foo());
34 printf("foo(): %d\n", foo());
35 // dmtcp_event_hook(DMTCP_EVENT_INIT,NULL);
36 return 0;
37 }
38 #endif