mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 14:46:02 +00:00
Checking in patch from Daniel Bratell <bratell@lysator.liu.se>, r=khanson, sr=me.
This commit is contained in:
parent
30a6af4a50
commit
f303a64843
@ -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]; \
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user