Example #1
0
int run_main(int argc, const char **argv)
{
  int _retval;
  /* Generate and populate the path_to_component. */
  char path_to_component[(PATH_MAX*2)+1];
  separatePathName(argv[0], path_to_component, (PATH_MAX*2)+1);
  __MCC_fo_trak_component_data.path_to_component = path_to_component; 
  if (!fo_trakInitialize()) {
    return -1;
  }
  argc = mclSetCmdLineUserData(mclGetID(_mcr_inst), argc, argv);
  _retval = mclMain(_mcr_inst, argc, argv, "olympiadTrak", 1);
  if (_retval == 0 /* no error */) mclWaitForFiguresToDie(NULL);
  fo_trakTerminate();
  mclTerminateApplication();
  return _retval;
}
Example #2
0
int run_main(int argc, const char **argv)
{
  int _retval;
  /* Generate and populate the path_to_component. */
  char path_to_component[(PATH_MAX*2)+1];
  separatePathName(argv[0], path_to_component, (PATH_MAX*2)+1);
  __MCC_color2gray_component_data.path_to_component = path_to_component; 
  if (!color2grayInitialize()) {
    return -1;
  }
  argc = mclSetCmdLineUserData(mclGetID(_mcr_inst), argc, argv);
  _retval = mclMain(_mcr_inst, argc, argv, "color2gray", 0);
  if (_retval == 0 /* no error */) mclWaitForFiguresToDie(NULL);
  color2grayTerminate();
#if defined( _MSC_VER)
  PostQuitMessage(0);
#endif
  mclTerminateApplication();
  return _retval;
}