- Update many parts of CRT, and misc cleanup.

- Largely based on the patch by Samuel Serapion.
- Include file.c from Wine's msvcrt, but exclude its contents from the build process for now.

svn path=/trunk/; revision=33866
This commit is contained in:
Aleksey Bragin 2008-06-06 17:49:24 +00:00
parent 3f2bc58da5
commit 45ebe0ccc2
89 changed files with 4487 additions and 1700 deletions

View file

@ -1,19 +1,22 @@
#include <precomp.h>
#include <mbstring.h>
/*
* FIXME not correct
*
* @unimplemented
* @implemented
*/
unsigned char * _mbsspnp(const unsigned char *s1, const unsigned char *s2)
unsigned char *_mbsspnp (const unsigned char *str1, const unsigned char *str2)
{
const unsigned char *p = s1, *spanp;
char c, sc;
int c;
unsigned char *ptr;
cont:
c = *p++;
for (spanp = s2; (sc = *spanp++) != 0;)
if (sc == c)
goto cont;
return (unsigned char *)p;
while ((c = _mbsnextc (str1))) {
if ((ptr = _mbschr (str2, c)) == 0)
return (unsigned char *) str1;
str1 = _mbsinc ((unsigned char *) str1);
}
return 0;
}