PageRenderTime 33ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/js/lib/Socket.IO-node/support/expresso/deps/jscoverage/js/jsotypes.h

http://github.com/onedayitwillmake/RealtimeMultiplayerNodeJs
C++ Header | 202 lines | 120 code | 17 blank | 65 comment | 3 complexity | 77659d4e66731421b9417e0d026982fe MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, MPL-2.0-no-copyleft-exception, BSD-3-Clause
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. *
  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
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * The Original Code is Mozilla Communicator client code, released
  16. * March 31, 1998.
  17. *
  18. * The Initial Developer of the Original Code is
  19. * Netscape Communications Corporation.
  20. * Portions created by the Initial Developer are Copyright (C) 1998
  21. * the Initial Developer. All Rights Reserved.
  22. *
  23. * Contributor(s):
  24. *
  25. * Alternatively, the contents of this file may be used under the terms of
  26. * either of the GNU General Public License Version 2 or later (the "GPL"),
  27. * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  28. * in which case the provisions of the GPL or the LGPL are applicable instead
  29. * of those above. If you wish to allow use of your version of this file only
  30. * under the terms of either the GPL or the LGPL, and not to allow others to
  31. * use your version of this file under the terms of the MPL, indicate your
  32. * decision by deleting the provisions above and replace them with the notice
  33. * and other provisions required by the GPL or the LGPL. If you do not delete
  34. * the provisions above, a recipient may use your version of this file under
  35. * the terms of any one of the MPL, the GPL or the LGPL.
  36. *
  37. * ***** END LICENSE BLOCK ***** */
  38. /*
  39. * This section typedefs the old 'native' types to the new PR<type>s.
  40. * These definitions are scheduled to be eliminated at the earliest
  41. * possible time. The NSPR API is implemented and documented using
  42. * the new definitions.
  43. */
  44. /*
  45. * Note that we test for PROTYPES_H, not JSOTYPES_H. This is to avoid
  46. * double-definitions of scalar types such as uint32, if NSPR's
  47. * protypes.h is also included.
  48. */
  49. #ifndef PROTYPES_H
  50. #define PROTYPES_H
  51. #ifdef XP_BEOS
  52. /* BeOS defines most int types in SupportDefs.h (int8, uint8, int16,
  53. * uint16, int32, uint32, int64, uint64), so in the interest of
  54. * not conflicting with other definitions elsewhere we have to skip the
  55. * #ifdef jungle below, duplicate some definitions, and do our stuff.
  56. */
  57. #include <SupportDefs.h>
  58. typedef JSUintn uintn;
  59. #ifndef _XP_Core_
  60. typedef JSIntn intn;
  61. #endif
  62. #else
  63. /* SVR4 typedef of uint is commonly found on UNIX machines. */
  64. #ifdef XP_UNIX
  65. #include <sys/types.h>
  66. #else
  67. typedef JSUintn uint;
  68. #endif
  69. typedef JSUintn uintn;
  70. typedef JSUint64 uint64;
  71. #if !defined(_WIN32) && !defined(XP_OS2)
  72. typedef JSUint32 uint32;
  73. #else
  74. typedef unsigned long uint32;
  75. #endif
  76. typedef JSUint16 uint16;
  77. typedef JSUint8 uint8;
  78. #ifndef _XP_Core_
  79. typedef JSIntn intn;
  80. #endif
  81. /*
  82. * On AIX 4.3, sys/inttypes.h (which is included by sys/types.h, a very
  83. * common header file) defines the types int8, int16, int32, and int64.
  84. * So we don't define these four types here to avoid conflicts in case
  85. * the code also includes sys/types.h.
  86. */
  87. #if defined(AIX) && defined(HAVE_SYS_INTTYPES_H)
  88. #include <sys/inttypes.h>
  89. #else
  90. typedef JSInt64 int64;
  91. /* /usr/include/model.h on HP-UX defines int8, int16, and int32 */
  92. #ifdef HPUX
  93. #include <model.h>
  94. #else
  95. #if !defined(_WIN32) && !defined(XP_OS2)
  96. typedef JSInt32 int32;
  97. #else
  98. typedef long int32;
  99. #endif
  100. typedef JSInt16 int16;
  101. typedef JSInt8 int8;
  102. #endif /* HPUX */
  103. #endif /* AIX && HAVE_SYS_INTTYPES_H */
  104. #endif /* XP_BEOS */
  105. typedef JSFloat64 float64;
  106. /* Re: jsbit.h */
  107. #define TEST_BIT JS_TEST_BIT
  108. #define SET_BIT JS_SET_BIT
  109. #define CLEAR_BIT JS_CLEAR_BIT
  110. /* Re: prarena.h->plarena.h */
  111. #define PRArena PLArena
  112. #define PRArenaPool PLArenaPool
  113. #define PRArenaStats PLArenaStats
  114. #define PR_ARENA_ALIGN PL_ARENA_ALIGN
  115. #define PR_INIT_ARENA_POOL PL_INIT_ARENA_POOL
  116. #define PR_ARENA_ALLOCATE PL_ARENA_ALLOCATE
  117. #define PR_ARENA_GROW PL_ARENA_GROW
  118. #define PR_ARENA_MARK PL_ARENA_MARK
  119. #define PR_CLEAR_UNUSED PL_CLEAR_UNUSED
  120. #define PR_CLEAR_ARENA PL_CLEAR_ARENA
  121. #define PR_ARENA_RELEASE PL_ARENA_RELEASE
  122. #define PR_COUNT_ARENA PL_COUNT_ARENA
  123. #define PR_ARENA_DESTROY PL_ARENA_DESTROY
  124. #define PR_InitArenaPool PL_InitArenaPool
  125. #define PR_FreeArenaPool PL_FreeArenaPool
  126. #define PR_FinishArenaPool PL_FinishArenaPool
  127. #define PR_CompactArenaPool PL_CompactArenaPool
  128. #define PR_ArenaFinish PL_ArenaFinish
  129. #define PR_ArenaAllocate PL_ArenaAllocate
  130. #define PR_ArenaGrow PL_ArenaGrow
  131. #define PR_ArenaRelease PL_ArenaRelease
  132. #define PR_ArenaCountAllocation PL_ArenaCountAllocation
  133. #define PR_ArenaCountInplaceGrowth PL_ArenaCountInplaceGrowth
  134. #define PR_ArenaCountGrowth PL_ArenaCountGrowth
  135. #define PR_ArenaCountRelease PL_ArenaCountRelease
  136. #define PR_ArenaCountRetract PL_ArenaCountRetract
  137. /* Re: prevent.h->plevent.h */
  138. #define PREvent PLEvent
  139. #define PREventQueue PLEventQueue
  140. #define PR_CreateEventQueue PL_CreateEventQueue
  141. #define PR_DestroyEventQueue PL_DestroyEventQueue
  142. #define PR_GetEventQueueMonitor PL_GetEventQueueMonitor
  143. #define PR_ENTER_EVENT_QUEUE_MONITOR PL_ENTER_EVENT_QUEUE_MONITOR
  144. #define PR_EXIT_EVENT_QUEUE_MONITOR PL_EXIT_EVENT_QUEUE_MONITOR
  145. #define PR_PostEvent PL_PostEvent
  146. #define PR_PostSynchronousEvent PL_PostSynchronousEvent
  147. #define PR_GetEvent PL_GetEvent
  148. #define PR_EventAvailable PL_EventAvailable
  149. #define PREventFunProc PLEventFunProc
  150. #define PR_MapEvents PL_MapEvents
  151. #define PR_RevokeEvents PL_RevokeEvents
  152. #define PR_ProcessPendingEvents PL_ProcessPendingEvents
  153. #define PR_WaitForEvent PL_WaitForEvent
  154. #define PR_EventLoop PL_EventLoop
  155. #define PR_GetEventQueueSelectFD PL_GetEventQueueSelectFD
  156. #define PRHandleEventProc PLHandleEventProc
  157. #define PRDestroyEventProc PLDestroyEventProc
  158. #define PR_InitEvent PL_InitEvent
  159. #define PR_GetEventOwner PL_GetEventOwner
  160. #define PR_HandleEvent PL_HandleEvent
  161. #define PR_DestroyEvent PL_DestroyEvent
  162. #define PR_DequeueEvent PL_DequeueEvent
  163. #define PR_GetMainEventQueue PL_GetMainEventQueue
  164. /* Re: prhash.h->plhash.h */
  165. #define PRHashEntry PLHashEntry
  166. #define PRHashTable PLHashTable
  167. #define PRHashNumber PLHashNumber
  168. #define PRHashFunction PLHashFunction
  169. #define PRHashComparator PLHashComparator
  170. #define PRHashEnumerator PLHashEnumerator
  171. #define PRHashAllocOps PLHashAllocOps
  172. #define PR_NewHashTable PL_NewHashTable
  173. #define PR_HashTableDestroy PL_HashTableDestroy
  174. #define PR_HashTableRawLookup PL_HashTableRawLookup
  175. #define PR_HashTableRawAdd PL_HashTableRawAdd
  176. #define PR_HashTableRawRemove PL_HashTableRawRemove
  177. #define PR_HashTableAdd PL_HashTableAdd
  178. #define PR_HashTableRemove PL_HashTableRemove
  179. #define PR_HashTableEnumerateEntries PL_HashTableEnumerateEntries
  180. #define PR_HashTableLookup PL_HashTableLookup
  181. #define PR_HashTableDump PL_HashTableDump
  182. #define PR_HashString PL_HashString
  183. #define PR_CompareStrings PL_CompareStrings
  184. #define PR_CompareValues PL_CompareValues
  185. #endif /* !defined(PROTYPES_H) */