Пример #1
0
int
main (int argc, char **argv)
{     
	win_initialize (argc, argv);
	win_start ();
	return 0;
}
Пример #2
0
int
main (int argc, char **argv)
{
    sim_initialize (FCFS, 0); /* using algorithm FCFS, scenario 0 */
    win_initialize (argc, argv);
    win_start ();
    return 0;
}
Пример #3
0
int main( int argc, char* argv[] )
{
	if( fs_init() )
		return 1;
	win_initialize( argc, argv );
	g_RS = rsl_create();
	g_RS.change_cb = runner_change_callback;
	g_winActCb = runner_action_callback;
	
	rsl_compile( &g_RS, g_scriptData, NULL );
	X_DBG( rsl_dump( &g_RS ) );
	
#if 0
	///////////////////////////////////////////////////
//	win_set_title( "Testā rešpekt" );
//	win_set_background_color( 120, 150, 180 );
//	win_set_background_image( 0 );
	
	win_ctl_resize( 2 );
	
	g_controls[0].type = WCTL_BUTTON;
	g_controls[0].x1 = 100;
	g_controls[0].y1 = 100;
	g_controls[0].x2 = 300;
	g_controls[0].y2 = 140;
	byte colors[ 24 ] =
	{
		50, 50, 50, 1,
		50, 50, 50, 1,
		50, 50, 50, 1,
		200, 200, 200, 1,
		220, 220, 220, 1,
		180, 180, 180, 1,
	};
	memcpy( g_controls[0].fgColorN, colors, 24 );
	strcpy( g_controls[0].text, "Spēlēt" );
	win_ctl_updated( 0, WCU_EVERYTHING );
	
	g_controls[1].type = WCTL_BUTTON;
	g_controls[1].x1 = 100;
	g_controls[1].y1 = 200;
	g_controls[1].x2 = 300;
	g_controls[1].y2 = 240;
	byte colors2[ 24 ] =
	{
		50, 30, 30, 1,
		60, 40, 40, 1,
		70, 50, 50, 1,
		190, 190, 210, 1,
		210, 210, 230, 1,
		170, 170, 190, 1,
	};
	memcpy( g_controls[1].fgColorN, colors2, 24 );
	strcpy( g_controls[1].text, "Instalēt" );
	win_ctl_updated( 1, WCU_EVERYTHING );
	///////////////////////////////////////////////////
#endif
	
	vl_set( &g_RS.varlist, strlitlen( "_action" ), strlitlen( "init" ) );
	rsl_run( &g_RS );
	vl_set( &g_RS.varlist, strlitlen( "_action" ), strlitlen( "" ) );
	runner_apply_changes();
	
	while( win_process( 0 ) );
	
	rsl_destroy( &g_RS );
	fs_free();
	win_destroy();
	return 0;
}