From 201e219cf05e446e965d497dd65a53ee04cd399b Mon Sep 17 00:00:00 2001 From: rob Date: Tue, 30 Oct 2007 07:48:54 +0000 Subject: [PATCH] stubs for c99 functions mbtowc, wctomb, mcstowcs, wcstombs git-svn-id: https://svn.aros.org:8080/svn/aros/trunk/AROS@27120 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- compiler/clib/mbstowcs.c | 16 ++++++++++++++++ compiler/clib/mbtowc.c | 16 ++++++++++++++++ compiler/clib/mmakefile.src | 12 ++++++++++-- compiler/clib/wcstombs.c | 16 ++++++++++++++++ compiler/clib/wctomb.c | 16 ++++++++++++++++ 5 files changed, 74 insertions(+), 2 deletions(-) create mode 100644 compiler/clib/mbstowcs.c create mode 100644 compiler/clib/mbtowc.c create mode 100644 compiler/clib/wcstombs.c create mode 100644 compiler/clib/wctomb.c diff --git a/compiler/clib/mbstowcs.c b/compiler/clib/mbstowcs.c new file mode 100644 index 000000000..fe61dd651 --- /dev/null +++ b/compiler/clib/mbstowcs.c @@ -0,0 +1,16 @@ +/* + Copyright © 2007, The AROS Development Team. All rights reserved. + $Id$ + + ISO/ANSI C function mbstowcs(). +*/ + +#include + +#include + +size_t mbstowcs(wchar_t *pwcs, const char *s, size_t n) { + AROS_FUNCTION_NOT_IMPLEMENTED("arosc"); + + return (size_t) -1; +} diff --git a/compiler/clib/mbtowc.c b/compiler/clib/mbtowc.c new file mode 100644 index 000000000..1e9a80d20 --- /dev/null +++ b/compiler/clib/mbtowc.c @@ -0,0 +1,16 @@ +/* + Copyright © 2007, The AROS Development Team. All rights reserved. + $Id$ + + ISO/ANSI C function mbtowc(). +*/ + +#include + +#include + +int mbtowc(wchar_t *pwc, const char *s, size_t n) { + AROS_FUNCTION_NOT_IMPLEMENTED("arosc"); + + return -1; +} diff --git a/compiler/clib/mmakefile.src b/compiler/clib/mmakefile.src index df2344f6d..2780b4b50 100644 --- a/compiler/clib/mmakefile.src +++ b/compiler/clib/mmakefile.src @@ -45,6 +45,8 @@ COMMON := \ ldiv \ lldiv \ mblen \ + mbtowc \ + mbstowcs \ memchr \ memcmp \ memcpy \ @@ -81,7 +83,9 @@ COMMON := \ strtok \ strupr \ strxfrm \ - swab + swab \ + wctomb \ + wcstombs COMMON_ARCH := \ longjmp \ @@ -308,6 +312,8 @@ ROM_COMMON := \ ldiv \ lldiv \ mblen \ + mbtowc \ + mbstowcs \ memchr \ memcmp \ memcpy \ @@ -335,7 +341,9 @@ ROM_COMMON := \ strspn \ strstr \ strtod \ - strtok + strtok \ + wctomb \ + wcstombs ROM_COMMON_ARCH := \ longjmp \ diff --git a/compiler/clib/wcstombs.c b/compiler/clib/wcstombs.c new file mode 100644 index 000000000..bf2535f16 --- /dev/null +++ b/compiler/clib/wcstombs.c @@ -0,0 +1,16 @@ +/* + Copyright © 2007, The AROS Development Team. All rights reserved. + $Id$ + + ISO/ANSI C function wcstombs(). +*/ + +#include + +#include + +size_t wcstombs(char *s, const wchar_t *pwcs, size_t n) { + AROS_FUNCTION_NOT_IMPLEMENTED("arosc"); + + return (size_t) -1; +} diff --git a/compiler/clib/wctomb.c b/compiler/clib/wctomb.c new file mode 100644 index 000000000..11558bfc9 --- /dev/null +++ b/compiler/clib/wctomb.c @@ -0,0 +1,16 @@ +/* + Copyright © 2007, The AROS Development Team. All rights reserved. + $Id$ + + ISO/ANSI C function wctomb(). +*/ + +#include + +#include + +int wctomb(char *s, wchar_t wchar) { + AROS_FUNCTION_NOT_IMPLEMENTED("arosc"); + + return -1; +} -- 2.11.4.GIT