Changeset 573 for syre/trunk
- Timestamp:
- 04/18/08 18:46:29 (9 months ago)
- Files:
-
- syre/trunk/main.c (modified) (4 diffs)
- syre/trunk/x.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
syre/trunk/main.c
r571 r573 1 /*#define _USE_SIGNAL*/ 2 1 3 #include <stdio.h> 2 4 #include <string.h> 3 5 #include <time.h> 4 6 #include <unistd.h> 7 #include <X11/Xlib.h> 8 9 #ifdef _USE_SIGNAL 5 10 #include <signal.h> 6 #include <X11/Xlib.h> 11 #include <sys/time.h> 12 #endif 7 13 8 14 #include "syre.h" … … 12 18 13 19 #define NUM_OVERTONES 16 14 15 /*#define _USE_SIGNAL*/16 20 17 21 Display *disp; … … 55 59 #ifdef _USE_SIGNAL 56 60 void handler_alarm(int sig) 61 { 62 struct itimerval itv; 57 63 #else 58 64 void tick(void) 59 #endif 60 { 61 struct itimerval itv; 65 { 66 #endif 62 67 XEvent report; 63 68 Window proot, pchild; … … 466 471 int i; 467 472 Pixmap omap,freshmap; 468 struct itimerval itv; 473 #ifdef _USE_SIGNAL 474 struct itimerval itv; 475 #endif 469 476 470 477 srandom(time(NULL)); syre/trunk/x.c
r571 r573 1 1 #include <stdio.h> 2 #include <stdlib.h> 2 3 #include <string.h> 3 4 #include <time.h>
