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

Side by Side Diff: base/third_party/nspr/prtime.h

Issue 209343003: Remove prtypes.h and prcpucfg*.h from base/third_party/nspr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Use 2147483647 instead of INT_MAX Created 6 years, 9 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
OLDNEW
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
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 <stdint.h>
56
55 #include "base/base_export.h" 57 #include "base/base_export.h"
56 #include "base/third_party/nspr/prtypes.h" 58
59 typedef int8_t PRInt8;
60 typedef int16_t PRInt16;
61 typedef int32_t PRInt32;
62 typedef int64_t PRInt64;
63 typedef int PRIntn;
64
65 typedef PRIntn PRBool;
66 #define PR_TRUE 1
67 #define PR_FALSE 0
68
69 typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus;
57 70
58 #define PR_ASSERT DCHECK 71 #define PR_ASSERT DCHECK
72 #define PR_CALLBACK
73 #define PR_INT16_MAX 32767
74 #define NSPR_API(__type) extern __type
59 75
60 #define LL_I2L(l, i) ((l) = (PRInt64)(i)) 76 #define LL_I2L(l, i) ((l) = (PRInt64)(i))
61 #define LL_MUL(r, a, b) ((r) = (a) * (b)) 77 #define LL_MUL(r, a, b) ((r) = (a) * (b))
62 78
63 /**********************************************************************/ 79 /**********************************************************************/
64 /************************* TYPES AND CONSTANTS ************************/ 80 /************************* TYPES AND CONSTANTS ************************/
65 /**********************************************************************/ 81 /**********************************************************************/
66 82
67 #define PR_MSEC_PER_SEC 1000UL 83 #define PR_MSEC_PER_SEC 1000UL
68 #define PR_USEC_PER_SEC 1000000UL 84 #define PR_USEC_PER_SEC 1000000UL
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 * This is the only funtion that should be called from outside base, and only 245 * This is the only funtion that should be called from outside base, and only
230 * from the unit test. 246 * from the unit test.
231 */ 247 */
232 248
233 BASE_EXPORT PRStatus PR_ParseTimeString ( 249 BASE_EXPORT PRStatus PR_ParseTimeString (
234 const char *string, 250 const char *string,
235 PRBool default_to_gmt, 251 PRBool default_to_gmt,
236 PRTime *result); 252 PRTime *result);
237 253
238 #endif // BASE_PRTIME_H__ 254 #endif // BASE_PRTIME_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698