Changeset 5cf5a4


Ignore:
Timestamp:
May 29, 2010, 2:18:41 PM (15 years ago)
Author:
Frederik Heber <heber@…>
Children:
ffb6bf
Parents:
41b123 (diff), 356180 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'FixReintroduceExitFlagtoParseCommandLineCall' into CommandLineActionMapping

Conflicts:

molecuilder/src/builder.cpp

Due to this old merge, at the end of main() there were still old memory cleanup routines which got mixed in again.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/builder.cpp

    r41b123 r5cf5a4  
    25022502    char **Arguments = NULL;
    25032503    int ArgcSize = 0;
     2504    int ExitFlag = 0;
    25042505    bool ArgumentsCopied = false;
    25052506
     
    25292530      char ConfigFileName[MAXSTRINGSIZE];
    25302531      // handle arguments by ParseCommandLineOptions()
    2531       ParseCommandLineOptions(argc,argv,World::getInstance().getMolecules(),World::getInstance().getPeriode(),*World::getInstance().getConfig(), (char *&)ConfigFileName, ArgcList);
     2532      ExitFlag = ParseCommandLineOptions(argc,argv,World::getInstance().getMolecules(),World::getInstance().getPeriode(),*World::getInstance().getConfig(), (char *&)ConfigFileName, ArgcList);
    25322533      // copy all remaining arguments to a new argv
    25332534      Arguments = Malloc<char *>(ArgcList.size(), "main - **Arguments");
     
    25722573  }
    25732574
    2574   return (0);
     2575  return (ExitFlag == 1 ? 0 : ExitFlag);
    25752576}
    25762577
Note: See TracChangeset for help on using the changeset viewer.