1. 23 5月, 2012 1 次提交
  2. 22 5月, 2012 2 次提交
  3. 21 5月, 2012 1 次提交
  4. 17 5月, 2012 1 次提交
  5. 15 5月, 2012 1 次提交
  6. 14 5月, 2012 6 次提交
  7. 13 5月, 2012 8 次提交
  8. 11 5月, 2012 7 次提交
  9. 10 5月, 2012 2 次提交
  10. 09 5月, 2012 1 次提交
    • R
      omit declaration of basename wrongly interpreted as prototype in C++ · 37bb3cce
      Rich Felker 提交于
      the non-prototype declaration of basename in string.h is an ugly
      compromise to avoid breaking 2 types of broken software:
      
      1. programs which assume basename is declared in string.h and thus
      would suffer from dangerous pointer-truncation if an implicit
      declaration were used.
      
      2. programs which include string.h with _GNU_SOURCE defined but then
      declare their own prototype for basename using the incorrect GNU
      signature for the function (which would clash with a correct
      prototype).
      
      however, since C++ does not have non-prototype declarations and
      interprets them as prototypes for a function with no arguments, we
      must omit it when compiling C++ code. thankfully, all known broken
      apps that suffer from the above issues are written in C, not C++.
      37bb3cce
  11. 08 5月, 2012 6 次提交
  12. 07 5月, 2012 4 次提交