diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2011-10-31 12:54:00 -0700 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2011-11-01 19:08:23 +0100 |
commit | e11835e2995d130890ca9f45cb3e304f2ea3a6a9 (patch) | |
tree | cfc5345e9d98b231de0699714771a5d7f54c6ce1 /payloads/libpayload/curses/PDCurses-3.4/dos | |
parent | dd6906328904309e4d93e4bcb04a6cfa3646f29d (diff) |
libpayload: remove trailing whitespace and run dos2unix
Change-Id: Iffed3602456f5306711c65f06c873c58d4086e11
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/363
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'payloads/libpayload/curses/PDCurses-3.4/dos')
6 files changed, 44 insertions, 44 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c index 74607aa0bc..c5fa29108a 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c +++ b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcclip.c @@ -17,14 +17,14 @@ RCSID("$Id: pdcclip.c,v 1.33 2008/07/13 16:08:17 wmcbrine Exp $") int PDC_clearclipboard(void); Description: - PDC_getclipboard() gets the textual contents of the system's - clipboard. This function returns the contents of the clipboard - in the contents argument. It is the responsibilitiy of the + PDC_getclipboard() gets the textual contents of the system's + clipboard. This function returns the contents of the clipboard + in the contents argument. It is the responsibilitiy of the caller to free the memory returned, via PDC_freeclipboard(). - The length of the clipboard contents is returned in the length + The length of the clipboard contents is returned in the length argument. - PDC_setclipboard copies the supplied text into the system's + PDC_setclipboard copies the supplied text into the system's clipboard, emptying the clipboard prior to the copy. PDC_clearclipboard() clears the internal clipboard. @@ -32,7 +32,7 @@ RCSID("$Id: pdcclip.c,v 1.33 2008/07/13 16:08:17 wmcbrine Exp $") Return Values: indicator of success/failure of call. PDC_CLIP_SUCCESS the call was successful - PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for + PDC_CLIP_MEMORY_ERROR unable to allocate sufficient memory for the clipboard contents PDC_CLIP_EMPTY the clipboard contains no text PDC_CLIP_ACCESS_ERROR no clipboard support @@ -98,10 +98,10 @@ int PDC_freeclipboard(char *contents) if (contents) { - /* NOTE: We free the memory, but we can not set caller's pointer - to NULL, so if caller calls again then will try to access - free'd memory. We 1st overwrite memory with a string so if - caller tries to use free memory they won't get what they + /* NOTE: We free the memory, but we can not set caller's pointer + to NULL, so if caller calls again then will try to access + free'd memory. We 1st overwrite memory with a string so if + caller tries to use free memory they won't get what they expect & hopefully notice. */ /* memset(contents, 0xFD, strlen(contents)); */ @@ -119,7 +119,7 @@ int PDC_clearclipboard(void) { PDC_LOG(("PDC_clearclipboard() - called\n")); - if (pdc_DOS_clipboard) + if (pdc_DOS_clipboard) { free(pdc_DOS_clipboard); pdc_DOS_clipboard = NULL; diff --git a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcdisp.c b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcdisp.c index aae9bfb56d..d170cb175c 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcdisp.c +++ b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcdisp.c @@ -13,10 +13,10 @@ RCSID("$Id: pdcdisp.c,v 1.65 2008/07/13 16:08:17 wmcbrine Exp $") chtype acs_map[128] = { - A(0), A(1), A(2), A(3), A(4), A(5), A(6), A(7), A(8), A(9), A(10), - A(11), A(12), A(13), A(14), A(15), A(16), A(17), A(18), A(19), - A(20), A(21), A(22), A(23), A(24), A(25), A(26), A(27), A(28), - A(29), A(30), A(31), ' ', '!', '"', '#', '$', '%', '&', '\'', '(', + A(0), A(1), A(2), A(3), A(4), A(5), A(6), A(7), A(8), A(9), A(10), + A(11), A(12), A(13), A(14), A(15), A(16), A(17), A(18), A(19), + A(20), A(21), A(22), A(23), A(24), A(25), A(26), A(27), A(28), + A(29), A(30), A(31), ' ', '!', '"', '#', '$', '%', '&', '\'', '(', ')', '*', A(0x1a), A(0x1b), A(0x18), A(0x19), @@ -25,17 +25,17 @@ chtype acs_map[128] = 0xdb, - '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', - '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', - 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', + '1', '2', '3', '4', '5', '6', '7', '8', '9', ':', ';', '<', '=', + '>', '?', '@', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', + 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '[', '\\', ']', '^', '_', A(0x04), 0xb1, 'b', 'c', 'd', 'e', - 0xf8, 0xf1, 0xb0, A(0x0f), 0xd9, 0xbf, 0xda, 0xc0, 0xc5, 0x2d, 0x2d, - 0xc4, 0x2d, 0x5f, 0xc3, 0xb4, 0xc1, 0xc2, 0xb3, 0xf3, 0xf2, 0xe3, + 0xf8, 0xf1, 0xb0, A(0x0f), 0xd9, 0xbf, 0xda, 0xc0, 0xc5, 0x2d, 0x2d, + 0xc4, 0x2d, 0x5f, 0xc3, 0xb4, 0xc1, 0xc2, 0xb3, 0xf3, 0xf2, 0xe3, 0xd8, 0x9c, 0xf9, A(127) @@ -72,7 +72,7 @@ void PDC_gotoyx(int row, int col) PDCINT(0x10, regs); } -/* update the given physical line to look like the corresponding line in +/* update the given physical line to look like the corresponding line in curscr */ void PDC_transform_line(int lineno, int x, int len, const chtype *srcp) @@ -93,7 +93,7 @@ void PDC_transform_line(int lineno, int x, int len, const chtype *srcp) struct {unsigned char text, attr;} temp_line[256]; - /* replace the attribute part of the chtype with the actual + /* replace the attribute part of the chtype with the actual color value for each chtype in the line */ for (j = 0; j < len; j++) diff --git a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcdos.h b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcdos.h index 436699de2f..99b0368ce6 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcdos.h +++ b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcdos.h @@ -117,7 +117,7 @@ typedef union struct { unsigned short di, di_hi, si, si_hi, bp, bp_hi, res, res_hi, - bx, bx_hi, dx, dx_hi, cx, cx_hi, ax, ax_hi, + bx, bx_hi, dx, dx_hi, cx, cx_hi, ax, ax_hi, flags, es, ds, fs, gs, ip, cs, sp, ss; } w; diff --git a/payloads/libpayload/curses/PDCurses-3.4/dos/pdckbd.c b/payloads/libpayload/curses/PDCurses-3.4/dos/pdckbd.c index 652cb0cba7..c44393fc0f 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/dos/pdckbd.c +++ b/payloads/libpayload/curses/PDCurses-3.4/dos/pdckbd.c @@ -1,5 +1,5 @@ /* Public Domain Curses */ - + /* MS C doesn't return flags from int86() */ #ifdef MSC # define USE_KBHIT @@ -21,7 +21,7 @@ RCSID("$Id: pdckbd.c,v 1.87 2008/07/13 16:08:17 wmcbrine Exp $") unsigned long PDC_get_input_fd(void); Description: - PDC_get_input_fd() returns the file descriptor that PDCurses + PDC_get_input_fd() returns the file descriptor that PDCurses reads its input from. It can be used for select(). Portability X/Open BSD SYS V @@ -277,7 +277,7 @@ static int _process_mouse_events(void) { if (button[i].pressed) { - /* Check for a click -- a PRESS followed + /* Check for a click -- a PRESS followed immediately by a release */ if (!button[i].released) @@ -451,14 +451,14 @@ int PDC_get_key(void) return key; } -/* discard any pending keyboard or mouse input -- this is the core +/* discard any pending keyboard or mouse input -- this is the core routine for flushinp() */ void PDC_flushinp(void) { PDC_LOG(("PDC_flushinp() - called\n")); - /* Force the BIOS keyboard buffer head and tail pointers to be + /* Force the BIOS keyboard buffer head and tail pointers to be the same... Real nasty trick... */ setdosmemword(0x41a, getdosmemword(0x41c)); diff --git a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcscrn.c b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcscrn.c index ddfb095677..fc3bbfc6cb 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcscrn.c +++ b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcscrn.c @@ -84,10 +84,10 @@ static int _get_font(void) return retval; } -/* _set_font() - Sets the current font size, if the adapter allows such a - change. It is an error to attempt to change the font size on a - "bogus" adapter. The reason for this is that we have a known video - adapter identity problem. e.g. Two adapters report the same identifying +/* _set_font() - Sets the current font size, if the adapter allows such a + change. It is an error to attempt to change the font size on a + "bogus" adapter. The reason for this is that we have a known video + adapter identity problem. e.g. Two adapters report the same identifying characteristics. */ static void _set_font(int size) @@ -154,7 +154,7 @@ static void _set_font(int size) pdc_font = _get_font(); } -/* _set_80x25() - force a known screen state: 80x25 text mode. Forces the +/* _set_80x25() - force a known screen state: 80x25 text mode. Forces the appropriate 80x25 alpha mode given the display adapter. */ static void _set_80x25(void) @@ -193,7 +193,7 @@ static int _get_scrn_mode(void) return (int)regs.h.al; } -/* _set_scrn_mode() - Sets the BIOS Video Mode Number only if it is +/* _set_scrn_mode() - Sets the BIOS Video Mode Number only if it is different from the current video mode. */ static void _set_scrn_mode(int new_mode) @@ -213,7 +213,7 @@ static void _set_scrn_mode(int new_mode) COLS = PDC_get_columns(); } -/* _sanity_check() - A video adapter identification sanity check. This +/* _sanity_check() - A video adapter identification sanity check. This routine will force sane values for various control flags. */ static int _sanity_check(int adapter) @@ -230,7 +230,7 @@ static int _sanity_check(int adapter) switch (rows) { case 25: - case 43: + case 43: break; default: pdc_bogus_adapter = TRUE; @@ -445,7 +445,7 @@ static int _query_adapter_type(void) return _sanity_check(retval); } -/* close the physical screen -- may restore the screen to its state +/* close the physical screen -- may restore the screen to its state before PDC_scr_open(); miscellaneous cleanup */ void PDC_scr_close(void) @@ -503,7 +503,7 @@ void PDC_scr_free(void) pdc_atrtab = (unsigned char *)NULL; } -/* open the physical screen -- allocate SP, miscellaneous intialization, +/* open the physical screen -- allocate SP, miscellaneous intialization, and may save the existing screen for later restoration */ int PDC_scr_open(int argc, char **argv) @@ -543,7 +543,7 @@ int PDC_scr_open(int argc, char **argv) SP->mouse_wait = PDC_CLICK_PERIOD; SP->audible = TRUE; - /* If the environment variable PDCURSES_BIOS is set, the DOS int10() + /* If the environment variable PDCURSES_BIOS is set, the DOS int10() BIOS calls are used in place of direct video memory access. */ if (getenv("PDCURSES_BIOS")) @@ -596,7 +596,7 @@ int PDC_resize_screen(int nlines, int ncols) PDC_LOG(("PDC_resize_screen() - called. Lines: %d Cols: %d\n", nlines, ncols)); - /* Trash the stored value of orig_cursor -- it's only good if the + /* Trash the stored value of orig_cursor -- it's only good if the video mode doesn't change */ SP->orig_cursor = 0x0607; diff --git a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcsetsc.c b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcsetsc.c index 2180ef486c..4b2314edf2 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/dos/pdcsetsc.c +++ b/payloads/libpayload/curses/PDCurses-3.4/dos/pdcsetsc.c @@ -16,9 +16,9 @@ RCSID("$Id: pdcsetsc.c,v 1.39 2008/07/13 16:08:17 wmcbrine Exp $") PDC_set_blink() toggles whether the A_BLINK attribute sets an actual blink mode (TRUE), or sets the background color to high intensity (FALSE). The default is platform-dependent (FALSE in - most cases). It returns OK if it could set the state to match - the given parameter, ERR otherwise. Current platforms also - adjust the value of COLORS according to this function -- 16 for + most cases). It returns OK if it could set the state to match + the given parameter, ERR otherwise. Current platforms also + adjust the value of COLORS according to this function -- 16 for FALSE, and 8 for TRUE. PDC_set_title() sets the title of the window in which the curses @@ -59,7 +59,7 @@ int PDC_curs_set(int visibility) /* if scrnmode is not set, some BIOSes hang */ regs.h.ah = 0x01; - regs.h.al = (unsigned char)pdc_scrnmode; + regs.h.al = (unsigned char)pdc_scrnmode; regs.h.ch = (unsigned char)start; regs.h.cl = (unsigned char)end; PDCINT(0x10, regs); |