OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [conts/] [posix/] [libposix/] [include/] [posix/] [bits/] [uClibc_touplow.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
/*  Copyright (C) 2003     Manuel Novoa III
2
 *
3
 *  This library is free software; you can redistribute it and/or
4
 *  modify it under the terms of the GNU Lesser General Public
5
 *  License as published by the Free Software Foundation; either
6
 *  version 2.1 of the License, or (at your option) any later version.
7
 *
8
 *  The GNU C Library is distributed in the hope that it will be useful,
9
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11
 *  Lesser General Public License for more details.
12
 *
13
 *  You should have received a copy of the GNU Lesser General Public
14
 *  License along with the GNU C Library; if not, write to the Free
15
 *  Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
16
 *  02111-1307 USA.
17
 */
18
 
19
/*  ATTENTION!   ATTENTION!   ATTENTION!   ATTENTION!   ATTENTION!
20
 *
21
 *  Besides uClibc, I'm using this code in my libc for elks, which is
22
 *  a 16-bit environment with a fairly limited compiler.  It would make
23
 *  things much easier for me if this file isn't modified unnecessarily.
24
 *  In particular, please put any new or replacement functions somewhere
25
 *  else, and modify the makefile to use your version instead.
26
 *  Thanks.  Manuel
27
 *
28
 *  ATTENTION!   ATTENTION!   ATTENTION!   ATTENTION!   ATTENTION! */
29
 
30
#ifndef _UCLIBC_TOUPLOW_H
31
#define _UCLIBC_TOUPLOW_H
32
 
33
#include <features.h>
34
#include <bits/types.h>
35
 
36
/* glibc uses the equivalent of - typedef __int32_t __ctype_touplow_t; */
37
 
38
typedef __uint16_t __ctype_mask_t;
39
 
40
#ifdef __UCLIBC_HAS_CTYPE_SIGNED__
41
 
42
typedef __int16_t __ctype_touplow_t;
43
#define __UCLIBC_CTYPE_B_TBL_OFFSET       128
44
#define __UCLIBC_CTYPE_TO_TBL_OFFSET      128
45
 
46
#else  /* __UCLIBC_HAS_CTYPE_SIGNED__ */
47
 
48
typedef unsigned char __ctype_touplow_t;
49
#define __UCLIBC_CTYPE_B_TBL_OFFSET       1
50
#define __UCLIBC_CTYPE_TO_TBL_OFFSET      0
51
 
52
#endif /* __UCLIBC_HAS_CTYPE_SIGNED__ */
53
 
54
#endif /* _UCLIBC_TOUPLOW_H */
55
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.