Beispiel #1
0
void portable_OS_init()
{
    void SaM_PrepareIndices();
    OS_init();
    curl_global_init(CURL_GLOBAL_ALL); //init the curl session
    SaM_PrepareIndices();
}
Beispiel #2
0
void SceneManager_init(Scene *root, int *argc, char **argv)
{
	destroyed = 0;

	scnMgr.current = 0;
	scnMgr.size = 8;
	scnMgr.scenes = malloc(sizeof (Scene) * scnMgr.size);

	scnMgr.scenes[scnMgr.current] = *root;
	OS_init(argc, argv);
}
Beispiel #3
0
int main(int argc,char** argv)
{
  TB_table table;
  int prec,init_nulval;
  double nulval;

  prec=10;
  init_nulval=0;
  OS_init(OS_TOUT_STD,-1,NULL);

  if((argc<3)||(argc==4)||(argc==6)||(argc>8))
    {
      OS_message(0,OS_ERR,"Usage : %s  tfits_filein  ascii_fileout [-p prec] [-n nulval] \n",argv[0]);
      return 1;
    }

  if(argc==5)
    {
      if(strcmp(argv[3],"-p")==0)
	prec=atoi(argv[4]);
      if(strcmp(argv[3],"-n")==0)
	{
	  init_nulval=1;
	  nulval=atof(argv[4]);
	}
    }

  if(argc==7)
    {
      if(strcmp(argv[5],"-p")==0)
	prec=atoi(argv[6]);
      if(strcmp(argv[5],"-n")==0)
	{
	  init_nulval=1;
	  nulval=atof(argv[4]);
	}
    }

  table=readTfits(argv[1],NULL,((init_nulval)?&nulval:NULL));
  writeTAscii(table,argv[2],NULL,prec);
  
  TB_free(table);
  return 0;
}
Beispiel #4
0
int main()
{	
	OS_init();

	vp.init();

	vp.println("kekeke\tGenOS here... In your mind...");
	vp.println("keke\tke\tk");

	v.setbox(10,10,v.w-11,v.h-10,'#',0x3);
	v.setbox(11,11,v.w-12,v.h-11,' ',0x3);
	vp.x=((10+v.w-11)/2 - 5);
	vp.y=((10+v.h-10)/2);
	vp.print("HelloWorld");

while(1) {}
	
	systemError("Programm end");
}