Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: patches/nspr-static.patch

Issue 12089033: Update to NSPR 4.9.5 Beta 2, part 2: actual changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « patches/nspr-remove-io.patch ('k') | patches/nspr-warnings.patch » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Index: mozilla/nsprpub/pr/include/prtypes.h 1 Index: mozilla/nsprpub/pr/include/prtypes.h
2 =================================================================== 2 ===================================================================
3 RCS file: /cvsroot/mozilla/nsprpub/pr/include/prtypes.h,v 3 RCS file: /cvsroot/mozilla/nsprpub/pr/include/prtypes.h,v
4 retrieving revision 3.45 4 retrieving revision 3.52
5 diff -p -u -8 -r3.45 prtypes.h 5 diff -p -u -8 -r3.52 prtypes.h
6 --- mozilla/nsprpub/pr/include/prtypes.h» 26 Jul 2011 15:33:57 -0000» 3.45 6 --- mozilla/nsprpub/pr/include/prtypes.h» 7 Dec 2012 21:13:41 -0000» 3.52
7 +++ mozilla/nsprpub/pr/include/prtypes.h» 30 Jul 2011 00:07:15 -0000 7 +++ mozilla/nsprpub/pr/include/prtypes.h» 29 Jan 2013 01:15:02 -0000
8 @@ -75,17 +75,33 @@ 8 @@ -43,17 +43,33 @@
9 ** Example: 9 ** Example:
10 ** in dowhim.h 10 ** in dowhim.h
11 ** PR_EXTERN( void ) DoWhatIMean( void ); 11 ** PR_EXTERN( void ) DoWhatIMean( void );
12 ** in dowhim.c 12 ** in dowhim.c
13 ** PR_IMPLEMENT( void ) DoWhatIMean( void ) { return; } 13 ** PR_IMPLEMENT( void ) DoWhatIMean( void ) { return; }
14 ** 14 **
15 ** 15 **
16 ***********************************************************************/ 16 ***********************************************************************/
17 -#if defined(WIN32) 17 -#if defined(WIN32)
18 +#if defined(NSPR_STATIC) 18 +#if defined(NSPR_STATIC)
(...skipping 17 matching lines...) Expand all
36 #define PR_EXPORT(__type) extern __declspec(dllexport) __type 36 #define PR_EXPORT(__type) extern __declspec(dllexport) __type
37 #define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type 37 #define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type
38 #define PR_IMPORT(__type) __declspec(dllimport) __type 38 #define PR_IMPORT(__type) __declspec(dllimport) __type
39 #define PR_IMPORT_DATA(__type) __declspec(dllimport) __type 39 #define PR_IMPORT_DATA(__type) __declspec(dllimport) __type
40 40
41 #define PR_EXTERN(__type) extern __declspec(dllexport) __type 41 #define PR_EXTERN(__type) extern __declspec(dllexport) __type
42 #define PR_IMPLEMENT(__type) __declspec(dllexport) __type 42 #define PR_IMPLEMENT(__type) __declspec(dllexport) __type
43 Index: mozilla/nsprpub/pr/src/md/windows/w95dllmain.c 43 Index: mozilla/nsprpub/pr/src/md/windows/w95dllmain.c
44 =================================================================== 44 ===================================================================
45 RCS file: /cvsroot/mozilla/nsprpub/pr/src/md/windows/w95dllmain.c,v 45 RCS file: /cvsroot/mozilla/nsprpub/pr/src/md/windows/w95dllmain.c,v
46 retrieving revision 3.8 46 retrieving revision 3.9
47 diff -p -u -8 -r3.8 w95dllmain.c 47 diff -p -u -8 -r3.9 w95dllmain.c
48 --- mozilla/nsprpub/pr/src/md/windows/w95dllmain.c» 25 Apr 2004 15:01:00 -00 00» 3.8 48 --- mozilla/nsprpub/pr/src/md/windows/w95dllmain.c» 6 Mar 2012 13:14:17 -000 0» 3.9
49 +++ mozilla/nsprpub/pr/src/md/windows/w95dllmain.c» 30 Jul 2011 00:07:15 -00 00 49 +++ mozilla/nsprpub/pr/src/md/windows/w95dllmain.c» 29 Jan 2013 01:15:02 -00 00
50 @@ -30,16 +30,18 @@ 50 @@ -1,13 +1,15 @@
51 * use your version of this file under the terms of the MPL, indicate your 51 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
52 * decision by deleting the provisions above and replace them with the notice 52 /* This Source Code Form is subject to the terms of the Mozilla Public
53 * and other provisions required by the GPL or the LGPL. If you do not delete 53 * License, v. 2.0. If a copy of the MPL was not distributed with this
54 * the provisions above, a recipient may use your version of this file under 54 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
55 * the terms of any one of the MPL, the GPL or the LGPL.
56 *
57 * ***** END LICENSE BLOCK ***** */
58 55
59 +#ifndef NSPR_STATIC /* See the end of w95thred.c. */ 56 +#ifndef NSPR_STATIC /* See the end of w95thred.c. */
60 + 57 +
61 /* 58 /*
62 * The DLL entry point (DllMain) for NSPR. 59 * The DLL entry point (DllMain) for NSPR.
63 * 60 *
64 * This is used to detach threads that were automatically attached by 61 * This is used to detach threads that were automatically attached by
65 * nspr. 62 * nspr.
66 */ 63 */
67 64
68 #include <windows.h> 65 #include <windows.h>
69 @@ -64,8 +66,10 @@ PRThread *me; 66 @@ -32,8 +34,10 @@ PRThread *me;
70 _PRI_DetachThread(); 67 _PRI_DetachThread();
71 } 68 }
72 break; 69 break;
73 case DLL_PROCESS_DETACH: 70 case DLL_PROCESS_DETACH:
74 break; 71 break;
75 } 72 }
76 return TRUE; 73 return TRUE;
77 } 74 }
78 + 75 +
79 +#endif 76 +#endif
80 Index: mozilla/nsprpub/pr/src/md/windows/w95thred.c 77 Index: mozilla/nsprpub/pr/src/md/windows/w95thred.c
81 =================================================================== 78 ===================================================================
82 RCS file: /cvsroot/mozilla/nsprpub/pr/src/md/windows/w95thred.c,v 79 RCS file: /cvsroot/mozilla/nsprpub/pr/src/md/windows/w95thred.c,v
83 retrieving revision 3.19 80 retrieving revision 3.22
84 diff -p -u -8 -r3.19 w95thred.c 81 diff -p -u -8 -r3.22 w95thred.c
85 --- mozilla/nsprpub/pr/src/md/windows/w95thred.c» 11 Jun 2010 01:34:54 -00 00» 3.19 82 --- mozilla/nsprpub/pr/src/md/windows/w95thred.c» 13 Jun 2012 02:17:05 -00 00» 3.22
86 +++ mozilla/nsprpub/pr/src/md/windows/w95thred.c» 30 Jul 2011 00:07:15 -00 00 83 +++ mozilla/nsprpub/pr/src/md/windows/w95thred.c» 29 Jan 2013 01:15:02 -00 00
87 @@ -309,8 +309,125 @@ PRThread *thread; 84 @@ -313,8 +313,125 @@ PRThread *thread;
88 85
89 if (NULL == thread) { 86 if (NULL == thread) {
90 thread = _PRI_AttachThread( 87 thread = _PRI_AttachThread(
91 PR_USER_THREAD, PR_PRIORITY_NORMAL, NULL, 0); 88 PR_USER_THREAD, PR_PRIORITY_NORMAL, NULL, 0);
92 } 89 }
93 PR_ASSERT(thread != NULL); 90 PR_ASSERT(thread != NULL);
94 return thread; 91 return thread;
95 } 92 }
96 + 93 +
97 +#ifdef NSPR_STATIC 94 +#ifdef NSPR_STATIC
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 + 200 +
204 +#pragma data_seg(".CRT$XLB") 201 +#pragma data_seg(".CRT$XLB")
205 +PIMAGE_TLS_CALLBACK p_thread_callback_nspr = PR_OnThreadExit; 202 +PIMAGE_TLS_CALLBACK p_thread_callback_nspr = PR_OnThreadExit;
206 + 203 +
207 +// Reset the default section. 204 +// Reset the default section.
208 +#pragma data_seg() 205 +#pragma data_seg()
209 + 206 +
210 +#endif // _WIN64 207 +#endif // _WIN64
211 + 208 +
212 +#endif // NSPR_STATIC 209 +#endif // NSPR_STATIC
OLDNEW
« no previous file with comments | « patches/nspr-remove-io.patch ('k') | patches/nspr-warnings.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698