whitespace cleanup: tabs to spaces in sys

This commit is contained in:
nhmall
2026-03-19 20:33:03 -04:00
parent b33b09bcac
commit 044a229467
3 changed files with 27 additions and 27 deletions
+10 -10
View File
@@ -174,28 +174,28 @@ term_curs_set(int visibility)
return; return;
if (!visibility) { if (!visibility) {
if (!iflags.grmode) { if (!iflags.grmode) {
txt_hide_cursor(); txt_hide_cursor();
#ifdef SCREEN_VGA #ifdef SCREEN_VGA
} else if (iflags.usevga) { } else if (iflags.usevga) {
vga_hide_cursor(); vga_hide_cursor();
#endif #endif
#ifdef SCREEN_VESA #ifdef SCREEN_VESA
} else if (iflags.usevesa) { } else if (iflags.usevesa) {
vesa_hide_cursor(); vesa_hide_cursor();
} }
#endif #endif
} else if (visibility) { } else if (visibility) {
if (!iflags.grmode) { if (!iflags.grmode) {
txt_show_cursor(); txt_show_cursor();
#ifdef SCREEN_VGA #ifdef SCREEN_VGA
} else if (iflags.usevga) { } else if (iflags.usevga) {
vga_show_cursor(); vga_show_cursor();
#endif #endif
#ifdef SCREEN_VESA #ifdef SCREEN_VESA
} else if (iflags.usevesa) { } else if (iflags.usevesa) {
vesa_show_cursor(); vesa_show_cursor();
} }
#endif #endif
} }
vis = visibility; vis = visibility;
+15 -15
View File
@@ -98,22 +98,22 @@ cell_t undefined_cell = { CONSOLE_UNDEFINED_CHARACTER,
CONSOLE_UNDEFINED_ATTRIBUTE }; CONSOLE_UNDEFINED_ATTRIBUTE };
#else /* VIRTUAL_TERMINAL_SEQUENCES */ #else /* VIRTUAL_TERMINAL_SEQUENCES */
cell_t clear_cell = { cell_t clear_cell = {
{ CONSOLE_CLEAR_CHARACTER, 0, 0, 0, 0, 0, 0 }, { CONSOLE_CLEAR_CHARACTER, 0, 0, 0, 0, 0, 0 },
CONSOLE_CLEAR_CHARACTER, /* wcharacter */ CONSOLE_CLEAR_CHARACTER, /* wcharacter */
0, /* attr */ 0, /* attr */
0L, /* color24 */ 0L, /* color24 */
0, /* color256idx */ 0, /* color256idx */
"\x1b[0m", /* bkcolorseq */ "\x1b[0m", /* bkcolorseq */
0 /* colorseq */ 0 /* colorseq */
}; };
cell_t undefined_cell = { cell_t undefined_cell = {
{ CONSOLE_UNDEFINED_CHARACTER, 0, 0, 0, 0, 0, 0 }, { CONSOLE_UNDEFINED_CHARACTER, 0, 0, 0, 0, 0, 0 },
CONSOLE_UNDEFINED_CHARACTER, /* wcharacter */ CONSOLE_UNDEFINED_CHARACTER, /* wcharacter */
0, /* attr */ 0, /* attr */
0L, /* color24 */ 0L, /* color24 */
0, /* color256idx */ 0, /* color256idx */
(const char *) 0, /* bkcolorseq */ (const char *) 0, /* bkcolorseq */
(const char *) 0 /* colorseq */ (const char *) 0 /* colorseq */
}; };
#if 0 #if 0
static const uint8 empty_utf8str[MAX_UTF8_SEQUENCE] = { 0 }; static const uint8 empty_utf8str[MAX_UTF8_SEQUENCE] = { 0 };
@@ -1146,7 +1146,7 @@ CtrlHandler(DWORD ctrltype)
case CTRL_BREAK_EVENT: case CTRL_BREAK_EVENT:
term_clear_screen(); term_clear_screen();
FALLTHROUGH; FALLTHROUGH;
/* FALLTHRU */ /* FALLTHRU */
case CTRL_CLOSE_EVENT: case CTRL_CLOSE_EVENT:
case CTRL_LOGOFF_EVENT: case CTRL_LOGOFF_EVENT:
case CTRL_SHUTDOWN_EVENT: case CTRL_SHUTDOWN_EVENT:
@@ -1308,8 +1308,8 @@ really_move_cursor(void)
oldtitle[39] = '\0'; oldtitle[39] = '\0';
} }
Snprintf(newtitle, sizeof newtitle, Snprintf(newtitle, sizeof newtitle,
"%-55s tty=(%02d,%02d) consoletty=(%02d,%02d)", "%-55s tty=(%02d,%02d) consoletty=(%02d,%02d)",
oldtitle, oldtitle,
ttyDisplay->curx, ttyDisplay->cury, ttyDisplay->curx, ttyDisplay->cury,
console.cursor.X, console.cursor.Y); console.cursor.X, console.cursor.Y);
(void) SetConsoleTitle(newtitle); (void) SetConsoleTitle(newtitle);
+2 -2
View File
@@ -1338,8 +1338,8 @@ printf("E2: M=%s e=%d\n",msg,errnum);
int int
win32_cr_gettrace(int maxframes USED_IF_BACKTRACE, win32_cr_gettrace(int maxframes USED_IF_BACKTRACE,
char *out USED_IF_BACKTRACE, char *out USED_IF_BACKTRACE,
int outsize USED_IF_BACKTRACE) int outsize USED_IF_BACKTRACE)
{ {
#ifdef USE_BACKTRACE #ifdef USE_BACKTRACE
userstate.error_count = 0; userstate.error_count = 0;