summaryrefslogtreecommitdiff
path: root/community/xulrunner/unbreak-plugin-build.patch
blob: 63e624ef353dbd5c0210f881674a238772c2a74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

# HG changeset patch
# User Ehsan Akhgari <ehsan@mozilla.com>
# Date 1392421799 18000
# Node ID 0691948a0abedc7db35c4cb67ec11ad06f782ab0
# Parent  6f78482c5792b03adca38c924cc4a41f6e16b8ff
Bug 784739 follow-up: Use NULL in npruntime.h

diff --git a/dom/plugins/base/npruntime.h b/dom/plugins/base/npruntime.h
--- a/dom/plugins/base/npruntime.h
+++ b/dom/plugins/base/npruntime.h
@@ -132,23 +132,23 @@ void NPN_ReleaseVariantValue(NPVariant *
 #define NPVARIANT_TO_INT32(_v)   ((_v).value.intValue)
 #define NPVARIANT_TO_DOUBLE(_v)  ((_v).value.doubleValue)
 #define NPVARIANT_TO_STRING(_v)  ((_v).value.stringValue)
 #define NPVARIANT_TO_OBJECT(_v)  ((_v).value.objectValue)
 
 #define VOID_TO_NPVARIANT(_v)                                                 \
 NP_BEGIN_MACRO                                                                \
     (_v).type = NPVariantType_Void;                                           \
-    (_v).value.objectValue = nullptr;                                         \
+    (_v).value.objectValue = NULL;                                            \
 NP_END_MACRO
 
 #define NULL_TO_NPVARIANT(_v)                                                 \
 NP_BEGIN_MACRO                                                                \
     (_v).type = NPVariantType_Null;                                           \
-    (_v).value.objectValue = nullptr;                                         \
+    (_v).value.objectValue = NULL;                                            \
 NP_END_MACRO
 
 #define BOOLEAN_TO_NPVARIANT(_val, _v)                                        \
 NP_BEGIN_MACRO                                                                \
     (_v).type = NPVariantType_Bool;                                           \
     (_v).value.boolValue = !!(_val);                                          \
 NP_END_MACRO
 
@@ -211,17 +211,17 @@ typedef void *NPIdentifier;
 
 /*
     NPObjects have methods and properties.  Methods and properties are
     identified with NPIdentifiers.  These identifiers may be reflected
     in script.  NPIdentifiers can be either strings or integers, IOW,
     methods and properties can be identified by either strings or
     integers (i.e. foo["bar"] vs foo[1]). NPIdentifiers can be
     compared using ==.  In case of any errors, the requested
-    NPIdentifier(s) will be nullptr. NPIdentifier lifetime is controlled
+    NPIdentifier(s) will be NULL. NPIdentifier lifetime is controlled
     by the browser. Plugins do not need to worry about memory management
     with regards to NPIdentifiers.
 */
 NPIdentifier NPN_GetStringIdentifier(const NPUTF8 *name);
 void NPN_GetStringIdentifiers(const NPUTF8 **names, int32_t nameCount,
                               NPIdentifier *identifiers);
 NPIdentifier NPN_GetIntIdentifier(int32_t intid);
 bool NPN_IdentifierIsString(NPIdentifier identifier);
@@ -278,17 +278,17 @@ typedef bool (*NPConstructFunctionPtr)(N
     NPInvokeFunctionPtr function may return 0 to indicate a void
     result.
 
     NPInvalidateFunctionPtr is called by the scripting environment
     when the native code is shutdown.  Any attempt to message a
     NPObject instance after the invalidate callback has been
     called will result in undefined behavior, even if the native code
     is still retaining those NPObject instances.  (The runtime
-    will typically return immediately, with 0 or nullptr, from an
+    will typically return immediately, with 0 or NULL, from an
     attempt to dispatch to a NPObject, but this behavior should not
     be depended upon.)
 
     The NPEnumerationFunctionPtr function may pass an array of
     NPIdentifiers back to the caller. The callee allocs the memory of
     the array using NPN_MemAlloc(), and it's the caller's responsibility
     to release it using NPN_MemFree().
 */