[webkit-changes] cvs commit: JavaScriptCore/os-win32 stdint.h

Darin darin at opensource.apple.com
Fri Sep 23 20:28:29 PDT 2005


darin       05/09/23 20:28:29

  Modified:    .        ChangeLog
  Added:       os-win32 stdint.h
  Log:
          Reviewed and landed by Darin.
  
          - a Windows-specific file
  
          * os-win32/stdint.h: Added. We plan to remove dependency on the <stdint.h> types,
          and if we do so, we will remove this file.
  
  Revision  Changes    Path
  1.836     +9 -0      JavaScriptCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/ChangeLog,v
  retrieving revision 1.835
  retrieving revision 1.836
  diff -u -r1.835 -r1.836
  --- ChangeLog	22 Sep 2005 20:09:48 -0000	1.835
  +++ ChangeLog	24 Sep 2005 03:28:28 -0000	1.836
  @@ -1,3 +1,12 @@
  +2005-09-23  Krzysztof Kowalczyk  <kkowalczyk at gmail.com>
  +
  +        Reviewed and landed by Darin.
  +
  +        - a Windows-specific file
  +
  +        * os-win32/stdint.h: Added. We plan to remove dependency on the <stdint.h> types,
  +        and if we do so, we will remove this file.
  +
   2005-09-22  Geoffrey Garen  <ggaren at apple.com>
   
           - Fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=5053
  
  
  
  1.1                  JavaScriptCore/os-win32/stdint.h
  
  Index: stdint.h
  ===================================================================
  #ifndef STDINT_WIN32_H
  #define STDINT_WIN32_H
  
  /* This file emulates enough of unix's stdint.h on Windows
     to make WebCore compile */
     
  #ifndef WIN32
  #error "This stdint.h file should only be compiled under Windows"
  #endif
  typedef unsigned short uint16_t;
  typedef short int16_t;
  typedef unsigned int uint32_t;
  typedef int int32_t;
  typedef unsigned __int64 uint64_t;
  
  #ifndef CASSERT
  #define CASSERT( exp, name ) typedef int dummy##name [ (exp ) ? 1 : -1 ];
  #endif
  
  CASSERT( sizeof(int16_t) == 2, int16_t_is_two_bytes )
  CASSERT( sizeof(uint16_t) == 2, uint16_t_is_two_bytes )
  CASSERT( sizeof(uint32_t) == 4, uint32_t_is_four_bytes )
  CASSERT( sizeof(int32_t) == 4, int32_t_is_four_bytes )
  
  #endif
  
  
  



More information about the webkit-changes mailing list