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:
@@ -1,11 +1,12 @@
|
||||
/*
|
||||
* Copyright (c) 2001-2006, Haiku, Inc.
|
||||
* Copyright (c) 2003-4 Kian Duffy <[email protected]>
|
||||
* Parts Copyright (C) 1998,99 Kazuho Okui and Takashi Murai.
|
||||
* Distributed under the terms of the MIT license.
|
||||
* Copyright 2001-2007, Haiku, Inc.
|
||||
* Copyright 2003-2004 Kian Duffy, [email protected]
|
||||
* Parts Copyright 1998-1999 Kazuho Okui and Takashi Murai.
|
||||
* All rights reserved. Distributed under the terms of the MIT license.
|
||||
*
|
||||
* Authors:
|
||||
* Kian Duffy <[email protected]>
|
||||
* Kian Duffy, [email protected]
|
||||
* Y.Hayakawa, [email protected]
|
||||
*/
|
||||
|
||||
|
||||
@@ -1128,10 +1129,7 @@ TermView::UpdateSIGWINCH()
|
||||
}
|
||||
|
||||
|
||||
/*! Device Status.
|
||||
Q & D hack by Y.Hayakawa([email protected])
|
||||
21-JUL-99
|
||||
*/
|
||||
//! Device Status.
|
||||
void
|
||||
TermView::DeviceStatusReport(int n)
|
||||
{
|
||||
@@ -2305,18 +2303,16 @@ TermView::GetSelection(BString &str)
|
||||
inline void
|
||||
TermView::SendDataToDrawEngine(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
// TODO: remove the goto
|
||||
|
||||
sem_info info;
|
||||
|
||||
retry:
|
||||
|
||||
for (;;) {
|
||||
get_sem_info(fDrawRectSem, &info);
|
||||
|
||||
if ((RECT_BUF_SIZE - info.count) < 2) {
|
||||
|
||||
snooze(10 * 1000);
|
||||
goto retry;
|
||||
continue;
|
||||
} else
|
||||
break;
|
||||
}
|
||||
|
||||
fDrawRectBuffer[fDrawRect_p].x1 = x1;
|
||||
|
||||
Reference in New Issue
Block a user