forked from KolibriOS/kolibrios
Temporarily removing menuetlibc
git-svn-id: svn://kolibrios.org@4799 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
#ifndef __dj_include_inline_ctype_ha_
|
||||
#define __dj_include_inline_ctype_ha_
|
||||
|
||||
#define __dj_ISALNUM 0x0001
|
||||
#define __dj_ISALPHA 0x0002
|
||||
#define __dj_ISCNTRL 0x0004
|
||||
#define __dj_ISDIGIT 0x0008
|
||||
#define __dj_ISGRAPH 0x0010
|
||||
#define __dj_ISLOWER 0x0020
|
||||
#define __dj_ISPRINT 0x0040
|
||||
#define __dj_ISPUNCT 0x0080
|
||||
#define __dj_ISSPACE 0x0100
|
||||
#define __dj_ISUPPER 0x0200
|
||||
#define __dj_ISXDIGIT 0x0400
|
||||
|
||||
extern unsigned short __dj_ctype_flags[];
|
||||
extern unsigned char __dj_ctype_toupper[];
|
||||
extern unsigned char __dj_ctype_tolower[];
|
||||
|
||||
#define isalnum(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISALNUM)
|
||||
#define isalpha(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISALPHA)
|
||||
#define iscntrl(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISCNTRL)
|
||||
#define isdigit(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISDIGIT)
|
||||
#define isgraph(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISGRAPH)
|
||||
#define islower(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISLOWER)
|
||||
#define isprint(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISPRINT)
|
||||
#define ispunct(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISPUNCT)
|
||||
#define isspace(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISSPACE)
|
||||
#define isupper(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISUPPER)
|
||||
#define isxdigit(c) (__dj_ctype_flags[(int)(c)+1] & __dj_ISXDIGIT)
|
||||
|
||||
#define tolower(c) (__dj_ctype_tolower[(int)(c)+1])
|
||||
#define toupper(c) (__dj_ctype_toupper[(int)(c)+1])
|
||||
|
||||
#endif /* __dj_include_inline_ctype_hi_ */
|
@@ -1,7 +0,0 @@
|
||||
#ifndef __dj_include_inline_ctype_hd_
|
||||
#define __dj_include_inline_ctype_hd_
|
||||
|
||||
#define isascii(c) (!((c)&(~0x7f)))
|
||||
#define toascii(c) ((c)&0x7f)
|
||||
|
||||
#endif
|
@@ -1,54 +0,0 @@
|
||||
/* Copyright (C) 1998 DJ Delorie, see COPYING.DJ for details */
|
||||
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
|
||||
#ifndef __dj_include_Inline_pc_h_
|
||||
#define __dj_include_Inline_pc_h_
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern __inline__ unsigned char inportb (unsigned short _port)
|
||||
{
|
||||
unsigned char __ret;
|
||||
__asm__ __volatile__("inb %%dx,%%al":"=a"(__ret):"d"(_port));
|
||||
return __ret;
|
||||
}
|
||||
|
||||
extern __inline__ unsigned short inportw (unsigned short _port)
|
||||
{
|
||||
unsigned short __ret;
|
||||
__asm__ __volatile__("inw %%dx,%%ax":"=a"(__ret):"d"(_port));
|
||||
return __ret;
|
||||
}
|
||||
|
||||
extern __inline__ unsigned long inportl (unsigned short _port)
|
||||
{
|
||||
unsigned long __ret;
|
||||
__asm__ __volatile__("inl %%dx,%%eax":"=a"(__ret):"d"(_port));
|
||||
return __ret;
|
||||
}
|
||||
|
||||
extern __inline__ void outportb (unsigned short _port, unsigned char _data)
|
||||
{
|
||||
__asm__ __volatile__("outb %%al,%%dx"::"a"(_data),"d"(_port));
|
||||
}
|
||||
|
||||
extern __inline__ void outportw (unsigned short _port, unsigned short _data)
|
||||
{
|
||||
__asm__ __volatile__("outw %%ax,%%dx"::"a"(_data),"d"(_port));
|
||||
}
|
||||
|
||||
extern __inline__ void outportl (unsigned short _port, unsigned long _data)
|
||||
{
|
||||
__asm__ __volatile__("outl %%eax,%%dx"::"a"(_data),"d"(_port));
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user