Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/ctype.h

    r7f9df7b9 rfdf97f6  
    3737#define POSIX_CTYPE_H_
    3838
     39#ifndef __POSIX_DEF__
     40#define __POSIX_DEF__(x) x
     41#endif
     42
    3943#include "libc/ctype.h"
    4044
     45/* Classification of Characters */
     46extern int __POSIX_DEF__(isxdigit)(int c);
     47extern int __POSIX_DEF__(isblank)(int c);
     48extern int __POSIX_DEF__(iscntrl)(int c);
     49extern int __POSIX_DEF__(isgraph)(int c);
     50extern int __POSIX_DEF__(isprint)(int c);
     51extern int __POSIX_DEF__(ispunct)(int c);
     52
    4153/* Obsolete Functions and Macros */
    42 extern int isascii(int c);
    43 extern int toascii(int c);
     54extern int __POSIX_DEF__(isascii)(int c);
     55extern int __POSIX_DEF__(toascii)(int c);
     56#undef _tolower
     57#define _tolower(c) ((c) - 'A' + 'a')
     58#undef _toupper
     59#define _toupper(c) ((c) - 'a' + 'A')
    4460
    45 #define _tolower(c) ((c) - 'A' + 'a')
    46 #define _toupper(c) ((c) - 'a' + 'A')
     61
    4762
    4863#endif /* POSIX_CTYPE_H_ */
Note: See TracChangeset for help on using the changeset viewer.