Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1550 → Rev 1549

/demos/trunk/astro/astro.c
372,7 → 372,8
pid = task_create("Astro", astro, &ms, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <astro>\n");
exit(1);
sys_end();
return;
} else
task_activate(pid);
 
384,7 → 385,8
pid = task_create("Taken", look, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <Taken>\n");
exit(1);
sys_end();
return;
} else
task_activate(pid);
 
399,7 → 401,8
pid_TL = task_create("TurnLeft", turn, &mp, NULL);
if (pid_TL == NIL) {
sys_shutdown_message("Could not create task <Turn L>\n");
exit(1);
sys_end();
return;
}
 
incr = - ASTRO_GRAD_INC;
413,7 → 416,8
pid_TR = task_create("TurnRight", turn, &mp, NULL);
if (pid_TR == NIL) {
sys_shutdown_message("Could not create task <Turn R>\n");
exit(1);
sys_end();
return;
}
 
incr = ASTRO_VEL_INC;
427,7 → 431,8
pid_SU = task_create("SpeedUP", speed, &mp, NULL);
if (pid_SU == NIL) {
sys_shutdown_message("Could not create task <Speed UP>\n");
exit(1);
sys_end();
return;
}
 
incr = - ASTRO_VEL_INC;
441,7 → 446,8
pid_SD = task_create("SpeedDOWN", speed, &mp, NULL);
if (pid_SD == NIL) {
sys_shutdown_message("Could not create task <Speed DOWN>\n");
exit(1);
sys_end();
return;
}
 
incr = 0;
455,7 → 461,8
pid_SZ = task_create("SpeedZERO", speed, &mp, NULL);
if (pid_SZ == NIL) {
sys_shutdown_message("Could not create task <Speed ZERO>\n");
exit(1);
sys_end();
return;
}
 
hard_task_default_model(mp);
466,7 → 473,8
pid = task_create("MoveAstro", move, &mp, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <MoveAstro>\n");
exit(1);
sys_end();
return;
} else
task_activate(pid);
 
482,7 → 490,8
pid_FL = task_create("FlipAstro", turn, &mp, NULL);
if (pid_FL == NIL) {
sys_shutdown_message("Could not create task <Flip Astro>\n");
exit(1);
sys_end();
return;
}
#endif
}
/demos/trunk/astro/rock.c
270,7 → 270,8
pid_RC = task_create("RockCreator", rock_creator, &ms, NULL);
if (pid_RC == NIL) {
sys_shutdown_message("Could not create task <RockCreator>\n");
exit(1);
sys_end();
return;
} else
task_activate(pid_RC);
}
/demos/trunk/astro/initfile.c
89,7 → 89,7
shutdown_task_PID = task_create("Shutdown Task",shutdown_task_body,&nrt,NULL);
if (shutdown_task_PID == NIL) {
sys_shutdown_message("Error: Cannot create shutdown task\n");
exit(1);
sys_end();
}
 
}
116,7 → 116,7
cprintf("Error: Cannot open graphical mode\n");
KEYB26_close();
INPUT26_close();
exit(1);
sys_end();
}
FB26_use_grx(FRAME_BUFFER_DEVICE);
160,6 → 160,8
 
sys_shutdown_message("-- S.Ha.R.K. Closed --\n");
 
sys_abort_shutdown(0);
 
return NULL;
 
}
/demos/trunk/astro/asteroid.c
63,7 → 63,8
 
void end_func(KEY_EVT *k) {
 
exit(0);
sys_end();
 
}
 
int main(int argc, char **argv)
/demos/trunk/astro/stat.c
129,7 → 129,8
pid = task_create("StatWrite", stat_write, &ms, NULL);
if (pid == NIL) {
sys_shutdown_message("Could not create task <StatWrite>\n");
exit(1);
sys_end();
return;
} else
task_activate(pid);
}