comparison example/regex/ppe/Exec.cc @ 1204:ffef576db4b3 draft

modify example/regex/
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Sat, 16 Jul 2011 17:25:40 +0900
parents 7b866a392adc
children
comparison
equal deleted inserted replaced
1203:f96a3dc9cd38 1204:ffef576db4b3
214 run(SchedTask *s, void *rbuf, void *wbuf) 214 run(SchedTask *s, void *rbuf, void *wbuf)
215 { 215 {
216 // char *i_data = (char *)rbuf; 216 // char *i_data = (char *)rbuf;
217 char *i_data = (char *)s->get_input(rbuf, 0); 217 char *i_data = (char *)s->get_input(rbuf, 0);
218 int length = (int)s->get_inputSize(0); 218 int length = (int)s->get_inputSize(0);
219 WordCount *env = (WordCount*)s->get_input(rbuf, 1); 219 ENV *env = (ENV*)s->get_input(rbuf, 1);
220 UCHARP beg, buf, end; 220 UCHARP beg, buf, end;
221 beg = buf = (UCHARP)i_data; 221 beg = buf = (UCHARP)i_data;
222 end = beg + length - 1; 222 end = beg + length - 1;
223 223
224 s0(beg, buf, end, (ENVP)env); 224 s0(beg, buf, end, (ENVP)env);