Chromium Code Reviews| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 /* Initalize one event */ | 77 /* Initalize one event */ |
| 78 event_set(&ev, pair[1], EV_READ, read_cb, &ev); | 78 event_set(&ev, pair[1], EV_READ, read_cb, &ev); |
| 79 | 79 |
| 80 event_add(&ev, NULL); | 80 event_add(&ev, NULL); |
| 81 | 81 |
| 82 event_dispatch(); | 82 event_dispatch(); |
| 83 | 83 |
| 84 return (test_okay); | 84 return (test_okay); |
| 85 } | 85 } |
| 86 | 86 |
| OLD | NEW |