libpayload: remove trailing whitespace and run dos2unix
[coreboot.git] / payloads / libpayload / curses / PDCurses-3.4 / pdcurses / refresh.c
index 0b8e1ca5ed6ba66198c8e18f502658ee9c7a25a2..da4bb76edd54ff4da721a223e24ed8e74a4fe6f7 100644 (file)
@@ -17,28 +17,28 @@ RCSID("$Id: refresh.c,v 1.56 2008/07/13 16:08:18 wmcbrine Exp $")
         int wredrawln(WINDOW *win, int beg_line, int num_lines);
 
   Description:
-        wrefresh() copies the named window to the physical terminal 
-        screen, taking into account what is already there in order to 
-        optimize cursor movement. refresh() does the same, using stdscr. 
-        These routines must be called to get any output on the terminal, 
-        as other routines only manipulate data structures. Unless 
-        leaveok() has been enabled, the physical cursor of the terminal 
+        wrefresh() copies the named window to the physical terminal
+        screen, taking into account what is already there in order to
+        optimize cursor movement. refresh() does the same, using stdscr.
+        These routines must be called to get any output on the terminal,
+        as other routines only manipulate data structures. Unless
+        leaveok() has been enabled, the physical cursor of the terminal
         is left at the location of the window's cursor.
 
-        wnoutrefresh() and doupdate() allow multiple updates with more 
-        efficiency than wrefresh() alone. wrefresh() works by first 
-        calling wnoutrefresh(), which copies the named window to the 
-        virtual screen.  It then calls doupdate(), which compares the 
-        virtual screen to the physical screen and does the actual 
-        update. A series of calls to wrefresh() will result in 
-        alternating calls to wnoutrefresh() and doupdate(), causing 
-        several bursts of output to the screen.  By first calling 
-        wnoutrefresh() for each window, it is then possible to call 
+        wnoutrefresh() and doupdate() allow multiple updates with more
+        efficiency than wrefresh() alone. wrefresh() works by first
+        calling wnoutrefresh(), which copies the named window to the
+        virtual screen.  It then calls doupdate(), which compares the
+        virtual screen to the physical screen and does the actual
+        update. A series of calls to wrefresh() will result in
+        alternating calls to wnoutrefresh() and doupdate(), causing
+        several bursts of output to the screen.  By first calling
+        wnoutrefresh() for each window, it is then possible to call
         doupdate() only once.
 
-        In PDCurses, redrawwin() is equivalent to touchwin(), and 
-        wredrawln() is the same as touchline(). In some other curses 
-        implementations, there's a subtle distinction, but it has no 
+        In PDCurses, redrawwin() is equivalent to touchwin(), and
+        wredrawln() is the same as touchline(). In some other curses
+        implementations, there's a subtle distinction, but it has no
         meaning in PDCurses.
 
   Return Value:
@@ -79,7 +79,7 @@ int wnoutrefresh(WINDOW *win)
             int first = win->_firstch[i]; /* first changed */
             int last = win->_lastch[i];   /* last changed */
 
-            /* ignore areas on the outside that are marked as changed, 
+            /* ignore areas on the outside that are marked as changed,
                but really aren't */
 
             while (first <= last && src[first] == dest[first])
@@ -95,7 +95,7 @@ int wnoutrefresh(WINDOW *win)
                 memcpy(dest + first, src + first,
                        (last - first + 1) * sizeof(chtype));
 
-                first += begx; 
+                first += begx;
                 last += begx;
 
                 if (first < curscr->_firstch[j] ||