Import of pkgsrc-2015Q3

This commit is contained in:
2015-10-03 03:37:01 -07:00
committed by Lionel Sambuc
parent f641581404
commit 9d819b6d54
7578 changed files with 228314 additions and 80018 deletions

View File

@@ -1,22 +1,13 @@
$NetBSD: patch-mozilla_js_src_jsapi.cpp,v 1.3 2015/03/17 19:50:42 ryoon Exp $
$NetBSD: patch-mozilla_js_src_jsapi.cpp,v 1.4 2015/09/21 05:03:45 ryoon Exp $
--- mozilla/js/src/jsapi.cpp.orig 2015-03-09 05:34:38.000000000 +0000
--- mozilla/js/src/jsapi.cpp.orig 2015-09-02 09:27:32.000000000 +0000
+++ mozilla/js/src/jsapi.cpp
@@ -233,7 +233,7 @@ JS_ConvertArgumentsVA(JSContext *cx, con
assertSameCompartment(cx, args);
required = true;
while ((c = *format++) != '\0') {
- if (isspace(c))
+ if (isspace(((unsigned char)c)))
continue;
if (c == '/') {
required = false;
@@ -522,7 +522,7 @@ MessageParameterCount(const char *format
{
unsigned numfmtspecs = 0;
for (const char *fmt = format; *fmt != '\0'; fmt++) {
- if (*fmt == '{' && isdigit(fmt[1]))
+ if (*fmt == '{' && isdigit((unsigned char)fmt[1]))
++numfmtspecs;
}
return numfmtspecs;
@@ -115,7 +115,7 @@ using js::frontend::Parser;
#define JS_ADDRESSOF_VA_LIST(ap) (&(ap))
#endif
-bool
+JS_PUBLIC_API(bool)
JS::CallArgs::requireAtLeast(JSContext* cx, const char* fnname, unsigned required) {
if (length() < required) {
char numArgsStr[40];