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

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

Issue 1713433002: Moved macros into prtime.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved location of macros Created 4 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
« no previous file with comments | « no previous file | base/third_party/nspr/prtime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #define PR_TRUE 1 66 #define PR_TRUE 1
67 #define PR_FALSE 0 67 #define PR_FALSE 0
68 68
69 typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus; 69 typedef enum { PR_FAILURE = -1, PR_SUCCESS = 0 } PRStatus;
70 70
71 #define PR_ASSERT DCHECK 71 #define PR_ASSERT DCHECK
72 #define PR_CALLBACK 72 #define PR_CALLBACK
73 #define PR_INT16_MAX 32767 73 #define PR_INT16_MAX 32767
74 #define NSPR_API(__type) extern __type 74 #define NSPR_API(__type) extern __type
75 75
76 /*
77 * Long-long (64-bit signed integer type) support macros used by
78 * PR_ImplodeTime().
79 * See http://lxr.mozilla.org/nspr/source/pr/include/prlong.h
80 */
81
82 #define LL_I2L(l, i) ((l) = (PRInt64)(i))
83 #define LL_MUL(r, a, b) ((r) = (a) * (b))
84 #define LL_ADD(r, a, b) ((r) = (a) + (b))
85 #define LL_SUB(r, a, b) ((r) = (a) - (b))
86
76 /**********************************************************************/ 87 /**********************************************************************/
77 /************************* TYPES AND CONSTANTS ************************/ 88 /************************* TYPES AND CONSTANTS ************************/
78 /**********************************************************************/ 89 /**********************************************************************/
79 90
80 #define PR_MSEC_PER_SEC 1000UL 91 #define PR_MSEC_PER_SEC 1000UL
81 #define PR_USEC_PER_SEC 1000000UL 92 #define PR_USEC_PER_SEC 1000000UL
82 #define PR_NSEC_PER_SEC 1000000000UL 93 #define PR_NSEC_PER_SEC 1000000000UL
83 #define PR_USEC_PER_MSEC 1000UL 94 #define PR_USEC_PER_MSEC 1000UL
84 #define PR_NSEC_PER_MSEC 1000000UL 95 #define PR_NSEC_PER_MSEC 1000000UL
85 96
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 * This is the only funtion that should be called from outside base, and only 254 * This is the only funtion that should be called from outside base, and only
244 * from the unit test. 255 * from the unit test.
245 */ 256 */
246 257
247 BASE_EXPORT PRStatus PR_ParseTimeString ( 258 BASE_EXPORT PRStatus PR_ParseTimeString (
248 const char *string, 259 const char *string,
249 PRBool default_to_gmt, 260 PRBool default_to_gmt,
250 PRTime *result); 261 PRTime *result);
251 262
252 #endif // BASE_PRTIME_H__ 263 #endif // BASE_PRTIME_H__
OLDNEW
« no previous file with comments | « no previous file | base/third_party/nspr/prtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698