[svn:parrot] r47992 - in branches/gsoc_threads/src: . pmc
mikehh at svn.parrot.org
mikehh at svn.parrot.org
Mon Jul 5 00:42:09 UTC 2010
Author: mikehh
Date: Mon Jul 5 00:42:09 2010
New Revision: 47992
URL: https://trac.parrot.org/parrot/changeset/47992
Log:
fix codetest failure - no cuddled elses
Modified:
branches/gsoc_threads/src/alarm.c
branches/gsoc_threads/src/pmc/pmclist.pmc
branches/gsoc_threads/src/pmc/timer.pmc
branches/gsoc_threads/src/scheduler.c
Modified: branches/gsoc_threads/src/alarm.c
==============================================================================
--- branches/gsoc_threads/src/alarm.c Mon Jul 5 00:35:23 2010 (r47991)
+++ branches/gsoc_threads/src/alarm.c Mon Jul 5 00:42:09 2010 (r47992)
@@ -140,7 +140,8 @@
{
if (*last_serial == alarm_serial) {
return 0;
- } else {
+ }
+ else {
*last_serial = alarm_serial;
return 1;
}
Modified: branches/gsoc_threads/src/pmc/pmclist.pmc
==============================================================================
--- branches/gsoc_threads/src/pmc/pmclist.pmc Mon Jul 5 00:35:23 2010 (r47991)
+++ branches/gsoc_threads/src/pmc/pmclist.pmc Mon Jul 5 00:42:09 2010 (r47992)
@@ -144,7 +144,8 @@
if (head == NULL) {
/* size == 0 */
SET_ATTR_foot(INTERP, SELF, NULL);
- } else {
+ }
+ else {
head->prev = NULL;
}
@@ -230,7 +231,8 @@
if (foot == NULL) {
/* size == 0 */
SET_ATTR_head(INTERP, SELF, NULL);
- } else {
+ }
+ else {
foot->next = NULL;
}
@@ -521,13 +523,15 @@
if (item->next == NULL) {
SETATTR_PMCList_foot(interp, list, item);
- } else {
+ }
+ else {
item->next->prev = item;
}
if (item->prev == NULL) {
SETATTR_PMCList_head(interp, list, item);
- } else {
+ }
+ else {
item->prev->next = item;
}
Modified: branches/gsoc_threads/src/pmc/timer.pmc
==============================================================================
--- branches/gsoc_threads/src/pmc/timer.pmc Mon Jul 5 00:35:23 2010 (r47991)
+++ branches/gsoc_threads/src/pmc/timer.pmc Mon Jul 5 00:42:09 2010 (r47992)
@@ -324,7 +324,8 @@
VTABLE_set_pmc_keyed_int(INTERP, alarm, PARROT_ALARM_SUB, SELF);
next = VTABLE_invoke(INTERP, alarm, next);
- } else {
+ }
+ else {
/* This is the timer triggering. */
if (!PMC_IS_NULL(timer->codeblock)) {
Parrot_pcc_invoke_sub_from_c_args(interp, timer->codeblock, "->");
Modified: branches/gsoc_threads/src/scheduler.c
==============================================================================
--- branches/gsoc_threads/src/scheduler.c Mon Jul 5 00:35:23 2010 (r47991)
+++ branches/gsoc_threads/src/scheduler.c Mon Jul 5 00:42:09 2010 (r47992)
@@ -972,7 +972,8 @@
if (alarm_time < now_time) {
Parrot_Alarm_attributes *data = PARROT_ALARM(alarm);
Parrot_cx_schedule_immediate(interp, data->alarm_sub);
- } else {
+ }
+ else {
VTABLE_unshift_pmc(interp, sched->alarms, alarm);
break;
}
More information about the parrot-commits
mailing list