[svn:parrot] r47987 - branches/gsoc_threads/src
mikehh at svn.parrot.org
mikehh at svn.parrot.org
Mon Jul 5 00:10:59 UTC 2010
Author: mikehh
Date: Mon Jul 5 00:10:58 2010
New Revision: 47987
URL: https://trac.parrot.org/parrot/changeset/47987
Log:
fix codetest failure - there should be at least one space between a C keyword and any subsequent open parenthesis
Modified:
branches/gsoc_threads/src/alarm.c
Modified: branches/gsoc_threads/src/alarm.c
==============================================================================
--- branches/gsoc_threads/src/alarm.c Mon Jul 5 00:03:38 2010 (r47986)
+++ branches/gsoc_threads/src/alarm.c Mon Jul 5 00:10:58 2010 (r47987)
@@ -53,7 +53,7 @@
sa.sa_handler = Parrot_alarm_callback;
sa.sa_flags = SA_RESTART;
- if(sigaction(SIGALRM, &sa, 0) == -1) {
+ if (sigaction(SIGALRM, &sa, 0) == -1) {
perror("sigaction failed in Parrot_timers_init");
exit(EXIT_FAILURE);
}
@@ -85,7 +85,7 @@
itmr.it_interval.tv_sec = 0;
itmr.it_interval.tv_usec = 0;
- if(setitimer(ITIMER_REAL, &itmr, 0) == -1) {
+ if (setitimer(ITIMER_REAL, &itmr, 0) == -1) {
perror("setitimer failed in set_posix_alarm");
exit(EXIT_FAILURE);
}
@@ -111,13 +111,13 @@
/* Find the first future item. */
now = Parrot_floatval_time();
- while(alarm_queue != NULL && alarm_queue->when < now) {
+ while (alarm_queue != NULL && alarm_queue->when < now) {
qp = alarm_queue->next;
free(alarm_queue);
alarm_queue = qp;
}
- if(alarm_queue != NULL) {
+ if (alarm_queue != NULL) {
wait = alarm_queue->when - now;
set_posix_alarm(wait);
}
@@ -138,7 +138,7 @@
int
Parrot_alarm_check(ARGMOD(UINTVAL* last_serial))
{
- if(*last_serial == alarm_serial) {
+ if (*last_serial == alarm_serial) {
return 0;
} else {
*last_serial = alarm_serial;
@@ -166,10 +166,10 @@
now = Parrot_floatval_time();
- new_alarm = (Parrot_alarm_queue*) malloc(sizeof(Parrot_alarm_queue));
+ new_alarm = (Parrot_alarm_queue*) malloc(sizeof (Parrot_alarm_queue));
new_alarm->when = when;
- if(alarm_queue == NULL || when < alarm_queue->when) {
+ if (alarm_queue == NULL || when < alarm_queue->when) {
new_alarm->next = alarm_queue;
alarm_queue = new_alarm;
set_posix_alarm(when - now);
@@ -177,7 +177,7 @@
}
qpp = &alarm_queue;
- while(*qpp != NULL && (*qpp)->when < when) {
+ while (*qpp != NULL && (*qpp)->when < when) {
qpp = &(alarm_queue->next);
}
More information about the parrot-commits
mailing list