--- parser3/src/classes/op.C 2001/04/15 12:32:57 1.5 +++ parser3/src/classes/op.C 2001/04/26 15:01:48 1.9 @@ -1,16 +1,14 @@ /** @file - Parser: @b ROOT parser class. + Parser: parser @b operators. Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: op.C,v 1.5 2001/04/15 12:32:57 paf Exp $ + $Id: op.C,v 1.9 2001/04/26 15:01:48 paf Exp $ */ #include "pa_config_includes.h" -#include - #include "pa_common.h" #include "pa_request.h" #include "_op.h" @@ -23,11 +21,10 @@ static void _if(Request& r, const String bool condition=r.process(condition_code, 0/*no name*/, false/*don't intercept string*/).as_bool(); - if(condition) { + if(condition) r.write_pass_lang(r.process(params->get(1))); - } else if(params->size()==3) { + else if(params->size()==3) r.write_pass_lang(r.process(params->get(2))); - } } static void _untaint(Request& r, const String& method_name, MethodParams *params) { @@ -234,10 +231,6 @@ static void _sign(Request& r, const Stri } /// ^connect[protocol://user:pass@host[:port]/database]{code with ^sql-s} -/** - @test make params not Array but something with useful method for extracting, - with typecast and junction/not test -*/ static void _connect(Request& r, const String&, MethodParams *params) { Pool& pool=r.pool();