Mercurial > hg > Members > tkaito > task_dandy
changeset 16:bd714b077534
ppe/Move0~ delete.
author | tkaito |
---|---|
date | Sun, 08 Aug 2010 18:08:30 +0900 |
parents | 813485a28b6f |
children | bed43801fd01 |
files | ppe/Move00.cc ppe/Move00.h ppe/Move01.cc ppe/Move01.h ppe/Move02.cc ppe/Move02.h ppe/Move03.cc ppe/Move03.h ppe/Move04.cc ppe/Move04.h ppe/Move05.cc ppe/Move05.h ppe/Move06.cc ppe/Move06.h ppe/Move07.cc ppe/Move07.h ppe/Move08.cc ppe/Move08.h |
diffstat | 18 files changed, 0 insertions(+), 386 deletions(-) [+] |
line wrap: on
line diff
--- a/ppe/Move00.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,21 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move00.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move00); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - ObjPropertyPtr i_obj = (ObjPropertyPtr)s->get_input(rbuf, 0); - ObjPropertyPtr o_obj = (ObjPropertyPtr)s->get_output(wbuf, 0); - - o_obj = i_obj; - - o_obj->x = i_obj->x + i_obj->vx; - o_obj->y = i_obj->y + i_obj->vy; - - return 0; -}
--- a/ppe/Move00.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,29 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -typedef struct { - double x, y; - double vx, vy; - const char *chara; - int vital; - int score; - int remove; - void *parent; - void *root; - -} *ObjPropertyPtr, ObjProperty; - - -#endif
--- a/ppe/Move01.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move01.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move01); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -}
--- a/ppe/Move01.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif
--- a/ppe/Move02.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move02.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move02); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -}
--- a/ppe/Move02.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif
--- a/ppe/Move03.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move03.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move03); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -}
--- a/ppe/Move03.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif
--- a/ppe/Move04.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move04.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move04); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -}
--- a/ppe/Move04.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif
--- a/ppe/Move05.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move05.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move05); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -}
--- a/ppe/Move05.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif
--- a/ppe/Move06.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move06.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move06); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -}
--- a/ppe/Move06.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif
--- a/ppe/Move07.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move07.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move07); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -}
--- a/ppe/Move07.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif
--- a/ppe/Move08.cc Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include <stdio.h> -#include "SchedTask.h" -#include "Move08.h" -#include "Func.h" - -/* これは必須 */ -SchedDefineTask(Move08); - -static int -run(SchedTask *s,void *rbuf, void *wbuf) -{ - /* - int *i_data; - int *o_data; - long length; - - i_data = (int*)s->get_input(rbuf, 0); - o_data = (int*)s->get_output(wbuf, 0); - length = (long)s->get_param(0); - - for (int i = 0; i < length; i++) { - o_data[i] = i_data[i] * 2; - } - */ - return 0; -}
--- a/ppe/Move08.h Sun Aug 08 18:05:46 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,16 +0,0 @@ -#ifndef INCLUDED_TASK_HELLO -#define INCLUDED_TASK_HELLO - -#ifndef INCLUDED_SCHED_TASK -# include "SchedTask.h" -#endif -/* -class Twice : public SchedTask { -public: - SchedConstructor(Twice); - - int run(void *r, void *w); -}; - */ - -#endif