OLD | NEW |
1 /* Portions are Copyright (C) 2011 Google Inc */ | 1 /* Portions are Copyright (C) 2011 Google Inc */ |
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 * This file contains definitions of NSPR's basic types required by | 45 * This file contains definitions of NSPR's basic types required by |
46 * prtime.cc. These types have been copied over from the following NSPR | 46 * prtime.cc. These types have been copied over from the following NSPR |
47 * files prtime.h, prtypes.h(CVS revision 3.35), prlong.h(CVS revision 3.13) | 47 * files prtime.h, prtypes.h(CVS revision 3.35), prlong.h(CVS revision 3.13) |
48 * | 48 * |
49 *--------------------------------------------------------------------------- | 49 *--------------------------------------------------------------------------- |
50 */ | 50 */ |
51 | 51 |
52 #ifndef BASE_PRTIME_H__ | 52 #ifndef BASE_PRTIME_H__ |
53 #define BASE_PRTIME_H__ | 53 #define BASE_PRTIME_H__ |
54 | 54 |
55 #include "base/base_api.h" | 55 #include "base/base_export.h" |
56 #include "base/third_party/nspr/prtypes.h" | 56 #include "base/third_party/nspr/prtypes.h" |
57 | 57 |
58 #define PR_ASSERT DCHECK | 58 #define PR_ASSERT DCHECK |
59 | 59 |
60 #define LL_I2L(l, i) ((l) = (PRInt64)(i)) | 60 #define LL_I2L(l, i) ((l) = (PRInt64)(i)) |
61 #define LL_MUL(r, a, b) ((r) = (a) * (b)) | 61 #define LL_MUL(r, a, b) ((r) = (a) * (b)) |
62 | 62 |
63 /**********************************************************************/ | 63 /**********************************************************************/ |
64 /************************* TYPES AND CONSTANTS ************************/ | 64 /************************* TYPES AND CONSTANTS ************************/ |
65 /**********************************************************************/ | 65 /**********************************************************************/ |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 * be interpreted relative to the local time zone (PR_FALSE) or GMT (PR_TRUE). | 223 * be interpreted relative to the local time zone (PR_FALSE) or GMT (PR_TRUE). |
224 * The correct value for this argument depends on what standard specified | 224 * The correct value for this argument depends on what standard specified |
225 * the time string which you are parsing. | 225 * the time string which you are parsing. |
226 */ | 226 */ |
227 | 227 |
228 /* | 228 /* |
229 * This is the only funtion that should be called from outside base, and only | 229 * This is the only funtion that should be called from outside base, and only |
230 * from the unit test. | 230 * from the unit test. |
231 */ | 231 */ |
232 | 232 |
233 BASE_API PRStatus PR_ParseTimeString ( | 233 BASE_EXPORT PRStatus PR_ParseTimeString ( |
234 const char *string, | 234 const char *string, |
235 PRBool default_to_gmt, | 235 PRBool default_to_gmt, |
236 PRTime *result); | 236 PRTime *result); |
237 | 237 |
238 #endif // BASE_PRTIME_H__ | 238 #endif // BASE_PRTIME_H__ |
OLD | NEW |