/programs/develop/libraries/menuetlibc/include/inlines/ctype.ha |
---|
0,0 → 1,35 |
#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_ */ |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/programs/develop/libraries/menuetlibc/include/inlines/ctype.hd |
---|
0,0 → 1,7 |
#ifndef __dj_include_inline_ctype_hd_ |
#define __dj_include_inline_ctype_hd_ |
#define isascii(c) (!((c)&(~0x7f))) |
#define toascii(c) ((c)&0x7f) |
#endif |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |
/programs/develop/libraries/menuetlibc/include/inlines/pc.h |
---|
0,0 → 1,54 |
/* 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 |
Property changes: |
Added: svn:executable |
+* |
\ No newline at end of property |