[AD] Cosmetic } else { fix |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
The attached patch fixes a couple of } else { constructs that have slipped
through into the code.
Evert
Index: src/font.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/font.c,v
retrieving revision 1.20
diff -u -r1.20 font.c
--- src/font.c 5 Jun 2005 11:35:18 -0000 1.20
+++ src/font.c 10 Jun 2005 11:16:00 -0000
@@ -750,7 +750,8 @@
if (mf) {
mf->next = mono_copy_glyph_range(mfin, local_begin, local_end);
mf = mf->next;
- } else {
+ }
+ else {
mf = mono_copy_glyph_range(mfin, local_begin, local_end);
fontout->data = mf;
}
@@ -791,7 +792,8 @@
if (mf) {
mf->next = mono_copy_glyph_range(mf1, mf1->begin, mf1->end);
mf = mf->next;
- } else {
+ }
+ else {
mf = mono_copy_glyph_range(mf1, mf1->begin, mf1->end);
fontout->data = mf;
}
@@ -801,7 +803,8 @@
if (mf) {
mf->next = mono_copy_glyph_range(mf2, mf2->begin, mf2->end);
mf = mf->next;
- } else {
+ }
+ else {
mf = mono_copy_glyph_range(mf2, mf2->begin, mf2->end);
fontout->data = mf;
}
@@ -1213,7 +1216,8 @@
if (cf) {
cf->next = color_copy_glyph_range(cfin, local_begin, local_end);
cf = cf->next;
- } else {
+ }
+ else {
cf = color_copy_glyph_range(cfin, local_begin, local_end);
fontout->data = cf;
}
@@ -1267,7 +1271,8 @@
if (cf) {
cf->next = color_copy_glyph_range(cf1, cf1->begin, cf1->end);
cf = cf->next;
- } else {
+ }
+ else {
cf = color_copy_glyph_range(cf1, cf1->begin, cf1->end);
fontout->data = cf;
}
@@ -1277,7 +1282,8 @@
if (cf) {
cf->next = color_copy_glyph_range(cf2, cf2->begin, cf2->end);
cf = cf->next;
- } else {
+ }
+ else {
cf = color_copy_glyph_range(cf2, cf2->begin, cf2->end);
fontout->data = cf;
}
Index: src/fonttxt.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/fonttxt.c,v
retrieving revision 1.3
diff -u -r1.3 fonttxt.c
--- src/fonttxt.c 5 Jun 2005 11:35:19 -0000 1.3
+++ src/fonttxt.c 10 Jun 2005 11:16:00 -0000
@@ -89,7 +89,8 @@
f = merge_fonts(f2, f3);
destroy_font(f3);
destroy_font(f2);
- } else {
+ }
+ else {
f = f2;
}
f2 = NULL;
Index: src/gui.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/gui.c,v
retrieving revision 1.77
diff -u -r1.77 gui.c
--- src/gui.c 29 May 2005 12:35:59 -0000 1.77
+++ src/gui.c 10 Jun 2005 11:16:00 -0000
@@ -1711,7 +1711,8 @@
c = scancode_to_ascii(k);
if (c) {
k = c;
- } else {
+ }
+ else {
for (c=0; c<(int)sizeof(alt_table); c++) {
if (k == alt_table[c]) {
k = c + 'a';
Index: src/guiproc.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/guiproc.c,v
retrieving revision 1.28
diff -u -r1.28 guiproc.c
--- src/guiproc.c 14 May 2005 12:25:30 -0000 1.28
+++ src/guiproc.c 10 Jun 2005 11:16:04 -0000
@@ -1823,7 +1823,8 @@
sly = d->y+(d->h)-(hh+slp);
slw = d->w-1;
slh = hh-1;
- } else {
+ }
+ else {
slx = d->x+slp;
sly = d->y;
slw = hh-1;
Index: src/mouse.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/mouse.c,v
retrieving revision 1.36
diff -u -r1.36 mouse.c
--- src/mouse.c 10 Apr 2005 13:52:56 -0000 1.36
+++ src/mouse.c 10 Jun 2005 11:16:08 -0000
@@ -621,7 +621,8 @@
got_hw_cursor = TRUE;
}
}
- } else {
+ }
+ else {
use_system_cursor = FALSE;
}