Skip to content
  1. Sep 22, 2020
  2. Sep 21, 2020
  3. Sep 20, 2020
    • Rui Ueyama's avatar
      Add _Bool type · 733e0dc2
      Rui Ueyama authored
      _Bool isn't just a 1-bit integer because when you convert a value
      to bool, the result is 1 if the original value is non-zero. This
      is contrary to the other small integral types, e.g. char, as you
      can see below:
      
        char x  = 256; // x is 0
        _Bool y = 256; // y is 1
      733e0dc2
    • Rui Ueyama's avatar
      aa4ad5b0
    • Rui Ueyama's avatar
      Add typedef · 60d12c07
      Rui Ueyama authored
      In the following example, `x` is defined as an alias for `int`.
      
        typedef x;
      
      Below is valid C code where the second `t` is a local variable
      of type int having value 3.
      
        typedef int t;
        t t = 3;
      60d12c07