comparison src/atimer.c @ 27452:7580a16f676c

(start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS and EMACS_SET_USECS.
author Eli Zaretskii <eliz@gnu.org>
date Thu, 27 Jan 2000 15:17:27 +0000
parents 87dcc6a2c31b
children cf2edc15eaa9
comparison
equal deleted inserted replaced
27451:f062cc830f07 27452:7580a16f676c
98 /* Round TIME up to the next full second if we don't have 98 /* Round TIME up to the next full second if we don't have
99 itimers. */ 99 itimers. */
100 #ifndef HAVE_SETITIMER 100 #ifndef HAVE_SETITIMER
101 if (EMACS_USECS (time) != 0) 101 if (EMACS_USECS (time) != 0)
102 { 102 {
103 EMACS_USECS (time) = 0; 103 EMACS_SET_USECS (time, 0);
104 ++EMACS_SECS (time); 104 EMACS_SET_SECS (time, EMACS_SECS (time) + 1);
105 } 105 }
106 #endif /* not HAVE_SETITIMER */ 106 #endif /* not HAVE_SETITIMER */
107 107
108 /* Get an atimer structure from the free-list, or allocate 108 /* Get an atimer structure from the free-list, or allocate
109 a new one. */ 109 a new one. */