OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef _FX_BASIC_H_ | 7 #ifndef _FX_BASIC_H_ |
8 #define _FX_BASIC_H_ | 8 #define _FX_BASIC_H_ |
9 #ifndef _FX_SYSTEM_H_ | 9 |
| 10 #include "fx_memory.h" |
| 11 #include "fx_stream.h" |
| 12 #include "fx_string.h" |
10 #include "fx_system.h" | 13 #include "fx_system.h" |
11 #endif | |
12 #ifndef _FX_MEMORY_H_ | |
13 #include "fx_memory.h" | |
14 #endif | |
15 #ifndef _FX_STRING_H_ | |
16 #include "fx_string.h" | |
17 #endif | |
18 #ifndef _FX_STREAM_H_ | |
19 #include "fx_stream.h" | |
20 #endif | |
21 | 14 |
22 // The FX_ArraySize(arr) macro returns the # of elements in an array arr. | 15 // The FX_ArraySize(arr) macro returns the # of elements in an array arr. |
23 // The expression is a compile-time constant, and therefore can be | 16 // The expression is a compile-time constant, and therefore can be |
24 // used in defining new arrays, for example. If you use FX_ArraySize on | 17 // used in defining new arrays, for example. If you use FX_ArraySize on |
25 // a pointer by mistake, you will get a compile-time error. | 18 // a pointer by mistake, you will get a compile-time error. |
26 // | 19 // |
27 // One caveat is that FX_ArraySize() doesn't accept any array of an | 20 // One caveat is that FX_ArraySize() doesn't accept any array of an |
28 // anonymous type or a type defined inside a function. | 21 // anonymous type or a type defined inside a function. |
29 #define FX_ArraySize(array) (sizeof(ArraySizeHelper(array))) | 22 #define FX_ArraySize(array) (sizeof(ArraySizeHelper(array))) |
30 | 23 |
(...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1649 FX_FLOAT c; | 1642 FX_FLOAT c; |
1650 FX_FLOAT d; | 1643 FX_FLOAT d; |
1651 FX_FLOAT e; | 1644 FX_FLOAT e; |
1652 FX_FLOAT f; | 1645 FX_FLOAT f; |
1653 FX_FLOAT g; | 1646 FX_FLOAT g; |
1654 FX_FLOAT h; | 1647 FX_FLOAT h; |
1655 FX_FLOAT i; | 1648 FX_FLOAT i; |
1656 }; | 1649 }; |
1657 | 1650 |
1658 #endif | 1651 #endif |
OLD | NEW |