Removed a goto, style changes, patch by Vasilis Kaoutsis. Thank you!

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20179 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-02-20 13:04:26 +00:00
parent 355c6ebe10
commit 4fe138eecb
+11 -15
View File
@@ -1,11 +1,12 @@
/* /*
* Copyright (c) 2001-2006, Haiku, Inc. * Copyright 2001-2007, Haiku, Inc.
* Copyright (c) 2003-4 Kian Duffy <[email protected]> * Copyright 2003-2004 Kian Duffy, [email protected]
* Parts Copyright (C) 1998,99 Kazuho Okui and Takashi Murai. * Parts Copyright 1998-1999 Kazuho Okui and Takashi Murai.
* Distributed under the terms of the MIT license. * All rights reserved. Distributed under the terms of the MIT license.
* *
* Authors: * Authors:
* Kian Duffy <[email protected]> * Kian Duffy, [email protected]
* Y.Hayakawa, [email protected]
*/ */
@@ -1128,10 +1129,7 @@ TermView::UpdateSIGWINCH()
} }
/*! Device Status. //! Device Status.
Q & D hack by Y.Hayakawa([email protected])
21-JUL-99
*/
void void
TermView::DeviceStatusReport(int n) TermView::DeviceStatusReport(int n)
{ {
@@ -2305,18 +2303,16 @@ TermView::GetSelection(BString &str)
inline void inline void
TermView::SendDataToDrawEngine(int x1, int y1, int x2, int y2) TermView::SendDataToDrawEngine(int x1, int y1, int x2, int y2)
{ {
// TODO: remove the goto
sem_info info; sem_info info;
retry: for (;;) {
get_sem_info(fDrawRectSem, &info); get_sem_info(fDrawRectSem, &info);
if ((RECT_BUF_SIZE - info.count) < 2) { if ((RECT_BUF_SIZE - info.count) < 2) {
snooze(10 * 1000); snooze(10 * 1000);
goto retry; continue;
} else
break;
} }
fDrawRectBuffer[fDrawRect_p].x1 = x1; fDrawRectBuffer[fDrawRect_p].x1 = x1;