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

ruby-changes:13148

From: nobu <ko1@a...>
Date: Sun, 13 Sep 2009 20:19:06 +0900 (JST)
Subject: [ruby-changes:13148] Ruby:r24899 (trunk): * ruby.c (process_sflag, proc_options, load_file_internal): fixed

nobu	2009-09-13 20:18:51 +0900 (Sun, 13 Sep 2009)

  New Revision: 24899

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24899

  Log:
    * ruby.c (process_sflag, proc_options, load_file_internal): fixed
      types.

  Modified files:
    trunk/ChangeLog
    trunk/ruby.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 24898)
+++ ChangeLog	(revision 24899)
@@ -1,3 +1,8 @@
+Sun Sep 13 20:18:49 2009  Nobuyoshi Nakada  <nobu@r...>
+
+	* ruby.c (process_sflag, proc_options, load_file_internal): fixed
+	  types.
+
 Sun Sep 13 19:39:59 2009  Masaki Suketa  <masaki.suketa@n...>
 
 	* ext/win32ole/win32ole.c: some refactoring. 
Index: ruby.c
===================================================================
--- ruby.c	(revision 24898)
+++ ruby.c	(revision 24899)
@@ -497,7 +497,7 @@
 	    VALUE v = *args++;
 	    char *s = StringValuePtr(v);
 	    char *p;
-	    int hyphen = Qfalse;
+	    int hyphen = FALSE;
 
 	    if (s[0] != '-')
 		break;
@@ -514,7 +514,7 @@
 		    break;
 		}
 		if (*p == '-') {
-		    hyphen = Qtrue;
+		    hyphen = TRUE;
 		}
 		else if (*p != '_' && !ISALNUM(*p)) {
 		    VALUE name_error[2];
@@ -695,17 +695,17 @@
 	switch (*s) {
 	  case 'a':
 	    if (envopt) goto noenvopt;
-	    opt->do_split = Qtrue;
+	    opt->do_split = TRUE;
 	    s++;
 	    goto reswitch;
 
 	  case 'p':
 	    if (envopt) goto noenvopt;
-	    opt->do_print = Qtrue;
+	    opt->do_print = TRUE;
 	    /* through */
 	  case 'n':
 	    if (envopt) goto noenvopt;
-	    opt->do_loop = Qtrue;
+	    opt->do_loop = TRUE;
 	    s++;
 	    goto reswitch;
 
@@ -778,7 +778,7 @@
 
 	  case 'l':
 	    if (envopt) goto noenvopt;
-	    opt->do_line = Qtrue;
+	    opt->do_line = TRUE;
 	    rb_output_rs = rb_rs;
 	    s++;
 	    goto reswitch;
@@ -786,7 +786,7 @@
 	  case 'S':
 	    if (envopt) goto noenvopt;
 	    forbid_setid("-S");
-	    opt->do_search = Qtrue;
+	    opt->do_search = TRUE;
 	    s++;
 	    goto reswitch;
 
@@ -828,7 +828,7 @@
 
 	  case 'x':
 	    if (envopt) goto noenvopt;
-	    opt->xflag = Qtrue;
+	    opt->xflag = TRUE;
 	    s++;
 	    if (*s && chdir(s) < 0) {
 		rb_fatal("Can't chdir to %s", s);
@@ -1513,7 +1513,7 @@
 	if (opt->xflag) {
 	  search_shebang:
 	    forbid_setid("-x");
-	    opt->xflag = Qfalse;
+	    opt->xflag = FALSE;
 	    while (!NIL_P(line = rb_io_gets(f))) {
 		line_start++;
 		if (RSTRING_LEN(line) > 2

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

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