Mercurial > emacs
comparison lib-src/=timer.c @ 621:eca8812e61cd
*** empty log message ***
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Fri, 24 Apr 1992 08:11:54 +0000 |
| parents | 1aa96958b728 |
| children | cc82116a8f1c |
comparison
equal
deleted
inserted
replaced
| 620:88a29c720fa7 | 621:eca8812e61cd |
|---|---|
| 103 | 103 |
| 104 void | 104 void |
| 105 getevent() | 105 getevent() |
| 106 | 106 |
| 107 { | 107 { |
| 108 extern char *memcpy(), *fgets(); | 108 extern char *fgets(); |
| 109 struct event *ep; | 109 struct event *ep; |
| 110 char buf[256]; | 110 char buf[256]; |
| 111 | 111 |
| 112 /* in principle the itimer should be disabled on entry to this function, | 112 /* in principle the itimer should be disabled on entry to this function, |
| 113 but it really doesn't make any important difference if it isn't */ | 113 but it really doesn't make any important difference if it isn't */ |
| 125 else { | 125 else { |
| 126 if ((ep = schedule(buf)) == NULL) | 126 if ((ep = schedule(buf)) == NULL) |
| 127 free((char *)events[slot]), events[slot] = 0; | 127 free((char *)events[slot]), events[slot] = 0; |
| 128 | 128 |
| 129 else { | 129 else { |
| 130 (void)memcpy((char *)events[slot],(char *)ep,sizeof(struct event)); | 130 memcpy((char *)events[slot],(char *)ep,sizeof(struct event)); |
| 131 if (slot == mevent) mevent++; | 131 if (slot == mevent) mevent++; |
| 132 } /* schedule */ | 132 } /* schedule */ |
| 133 } /* malloc */ | 133 } /* malloc */ |
| 134 } /* limit events */ | 134 } /* limit events */ |
| 135 /* timing, timing. Who knows what this interrupted, or if it said "now"? */ | 135 /* timing, timing. Who knows what this interrupted, or if it said "now"? */ |
