changed: the way of building the cmslu

main Makefile is in an application directory
         in cmslu/ there are only libraries:
         core.a content.a confparser.a templates.a
added:   macros APPTEMPLATES APPFUNCTIONS
         defined in the application's Makefile
added:   PatternCacher
added:   cmslu function 'run'
         files which have exec permissions
         can be run (run is a default function)
         after read from the database the content is parsed
         into Ezc::Pattern object, this object is then cached
         in PatternCacher
added:   FunctionCodeParser - will be used to parse the code
         from standard functions (ls/cat/...)


git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@475 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2009-01-26 20:49:28 +00:00
parent 327f18525c
commit 20f6fbcf84
37 changed files with 866 additions and 298 deletions

View File

@@ -19,7 +19,6 @@
#include "config.h"
// singletons
// first 'data' then 'log' then 'request'
Data data;
@@ -63,6 +62,7 @@ int main(int argv, char ** argc)
{
RequestController req_controller;
std::srand(std::time(0));
if( argv != 2 )
@@ -80,7 +80,9 @@ RequestController req_controller;
// closing descriptors only at the beginning
close(2);
// !! temporary we do not close standard output for errors
// client postgresql uses it for reporting warnings (I don't know why)
//close(2);
if( !data.log_stdout )
{
@@ -88,6 +90,7 @@ RequestController req_controller;
data.stdout_is_closed = true;
}
signal(SIGTERM, signal_term);
signal(SIGINT, signal_term);
@@ -102,7 +105,7 @@ RequestController req_controller;
if( !req_controller.Init() )
return 1;
log << log2 << "checking for table consistency:" << logend;
//log << log2 << "checking for table consistency:" << logend;
// !! zrobic wyjatek dla root
//db.CheckAllUrlSubject();