Import of pkgsrc-2015Q2

This commit is contained in:
2015-08-30 02:56:09 -07:00
committed by Lionel Sambuc
parent 4af1cdf7a9
commit f641581404
15409 changed files with 267784 additions and 121624 deletions

View File

@@ -1,22 +1,13 @@
$NetBSD: patch-js_src_jsapi.cpp,v 1.2 2015/02/19 21:33:22 ryoon Exp $
$NetBSD: patch-js_src_jsapi.cpp,v 1.3 2015/05/12 22:48:54 ryoon Exp $
--- js/src/jsapi.cpp.orig 2015-01-23 06:00:01.000000000 +0000
--- js/src/jsapi.cpp.orig 2015-04-29 21:11:46.000000000 +0000
+++ js/src/jsapi.cpp
@@ -236,7 +236,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;
@@ -525,7 +525,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];