Annotation of generator/hdr/machine.h, revision 1.1.1.2

1.1       root        1: /*****************************************************************************/
                      2: /*     Generator - Sega Genesis emulation - (c) James Ponder 1997-1998       */
                      3: /*****************************************************************************/
                      4: /*                                                                           */
                      5: /* machine.h                                                                 */
                      6: /*                                                                           */
                      7: /*****************************************************************************/
                      8: 
                      9: #include "config.h"
                     10: 
                     11: /* get correct sizes for uint8, uint16 and uint32 */
                     12: 
                     13: #if (SIZEOF_UNSIGNED_CHAR == 1)
                     14: typedef unsigned char uint8;
                     15: typedef signed char sint8;
                     16: #elif (SIZEOF_UNSIGNED_SHORT == 1)
                     17: typedef unsigned short uint8;
                     18: typedef signed short sint8;
                     19: #elif (SIZEOF_UNSIGNED_INT == 1)
                     20: typedef unsigned int uint8;
                     21: typedef signed int sint8;
                     22: #elif (SIZEOF_UNSIGNED_LONG == 1)
                     23: typedef unsigned long uint8;
                     24: typedef signed long sint8;
                     25: #elif (SIZEOF_UNSIGNED_LONG_LONG == 1)
                     26: typedef unsigned long long uint8;
                     27: typedef signed long long sint8;
                     28: #else
1.1.1.2 ! root       29: typedef unsigned char uint8;
        !            30: typedef signed char sint8;
        !            31: #warning Unable to work out the 8-bit integer names
1.1       root       32: #endif
                     33: 
                     34: #if (SIZEOF_UNSIGNED_CHAR == 2)
                     35: typedef unsigned char uint16;
                     36: typedef signed char sint16;
                     37: #elif (SIZEOF_UNSIGNED_SHORT == 2)
                     38: typedef unsigned short uint16;
                     39: typedef signed short sint16;
                     40: #elif (SIZEOF_UNSIGNED_INT == 2)
                     41: typedef unsigned int uint16;
                     42: typedef signed int sint16;
                     43: #elif (SIZEOF_UNSIGNED_LONG == 2)
                     44: typedef unsigned long uint16;
                     45: typedef signed long sint16;
                     46: #elif (SIZEOF_UNSIGNED_LONG_LONG == 2)
                     47: typedef unsigned long long uint16;
                     48: typedef signed long long sint16;
                     49: #else
1.1.1.2 ! root       50: typedef unsigned short uint16;
        !            51: typedef signed short sint16;
        !            52: #warning Unable to work out the 16-bit integer names
1.1       root       53: #endif
                     54: 
                     55: #if (SIZEOF_UNSIGNED_CHAR == 4)
                     56: typedef unsigned char uint32;
                     57: typedef signed char sint32;
                     58: #elif (SIZEOF_UNSIGNED_SHORT == 4)
                     59: typedef unsigned short uint32;
                     60: typedef signed short sint32;
                     61: #elif (SIZEOF_UNSIGNED_INT == 4)
                     62: typedef unsigned int uint32;
                     63: typedef signed int sint32;
                     64: #elif (SIZEOF_UNSIGNED_LONG == 4)
                     65: typedef unsigned long uint32;
                     66: typedef signed long sint32;
                     67: #elif (SIZEOF_UNSIGNED_LONG_LONG == 4)
                     68: typedef unsigned long long uint32;
                     69: typedef signed long long sint32;
                     70: #else
1.1.1.2 ! root       71: #warning Unable to work out the 32-bit integer names
        !            72: typedef unsigned int uint32;
        !            73: typedef signed int sint32;
1.1       root       74: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.