| 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 // When compiling on MinGW stdint.h is available. |
| 45 #ifdef __MINGW32__ |
| 46 #include <stdint.h> |
| 47 #else // __MINGW32__ |
| 44 typedef signed char int8_t; | 48 typedef signed char int8_t; |
| 45 typedef unsigned char uint8_t; | 49 typedef unsigned char uint8_t; |
| 46 typedef short int16_t; // NOLINT | 50 typedef short int16_t; // NOLINT |
| 47 typedef unsigned short uint16_t; // NOLINT | 51 typedef unsigned short uint16_t; // NOLINT |
| 48 typedef int int32_t; | 52 typedef int int32_t; |
| 49 typedef unsigned int uint32_t; | 53 typedef unsigned int uint32_t; |
| 50 typedef __int64 int64_t; | 54 typedef __int64 int64_t; |
| 51 typedef unsigned __int64 uint64_t; | 55 typedef unsigned __int64 uint64_t; |
| 52 // intptr_t is defined in crtdefs.h through stdio.h. | 56 // intptr_t and friends are defined in crtdefs.h through stdio.h. |
| 57 #endif // __MINGW32__ |
| 53 | 58 |
| 54 // Setup for Windows DLL export/import. When building the V8 DLL the | 59 // Setup for Windows DLL export/import. When building the V8 DLL the |
| 55 // BUILDING_V8_SHARED needs to be defined. When building a program which uses | 60 // BUILDING_V8_SHARED needs to be defined. When building a program which uses |
| 56 // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 | 61 // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 |
| 57 // static library or building a program which uses the V8 static library neither | 62 // static library or building a program which uses the V8 static library neither |
| 58 // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. | 63 // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. |
| 59 // The reason for having both V8EXPORT and V8EXPORT_INLINE is that classes which | 64 // The reason for having both V8EXPORT and V8EXPORT_INLINE is that classes which |
| 60 // have their code inside this header file need to have __declspec(dllexport) | 65 // have their code inside this header file need to have __declspec(dllexport) |
| 61 // when building the DLL but cannot have __declspec(dllimport) when building | 66 // when building the DLL but cannot have __declspec(dllimport) when building |
| 62 // a program which uses the DLL. | 67 // a program which uses the DLL. |
| (...skipping 2529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2592 | 2597 |
| 2593 } // namespace v8 | 2598 } // namespace v8 |
| 2594 | 2599 |
| 2595 | 2600 |
| 2596 #undef V8EXPORT | 2601 #undef V8EXPORT |
| 2597 #undef V8EXPORT_INLINE | 2602 #undef V8EXPORT_INLINE |
| 2598 #undef TYPE_CHECK | 2603 #undef TYPE_CHECK |
| 2599 | 2604 |
| 2600 | 2605 |
| 2601 #endif // V8_H_ | 2606 #endif // V8_H_ |
| OLD | NEW |