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

ruby-changes:3370

From: ko1@a...
Date: 3 Jan 2008 14:38:12 +0900
Subject: [ruby-changes:3370] akr - Ruby:r14863 (trunk): * parse.y (parser_magic_comment): use STRNCASECMP.

akr	2008-01-03 14:37:47 +0900 (Thu, 03 Jan 2008)

  New Revision: 14863

  Modified files:
    trunk/ChangeLog
    trunk/parse.y

  Log:
    * parse.y (parser_magic_comment): use STRNCASECMP.
      (set_file_encoding): ditto.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=14863&r2=14862&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14863&r2=14862&diff_format=u

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14862)
+++ ChangeLog	(revision 14863)
@@ -1,3 +1,8 @@
+Thu Jan  3 14:37:17 2008  Tanaka Akira  <akr@f...>
+
+	* parse.y (parser_magic_comment): use STRNCASECMP.
+	  (set_file_encoding): ditto.
+
 Thu Jan  3 11:44:37 2008  Tanaka Akira  <akr@f...>
 
 	* time.c: don't mention an obsolete library, ParseDate.
Index: parse.y
===================================================================
--- parse.y	(revision 14862)
+++ parse.y	(revision 14863)
@@ -5875,7 +5875,7 @@
 	str_copy(name, beg, n);
 #ifndef RIPPER
 	do {
-	    if (strncasecmp(p->name, RSTRING_PTR(name), n) == 0) {
+	    if (STRNCASECMP(p->name, RSTRING_PTR(name), n) == 0) {
 		n = vend - vbeg;
 		if (p->length) {
 		    n = (*p->length)(parser, vbeg, n);
@@ -5918,7 +5918,7 @@
 	    if (ISSPACE(*str)) break;
 	    continue;
 	}
-	if (strncasecmp(str-6, "coding", 6) == 0) break;
+	if (STRNCASECMP(str-6, "coding", 6) == 0) break;
     }
     for (;;) {
 	do {

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

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