changeset 1576:33731c160268 draft

ppe/Exec.cc L29 || から && に訂正
author Masa <e085726@ie.u-ryukyu.ac.jp>
date Fri, 22 Mar 2013 21:26:00 +0900
parents fcb6ce3ba110
children be59aef19a22
files example/regex_masa/main.o example/regex_masa/ppe/Exec.cc example/regex_masa/ppe/Exec.o example/regex_masa/ppe/Print.o example/regex_masa/regex example/regex_masa/task_init.o
diffstat 6 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
Binary file example/regex_masa/main.o has changed
--- a/example/regex_masa/ppe/Exec.cc	Fri Mar 22 20:34:29 2013 +0900
+++ b/example/regex_masa/ppe/Exec.cc	Fri Mar 22 21:26:00 2013 +0900
@@ -23,12 +23,13 @@
     //head_tail_flag[0] = (i_data[0] != 0x20) && (i_data[0] != 0x0A);
     word_num -= 1-head_tail_flag[0];
 
+    //i_data[length - 1] = 0x61;  //分割されたファイルのラストがaのときに固まってしまう
+
     for (; i < length; i++) {
-        if (i_data[i] == 0x61) { //アルファベット小文字a
-            if (i_data[i+1] == 0x62) { //アルファベット小文字b
-                word_flag = 1;
-                line_flag = 1;
-            }
+        if (i_data[i] == 0x61 && i_data[i+1] == 0x62) { //abと文字列が並んでいるとき
+            word_flag = 1;
+            line_flag = 1;
+        
         } else if (i_data[i] == 0x20) { //空白 
             word_num += word_flag;
             word_flag = 0;
Binary file example/regex_masa/ppe/Exec.o has changed
Binary file example/regex_masa/ppe/Print.o has changed
Binary file example/regex_masa/regex has changed
Binary file example/regex_masa/task_init.o has changed