OLD | NEW |
---|---|
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
4 * | 4 * |
5 * The contents of this file are subject to the Mozilla Public License Version | 5 * The contents of this file are subject to the Mozilla Public License Version |
6 * 1.1 (the "License"); you may not use this file except in compliance with | 6 * 1.1 (the "License"); you may not use this file except in compliance with |
7 * the License. You may obtain a copy of the License at | 7 * the License. You may obtain a copy of the License at |
8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
9 * | 9 * |
10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 ** in dowhim.h | 84 ** in dowhim.h |
85 ** PR_EXTERN( void ) DoWhatIMean( void ); | 85 ** PR_EXTERN( void ) DoWhatIMean( void ); |
86 ** in dowhim.c | 86 ** in dowhim.c |
87 ** PR_IMPLEMENT( void ) DoWhatIMean( void ) { return; } | 87 ** PR_IMPLEMENT( void ) DoWhatIMean( void ) { return; } |
88 ** | 88 ** |
89 ** | 89 ** |
90 ***********************************************************************/ | 90 ***********************************************************************/ |
91 #if 1 | 91 #if 1 |
92 | 92 |
93 /* | 93 /* |
94 ** Chrome-local change: the portions of NSPR used for Chrome are | 94 ** Local change: the portions of NSPR used by the base module are |
95 ** implementation details of Chrome's base module. NSPR symbols do not need | 95 ** implementation details. NSPR symbols do not need to be exported beyond |
96 ** to be exported beyond the module in which they are used. For all | 96 ** the base module. For all platforms, avoid decorating functions with |
97 ** platforms, avoid decorating functions with specific visibility and access | 97 ** specific visibility and access keywords. |
98 ** keywords. | |
99 */ | 98 */ |
100 | 99 |
101 #define PR_EXPORT(__type) extern __type | 100 #define PR_EXPORT(__type) extern __type |
102 #define PR_EXPORT_DATA(__type) extern __type | 101 #define PR_EXPORT_DATA(__type) extern __type |
103 #define PR_IMPORT(__type) extern __type | 102 #define PR_IMPORT(__type) extern __type |
104 #define PR_IMPORT_DATA(__type) extern __type | 103 #define PR_IMPORT_DATA(__type) extern __type |
105 | 104 |
106 #define PR_EXTERN(__type) extern __type | 105 #define PR_EXTERN(__type) extern __type |
107 #define PR_IMPLEMENT(__type) __type | 106 #define PR_IMPLEMENT(__type) __type |
108 #define PR_EXTERN_DATA(__type) extern __type | 107 #define PR_EXTERN_DATA(__type) extern __type |
109 #define PR_IMPLEMENT_DATA(__type) __type | 108 #define PR_IMPLEMENT_DATA(__type) __type |
110 | 109 |
111 #define PR_CALLBACK | 110 #define PR_CALLBACK |
112 #define PR_CALLBACK_DECL | 111 #define PR_CALLBACK_DECL |
113 #define PR_STATIC_CALLBACK(__x) static __x | 112 #define PR_STATIC_CALLBACK(__x) static __x |
114 | 113 |
115 #elif defined(WIN32) | 114 #elif defined(WIN32) |
116 | 115 |
117 #define PR_EXPORT(__type) extern __declspec(dllexport) __type | 116 #define PR_EXPORT(__type) extern __declspec(dllexport) __type |
118 #define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type | 117 #define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type |
119 #define PR_IMPORT(__type) extern __type | 118 #define PR_IMPORT(__type) __declspec(dllimport) __type |
120 #define PR_IMPORT_DATA(__type) __declspec(dllimport) __type | 119 #define PR_IMPORT_DATA(__type) __declspec(dllimport) __type |
Mark Mentovai
2009/10/16 19:15:29
Note that WIN32 doesn't use extern here, but we're
| |
121 | 120 |
122 #define PR_EXTERN(__type) extern __declspec(dllexport) __type | 121 #define PR_EXTERN(__type) extern __declspec(dllexport) __type |
123 #define PR_IMPLEMENT(__type) __type | 122 #define PR_IMPLEMENT(__type) __declspec(dllexport) __type |
124 #define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type | 123 #define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type |
125 #define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type | 124 #define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type |
126 | 125 |
127 #define PR_CALLBACK | 126 #define PR_CALLBACK |
128 #define PR_CALLBACK_DECL | 127 #define PR_CALLBACK_DECL |
129 #define PR_STATIC_CALLBACK(__x) static __x | 128 #define PR_STATIC_CALLBACK(__x) static __x |
130 | 129 |
131 #elif defined(XP_BEOS) | 130 #elif defined(XP_BEOS) |
132 | 131 |
133 #define PR_EXPORT(__type) extern __declspec(dllexport) __type | 132 #define PR_EXPORT(__type) extern __declspec(dllexport) __type |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
590 #endif /* NO_NSPR_10_SUPPORT */ | 589 #endif /* NO_NSPR_10_SUPPORT */ |
591 | 590 |
592 PR_END_EXTERN_C | 591 PR_END_EXTERN_C |
593 | 592 |
594 #if !defined(NO_NSPR_10_SUPPORT) | 593 #if !defined(NO_NSPR_10_SUPPORT) |
595 #include "base/basictypes.h" | 594 #include "base/basictypes.h" |
596 #endif | 595 #endif |
597 | 596 |
598 #endif /* prtypes_h___ */ | 597 #endif /* prtypes_h___ */ |
599 | 598 |
OLD | NEW |