Checking in patch from Daniel Bratell <bratell@lysator.liu.se>, r=khanson, sr=me.

This commit is contained in:
brendan%mozilla.org 2002-01-25 00:47:11 +00:00
parent 30a6af4a50
commit f303a64843
2 changed files with 1 additions and 12 deletions

View File

@ -2679,16 +2679,6 @@ js_SkipWhiteSpace(const jschar *s)
return s;
}
jschar *
js_strncpy(jschar *t, const jschar *s, size_t n)
{
size_t i;
for (i = 0; i < n; i++)
t[i] = s[i];
return t;
}
#define INFLATE_STRING_BODY \
for (i = 0; i < length; i++) \
chars[i] = (unsigned char) bytes[i]; \

View File

@ -382,8 +382,7 @@ js_strchr(const jschar *s, jschar c);
extern jschar *
js_strchr_limit(const jschar *s, jschar c, const jschar *limit);
extern jschar *
js_strncpy(jschar *t, const jschar *s, size_t n);
#define js_strncpy(t, s, n) memcpy((t), (s), (n) * sizeof(jschar))
/*
* Return s advanced past any Unicode white space characters.