comparison src/msdos.c @ 38314:5fa40c87fc5b

(do_visible_bell): Add \n\ at the end of each line of inline assembly, to avoid compiler warnings. (syms_of_msdos): Add \n\ at the end of a doc string line for dos-unsupported-char-glyph.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 06 Jul 2001 15:31:47 +0000
parents f022afc9cdcb
children 0eaf29d6544e
comparison
equal deleted inserted replaced
38313:750b3b39ccac 38314:5fa40c87fc5b
466 static void 466 static void
467 do_visible_bell (xorattr) 467 do_visible_bell (xorattr)
468 unsigned char xorattr; 468 unsigned char xorattr;
469 { 469 {
470 asm volatile 470 asm volatile
471 (" movb $1,%%dl 471 (" movb $1,%%dl \n\
472 visible_bell_0: 472 visible_bell_0: \n\
473 movl _ScreenPrimary,%%eax 473 movl _ScreenPrimary,%%eax \n\
474 call dosmemsetup 474 call dosmemsetup \n\
475 movl %%eax,%%ebx 475 movl %%eax,%%ebx \n\
476 movl %1,%%ecx 476 movl %1,%%ecx \n\
477 movb %0,%%al 477 movb %0,%%al \n\
478 incl %%ebx 478 incl %%ebx \n\
479 visible_bell_1: 479 visible_bell_1: \n\
480 xorb %%al,%%gs:(%%ebx) 480 xorb %%al,%%gs:(%%ebx) \n\
481 addl $2,%%ebx 481 addl $2,%%ebx \n\
482 decl %%ecx 482 decl %%ecx \n\
483 jne visible_bell_1 483 jne visible_bell_1 \n\
484 decb %%dl 484 decb %%dl \n\
485 jne visible_bell_3 485 jne visible_bell_3 \n\
486 visible_bell_2: 486 visible_bell_2: \n\
487 movzwl %%ax,%%eax 487 movzwl %%ax,%%eax \n\
488 movzwl %%ax,%%eax 488 movzwl %%ax,%%eax \n\
489 movzwl %%ax,%%eax 489 movzwl %%ax,%%eax \n\
490 movzwl %%ax,%%eax 490 movzwl %%ax,%%eax \n\
491 decw %%cx 491 decw %%cx \n\
492 jne visible_bell_2 492 jne visible_bell_2 \n\
493 jmp visible_bell_0 493 jmp visible_bell_0 \n\
494 visible_bell_3:" 494 visible_bell_3:"
495 : /* no output */ 495 : /* no output */
496 : "m" (xorattr), "g" (screen_size) 496 : "m" (xorattr), "g" (screen_size)
497 : "%eax", "%ebx", /* "%gs",*/ "%ecx", "%edx"); 497 : "%eax", "%ebx", /* "%gs",*/ "%ecx", "%edx");
498 } 498 }
5330 Qreverse = intern ("reverse"); 5330 Qreverse = intern ("reverse");
5331 staticpro (&Qreverse); 5331 staticpro (&Qreverse);
5332 5332
5333 DEFVAR_LISP ("dos-unsupported-char-glyph", &Vdos_unsupported_char_glyph, 5333 DEFVAR_LISP ("dos-unsupported-char-glyph", &Vdos_unsupported_char_glyph,
5334 "*Glyph to display instead of chars not supported by current codepage.\n\ 5334 "*Glyph to display instead of chars not supported by current codepage.\n\
5335 5335 \n\
5336 This variable is used only by MSDOS terminals."); 5336 This variable is used only by MSDOS terminals.");
5337 Vdos_unsupported_char_glyph = '\177'; 5337 Vdos_unsupported_char_glyph = '\177';
5338 #endif 5338 #endif
5339 #ifndef subprocesses 5339 #ifndef subprocesses
5340 DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes, 5340 DEFVAR_BOOL ("delete-exited-processes", &delete_exited_processes,