Mail Archives: djgpp-workers/1998/06/10/23:46:59
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 -