diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-09 15:49:49 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2014-10-09 15:49:49 +0200 |
commit | 3fc6e3cf5b586640a057e3f8335605c2bf5784ec (patch) | |
tree | 5d8029190edfd1c1fd6d93359c517bea32a2a08e /src/crawl/crawl.cpp | |
parent | 5c37d14e53c729c10d87849408058031d96d51f1 (diff) | |
download | crawler-3fc6e3cf5b586640a057e3f8335605c2bf5784ec.tar.gz crawler-3fc6e3cf5b586640a057e3f8335605c2bf5784ec.tar.bz2 |
first running lua code with URL normalization, cleanup needed..
Diffstat (limited to 'src/crawl/crawl.cpp')
-rwxr-xr-x | src/crawl/crawl.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/crawl/crawl.cpp b/src/crawl/crawl.cpp index 08d3dbf..3a8fdff 100755 --- a/src/crawl/crawl.cpp +++ b/src/crawl/crawl.cpp @@ -55,6 +55,12 @@ BOOL WINAPI termHandler( DWORD ctrlType ) #endif +#ifdef WITH_LUA +// TODO: should be in the laoding function of libcrawl +#include "tolua.h" +#include "URLLua.hpp" +#endif + static int counter = 0; int main( int /* argc */, char *argv[] ) @@ -281,6 +287,11 @@ int main( int /* argc */, char *argv[] ) LOG( logNOTICE ) << "Crawler stopped.. normal shutdown.."; +#ifdef WITH_LUA + // TODO: should be in the laoding function of libcrawl + tolua_URL_open( luaVm.handle( ) ); +#endif + luaVm.executeMain( ); //luaVm.dumpState( ); |