www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/01/08/23:48:19

Message-ID: <32D49E5D.165@cs.com>
Date: Wed, 08 Jan 1997 23:29:33 -0800
From: "John M. Aldrich" <fighteer AT cs DOT com>
Reply-To: fighteer AT cs DOT com
Organization: Two pounds of chaos and a pinch of salt
MIME-Version: 1.0
To: DJGPP Workers Mailing List <djgpp-workers AT delorie DOT com>
Subject: Patch for texinfo docs for _dosmem* functions

This is a multi-part message in MIME format.

--------------67A94E81775A
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

In reference to my earlier post about the typos in the dosmem functions,
I have fixed the error and made a patch for the appropriate libc .txh
files.  It's real trivial, but I thought I'd save everybody else the
trouble of doing it yourselves.  :)

BTW, I didn't submit this as a bug report, due to its really trivial
nature.  Is it appropriate to submit bug reports for documentation
errors or not?

Thanks!

P.S.:  I know I put multiple patches in one source file, but considering
the size of the patches it's hardly a big deal.  If anybody has problems
with this format please email me; it's is my first try at it.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |        fighteer AT cs DOT com          |
| Proud owner of what might one   |   http://www.cs.com/fighteer    |
| day be a spectacular MUD...     | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------

--------------67A94E81775A
Content-Type: text/plain; charset=us-ascii; name="DMG_P.DIF"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="DMG_P.DIF"

*** src/libc/pc_hw/mem/dmpb.tx~	Tue Jan 30 23:30:00 1996
--- src/libc/pc_hw/mem/dmpb.txh	Wed Jan  8 23:16:12 1997
***************
*** 30,35 ****
  
  @example
  unsigned short save_screen[25][80];
! dosmemputb(save_screen, 0xb8000, 80*2*25);
  @end example
  
--- 30,35 ----
  
  @example
  unsigned short save_screen[25][80];
! _dosmemputb(save_screen, 0xb8000, 80*2*25);
  @end example
  
*** src/libc/pc_hw/mem/dmpw.tx~	Tue Jan 30 23:29:54 1996
--- src/libc/pc_hw/mem/dmpw.txh	Wed Jan  8 23:16:12 1997
***************
*** 31,36 ****
  
  @example
  unsigned short save_screen[25][80];
! dosmemputw(save_screen, 0xb8000, 80*25);
  @end example
  
--- 31,36 ----
  
  @example
  unsigned short save_screen[25][80];
! _dosmemputw(save_screen, 0xb8000, 80*25);
  @end example
  
*** src/libc/pc_hw/mem/dmpl.tx~	Tue Jan 30 23:29:56 1996
--- src/libc/pc_hw/mem/dmpl.txh	Wed Jan  8 23:16:12 1997
***************
*** 31,36 ****
  
  @example
  unsigned short save_screen[25][80];
! dosmemputl(save_screen, 0xb8000, 40*25);
  @end example
  
--- 31,36 ----
  
  @example
  unsigned short save_screen[25][80];
! _dosmemputl(save_screen, 0xb8000, 40*25);
  @end example
  
*** src/libc/pc_hw/mem/dmgb.tx~	Tue Jan 30 23:30:10 1996
--- src/libc/pc_hw/mem/dmgb.txh	Wed Jan  8 23:16:10 1997
***************
*** 30,36 ****
  
  @example
  unsigned short shift_state;
! dosmemgetb(0x417, 2, &shift_state);
  if (shift_state & 0x0004)
    /* Ctrl key pressed */;
  @end example
--- 30,36 ----
  
  @example
  unsigned short shift_state;
! _dosmemgetb(0x417, 2, &shift_state);
  if (shift_state & 0x0004)
    /* Ctrl key pressed */;
  @end example
*** src/libc/pc_hw/mem/dmgw.tx~	Tue Jan 30 23:30:04 1996
--- src/libc/pc_hw/mem/dmgw.txh	Wed Jan  8 23:16:12 1997
***************
*** 30,36 ****
  
  @example
  unsigned short shift_state;
! dosmemgetw(0x417, 1, &shift_state);
  if (shift_state & 0x0004)
    /* Ctrl key pressed */;
  @end example
--- 30,36 ----
  
  @example
  unsigned short shift_state;
! _dosmemgetw(0x417, 1, &shift_state);
  if (shift_state & 0x0004)
    /* Ctrl key pressed */;
  @end example
*** src/libc/pc_hw/mem/dmgl.tx~	Tue Jan 30 23:30:08 1996
--- src/libc/pc_hw/mem/dmgl.txh	Wed Jan  8 23:16:10 1997
***************
*** 30,36 ****
  
  @example
  unsigned long shift_state;
! dosmemgetl(0x417, 1, &shift_state);
  if (shift_state & 0x0004)
    /* Ctrl key pressed */;
  @end example
--- 30,36 ----
  
  @example
  unsigned long shift_state;
! _dosmemgetl(0x417, 1, &shift_state);
  if (shift_state & 0x0004)
    /* Ctrl key pressed */;
  @end example

--------------67A94E81775A--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019