int main(int argc, const char **argv)
{
    int _retval;
    if (!mclInitializeApplication(__MCC_APIT_random_nonoise_mcr_application_options,
                                  __MCC_APIT_random_nonoise_mcr_application_option_count))
        return 0;
    
    if (!APIT_random_nonoiseInitialize())
        return -1;
    _retval = mclMain(_mcr_inst, argc, argv, "apit_random_nonoise", 0);
    if (_retval == 0 /* no error */) mclWaitForFiguresToDie(NULL);
    APIT_random_nonoiseTerminate();
    mclTerminateApplication();
    return _retval;
}
Exemplo n.º 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_gj_main_component_data.path_to_component = path_to_component; 
  if (!gj_mainInitialize()) {
    return -1;
  }
  _retval = mclMain(_mcr_inst, argc, argv, "gj_main", 1);
  if (_retval == 0 /* no error */) mclWaitForFiguresToDie(NULL);
  gj_mainTerminate();
  mclTerminateApplication();
  return _retval;
}
Exemplo n.º 3
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;
}
Exemplo n.º 4
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;
}
Exemplo n.º 5
0
HRESULT __stdcall CKernel::MCRWaitForFigures()
{
    mclWaitForFiguresToDie(m_hinst);
    return(S_OK);
}