# HG changeset patch # User Masa # Date 1363955160 -32400 # Node ID 33731c160268a5430a805f1c415990f607102cf2 # Parent fcb6ce3ba110a0f71f765db8e30bf12141f43eb8 ppe/Exec.cc L29 || から && に訂正 diff -r fcb6ce3ba110 -r 33731c160268 example/regex_masa/main.o Binary file example/regex_masa/main.o has changed diff -r fcb6ce3ba110 -r 33731c160268 example/regex_masa/ppe/Exec.cc --- 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; diff -r fcb6ce3ba110 -r 33731c160268 example/regex_masa/ppe/Exec.o Binary file example/regex_masa/ppe/Exec.o has changed diff -r fcb6ce3ba110 -r 33731c160268 example/regex_masa/ppe/Print.o Binary file example/regex_masa/ppe/Print.o has changed diff -r fcb6ce3ba110 -r 33731c160268 example/regex_masa/regex Binary file example/regex_masa/regex has changed diff -r fcb6ce3ba110 -r 33731c160268 example/regex_masa/task_init.o Binary file example/regex_masa/task_init.o has changed