You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#include "debug.h"
|
|
|
|
#include "init.h"
|
|
|
|
#include "globals.h"
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
{
|
|
|
|
if(argc!=2) return 1;
|
|
|
|
int ret;
|
|
|
|
|
|
|
|
SetDebugLevel(INFO);
|
|
|
|
|
|
|
|
COUT(INFO)<<"Parse config file "<<argv[1]<<" ";
|
|
|
|
ret=ParseConfigFile(argv[1]); if(ret!=0) return 1;
|
|
|
|
COUT(INFO)<<"Ok"<<std::endl;
|
|
|
|
|
|
|
|
RegisterArifmeticFunctions();
|
|
|
|
|
|
|
|
COUT(INFO)<<G_vars.size()<<std::endl;
|
|
|
|
for(auto& i: G_vars) COUT(INFO)<<i.first<<"="+i.second->Dump()<<";"<<std::endl;
|
|
|
|
|
|
|
|
ClearGlobals();
|
|
|
|
return 0;
|
|
|
|
}
|