[前][次][番号順一覧][スレッド一覧]

ruby-changes:49640

From: usa <ko1@a...>
Date: Wed, 10 Jan 2018 12:54:12 +0900 (JST)
Subject: [ruby-changes:49640] usa:r61756 (trunk): should cause preprocess error as other cases

usa	2018-01-10 12:54:02 +0900 (Wed, 10 Jan 2018)

  New Revision: 61756

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61756

  Log:
    should cause preprocess error as other cases
    
    * string.c (NONASCII_MASK): should cause preprocess error immediately if the
      compiler does not satisfy our assumptions.

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 61755)
+++ string.c	(revision 61756)
@@ -448,6 +448,8 @@ search_nonascii(const char *p, const cha https://github.com/ruby/ruby/blob/trunk/string.c#L448
 #  define NONASCII_MASK UINT64_C(0x8080808080808080)
 # elif SIZEOF_UINTPTR_T == 4
 #  define NONASCII_MASK UINT32_C(0x80808080)
+# else
+#  error "don't know what to do."
 # endif
 #else
 # if SIZEOF_UINTPTR_T == 8

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]