OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 23 matching lines...) Expand all Loading... |
34 * | 34 * |
35 * For other documentation see http://code.google.com/apis/v8/ | 35 * For other documentation see http://code.google.com/apis/v8/ |
36 */ | 36 */ |
37 | 37 |
38 #ifndef V8_H_ | 38 #ifndef V8_H_ |
39 #define V8_H_ | 39 #define V8_H_ |
40 | 40 |
41 #include <stdio.h> | 41 #include <stdio.h> |
42 | 42 |
43 #ifdef _WIN32 | 43 #ifdef _WIN32 |
| 44 typedef signed char int8_t; |
| 45 typedef unsigned char uint8_t; |
| 46 typedef short int16_t; // NOLINT |
| 47 typedef unsigned short uint16_t; // NOLINT |
44 typedef int int32_t; | 48 typedef int int32_t; |
45 typedef unsigned int uint32_t; | 49 typedef unsigned int uint32_t; |
46 typedef unsigned short uint16_t; // NOLINT | 50 typedef __int64 int64_t; |
47 typedef long long int64_t; // NOLINT | 51 typedef unsigned __int64 uint64_t; |
| 52 // intptr_t is defined in crtdefs.h through stdio.h. |
48 | 53 |
49 // Setup for Windows DLL export/import. When building the V8 DLL the | 54 // Setup for Windows DLL export/import. When building the V8 DLL the |
50 // BUILDING_V8_SHARED needs to be defined. When building a program which uses | 55 // BUILDING_V8_SHARED needs to be defined. When building a program which uses |
51 // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 | 56 // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 |
52 // static library or building a program which uses the V8 static library neither | 57 // static library or building a program which uses the V8 static library neither |
53 // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. | 58 // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. |
54 // The reason for having both V8EXPORT and V8EXPORT_INLINE is that classes which | 59 // The reason for having both V8EXPORT and V8EXPORT_INLINE is that classes which |
55 // have their code inside this header file need to have __declspec(dllexport) | 60 // have their code inside this header file need to have __declspec(dllexport) |
56 // when building the DLL but cannot have __declspec(dllimport) when building | 61 // when building the DLL but cannot have __declspec(dllimport) when building |
57 // a program which uses the DLL. | 62 // a program which uses the DLL. |
(...skipping 2503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2561 | 2566 |
2562 } // namespace v8 | 2567 } // namespace v8 |
2563 | 2568 |
2564 | 2569 |
2565 #undef V8EXPORT | 2570 #undef V8EXPORT |
2566 #undef V8EXPORT_INLINE | 2571 #undef V8EXPORT_INLINE |
2567 #undef TYPE_CHECK | 2572 #undef TYPE_CHECK |
2568 | 2573 |
2569 | 2574 |
2570 #endif // V8_H_ | 2575 #endif // V8_H_ |
OLD | NEW |