Commit 3ed0fb98 authored by Ben Avison's avatar Ben Avison
Browse files

Add C99 standard headers wchar.h and wctype.h

Detail:
  These were previously languishing in the C compiler sources, but they
  belong in the C library. Note however that the library does not implement
  the functions described in these headers at the present time, so any
  attempt to use them will result in link-time errors.
Admin:
  Untested (known not working)

Version 5.83. Tagged as 'RISC_OSLib-5_83'
parent da9f2a03
......@@ -179,6 +179,8 @@ HEADERS =\
CLIB:h.tgmath \
CLIB:h.time \
CLIB:h.varargs \
CLIB:h.wchar \
CLIB:h.wctype \
RISC_OSLib:h.akbd \
RISC_OSLib:h.alarm \
RISC_OSLib:h.baricon \
......@@ -701,6 +703,8 @@ CLIB:h.string: clib.h.string; ${CP} clib.h.string $@ ${CPFLAGS}
CLIB:h.tgmath: clib.h.tgmath; ${CP} clib.h.tgmath $@ ${CPFLAGS}
CLIB:h.time: clib.h.time; ${CP} clib.h.time $@ ${CPFLAGS}
CLIB:h.varargs: clib.h.varargs; ${CP} clib.h.varargs $@ ${CPFLAGS}
CLIB:h.wchar: clib.h.wchar; ${CP} clib.h.wchar $@ ${CPFLAGS}
CLIB:h.wctype: clib.h.wctype; ${CP} clib.h.wctype $@ ${CPFLAGS}
RISC_OSLib:h.akbd: rlib.h.akbd; ${CP} rlib.h.akbd $@ ${CPFLAGS}
......
......@@ -11,13 +11,13 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "5.82"
Module_Version SETA 582
Module_MajorVersion SETS "5.83"
Module_Version SETA 583
Module_MinorVersion SETS ""
Module_Date SETS "08 May 2014"
Module_ApplicationDate SETS "08-May-14"
Module_Date SETS "15 Jun 2014"
Module_ApplicationDate SETS "15-Jun-14"
Module_ComponentName SETS "RISC_OSLib"
Module_ComponentPath SETS "castle/RiscOS/Sources/Lib/RISC_OSLib"
Module_FullVersion SETS "5.82"
Module_HelpVersion SETS "5.82 (08 May 2014)"
Module_FullVersion SETS "5.83"
Module_HelpVersion SETS "5.83 (15 Jun 2014)"
END
/* (5.82)
/* (5.83)
*
* This file is automatically maintained by srccommit, do not edit manually.
* Last processed by srccommit version: 1.1.
*
*/
#define Module_MajorVersion_CMHG 5.82
#define Module_MajorVersion_CMHG 5.83
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 08 May 2014
#define Module_Date_CMHG 15 Jun 2014
#define Module_MajorVersion "5.82"
#define Module_Version 582
#define Module_MajorVersion "5.83"
#define Module_Version 583
#define Module_MinorVersion ""
#define Module_Date "08 May 2014"
#define Module_Date "15 Jun 2014"
#define Module_ApplicationDate "08-May-14"
#define Module_ApplicationDate "15-Jun-14"
#define Module_ComponentName "RISC_OSLib"
#define Module_ComponentPath "castle/RiscOS/Sources/Lib/RISC_OSLib"
#define Module_FullVersion "5.82"
#define Module_HelpVersion "5.82 (08 May 2014)"
#define Module_LibraryVersionInfo "5:82"
#define Module_FullVersion "5.83"
#define Module_HelpVersion "5.83 (15 Jun 2014)"
#define Module_LibraryVersionInfo "5:83"
This diff is collapsed.
/* Copyright 2014 Castle Technology Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma force_top_level
#pragma include_only_once
/* wctype.h: ISO 'C' (9899:1999) library header, section 7.25 */
/* Copyright (C) Acorn Computers Ltd. 2002 */
/* version 1.00 */
#ifndef __wctype_h
#define __wctype_h
typedef int wint_t;
typedef unsigned int wctrans_t;
typedef unsigned int wctype_t;
#ifndef __S
#define __S 1 /* whitespace */
#define __P 2 /* punctuation */
#define __B 4 /* blank */
#define __L 8 /* lower case letter */
#define __U 16 /* upper case letter */
#define __N 32 /* (decimal) digit */
#define __C 64 /* control chars */
#define __X 128 /* A-F and a-f */
#endif
#ifndef WEOF
#define WEOF (-1)
#endif
int iswalnum(wint_t);
int iswalpha(wint_t);
int iswblank(wint_t);
int iswcntrl(wint_t);
int iswdigit(wint_t);
int iswgraph(wint_t);
int iswlower(wint_t);
int iswprint(wint_t);
int iswpunct(wint_t);
int iswspace(wint_t);
int iswupper(wint_t);
int iswxdigit(wint_t);
#define iswalnum(wc) iswctype(wc, __U+__L+__N)
#define iswalpha(wc) iswctype(wc, __U+__L)
#define iswblank(wc) iswctype(wc, __B)
#define iswcntrl(wc) iswctype(wc, __C)
#define iswdigit(wc) iswctype(wc, __N)
#define iswgraph(wc) iswctype(wc, __L+__U+__N+__P)
#define iswlower(wc) iswctype(wc, __L)
#define iswprint(wc) iswctype(wc, (__L+__U+__N+__P+__B)+(__C<<16))
#define iswpunct(wc) iswctype(wc, __P)
#define iswspace(wc) iswctype(wc, __S)
#define iswupper(wc) iswctype(wc, __U)
#define iswxdigit(wc) iswctype(wc, __N+__X)
int iswctype(wint_t, wctype_t);
wctype_t wctype(const char *);
wint_t towlower(wint_t);
wint_t towupper(wint_t);
wint_t towctrans(wint_t, wtrans_t);
wctrans_t wctrans(const char *);
#endif
/* end of wctype.h */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment