--- parser3/src/include/pa_globals.h 2001/03/18 11:37:50 1.8 +++ parser3/src/include/pa_globals.h 2001/03/24 11:33:25 1.25 @@ -1,9 +1,11 @@ -/* - Parser +/** @file + Parser: global decls. + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_globals.h,v 1.8 2001/03/18 11:37:50 paf Exp $ + $Id: pa_globals.h,v 1.25 2001/03/24 11:33:25 paf Exp $ */ #ifndef PA_GLOBALS_H @@ -12,10 +14,18 @@ #include "pa_string.h" #include "pa_hash.h" +//@{ +/// constant string. class name, predefined method & co #define AUTO_FILE_NAME "auto.p" #define CONTENT_TYPE_NAME "content-type" #define BODY_NAME "body" +#define VALUE_NAME "value" +#define EXPIRES_NAME "expires" +#define PATH_NAME "path" +#define NAME_NAME "name" +#define SIZE_NAME "size" +#define TEXT_NAME "text" #define EXCEPTION_METHOD_NAME "exception" @@ -31,29 +41,31 @@ #define FORM_CLASS_NAME "form" #define REQUEST_CLASS_NAME "request" #define RESPONSE_CLASS_NAME "response" +#define COOKIE_CLASS_NAME "cookie" #define LIMITS_NAME "limits" #define POST_MAX_SIZE_NAME "post_max_size" +#define DEFAULTS_NAME "defaults" #define RESULT_VAR_NAME "result" +//@} -struct Service_funcs { - int (*read_post)(char *buf, int max_bytes); -}; - +/// core func +void pa_globals_init(Pool& pool); -// core func -void globals_init(Pool& pool); - -// hex_value[c] = hex value of c +/// hex_value[c] = hex value of c extern short hex_value[0x100]; -// -extern Service_funcs service_funcs; - -// global strings +//@{ +/// global string extern String *content_type_name; extern String *body_name; +extern String *value_name; +extern String *expires_name; +extern String *path_name; +extern String *name_name; +extern String *size_name; +extern String *text_name; extern String *exception_method_name; @@ -70,13 +82,17 @@ extern String *table_class_name; extern String *form_class_name; extern String *request_class_name; extern String *response_class_name; +extern String *cookie_class_name; extern String *limits_name; extern String *post_max_size_name; +extern String *defaults_name; + extern String *result_var_name; +//@} -// global hashes +/// global hash extern Hash *untaint_lang_name2enum; #endif