Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 1535 → Rev 1550

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