www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/06/10/23:46:59

Sender: nate AT cartsys DOT com
Message-ID: <357F49A7.32840FE@cartsys.com>
Date: Wed, 10 Jun 1998 20:06:15 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: inb/outb

The `inb' and `outb' functions are missing their prototypes in <pc.h>.
Here is a patch.


Btw, is there a problem with doing `#define inb inportb' and similar
either in that file or in <inlines/pc.h>?  That would allow people using
the alternate names to get the inline advantage.

*** include/pc.h~       Wed Jun 10 19:55:40 1998
--- include/pc.h        Wed Jun 10 20:04:00 1998
***************
*** 25,33 ****
--- 25,35 ----
  void          outportsw(unsigned short _port, unsigned short *_buf,
unsigned _len);
  void          outportsl(unsigned short _port, unsigned long  *_buf,
unsigned _len);
  
+ unsigned char inb(unsigned short _port);
  unsigned char inp(unsigned short _port);
  unsigned short        inpw(unsigned short _port);
  void          outp(unsigned short _port, unsigned char _data);
+ void          outb(unsigned short _port, unsigned char _data);
  void          outpw(unsigned short _port, unsigned short _data);
  int           kbhit(void);
  int           getkey(void);   /* ALT's have 0x100 set */

--
Nate Eldredge
nate AT cartsys DOT com

- Raw text -


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