fiss

Friedel's Initialization and Service Supervision
Log | Files | Refs | LICENSE

types.h (505B)


      1 #pragma once
      2 
      3 #include "common.h"
      4 
      5 #include <limits.h>
      6 
      7 #if __SIZEOF_INT__ != 4
      8 #	error "int" is not 4 bytes wide
      9 #endif
     10 
     11 #if __SIZEOF_LONG_LONG__ != 8
     12 #	error "long long" is not 8 bytes wide
     13 #endif
     14 
     15 typedef char               i8;
     16 typedef unsigned char      u8;
     17 typedef short              i16;
     18 typedef unsigned short     u16;
     19 typedef int                i32;
     20 typedef unsigned int       u32;
     21 typedef long long          i64;
     22 typedef unsigned long long u64;
     23 
     24 typedef struct {
     25 	int read;
     26 	int write;
     27 } pipe_t;