| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 #define BLINK_COMMON_EXPORT | 77 #define BLINK_COMMON_EXPORT |
| 78 | 78 |
| 79 #define BLINK_WEB_IMPLEMENTATION 0 | 79 #define BLINK_WEB_IMPLEMENTATION 0 |
| 80 #endif | 80 #endif |
| 81 | 81 |
| 82 | 82 |
| 83 // ----------------------------------------------------------------------------- | 83 // ----------------------------------------------------------------------------- |
| 84 // Basic types | 84 // Basic types |
| 85 | 85 |
| 86 #include <stddef.h> // For size_t | 86 #include <stddef.h> // For size_t |
| 87 | |
| 88 #if defined(WIN32) | |
| 89 // Visual Studio doesn't have stdint.h. | |
| 90 typedef short int16_t; | |
| 91 typedef unsigned short uint16_t; | |
| 92 typedef int int32_t; | |
| 93 typedef __int64 int64_t; | |
| 94 typedef unsigned int uint32_t; | |
| 95 typedef unsigned __int64 uint64_t; | |
| 96 #else | |
| 97 #include <stdint.h> // For int32_t | 87 #include <stdint.h> // For int32_t |
| 98 #endif | |
| 99 | 88 |
| 100 namespace blink { | 89 namespace blink { |
| 101 | 90 |
| 102 // UTF-32 character type | 91 // UTF-32 character type |
| 103 typedef int32_t WebUChar32; | 92 typedef int32_t WebUChar32; |
| 104 | 93 |
| 105 // UTF-16 character type | 94 // UTF-16 character type |
| 106 #if defined(WIN32) | 95 #if defined(WIN32) |
| 107 typedef wchar_t WebUChar; | 96 typedef wchar_t WebUChar; |
| 108 #else | 97 #else |
| (...skipping 16 matching lines...) Expand all Loading... |
| 125 #else | 114 #else |
| 126 #define BLINK_ASSERT(assertion) do { \ | 115 #define BLINK_ASSERT(assertion) do { \ |
| 127 if (!(assertion)) \ | 116 if (!(assertion)) \ |
| 128 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ | 117 failedAssertion(__FILE__, __LINE__, __FUNCTION__, #assertion); \ |
| 129 } while (0) | 118 } while (0) |
| 130 #endif | 119 #endif |
| 131 | 120 |
| 132 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) | 121 #define BLINK_ASSERT_NOT_REACHED() BLINK_ASSERT(0) |
| 133 | 122 |
| 134 #endif | 123 #endif |
| OLD | NEW |