1. 25 3月, 2018 1 次提交
  2. 13 3月, 2018 1 次提交
    • R
      explicitly use signed keyword to define intNN_t and derivative types · 919ad8d5
      Rich Felker 提交于
      standing alone, both the signed and int keywords identify the same
      type, a (signed) int. however the C language has an exception where,
      when the lone keyword int is used to declare a bitfield, it's
      implementation-defined whether the bitfield is signed or unsigned. C11
      footnote 125 extends this implementation-definedness to typedefs, and
      DR#315 extends it to other integer types (for which support with
      bitfields is implementation-defined).
      
      while reasonable ABIs (all the ones we support) define bitfields as
      signed by default, GCC and compatible compilers offer an option
      -funsigned-bitfields to change the default. while any signed types
      defined without explicit use of the signed keyword are affected, the
      stdint.h types, especially intNN_t, have a natural use in bitfields.
      ensure that bitfields defined with these types always have the correct
      signedness regardless of compiler & flags used.
      
      see also GCC PR 83294.
      919ad8d5
  3. 11 3月, 2018 7 次提交
  4. 08 3月, 2018 1 次提交
  5. 26 2月, 2018 1 次提交
    • R
      add public interface headers to implementation files · 57b97b42
      Rich Felker 提交于
      general policy is that all source files defining a public API or an
      ABI mechanism referenced by a public header should include the public
      header that declares the interface, so that the compiler or analysis
      tools can check the consistency of the declarations. Alexander Monakov
      pointed out a number of violations of this principle a few years back.
      fix them now.
      57b97b42
  6. 25 2月, 2018 7 次提交
  7. 24 2月, 2018 3 次提交
  8. 23 2月, 2018 19 次提交