Create a branch for audio work

svn path=/branches/audio-bringup/; revision=49478
This commit is contained in:
Timo Kreuzer 2010-11-05 11:04:48 +00:00
parent 26c20f3857
commit 5eb25b5c24
20759 changed files with 0 additions and 1141005 deletions

View file

@ -0,0 +1,29 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
/*
* @unimplemented
*/
int _wcsncoll (const wchar_t *s1, const wchar_t *s2, size_t c)
{
/* FIXME: handle collates */
return wcsncmp(s1,s2,c);
}
/*
* @unimplemented
*/
int _wcsnicoll (const wchar_t *s1, const wchar_t *s2, size_t c)
{
/* FIXME: handle collates */
return _wcsnicmp(s1,s2,c);
}

View file

@ -0,0 +1,33 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
/*
* @implemented
*/
size_t wcscspn(const wchar_t *str,const wchar_t *reject)
{
wchar_t *s;
wchar_t *t;
s=(wchar_t *)str;
while (*s) {
t=(wchar_t *)reject;
while (*t) {
if (*t==*s)
break;
t++;
}
if (*t)
break;
s++;
}
return s-str; /* nr of wchars */
}

View file

@ -0,0 +1,18 @@
/* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
#include <precomp.h>
/*
* @implemented
*/
int _wcsicmp(const wchar_t* cs,const wchar_t * ct)
{
while (towlower(*cs) == towlower(*ct))
{
if (*cs == 0)
return 0;
cs++;
ct++;
}
return towlower(*cs) - towlower(*ct);
}

View file

@ -0,0 +1,25 @@
/*
* The C RunTime DLL
*
* Implements C run-time functionality as known from UNIX.
*
* Copyright 1996,1998 Marcus Meissner
* Copyright 1996 Jukka Iivonen
* Copyright 1997 Uwe Bonnes
*/
#include <precomp.h>
/*
* @implemented
*/
wchar_t * _wcslwr(wchar_t *x)
{
wchar_t *y=x;
while (*y) {
*y=towlower(*y);
y++;
}
return x;
}

View file

@ -0,0 +1,27 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
/*
* @implemented
*/
int _wcsnicmp (const wchar_t *cs, const wchar_t *ct, size_t count)
{
if (count == 0)
return 0;
do {
if (towupper(*cs) != towupper(*ct++))
return towupper(*cs) - towupper(*--ct);
if (*cs++ == 0)
break;
} while (--count != 0);
return 0;
}

View file

@ -0,0 +1,33 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
/*
* @implemented
*/
size_t wcsspn(const wchar_t *str,const wchar_t *accept)
{
wchar_t *s;
wchar_t *t;
s=(wchar_t *)str;
do {
t=(wchar_t *)accept;
while (*t) {
if (*t==*s)
break;
t++;
}
if (!*t)
break;
s++;
} while (*s);
return s-str; /* nr of wchars */
}

View file

@ -0,0 +1,36 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
/*
* @implemented
*/
wchar_t *wcsstr(const wchar_t *s,const wchar_t *b)
{
wchar_t *x;
wchar_t *y;
wchar_t *c;
x=(wchar_t *)s;
while (*x) {
if (*x==*b) {
y=x;
c=(wchar_t *)b;
while (*y && *c && *y==*c) {
c++;
y++;
}
if (!*c)
return x;
}
x++;
}
return NULL;
}

View file

@ -0,0 +1,71 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
wchar_t** _wlasttoken(); /* wlasttok.c */
/*
* @implemented
*/
wchar_t *wcstok(wchar_t *s, const wchar_t *ct)
{
const wchar_t *spanp;
int c, sc;
wchar_t *tok;
#if 1
wchar_t ** wlasttoken = _wlasttoken();
#else
PTHREADDATA ThreadData = GetThreadData();
wchar_t ** wlasttoken = &ThreadData->wlasttoken;
#endif
if (s == NULL && (s = *wlasttoken) == NULL)
return (NULL);
/*
* Skip (span) leading ctiters (s += strspn(s, ct), sort of).
*/
cont:
c = *s;
s++;
for (spanp = ct; (sc = *spanp) != 0;spanp++) {
if (c == sc)
goto cont;
}
if (c == 0) { /* no non-ctiter characters */
*wlasttoken = NULL;
return (NULL);
}
tok = s - 1;
/*
* Scan token (scan for ctiters: s += strcspn(s, ct), sort of).
* Note that ct must have one NUL; we stop if we see that, too.
*/
for (;;) {
c = *s;
s++;
spanp = ct;
do {
if ((sc = *spanp) == c) {
if (c == 0)
s = NULL;
else
s[-1] = 0;
*wlasttoken = s;
return (tok);
}
spanp++;
} while (sc != 0);
}
/* NOTREACHED */
}

View file

@ -0,0 +1,25 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
/*
* @implemented
*/
wchar_t *_wcsupr(wchar_t *x)
{
wchar_t *y = x;
while (*y) {
*y = towupper(*y);
y++;
}
return x;
}

View file

@ -0,0 +1,36 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
/*
* @implemented
*/
size_t wcsxfrm(wchar_t *dst,const wchar_t *src, size_t n)
{
size_t r = 0;
int c;
if (n != 0) {
while ((c = *src++) != 0)
{
r++;
if (--n == 0)
{
while (*src++ != 0)
r++;
break;
}
*dst++ = c;
}
*dst = 0;
}
return r;
}

View file

@ -0,0 +1,26 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* FILE: lib/crt/??????
* PURPOSE: Unknown
* PROGRAMER: Unknown
* UPDATE HISTORY:
* 25/11/05: Added license header
*/
#include <precomp.h>
#include <internal/tls.h>
#include <assert.h>
/*
* This is an MSVCRT internal function to return the lasttoken
* bit of data used by wcstok. The reason for it's existence is
* so that CRTDLL can use the wcstok source code in the same
* file.
*/
wchar_t** _wlasttoken()
{
PTHREADDATA ptd = GetThreadData();
assert(ptd);
return &(ptd->wlasttoken);
}