1. 26 2月, 2015 32 次提交
  2. 14 2月, 2015 1 次提交
    • K
      Fix build with MSVC on CE · 9768e651
      Konstantin Ritt 提交于
      This code is C++ only. There isn't a single C++ compiler that fails to
      understand the "inline" keyword, since it's required by C++98. Any
      compiler older than C++98 is likely to choke on the template usage
      further down, so this isn't necessary.
      
      Moreover, the C++ standard says you cannot define macros.
      [lib.macro.names] says "Nor shall such a translation unit define macros
      for names lexically identical to keywords." -- technically, it's a
      promise that the Standard Library headers won't do it, the wording means
      that the entire translation unit won't do it, which implies no source
      can do it.
      
      MSVC complains about it:
      fatal error C1189: #error : The C++ Standard Library forbids macroizing
      keywords. Enable warning C4005 to find the forbidden macro.
      
      Author: Thiago Macieira <thiago.macieira@intel.com>
      9768e651
  3. 29 1月, 2015 3 次提交
  4. 28 1月, 2015 3 次提交
  5. 27 1月, 2015 1 次提交
    • B
      [API] Add hb_buffer_add_latin1() · 61820bc4
      Behdad Esfahbod 提交于
      This is by no ways to promote non-Unicode encodings.  This is an entry
      point that takes Unicode codepoints that happen to all be the first
      256 characters and hence fit in 8bit strings.  This is useful eg in Chrome
      where strings that can fit in 8bit are implemented that way, and this
      avoids copying into UTF-8 or UTF-16.
      
      Perhaps we should rename this to hb_buffer_add_codepoints8().  I'm also
      curious if anyone would be really interested in hb_buffer_add_codepoints16().
      
      Please discuss!
      61820bc4