OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Compile with: | 2 * Compile with: |
3 * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent | 3 * cc -I/usr/local/include -o time-test time-test.c -L/usr/local/lib -levent |
4 */ | 4 */ |
5 #ifdef HAVE_CONFIG_H | 5 #ifdef HAVE_CONFIG_H |
6 #include "config.h" | 6 #include "config.h" |
7 #endif | 7 #endif |
8 | 8 |
9 | 9 |
10 #ifdef WIN32 | 10 #ifdef WIN32 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 /* Initalize one event */ | 75 /* Initalize one event */ |
76 event_set(&ev, pair[1], EV_WRITE, write_cb, &ev); | 76 event_set(&ev, pair[1], EV_WRITE, write_cb, &ev); |
77 | 77 |
78 event_add(&ev, NULL); | 78 event_add(&ev, NULL); |
79 | 79 |
80 event_dispatch(); | 80 event_dispatch(); |
81 | 81 |
82 return (test_okay); | 82 return (test_okay); |
83 } | 83 } |
84 | 84 |
OLD | NEW |