diff --git a/src/dsql/alld.cpp b/src/dsql/alld.cpp index 080ace5fc2..d9e92d938a 100644 --- a/src/dsql/alld.cpp +++ b/src/dsql/alld.cpp @@ -109,21 +109,21 @@ void ALLD_init() } } -void DsqlMemoryPool::ALLD_push(BLK object, DLLS * stack) +void DsqlMemoryPool::ALLD_push(BLK object, dsql_lls** stack) { TSQL tdsql = GET_THREAD_DATA; DsqlMemoryPool* pool = tdsql->tsql_default; - DLLS node = pool->lls_cache.newBlock(); + dsql_lls* node = pool->lls_cache.newBlock(); node->lls_object = object; node->lls_next = *stack; *stack = node; } -BLK DsqlMemoryPool::ALLD_pop(DLLS *stack) +BLK DsqlMemoryPool::ALLD_pop(dsql_lls* *stack) { - DLLS node = *stack; + dsql_lls* node = *stack; *stack = node->lls_next; BLK object = node->lls_object; diff --git a/src/dsql/array.epp b/src/dsql/array.epp index f2edde61b0..8226258938 100644 --- a/src/dsql/array.epp +++ b/src/dsql/array.epp @@ -57,7 +57,7 @@ static void adjust_length(ISC_ARRAY_DESC*); static void copy_exact_name (const char*, char*, SSHORT); static ISC_STATUS copy_status(const ISC_STATUS*, ISC_STATUS*); static ISC_STATUS error(ISC_STATUS*, SSHORT, ...); -static ISC_STATUS gen_sdl(ISC_STATUS*, ISC_ARRAY_DESC*, SSHORT*, UCHAR**, +static ISC_STATUS gen_sdl(ISC_STATUS*, const ISC_ARRAY_DESC*, SSHORT*, UCHAR**, SSHORT*); static ISC_STATUS lookup_desc(ISC_STATUS*, FRBRD**, FRBRD**, const SCHAR*, const SCHAR*, ISC_ARRAY_DESC*, SCHAR*); @@ -88,7 +88,7 @@ ISC_STATUS API_ROUTINE isc_array_get_slice(ISC_STATUS* status, FRBRD** db_handle, FRBRD** trans_handle, GDS_QUAD* array_id, - ISC_ARRAY_DESC* desc, + const ISC_ARRAY_DESC* desc, void* array, SLONG* slice_length) { /************************************** @@ -186,7 +186,7 @@ ISC_STATUS API_ROUTINE isc_array_put_slice(ISC_STATUS* status, FRBRD** db_handle, FRBRD** trans_handle, GDS_QUAD* array_id, - ISC_ARRAY_DESC* desc, + const ISC_ARRAY_DESC* desc, void* array, SLONG* slice_length) { /************************************** @@ -389,7 +389,7 @@ static ISC_STATUS error( ISC_STATUS* status, SSHORT count, ...) static ISC_STATUS gen_sdl(ISC_STATUS* status, - ISC_ARRAY_DESC* desc, + const ISC_ARRAY_DESC* desc, SSHORT* sdl_buffer_length, UCHAR** sdl_buffer, SSHORT* sdl_length) diff --git a/src/dsql/array_proto.h b/src/dsql/array_proto.h index 6cc10a71dc..c707ec13d4 100644 --- a/src/dsql/array_proto.h +++ b/src/dsql/array_proto.h @@ -25,7 +25,7 @@ #define DSQL_ARRAY_PROTO_H ISC_STATUS API_ROUTINE isc_array_get_slice(ISC_STATUS*, void**, void**, - GDS_QUAD*, ISC_ARRAY_DESC*, + GDS_QUAD*, const ISC_ARRAY_DESC*, void*, SLONG*); ISC_STATUS API_ROUTINE isc_array_lookup_bounds(ISC_STATUS*, void**, void**, SCHAR*, SCHAR*, @@ -34,7 +34,7 @@ ISC_STATUS API_ROUTINE isc_array_lookup_desc(ISC_STATUS*, void**, void**, SCHAR*, SCHAR*, ISC_ARRAY_DESC*); ISC_STATUS API_ROUTINE isc_array_put_slice(ISC_STATUS*, void**, void**, - GDS_QUAD*, ISC_ARRAY_DESC*, + GDS_QUAD*, const ISC_ARRAY_DESC*, void*, SLONG*); ISC_STATUS API_ROUTINE isc_array_set_desc(ISC_STATUS*, SCHAR*, SCHAR*, SSHORT*, SSHORT*, SSHORT*, diff --git a/src/dsql/ddl.cpp b/src/dsql/ddl.cpp index 8cf3e086cc..366fe5c09c 100644 --- a/src/dsql/ddl.cpp +++ b/src/dsql/ddl.cpp @@ -20,7 +20,7 @@ * All Rights Reserved. * Contributor(s): ______________________________________. * - * $Id: ddl.cpp,v 1.77 2003-11-07 23:22:16 brodsom Exp $ + * $Id: ddl.cpp,v 1.78 2003-11-10 09:15:50 robocop Exp $ * 2001.5.20 Claudio Valderrama: Stop null pointer that leads to a crash, * caused by incomplete yacc syntax that allows ALTER DOMAIN dom SET; * @@ -110,7 +110,7 @@ static void define_del_cascade_trg(dsql_req*, const dsql_nod*, const dsql_nod*, static void define_dimensions(dsql_req*, dsql_fld*); static void define_domain(dsql_req*); static void define_exception(dsql_req*, NOD_TYPE); -static void define_field(dsql_req*, dsql_nod*, SSHORT, const str*); +static void define_field(dsql_req*, dsql_nod*, SSHORT, const dsql_str*); static void define_filter(dsql_req*); static void define_generator(dsql_req*); static void define_role(dsql_req*); @@ -144,10 +144,10 @@ static void make_index_trg_ref_int(dsql_req*, dsql_nod*, dsql_nod*, dsql_nod*, const char*, const char*); static void modify_database(dsql_req*); static void modify_domain(dsql_req*); -static void modify_field(dsql_req*, dsql_nod*, SSHORT, const str*); +static void modify_field(dsql_req*, dsql_nod*, SSHORT, const dsql_str*); static void modify_index(dsql_req*); static void modify_privilege(dsql_req*, NOD_TYPE, SSHORT, const UCHAR*, - const dsql_nod*, const dsql_nod*, const str*); + const dsql_nod*, const dsql_nod*, const dsql_str*); static SCHAR modify_privileges(dsql_req*, NOD_TYPE, SSHORT, const dsql_nod*, const dsql_nod*, const dsql_nod*); static void modify_relation(dsql_req*); @@ -161,7 +161,7 @@ static void put_msg_field(dsql_req*, dsql_fld*); static dsql_nod* replace_field_names(dsql_nod*, dsql_nod*, dsql_nod*, bool); static void reset_context_stack(dsql_req*); static void save_field(dsql_req*, const SCHAR*); -static void save_relation(dsql_req*, const str*); +static void save_relation(dsql_req*, const dsql_str*); static void set_statistics(dsql_req*); static void stuff_default_blr(dsql_req*, const TEXT*, USHORT); static void stuff_matching_blr(dsql_req*, const dsql_nod*, const dsql_nod*); @@ -288,21 +288,21 @@ void DDL_execute(dsql_req* request) // for delete & modify, get rid of the cached relation metadata - const str* string = NULL; + const dsql_str* string = NULL; const dsql_nod* relation_node; switch (request->req_ddl_node->nod_type) { case nod_mod_relation: case nod_redef_relation: relation_node = request->req_ddl_node->nod_arg[e_alt_name]; - string = (str*) relation_node->nod_arg[e_rln_name]; + string = (dsql_str*) relation_node->nod_arg[e_rln_name]; break; case nod_mod_view: case nod_replace_view: case nod_redef_view: case nod_del_relation: case nod_del_view: - string = (str*) request->req_ddl_node->nod_arg[e_alt_name]; + string = (dsql_str*) request->req_ddl_node->nod_arg[e_alt_name]; break; } if (string) { @@ -317,14 +317,14 @@ void DDL_execute(dsql_req* request) (temp_type == nod_replace_procedure) || (temp_type == nod_redef_procedure)) { - string = (str*) request->req_ddl_node->nod_arg[e_prc_name]; + string = (dsql_str*) request->req_ddl_node->nod_arg[e_prc_name]; METD_drop_procedure(request, string); } /* Signal UDF for obsolescence */ if (temp_type == nod_del_udf) { - string = (str*) request->req_ddl_node->nod_arg[e_udf_name]; + string = (dsql_str*) request->req_ddl_node->nod_arg[e_udf_name]; METD_drop_function (request, string); } @@ -412,7 +412,7 @@ void DDL_put_field_dtype(dsql_req* request, const dsql_fld* field, bool use_subt // wrapper that sets the last parameter to false to indicate // we are creating a field, not modifying one. // -void DDL_resolve_intl_type(dsql_req* request, dsql_fld* field, const str* collation_name) +void DDL_resolve_intl_type(dsql_req* request, dsql_fld* field, const dsql_str* collation_name) { DDL_resolve_intl_type2 (request, field, collation_name, false); } @@ -421,7 +421,7 @@ void DDL_resolve_intl_type(dsql_req* request, dsql_fld* field, const str* collat void DDL_resolve_intl_type2(dsql_req* request, dsql_fld* field, - const str* collation_name, + const dsql_str* collation_name, bool modifying) { /************************************** @@ -467,7 +467,7 @@ void DDL_resolve_intl_type2(dsql_req* request, { SSHORT blob_sub_type; if (!METD_get_type(request, - reinterpret_cast(field->fld_sub_type_name), + reinterpret_cast(field->fld_sub_type_name), "RDB$FIELD_SUB_TYPE", &blob_sub_type)) { @@ -479,7 +479,7 @@ void DDL_resolve_intl_type2(dsql_req* request, gds_arg_gds, gds_dsql_blob_type_unknown, gds_arg_string, - ((str*) field->fld_sub_type_name)->str_data, + ((dsql_str*) field->fld_sub_type_name)->str_data, 0); } field->fld_sub_type = blob_sub_type; @@ -562,7 +562,7 @@ void DDL_resolve_intl_type2(dsql_req* request, // Attach the database default character set, if not otherwise specified - const str* dfl_charset = METD_get_default_charset(request); + const dsql_str* dfl_charset = METD_get_default_charset(request); if (dfl_charset) { field->fld_character_set = (dsql_nod*) dfl_charset; @@ -586,7 +586,7 @@ void DDL_resolve_intl_type2(dsql_req* request, charset_name = NATIONAL_CHARACTER_SET; } else if (field->fld_character_set) { - charset_name = ((str*) field->fld_character_set)->str_data; + charset_name = ((dsql_str*) field->fld_character_set)->str_data; } @@ -743,7 +743,7 @@ static bool check_array_or_blob(const dsql_nod* node) case nod_map: { - const dsql_map* map = (DSQL_MAP) node->nod_arg[e_map_map]; + const dsql_map* map = (dsql_map*) node->nod_arg[e_map_map]; return check_array_or_blob(map->map_node); } @@ -786,7 +786,7 @@ static bool check_array_or_blob(const dsql_nod* node) case nod_udf: { - const udf* userFunc = (udf*) node->nod_arg[0]; + const dsql_udf* userFunc = (dsql_udf*) node->nod_arg[0]; if ((userFunc->udf_dtype == dtype_blob) || (userFunc->udf_dtype == dtype_array)) { return true; @@ -863,7 +863,7 @@ static void check_constraint( dsql_req* request, // (dsql_nod*) MAKE_cstring ("insert violates CHECK constraint on table"); element->nod_arg[e_cnstr_type] = - MAKE_constant((str*) PRE_STORE_TRIGGER, CONSTANT_SLONG); + MAKE_constant((dsql_str*) PRE_STORE_TRIGGER, CONSTANT_SLONG); define_constraint_trigger(request, element); // create the UPDATE trigger @@ -872,7 +872,7 @@ static void check_constraint( dsql_req* request, // (dsql_nod*) MAKE_cstring ("update violates CHECK constraint on table"); element->nod_arg[e_cnstr_type] = - MAKE_constant((str*) PRE_MODIFY_TRIGGER, CONSTANT_SLONG); + MAKE_constant((dsql_str*) PRE_MODIFY_TRIGGER, CONSTANT_SLONG); define_constraint_trigger(request, element); // create the DELETE trigger, if required @@ -883,7 +883,7 @@ static void check_constraint( dsql_req* request, // (dsql_nod*) MAKE_cstring ("delete violates CHECK constraint on table"); // element->nod_arg[e_cnstr_type] = - MAKE_constant((str*) PRE_ERASE_TRIGGER, CONSTANT_SLONG); + MAKE_constant((dsql_str*) PRE_ERASE_TRIGGER, CONSTANT_SLONG); define_constraint_trigger(request, element); } @@ -952,7 +952,7 @@ static void create_view_triggers(dsql_req* request, dsql_nod* element, // (dsql_nod*) MAKE_cstring ("update violates CHECK constraint on view"); element->nod_arg[e_cnstr_type] = - MAKE_constant((str*) PRE_MODIFY_TRIGGER, CONSTANT_SLONG); + MAKE_constant((dsql_str*) PRE_MODIFY_TRIGGER, CONSTANT_SLONG); dsql_nod* base_and_node = 0; dsql_nod* base_relation = 0; @@ -971,7 +971,7 @@ static void create_view_triggers(dsql_req* request, dsql_nod* element, // (dsql_nod*) MAKE_cstring ("insert violates CHECK constraint on view"); element->nod_arg[e_cnstr_type] = - MAKE_constant((str*) PRE_STORE_TRIGGER, CONSTANT_SLONG); + MAKE_constant((dsql_str*) PRE_STORE_TRIGGER, CONSTANT_SLONG); define_view_trigger(request, element, NULL, items); request->append_uchar(isc_dyn_end); // For triggers definition @@ -1064,7 +1064,7 @@ static void define_computed(dsql_req* request, reset_context_stack(request); // generate the source text - const str* source = (str*) node->nod_arg[e_cmp_text]; + const dsql_str* source = (dsql_str*) node->nod_arg[e_cmp_text]; fb_assert(source->str_length <= MAX_USHORT); request->append_string( isc_dyn_fld_computed_source, source->str_data, @@ -1098,7 +1098,7 @@ static void define_constraint_trigger(dsql_req* request, dsql_nod* node) return; } - const str* trigger_name = (str*) node->nod_arg[e_cnstr_name]; + const dsql_str* trigger_name = (dsql_str*) node->nod_arg[e_cnstr_name]; fb_assert(trigger_name->str_length <= MAX_USHORT); @@ -1107,7 +1107,7 @@ static void define_constraint_trigger(dsql_req* request, dsql_nod* node) (USHORT) trigger_name->str_length); dsql_nod* relation_node = node->nod_arg[e_cnstr_table]; - const str* relation_name = (str*) relation_node->nod_arg[e_rln_name]; + const dsql_str* relation_name = (dsql_str*) relation_node->nod_arg[e_rln_name]; fb_assert(trigger_name->str_length <= MAX_USHORT); @@ -1115,7 +1115,7 @@ static void define_constraint_trigger(dsql_req* request, dsql_nod* node) relation_name->str_data, (USHORT) relation_name->str_length); - const str* source = (str*) node->nod_arg[e_cnstr_source]; + const dsql_str* source = (dsql_str*) node->nod_arg[e_cnstr_source]; if (source) { fb_assert(source->str_length <= MAX_USHORT); @@ -1139,7 +1139,7 @@ static void define_constraint_trigger(dsql_req* request, dsql_nod* node) request->append_uchar(isc_dyn_sql_object); - const str* message = (str*) node->nod_arg[e_cnstr_message]; + const dsql_str* message = (dsql_str*) node->nod_arg[e_cnstr_message]; if (message) { request->append_number(isc_dyn_def_trigger_msg, 0); @@ -1277,8 +1277,8 @@ request->append_number(isc_dyn_rel_sql_protection, 1); } } - const str* name; - const fil* file; + const dsql_str* name; + const dsql_fil* file; SLONG temp_long; SSHORT temp_short; SSHORT number = 0; @@ -1294,10 +1294,10 @@ request->append_number(isc_dyn_rel_sql_protection, 1); switch (element->nod_type) { case nod_difference_file: request->append_cstring(isc_dyn_def_difference, - ((str*)element->nod_arg[0])->str_data); + ((dsql_str*)element->nod_arg[0])->str_data); break; case nod_file_desc: - file = (FIL) element->nod_arg[0]; + file = (dsql_fil*) element->nod_arg[0]; request->append_cstring(isc_dyn_def_file, file->fil_name->str_data); @@ -1309,7 +1309,7 @@ request->append_number(isc_dyn_rel_sql_protection, 1); break; case nod_log_file_desc: - file = (FIL) element->nod_arg[0]; + file = (dsql_fil*) element->nod_arg[0]; if (file->fil_flags & LOG_default) { request->append_uchar(isc_dyn_def_default_log); @@ -1336,7 +1336,7 @@ request->append_number(isc_dyn_rel_sql_protection, 1); break; case nod_cache_file_desc: - file = (FIL) element->nod_arg[0]; + file = (dsql_fil*) element->nod_arg[0]; request->append_cstring(isc_dyn_def_cache_file, file->fil_name->str_data); request->append_file_length(file->fil_length); @@ -1368,7 +1368,7 @@ request->append_number(isc_dyn_rel_sql_protection, 1); break; case nod_dfl_charset: - name = (str*) element->nod_arg[0]; + name = (dsql_str*) element->nod_arg[0]; request->append_cstring(isc_dyn_fld_character_set_name, name->str_data); break; @@ -1483,7 +1483,7 @@ static void define_set_default_trg( dsql_req* request, do { /* for every column in the foreign key .... */ - const str* for_key_fld_name_str = (str*) (*for_key_flds)->nod_arg[1]; + const dsql_str* for_key_fld_name_str = (dsql_str*) (*for_key_flds)->nod_arg[1]; request->append_uchar(blr_assignment); @@ -1539,13 +1539,13 @@ static void define_set_default_trg( dsql_req* request, else { const TEXT* domain_name; - const str* domain_name_str; + const dsql_str* domain_name_str; dsql_nod* tmp_node; dsql_nod* domain_node = elem->nod_arg[e_dfl_domain]; if (!domain_node || !(tmp_node = domain_node->nod_arg[e_dom_name]) || - !(domain_name_str = (str*) tmp_node->nod_arg[e_fln_name]) + !(domain_name_str = (dsql_str*) tmp_node->nod_arg[e_fln_name]) || !(domain_name = domain_name_str->str_data)) { break; @@ -1685,7 +1685,7 @@ static void define_domain(dsql_req* request) request->append_cstring(isc_dyn_def_global_fld, field->fld_name); DDL_resolve_intl_type(request, field, - (str*) element->nod_arg[e_dom_collate]); + (dsql_str*) element->nod_arg[e_dom_collate]); put_field(request, field, false); // check for a default value @@ -1698,7 +1698,7 @@ static void define_domain(dsql_req* request) GEN_expr(request, node); request->end_blr(); - const str* string = (str*) element->nod_arg[e_dom_default_source]; + const dsql_str* string = (dsql_str*) element->nod_arg[e_dom_default_source]; if (string) { fb_assert(string->str_length <= MAX_USHORT); @@ -1749,7 +1749,7 @@ static void define_domain(dsql_req* request) } check_flag = true; - const str* string = (str*) node1->nod_arg[e_cnstr_source]; + const dsql_str* string = (dsql_str*) node1->nod_arg[e_cnstr_source]; if (string) { fb_assert(string->str_length <= MAX_USHORT); @@ -1806,8 +1806,8 @@ static void define_exception( dsql_req* request, NOD_TYPE op) * **************************************/ dsql_nod* ddl_node = request->req_ddl_node; - const str* name = (str*) ddl_node->nod_arg[e_xcp_name]; - const str* text = (str*) ddl_node->nod_arg[e_xcp_text]; + const dsql_str* name = (dsql_str*) ddl_node->nod_arg[e_xcp_name]; + const dsql_str* text = (dsql_str*) ddl_node->nod_arg[e_xcp_text]; if (op == nod_def_exception) request->append_cstring(isc_dyn_def_exception, name->str_data); @@ -1827,7 +1827,7 @@ static void define_exception( dsql_req* request, NOD_TYPE op) static void define_field( dsql_req* request, dsql_nod* element, SSHORT position, - const str* relation_name) + const dsql_str* relation_name) { /************************************** * @@ -1856,7 +1856,7 @@ static void define_field( if (domain_node) { request->append_cstring(isc_dyn_def_local_fld, field->fld_name); node1 = domain_node->nod_arg[e_dom_name]; - const str* domain_name = (str*) node1->nod_arg[e_fln_name]; + const dsql_str* domain_name = (dsql_str*) node1->nod_arg[e_fln_name]; request->append_cstring(isc_dyn_fld_source, domain_name->str_data); /* Get the domain information */ @@ -1871,7 +1871,7 @@ static void define_field( DDL_resolve_intl_type( request, field, - reinterpret_cast(element->nod_arg[e_dfl_collate])); + reinterpret_cast(element->nod_arg[e_dfl_collate])); if (element->nod_arg[e_dfl_collate]) { request->append_number(isc_dyn_fld_collation, field->fld_collation_id); @@ -1894,14 +1894,14 @@ static void define_field( } DDL_resolve_intl_type(request, field, - reinterpret_cast(element->nod_arg[e_dfl_collate])); + reinterpret_cast(element->nod_arg[e_dfl_collate])); put_field(request, field, false); } if (position != -1) request->append_number(isc_dyn_fld_position, position); - const str* string; + const dsql_str* string; // check for a default value bool default_null_flag = false; @@ -1915,7 +1915,7 @@ static void define_field( } GEN_expr(request, node); request->end_blr(); - string = (str*) element->nod_arg[e_dfl_default_source]; + string = (dsql_str*) element->nod_arg[e_dfl_default_source]; if (string) { fb_assert(string->str_length <= MAX_USHORT); @@ -1938,7 +1938,7 @@ static void define_field( { if ((*ptr)->nod_type == nod_rel_constraint) { - string = (str*) (*ptr)->nod_arg[e_rct_name]; + string = (dsql_str*) (*ptr)->nod_arg[e_rct_name]; node1 = (*ptr)->nod_arg[e_rct_type]; if (node1->nod_type == nod_null) @@ -1976,7 +1976,7 @@ static void define_field( fb_assert(index); const char* index_name = constraint_name; - string = (str*) index->nod_arg[e_idx_name]; + string = (dsql_str*) index->nod_arg[e_idx_name]; if (string) { index_name = string->str_data; @@ -2045,15 +2045,15 @@ static void define_filter( dsql_req* request) const dsql_nod* filter_node = request->req_ddl_node; dsql_nod* const* ptr = filter_node->nod_arg; request->append_cstring(isc_dyn_def_filter, - ((str*) (ptr[e_filter_name]))->str_data); + ((dsql_str*) (ptr[e_filter_name]))->str_data); request->append_number(isc_dyn_filter_in_subtype, (SSHORT)(SLONG) ((ptr[e_filter_in_type])->nod_arg[0])); request->append_number(isc_dyn_filter_out_subtype, (SSHORT)(SLONG) ((ptr[e_filter_out_type])->nod_arg[0])); request->append_cstring(isc_dyn_func_entry_point, - ((str*) (ptr[e_filter_entry_pt]))->str_data); + ((dsql_str*) (ptr[e_filter_entry_pt]))->str_data); request->append_cstring(isc_dyn_func_module_name, - ((str*) (ptr[e_filter_module]))->str_data); + ((dsql_str*) (ptr[e_filter_module]))->str_data); request->append_uchar(isc_dyn_end); } @@ -2072,7 +2072,7 @@ static void define_generator( dsql_req* request) * **************************************/ - const str* gen_name = (str*) request->req_ddl_node->nod_arg[e_gen_name]; + const dsql_str* gen_name = (dsql_str*) request->req_ddl_node->nod_arg[e_gen_name]; request->append_cstring(isc_dyn_def_generator, gen_name->str_data); request->append_uchar(isc_dyn_end); } @@ -2094,9 +2094,9 @@ static void define_index(dsql_req* request) dsql_nod* ddl_node = request->req_ddl_node; dsql_nod* relation_node = (dsql_nod*) ddl_node->nod_arg[e_idx_table]; - const str* relation_name = (str*) relation_node->nod_arg[e_rln_name]; + const dsql_str* relation_name = (dsql_str*) relation_node->nod_arg[e_rln_name]; dsql_nod* field_list = ddl_node->nod_arg[e_idx_fields]; - const str* index_name = (str*) ddl_node->nod_arg[e_idx_name]; + const dsql_str* index_name = (dsql_str*) ddl_node->nod_arg[e_idx_name]; request->append_cstring(isc_dyn_def_idx, index_name->str_data); request->append_cstring(isc_dyn_rel_name, relation_name->str_data); @@ -2110,7 +2110,7 @@ static void define_index(dsql_req* request) dsql_nod* const* const end = ptr + field_list->nod_count; for (; ptr < end; ptr++) request->append_cstring(isc_dyn_fld_name, - ((str*) (*ptr)->nod_arg[1])->str_data); + ((dsql_str*) (*ptr)->nod_arg[1])->str_data); } #ifdef EXPRESSION_INDICES else if (field_list->nod_type == nod_def_computed) @@ -2150,7 +2150,8 @@ static dsql_nod* define_insert_action( dsql_req* request) dsql_nod* select_node, *select_expr, *from_list; dsql_nod* fields_node, *values_node, *field_node; dsql_nod **ptr, **end, **ptr2, **end2; - DLLS field_stack, value_stack; + dsql_lls* field_stack; + dsql_lls* value_stack; dsql_rel* relation; dsql_fld* field; @@ -2193,7 +2194,7 @@ static dsql_nod* define_insert_action( dsql_req* request) { relation = METD_get_relation(request, - reinterpret_cast(relation_node->nod_arg[e_rln_name])); + reinterpret_cast(relation_node->nod_arg[e_rln_name])); field_stack = NULL; for (field = relation->rel_fields; field; field = field->fld_next) { @@ -2267,7 +2268,7 @@ static void define_procedure( dsql_req* request, NOD_TYPE op) SSHORT outputs = 0; SSHORT locals = 0; const dsql_nod* procedure_node = request->req_ddl_node; - const str* procedure_name = (str*) procedure_node->nod_arg[e_prc_name]; + const dsql_str* procedure_name = (dsql_str*) procedure_node->nod_arg[e_prc_name]; if (op == nod_replace_procedure) { @@ -2311,7 +2312,7 @@ static void define_procedure( dsql_req* request, NOD_TYPE op) } } - const str* source = (str*) procedure_node->nod_arg[e_prc_source]; + const dsql_str* source = (dsql_str*) procedure_node->nod_arg[e_prc_source]; if (source) { fb_assert(source->str_length <= MAX_USHORT); @@ -2493,7 +2494,7 @@ static void define_procedure( dsql_req* request, NOD_TYPE op) // static void define_rel_constraint( dsql_req* request, dsql_nod* element) { - const str* string = (str*) element->nod_arg[e_rct_name]; + const dsql_str* string = (dsql_str*) element->nod_arg[e_rct_name]; const char* constraint_name = string ? string->str_data : 0; request->append_cstring(isc_dyn_rel_constraint, constraint_name); @@ -2533,9 +2534,9 @@ static void define_relation( dsql_req* request) dsql_nod* ddl_node = request->req_ddl_node; dsql_nod* relation_node = ddl_node->nod_arg[e_drl_name]; - const str* relation_name = (str*) relation_node->nod_arg[e_rln_name]; + const dsql_str* relation_name = (dsql_str*) relation_node->nod_arg[e_rln_name]; request->append_cstring(isc_dyn_def_rel, relation_name->str_data); - const str* external_file = (str*) ddl_node->nod_arg[e_drl_ext_file]; + const dsql_str* external_file = (dsql_str*) ddl_node->nod_arg[e_drl_ext_file]; if (external_file) { request->append_cstring(isc_dyn_rel_ext_file, external_file->str_data); @@ -2576,7 +2577,7 @@ static void define_relation( dsql_req* request) // static void define_role(dsql_req* request) { - const str* gen_name = (str*) request->req_ddl_node->nod_arg[e_gen_name]; + const dsql_str* gen_name = (dsql_str*) request->req_ddl_node->nod_arg[e_gen_name]; request->append_cstring(isc_dyn_def_sql_role, gen_name->str_data); request->append_uchar(isc_dyn_end); } @@ -2622,7 +2623,7 @@ static void define_set_null_trg(dsql_req* request, dsql_nod** for_key_flds = for_columns->nod_arg; do { - const str* for_key_fld_name_str = (str*) (*for_key_flds)->nod_arg[1]; + const dsql_str* for_key_fld_name_str = (dsql_str*) (*for_key_flds)->nod_arg[1]; request->append_uchar(blr_assignment); request->append_uchar(blr_null); @@ -2668,7 +2669,7 @@ static void define_shadow(dsql_req* request) } request->append_number(isc_dyn_def_shadow, (SSHORT)(SLONG) (ptr[e_shadow_number])); - request->append_cstring(isc_dyn_def_file, ((str*) (ptr[e_shadow_name]))->str_data); + request->append_cstring(isc_dyn_def_file, ((dsql_str*) (ptr[e_shadow_name]))->str_data); request->append_number(isc_dyn_shadow_man_auto, (SSHORT)(SLONG) ((ptr[e_shadow_man_auto])->nod_arg[0])); request->append_number(isc_dyn_shadow_conditional, @@ -2687,7 +2688,7 @@ static void define_shadow(dsql_req* request) for (dsql_nod** end = ptr + elements->nod_count; ptr < end; ++ptr) { dsql_nod* element = *ptr; - FIL file = (FIL) element->nod_arg[0]; + dsql_fil* file = (dsql_fil*) element->nod_arg[0]; request->append_cstring(isc_dyn_def_file, file->fil_name->str_data); if (!length && !file->fil_start) @@ -2717,7 +2718,7 @@ static void define_shadow(dsql_req* request) // static void define_trigger( dsql_req* request, dsql_nod* node) { - const str* relation_name; + const dsql_str* relation_name; dsql_nod* temp, *constant, *relation_node; USHORT trig_type; @@ -2728,7 +2729,7 @@ static void define_trigger( dsql_req* request, dsql_nod* node) request->req_ddl_node = node; - const str* trigger_name = (str*) node->nod_arg[e_trg_name]; + const dsql_str* trigger_name = (dsql_str*) node->nod_arg[e_trg_name]; if (node->nod_type == nod_replace_trigger) { @@ -2752,7 +2753,7 @@ static void define_trigger( dsql_req* request, dsql_nod* node) trigger_name->str_data, trigger_name->str_length); relation_node = node->nod_arg[e_trg_table]; - relation_name = (str*) relation_node->nod_arg[e_rln_name]; + relation_name = (dsql_str*) relation_node->nod_arg[e_rln_name]; fb_assert(relation_name->str_length <= MAX_USHORT); request->append_string( isc_dyn_rel_name, relation_name->str_data, @@ -2790,7 +2791,7 @@ static void define_trigger( dsql_req* request, dsql_nod* node) } } - const str* source = (str*) node->nod_arg[e_trg_source]; + const dsql_str* source = (dsql_str*) node->nod_arg[e_trg_source]; dsql_nod* actions = (node->nod_arg[e_trg_actions]) ? node->nod_arg[e_trg_actions]->nod_arg[e_trg_act_body] : NULL; @@ -2899,7 +2900,7 @@ static void define_trigger( dsql_req* request, dsql_nod* node) } else { - const str* message_text = (str*) message->nod_arg[e_msg_text]; + const dsql_str* message_text = (dsql_str*) message->nod_arg[e_msg_text]; if (message->nod_type == nod_def_trigger_msg) { request->append_number(isc_dyn_def_trigger_msg, number); } else { @@ -2936,9 +2937,9 @@ static void define_udf( dsql_req* request) dsql_nod* udf_node = request->req_ddl_node; dsql_nod* arguments = udf_node->nod_arg[e_udf_args]; dsql_nod** ptr = udf_node->nod_arg; - const char* udf_name = ((str*) (ptr[e_udf_name]))->str_data; - const str* func_entry_point_name = reinterpret_cast(ptr[e_udf_entry_pt]); - const str* func_module_name = reinterpret_cast(ptr[e_udf_module]); + const char* udf_name = ((dsql_str*) (ptr[e_udf_name]))->str_data; + const dsql_str* func_entry_point_name = reinterpret_cast(ptr[e_udf_entry_pt]); + const dsql_str* func_module_name = reinterpret_cast(ptr[e_udf_module]); request->append_cstring(isc_dyn_def_function, udf_name); request->append_cstring(isc_dyn_func_entry_point, func_entry_point_name->str_data); request->append_cstring(isc_dyn_func_module_name, func_module_name->str_data); @@ -3146,8 +3147,8 @@ static void define_update_action( { const dsql_rel* relation = METD_get_relation(request, - reinterpret_cast(relation_node->nod_arg[e_rln_name])); - DLLS field_stack = NULL; + reinterpret_cast(relation_node->nod_arg[e_rln_name])); + dsql_lls* field_stack = NULL; for (const dsql_fld* field = relation->rel_fields; field; field = field->fld_next) { @@ -3272,8 +3273,8 @@ static void define_upd_cascade_trg( dsql_req* request, dsql_nod** prim_key_flds = prim_columns->nod_arg; do { - const str* for_key_fld_name_str = (str*) (*for_key_flds)->nod_arg[1]; - const str* prim_key_fld_name_str = (str*) (*prim_key_flds)->nod_arg[1]; + const dsql_str* for_key_fld_name_str = (dsql_str*) (*for_key_flds)->nod_arg[1]; + const dsql_str* prim_key_fld_name_str = (dsql_str*) (*prim_key_flds)->nod_arg[1]; request->append_uchar(blr_assignment); request->append_uchar(blr_field); @@ -3316,7 +3317,7 @@ static void define_view( dsql_req* request, NOD_TYPE op) * **************************************/ dsql_nod* node = request->req_ddl_node; - const str* view_name = (str*) node->nod_arg[e_view_name]; + const dsql_str* view_name = (dsql_str*) node->nod_arg[e_view_name]; if (op == nod_replace_view) { @@ -3387,28 +3388,28 @@ static void define_view( dsql_req* request, NOD_TYPE op) We need to add something to rdb$views to indicate source type. Source will be for documentation purposes. */ - const str* source = (str*) node->nod_arg[e_view_source]; + const dsql_str* source = (dsql_str*) node->nod_arg[e_view_source]; fb_assert(source->str_length <= MAX_USHORT); request->append_string( isc_dyn_view_source, source->str_data, source->str_length); /* define the view source relations from the request contexts & union contexts*/ - DSQL_CTX context; + dsql_ctx* context; while (request->req_dt_context) { - context = reinterpret_cast(LLS_POP(&request->req_dt_context)); + context = reinterpret_cast(LLS_POP(&request->req_dt_context)); LLS_PUSH(context, &request->req_context); } while (request->req_union_context) { - context = reinterpret_cast(LLS_POP(&request->req_union_context)); + context = reinterpret_cast(LLS_POP(&request->req_union_context)); LLS_PUSH(context, &request->req_context); } - for (DLLS temp = request->req_context; temp; temp = temp->lls_next) + for (dsql_lls* temp = request->req_context; temp; temp = temp->lls_next) { - context = (DSQL_CTX) temp->lls_object; + context = (dsql_ctx*) temp->lls_object; const dsql_rel* relation = context->ctx_relation; if (relation) { @@ -3453,7 +3454,7 @@ static void define_view( dsql_req* request, NOD_TYPE op) context = NULL; if (field_node->nod_type == nod_field) { field = (dsql_fld*) field_node->nod_arg[e_fld_field]; - context = (DSQL_CTX) field_node->nod_arg[e_fld_context]; + context = (dsql_ctx*) field_node->nod_arg[e_fld_context]; } else updatable = false; @@ -3481,7 +3482,7 @@ static void define_view( dsql_req* request, NOD_TYPE op) { if (ptr < end) { - const str* field_name = (str*) (*ptr)->nod_arg[1]; + const dsql_str* field_name = (dsql_str*) (*ptr)->nod_arg[1]; field_string = (TEXT*) field_name->str_data; } ptr++; @@ -3621,10 +3622,10 @@ static void define_view_trigger( dsql_req* request, dsql_nod* node, dsql_nod* rs * Create the ddl to define a trigger for a VIEW WITH CHECK OPTION. * **************************************/ - const str* relation_name; + const dsql_str* relation_name; dsql_nod **ptr, **end; dsql_nod* relation_node; - DSQL_CTX context; + dsql_ctx* context; TSQL tdsql = GET_THREAD_DATA; dsql_nod* ddl_node = request->req_ddl_node; @@ -3642,7 +3643,7 @@ static void define_view_trigger( dsql_req* request, dsql_nod* node, dsql_nod* rs request->req_ddl_node = node; - const str* trigger_name = (str*) node->nod_arg[e_cnstr_name]; + const dsql_str* trigger_name = (dsql_str*) node->nod_arg[e_cnstr_name]; if (node->nod_type == nod_def_constraint) { @@ -3651,7 +3652,7 @@ static void define_view_trigger( dsql_req* request, dsql_nod* node, dsql_nod* rs trigger_name->str_data, trigger_name->str_length); relation_node = node->nod_arg[e_cnstr_table]; - relation_name = (str*) relation_node->nod_arg[e_rln_name]; + relation_name = (dsql_str*) relation_node->nod_arg[e_rln_name]; fb_assert(relation_name->str_length <= MAX_USHORT); request->append_string( isc_dyn_rel_name, relation_name->str_data, @@ -3686,7 +3687,7 @@ static void define_view_trigger( dsql_req* request, dsql_nod* node, dsql_nod* rs request->append_uchar(isc_dyn_sql_object); - const str* message = (str*) node->nod_arg[e_cnstr_message]; + const dsql_str* message = (dsql_str*) node->nod_arg[e_cnstr_message]; if (message) { request->append_number(isc_dyn_def_trigger_msg, 0); @@ -3715,7 +3716,7 @@ static void define_view_trigger( dsql_req* request, dsql_nod* node, dsql_nod* rs save and then add the context */ dsql_lls* stack = request->req_context; - context = (DSQL_CTX) stack->lls_object; + context = (dsql_ctx*) stack->lls_object; if (context->ctx_alias) { sav_context = FB_NEW(*tdsql->tsql_default) dsql_ctx; *sav_context = *context; @@ -3788,7 +3789,7 @@ static void define_view_trigger( dsql_req* request, dsql_nod* node, dsql_nod* rs { dsql_nod* temp_rse = action_node->nod_arg[e_mod_rse]; temp_rse->nod_arg[e_rse_first] = - MAKE_constant((str*) 1, CONSTANT_SLONG); + MAKE_constant((dsql_str*) 1, CONSTANT_SLONG); } GEN_statement(request, action_node); } @@ -3830,7 +3831,7 @@ static void delete_procedure (dsql_req* request, * CVC: Created this function to not clutter generate_dyn(). * **************************************/ - const str* string = (str*) node->nod_arg[e_prc_name]; + const dsql_str* string = (dsql_str*) node->nod_arg[e_prc_name]; fb_assert (string); if (node->nod_type == nod_redef_procedure || silent_deletion) { dsql_prc* procedure = METD_get_procedure (request, string); @@ -3863,15 +3864,15 @@ static void delete_relation_view ( * CVC: Created this function to not clutter generate_dyn(). * **************************************/ - const str* string = 0; + const dsql_str* string = 0; if (node->nod_type == nod_redef_relation) { dsql_nod* relation_node = node->nod_arg[e_alt_name]; fb_assert (relation_node); - string = (str*) relation_node->nod_arg[e_rln_name]; + string = (dsql_str*) relation_node->nod_arg[e_rln_name]; } else { - string = (str*) node->nod_arg[e_alt_name]; + string = (dsql_str*) node->nod_arg[e_alt_name]; } fb_assert (string); @@ -3944,7 +3945,7 @@ static void foreign_key( dsql_req* request, dsql_nod* element, const char* index dsql_nod* columns1 = element->nod_arg[e_for_columns]; dsql_nod* relation2_node = element->nod_arg[e_for_reftable]; - const str* relation2 = (str*) relation2_node->nod_arg[e_rln_name]; + const dsql_str* relation2 = (dsql_str*) relation2_node->nod_arg[e_rln_name]; /* If there is a referenced table name but no referenced field names, the primary key of the referenced table designates the referenced fields. */ @@ -4000,7 +4001,7 @@ static void generate_dyn( dsql_req* request, dsql_nod* node) * DYN string. * **************************************/ - const str* string; + const dsql_str* string; request->req_ddl_node = node; @@ -4076,13 +4077,13 @@ static void generate_dyn( dsql_req* request, dsql_nod* node) break; case nod_del_domain: - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; request->append_cstring(isc_dyn_delete_global_fld, string->str_data); request->append_uchar(isc_dyn_end); break; case nod_del_index: - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; request->append_cstring(isc_dyn_delete_idx, string->str_data); request->append_uchar(isc_dyn_end); break; @@ -4098,13 +4099,13 @@ static void generate_dyn( dsql_req* request, dsql_nod* node) break; case nod_del_trigger: - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; request->append_cstring(isc_dyn_delete_trigger, string->str_data); request->append_uchar(isc_dyn_end); break; case nod_del_role: - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; request->append_cstring(isc_dyn_del_sql_role, string->str_data); request->append_uchar(isc_dyn_end); break; @@ -4127,13 +4128,13 @@ static void generate_dyn( dsql_req* request, dsql_nod* node) break; case nod_del_generator: - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; request->append_cstring(isc_dyn_delete_generator, string->str_data); request->append_uchar(isc_dyn_end); break; case nod_del_filter: - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; request->append_cstring(isc_dyn_delete_filter, string->str_data); request->append_uchar(isc_dyn_end); break; @@ -4143,7 +4144,7 @@ static void generate_dyn( dsql_req* request, dsql_nod* node) break; case nod_del_udf: - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; request->append_cstring(isc_dyn_delete_function, string->str_data); request->append_uchar(isc_dyn_end); break; @@ -4286,7 +4287,7 @@ static void make_index( dsql_req* request, dsql_nod* index = element->nod_arg[e_pri_index]; fb_assert(index); - const str* string = (str*) index->nod_arg[e_idx_name]; + const dsql_str* string = (dsql_str*) index->nod_arg[e_idx_name]; if (string) { index_name = string->str_data; @@ -4311,7 +4312,7 @@ static void make_index( dsql_req* request, const dsql_nod* const* const end = columns->nod_arg + columns->nod_count; for (const dsql_nod* const* ptr = columns->nod_arg; ptr < end; ++ptr) { - const str* field_name = (str*) (*ptr)->nod_arg[1]; + const dsql_str* field_name = (dsql_str*) (*ptr)->nod_arg[1]; request->append_cstring(isc_dyn_fld_name, field_name->str_data); } @@ -4353,7 +4354,7 @@ static void make_index_trg_ref_int( dsql_req* request, dsql_nod* ddl_node = request->req_ddl_node; dsql_nod* for_rel_node = ddl_node->nod_arg[e_drl_name]; - const str* for_rel_name_str = (str*) for_rel_node->nod_arg[e_rln_name]; + const dsql_str* for_rel_name_str = (dsql_str*) for_rel_node->nod_arg[e_rln_name]; /* stuff either user-defined name or zero-length name, indicating that an index name @@ -4362,7 +4363,7 @@ static void make_index_trg_ref_int( dsql_req* request, dsql_nod* index = element->nod_arg[e_for_index]; fb_assert(index); - const str* string = (str*) index->nod_arg[e_idx_name]; + const dsql_str* string = (dsql_str*) index->nod_arg[e_idx_name]; if (string) { index_name = string->str_data; @@ -4462,7 +4463,7 @@ static void make_index_trg_ref_int( dsql_req* request, dsql_nod** end = columns->nod_arg + columns->nod_count; for (ptr = columns->nod_arg; ptr < end; ++ptr) { - const str* field_name = (str*) (*ptr)->nod_arg[1]; + const dsql_str* field_name = (dsql_str*) (*ptr)->nod_arg[1]; request->append_cstring(isc_dyn_fld_name, field_name->str_data); } @@ -4473,7 +4474,7 @@ static void make_index_trg_ref_int( dsql_req* request, end = referenced_columns->nod_arg + referenced_columns->nod_count; for (ptr = referenced_columns->nod_arg; ptr < end; ++ptr) { - const str* field_name = (str*) (*ptr)->nod_arg[1]; + const dsql_str* field_name = (dsql_str*) (*ptr)->nod_arg[1]; request->append_cstring(isc_dyn_idx_ref_column, field_name->str_data); } @@ -4496,7 +4497,7 @@ static void modify_database( dsql_req* request) * **************************************/ SLONG start = 0; - FIL file; + dsql_fil* file; SSHORT number = 0; SLONG temp_long; SSHORT temp_short; @@ -4551,7 +4552,7 @@ request->append_number(isc_dyn_rel_sql_protection, 1); switch (element->nod_type) { case nod_file_desc: - file = (FIL) element->nod_arg[0]; + file = (dsql_fil*) element->nod_arg[0]; request->append_cstring(isc_dyn_def_file, file->fil_name->str_data); @@ -4564,7 +4565,7 @@ request->append_number(isc_dyn_rel_sql_protection, 1); break; case nod_log_file_desc: - file = (FIL) element->nod_arg[0]; + file = (dsql_fil*) element->nod_arg[0]; if (file->fil_flags & LOG_default) { request->append_uchar(isc_dyn_def_default_log); @@ -4591,7 +4592,7 @@ request->append_number(isc_dyn_rel_sql_protection, 1); break; case nod_cache_file_desc: - file = (FIL) element->nod_arg[0]; + file = (dsql_fil*) element->nod_arg[0]; request->append_cstring(isc_dyn_def_cache_file, file->fil_name->str_data); request->append_file_length(file->fil_length); @@ -4623,7 +4624,7 @@ request->append_number(isc_dyn_rel_sql_protection, 1); break; case nod_difference_file: request->append_cstring(isc_dyn_def_difference, - ((str*)element->nod_arg[0])->str_data); + ((dsql_str*)element->nod_arg[0])->str_data); break; case nod_begin_backup: request->append_uchar(isc_dyn_begin_backup); @@ -4656,7 +4657,7 @@ static void modify_domain( dsql_req* request) * Alter an SQL domain. * **************************************/ - const str* string; + const dsql_str* string; dsql_fld* field; dsql_fld local_field; /* CVC: This array used with check_one_call to ensure each modification @@ -4667,7 +4668,7 @@ static void modify_domain( dsql_req* request) dsql_nod* ddl_node = request->req_ddl_node; dsql_nod* domain_node = ddl_node->nod_arg[e_alt_dom_name]; - const str* domain_name = (str*) domain_node->nod_arg[e_fln_name]; + const dsql_str* domain_name = (dsql_str*) domain_node->nod_arg[e_fln_name]; request->append_cstring(isc_dyn_mod_global_fld, domain_name->str_data); @@ -4705,7 +4706,7 @@ static void modify_domain( dsql_req* request) GEN_expr(request, element->nod_arg[e_dft_default]); request->end_blr(); - string = (str*) element->nod_arg[e_dft_default_source]; + string = (dsql_str*) element->nod_arg[e_dft_default_source]; if (string) { fb_assert(string->str_length <= MAX_USHORT); @@ -4754,7 +4755,7 @@ static void modify_domain( dsql_req* request) false)); request->end_blr(); - if ((string = (str*) element->nod_arg[e_cnstr_source]) != NULL) { + if ((string = (dsql_str*) element->nod_arg[e_cnstr_source]) != NULL) { fb_assert(string->str_length <= MAX_USHORT); request->append_string( isc_dyn_fld_validation_source, string->str_data, @@ -4772,7 +4773,7 @@ static void modify_domain( dsql_req* request) { check_one_call(repetition_count, 3, "DOMAIN NAME"); - const str* new_dom_name = (str*) element->nod_arg[e_fln_name]; + const dsql_str* new_dom_name = (dsql_str*) element->nod_arg[e_fln_name]; request->append_cstring(isc_dyn_fld_name, new_dom_name->str_data); break; @@ -4812,7 +4813,7 @@ static void modify_index( dsql_req* request) dsql_nod* ddl_node = request->req_ddl_node; dsql_nod* index_node = ddl_node->nod_arg[e_alt_index]; - const str* index_name = (str*) index_node->nod_arg[e_alt_idx_name]; + const dsql_str* index_name = (dsql_str*) index_node->nod_arg[e_alt_idx_name]; request->append_cstring(isc_dyn_mod_idx, index_name->str_data); @@ -4832,7 +4833,7 @@ static void modify_privilege( dsql_req* request, const UCHAR* privs, const dsql_nod* table, const dsql_nod* user, - const str* field_name) + const dsql_str* field_name) { /************************************** * @@ -4868,13 +4869,13 @@ static void modify_privilege( dsql_req* request, *dynsave++ = (UCHAR) priv_count; *dynsave = (UCHAR) (priv_count >> 8); - const str* name = (str*) table->nod_arg[0]; + const dsql_str* name = (dsql_str*) table->nod_arg[0]; if (table->nod_type == nod_procedure_name) { request->append_cstring(isc_dyn_prc_name, name->str_data); } else { request->append_cstring(isc_dyn_rel_name, name->str_data); } - name = (str*) user->nod_arg[0]; + name = (dsql_str*) user->nod_arg[0]; switch (user->nod_type) { case nod_user_group: /* GRANT priv ON tbl TO GROUP unix_group */ @@ -4980,7 +4981,7 @@ static SCHAR modify_privileges(dsql_req* request, { modify_privilege(request, type, option, reinterpret_cast(p), table, user, - reinterpret_cast((*ptr)->nod_arg[1])); + reinterpret_cast((*ptr)->nod_arg[1])); } return 0; @@ -5034,13 +5035,13 @@ static void modify_relation( dsql_req* request) * **************************************/ dsql_nod **ptr, **end, *field_node; - const str* field_name; + const dsql_str* field_name; TSQL tdsql = GET_THREAD_DATA; dsql_nod* ddl_node = request->req_ddl_node; dsql_nod* relation_node = ddl_node->nod_arg[e_alt_name]; - const str* relation_name = (str*) relation_node->nod_arg[e_rln_name]; + const dsql_str* relation_name = (dsql_str*) relation_node->nod_arg[e_rln_name]; request->append_cstring(isc_dyn_mod_rel, relation_name->str_data); save_relation(request, relation_name); @@ -5058,12 +5059,12 @@ static void modify_relation( dsql_req* request) case nod_mod_field_name: { dsql_nod* old_field = element->nod_arg[e_mod_fld_name_orig_name]; - const str* old_field_name = (str*) old_field->nod_arg[e_fln_name]; + const dsql_str* old_field_name = (dsql_str*) old_field->nod_arg[e_fln_name]; request->append_cstring(isc_dyn_mod_local_fld, old_field_name->str_data); dsql_nod* new_field = element->nod_arg[e_mod_fld_name_new_name]; - const str* new_field_name = (str*) new_field->nod_arg[e_fln_name]; + const dsql_str* new_field_name = (dsql_str*) new_field->nod_arg[e_fln_name]; request->append_cstring(isc_dyn_rel_name, relation_name->str_data); request->append_cstring(isc_dyn_new_fld_name, @@ -5078,7 +5079,7 @@ static void modify_relation( dsql_req* request) dsql_nod* const_node; field_node = element->nod_arg[e_mod_fld_pos_orig_name]; - field_name = (str*) field_node->nod_arg[e_fln_name]; + field_name = (dsql_str*) field_node->nod_arg[e_fln_name]; request->append_cstring(isc_dyn_mod_local_fld, field_name->str_data); const_node = element->nod_arg[e_mod_fld_pos_new_position]; @@ -5115,7 +5116,7 @@ static void modify_relation( dsql_req* request) */ field_node = element->nod_arg[0]; - field_name = (str*) field_node->nod_arg[e_fln_name]; + field_name = (dsql_str*) field_node->nod_arg[e_fln_name]; if ((element->nod_arg[1])->nod_type == nod_cascade) { @@ -5131,7 +5132,7 @@ static void modify_relation( dsql_req* request) break; case nod_delete_rel_constraint: - field_name = (str*) element->nod_arg[0]; + field_name = (dsql_str*) element->nod_arg[0]; request->append_cstring(isc_dyn_delete_rel_constraint, field_name->str_data); break; @@ -5181,10 +5182,10 @@ static void process_role_nm_list( dsql_req* request, request->append_ushort(1); request->append_uchar('M'); - const str* role_nm = (str*) role_ptr->nod_arg[0]; + const dsql_str* role_nm = (dsql_str*) role_ptr->nod_arg[0]; request->append_cstring(isc_dyn_sql_role_name, role_nm->str_data); - const str* user_nm = (str*) user_ptr->nod_arg[0]; + const dsql_str* user_nm = (dsql_str*) user_ptr->nod_arg[0]; request->append_cstring(isc_dyn_grant_user, user_nm->str_data); if (option) { @@ -5586,7 +5587,7 @@ static dsql_nod* replace_field_names(dsql_nod* input, { // found a field node, check if it needs to be replaced - const str* field_name = (str*) (*ptr)->nod_arg[e_fln_name]; + const dsql_str* field_name = (dsql_str*) (*ptr)->nod_arg[e_fln_name]; dsql_nod** search = search_fields->nod_arg; dsql_nod** end = search + search_fields->nod_count; dsql_nod** replace = NULL; @@ -5596,9 +5597,9 @@ static dsql_nod* replace_field_names(dsql_nod* input, bool found = false; for (; search < end; search++, (replace_fields) ? replace++ : NULL) { - const str* replace_name; + const dsql_str* replace_name; if (replace_fields) { - replace_name = (str*) (*replace)->nod_arg[e_fln_name]; + replace_name = (dsql_str*) (*replace)->nod_arg[e_fln_name]; } dsql_nod* field_node = *search; dsql_fld* field = (dsql_fld*) field_node->nod_arg[e_fld_field]; @@ -5689,7 +5690,7 @@ static void save_field(dsql_req* request, const TEXT* field_name) } -static void save_relation( dsql_req* request, const str* relation_name) +static void save_relation( dsql_req* request, const dsql_str* relation_name) { /************************************** * @@ -5746,7 +5747,7 @@ static void set_statistics( dsql_req* request) * **************************************/ dsql_nod* ddl_node = request->req_ddl_node; - const str* index_name = (str*) ddl_node->nod_arg[e_stat_name]; + const dsql_str* index_name = (dsql_str*) ddl_node->nod_arg[e_stat_name]; request->append_cstring(isc_dyn_mod_idx, index_name->str_data); request->append_uchar(isc_dyn_idx_statistic); request->append_uchar(isc_dyn_end); @@ -5814,8 +5815,8 @@ static void stuff_matching_blr(dsql_req* request, const dsql_nod* for_columns, do { request->append_uchar(blr_eql); - const str* for_key_fld_name_str = (str*) (*for_key_flds)->nod_arg[1]; - const str* prim_key_fld_name_str = (str*) (*prim_key_flds)->nod_arg[1]; + const dsql_str* for_key_fld_name_str = (dsql_str*) (*for_key_flds)->nod_arg[1]; + const dsql_str* prim_key_fld_name_str = (dsql_str*) (*prim_key_flds)->nod_arg[1]; request->append_uchar(blr_field); request->append_uchar(2); @@ -5866,7 +5867,7 @@ static void stuff_trg_firing_cond(dsql_req* request, do { request->append_uchar(blr_neq); - const str* prim_key_fld_name_str = (str*) (*prim_key_flds)->nod_arg[1]; + const dsql_str* prim_key_fld_name_str = (dsql_str*) (*prim_key_flds)->nod_arg[1]; request->append_uchar(blr_field); request->append_uchar(0); @@ -5889,7 +5890,7 @@ static void stuff_trg_firing_cond(dsql_req* request, static void modify_field(dsql_req* request, dsql_nod* element, SSHORT position, - const str* relation_name) + const dsql_str* relation_name) { /************************************** * @@ -5917,7 +5918,7 @@ static void modify_field(dsql_req* request, if (domain_node) { dsql_nod* node1 = domain_node->nod_arg[e_dom_name]; - const str* domain_name = (str*) node1->nod_arg[e_fln_name]; + const dsql_str* domain_name = (dsql_str*) node1->nod_arg[e_fln_name]; request->append_cstring(isc_dyn_fld_source, domain_name->str_data); // Get the domain information diff --git a/src/dsql/ddl_proto.h b/src/dsql/ddl_proto.h index 9036cc9343..715af91c21 100644 --- a/src/dsql/ddl_proto.h +++ b/src/dsql/ddl_proto.h @@ -30,14 +30,14 @@ class dsql_req; class dsql_fld; class dsql_nod; -class str; +class dsql_str; void DDL_execute(dsql_req*); void DDL_generate(dsql_req*, dsql_nod*); bool DDL_ids(const dsql_req*); void DDL_put_field_dtype(dsql_req*, const dsql_fld*, bool); -void DDL_resolve_intl_type(dsql_req*, dsql_fld*, const str*); -void DDL_resolve_intl_type2(dsql_req*, dsql_fld*, const str*, bool); +void DDL_resolve_intl_type(dsql_req*, dsql_fld*, const dsql_str*); +void DDL_resolve_intl_type2(dsql_req*, dsql_fld*, const dsql_str*, bool); #endif // DSQL_DDL_PROTO_H diff --git a/src/dsql/dsql.cpp b/src/dsql/dsql.cpp index cce62cca7d..520dd70408 100644 --- a/src/dsql/dsql.cpp +++ b/src/dsql/dsql.cpp @@ -466,7 +466,7 @@ GDS_DSQL_ALLOCATE_CPP( ISC_STATUS* user_status, catch(const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } return return_success(); @@ -610,7 +610,7 @@ ISC_STATUS GDS_DSQL_EXECUTE_CPP( catch (const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } RESTORE_THREAD_DATA; @@ -737,7 +737,7 @@ static ISC_STATUS dsql8_execute_immediate_common(ISC_STATUS* user_status, catch(const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } return return_success(); @@ -1140,7 +1140,7 @@ ISC_STATUS GDS_DSQL_FETCH_CPP( ISC_STATUS* user_status, catch(const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } return return_success(); @@ -1198,7 +1198,7 @@ ISC_STATUS GDS_DSQL_FREE_CPP(ISC_STATUS* user_status, catch(const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } return return_success(); @@ -1281,7 +1281,7 @@ ISC_STATUS GDS_DSQL_INSERT_CPP( ISC_STATUS* user_status, catch(const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } return return_success(); @@ -1450,7 +1450,7 @@ ISC_STATUS GDS_DSQL_PREPARE_CPP(ISC_STATUS* user_status, catch(const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } } @@ -1550,7 +1550,7 @@ ISC_STATUS GDS_DSQL_SET_CURSOR_CPP( ISC_STATUS* user_status, catch(const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } return return_success(); @@ -1775,7 +1775,7 @@ ISC_STATUS GDS_DSQL_SQL_INFO_CPP( ISC_STATUS* user_status, catch(const std::exception&) { RESTORE_THREAD_DATA; - return tdsql->tsql_status [1]; + return tdsql->tsql_status[1]; } return return_success(); @@ -1811,13 +1811,7 @@ static void trace_line(const char* message, ...) { **/ void DSQL_pretty(const dsql_nod* node, int column) { - DSQL_MAP map; - DSQL_REL relation; - DSQL_PRC procedure; - DSQL_CTX context; - DSQL_FLD field; - STR string; - var* variable; + const dsql_str* string; TEXT buffer[1024]; @@ -1842,11 +1836,11 @@ void DSQL_pretty(const dsql_nod* node, int column) switch (MemoryPool::blk_type(node)) { case (TEXT) dsql_type_str: - trace_line("%sSTRING: \"%s\"\n", buffer, ((STR) node)->str_data); + trace_line("%sSTRING: \"%s\"\n", buffer, ((dsql_str*) node)->str_data); return; case (TEXT) dsql_type_fld: - trace_line("%sFIELD: %s\n", buffer, ((DSQL_FLD) node)->fld_name); + trace_line("%sFIELD: %s\n", buffer, ((dsql_fld*) node)->fld_name); return; case (TEXT) dsql_type_sym: @@ -2596,7 +2590,7 @@ void DSQL_pretty(const dsql_nod* node, int column) case nod_label: verb = "label"; - DSQL_pretty(node->nod_arg[e_label_name], column+1); + DSQL_pretty(node->nod_arg[e_label_name], column + 1); trace_line("%s number %d\n", buffer, (int)(IPTR)node->nod_arg[e_label_number]); return; @@ -2604,18 +2598,20 @@ void DSQL_pretty(const dsql_nod* node, int column) case nod_derived_field: verb = "derived_field"; trace_line("%s%s\n", buffer, verb); - DSQL_pretty(node->nod_arg[e_derived_field_value], column+1); - DSQL_pretty(node->nod_arg[e_derived_field_name], column+1); + DSQL_pretty(node->nod_arg[e_derived_field_value], column + 1); + DSQL_pretty(node->nod_arg[e_derived_field_name], column + 1); trace_line("%s scope %d\n", buffer, (USHORT)(U_IPTR)node->nod_arg[e_derived_field_scope]); return; case nod_aggregate: + { verb = "aggregate"; trace_line("%s%s\n", buffer, verb); - context = (DSQL_CTX) node->nod_arg[e_agg_context]; + const dsql_ctx* context = (dsql_ctx*) node->nod_arg[e_agg_context]; trace_line("%s context %d\n", buffer, context->ctx_context); - if ((map = context->ctx_map) != NULL) + dsql_map* map = context->ctx_map; + if (map != NULL) trace_line("%s map\n", buffer); while (map) { trace_line("%s position %d\n", buffer, map->map_position); @@ -2625,6 +2621,7 @@ void DSQL_pretty(const dsql_nod* node, int column) DSQL_pretty(node->nod_arg[e_agg_group], column + 1); DSQL_pretty(node->nod_arg[e_agg_rse], column + 1); return; + } case nod_constant: verb = "constant"; @@ -2639,10 +2636,11 @@ void DSQL_pretty(const dsql_nod* node, int column) break; case nod_field: - context = (DSQL_CTX) node->nod_arg[e_fld_context]; - relation = context->ctx_relation; - procedure = context->ctx_procedure; - field = (DSQL_FLD) node->nod_arg[e_fld_field]; + { + const dsql_ctx* context = (dsql_ctx*) node->nod_arg[e_fld_context]; + const dsql_rel* relation = context->ctx_relation; + const dsql_prc* procedure = context->ctx_procedure; + const dsql_fld* field = (dsql_fld*) node->nod_arg[e_fld_field]; trace_line("%sfield %s.%s, context %d\n", buffer, (relation != NULL ? relation->rel_name : @@ -2651,13 +2649,14 @@ void DSQL_pretty(const dsql_nod* node, int column) "unknown_db_object")), field->fld_name, context->ctx_context); return; + } case nod_field_name: trace_line("%sfield name: \"", buffer); - string = (STR) node->nod_arg[e_fln_context]; + string = (dsql_str*) node->nod_arg[e_fln_context]; if (string) trace_line("%s.", string->str_data); - string = (STR) node->nod_arg[e_fln_name]; + string = (dsql_str*) node->nod_arg[e_fln_name]; if (string != 0) { trace_line("%s\"\n", string->str_data); } @@ -2667,20 +2666,25 @@ void DSQL_pretty(const dsql_nod* node, int column) return; case nod_map: + { verb = "map"; trace_line("%s%s\n", buffer, verb); - context = (DSQL_CTX) node->nod_arg[e_map_context]; + const dsql_ctx* context = (dsql_ctx*) node->nod_arg[e_map_context]; trace_line("%s context %d\n", buffer, context->ctx_context); - for (map = (DSQL_MAP) node->nod_arg[e_map_map]; map; map = map->map_next) { + for (const dsql_map* map = (dsql_map*) node->nod_arg[e_map_map]; map; + map = map->map_next) + { trace_line("%s position %d\n", buffer, map->map_position); DSQL_pretty(map->map_node, column + 1); } return; + } case nod_relation: - context = (DSQL_CTX) node->nod_arg[e_rel_context]; - relation = context->ctx_relation; - procedure = context->ctx_procedure; + { + const dsql_ctx* context = (dsql_ctx*) node->nod_arg[e_rel_context]; + const dsql_rel* relation = context->ctx_relation; + const dsql_prc* procedure = context->ctx_procedure; if( relation != NULL ) { trace_line("%srelation %s, context %d\n", buffer, relation->rel_name, context->ctx_context); @@ -2694,18 +2698,21 @@ void DSQL_pretty(const dsql_nod* node, int column) buffer, context->ctx_context); } return; + } case nod_variable: - variable = (var*) node->nod_arg[e_var_variable]; + { + const var* variable = (var*) node->nod_arg[e_var_variable]; // Adding variable->var_variable_number to display, obviously something // is missing from the printf, and Im assuming this was it. // (anyway can't be worse than it was MOD 05-July-2002. trace_line("%svariable %s %d\n", buffer, variable->var_name, variable->var_variable_number); return; + } case nod_var_name: trace_line("%svariable name: \"", buffer); - string = (STR) node->nod_arg[e_vrn_name]; + string = (dsql_str*) node->nod_arg[e_vrn_name]; trace_line("%s\"\n", string->str_data); return; @@ -2727,13 +2734,13 @@ void DSQL_pretty(const dsql_nod* node, int column) /* CVC: The answer is that nod_arg[0] can be either the udf name or the pointer to udf struct returned by METD_get_function, so we should resort to the block type. The replacement happens in pass1_udf(). */ - // switch (node->nod_arg [e_udf_name]->nod_header.blk_type) { - switch (MemoryPool::blk_type(node->nod_arg [e_udf_name])) { + // switch (node->nod_arg[e_udf_name]->nod_header.blk_type) { + switch (MemoryPool::blk_type(node->nod_arg[e_udf_name])) { case dsql_type_udf: - trace_line ("%s\"\n", ((UDF) node->nod_arg [e_udf_name])->udf_name); + trace_line ("%s\"\n", ((dsql_udf*) node->nod_arg[e_udf_name])->udf_name); break; case dsql_type_str: - string = (STR) node->nod_arg [e_udf_name]; + string = (dsql_str*) node->nod_arg[e_udf_name]; trace_line ("%s\"\n", string->str_data); break; default: @@ -3048,7 +3055,7 @@ static void execute_blob( dsql_req* request, TSQL tdsql = GET_THREAD_DATA; - blb* blob = request->req_blob; + dsql_blb* blob = request->req_blob; map_in_out(request, blob->blb_open_in_msg, in_blr_length, in_blr, in_msg_length, in_msg); @@ -3087,7 +3094,7 @@ static void execute_blob( dsql_req* request, &request->req_dbb->dbb_database_handle, &request->req_trans, &request->req_handle, blob_id, bpb_length, - reinterpret_cast(bpb)); + bpb); THREAD_ENTER; if (s) { punt(); @@ -4684,13 +4691,13 @@ static dsql_req* prepare( { /* Allocate persistent blr string from request's pool. */ - request->req_blr_string = FB_NEW_RPT(*tdsql->tsql_default, 980) str; + request->req_blr_string = FB_NEW_RPT(*tdsql->tsql_default, 980) dsql_str; } else { /* Allocate transient blr string from permanent pool so as not to unnecessarily bloat the request's pool. */ - request->req_blr_string = FB_NEW_RPT(*DSQL_permanent_pool, 980) str; + request->req_blr_string = FB_NEW_RPT(*DSQL_permanent_pool, 980) dsql_str; } request->req_blr_string->str_length = 980; request->req_blr = reinterpret_cast(request->req_blr_string->str_data); diff --git a/src/dsql/dsql.h b/src/dsql/dsql.h index 3bce96386d..88bfe07b7c 100644 --- a/src/dsql/dsql.h +++ b/src/dsql/dsql.h @@ -64,7 +64,7 @@ typedef err* ERR; #include "../dsql/sym.h" //! generic data type used to store strings -class str : public pool_alloc_rpt +class dsql_str : public pool_alloc_rpt { public: const char* str_charset; //!< ASCIIZ Character set identifier for string @@ -72,7 +72,6 @@ public: ULONG str_length; //!< length of string in BYTES char str_data[2]; //!< one for ALLOC and one for the NULL }; -typedef str* STR; // values used in str_flags @@ -85,7 +84,6 @@ public: blk* lls_object; dsql_lls* lls_next; }; -typedef dsql_lls* DLLS; inline void LLS_PUSH(blk* object, dsql_lls** stack) { @@ -140,11 +138,11 @@ public: dbb* dbb_next; class dsql_rel* dbb_relations; //!< known relations in database class dsql_prc* dbb_procedures; //!< known procedures in database - class udf* dbb_functions; //!< known functions in database + class dsql_udf* dbb_functions; //!< known functions in database DsqlMemoryPool* dbb_pool; //!< The current pool for the dbb FRBRD* dbb_database_handle; FRBRD* dbb_requests[irq_MAX]; - str* dbb_dfl_charset; + dsql_str* dbb_dfl_charset; USHORT dbb_base_level; //!< indicates the version of the engine code itself USHORT dbb_flags; USHORT dbb_db_SQL_dialect; @@ -175,7 +173,6 @@ public: USHORT rel_flags; TEXT rel_data[3]; }; -typedef dsql_rel* DSQL_REL; // rel_flags bits enum rel_flags_vals { @@ -211,7 +208,6 @@ public: SSHORT fld_ttype; //!< ID of field's language_driver TEXT fld_name[2]; }; -typedef dsql_fld* DSQL_FLD; // values used in fld_flags @@ -226,19 +222,18 @@ enum fld_flags_vals { const int MAX_ARRAY_DIMENSIONS = 16; //!< max array dimensions //! database/log/cache file block -class fil : public pool_alloc +class dsql_fil : public pool_alloc { public: SLONG fil_length; //!< File length in pages SLONG fil_start; //!< Starting page - str* fil_name; //!< File name - fil* fil_next; //!< next file + dsql_str* fil_name; //!< File name + dsql_fil* fil_next; //!< next file SSHORT fil_shadow_number; //!< shadow number if part of shadow SSHORT fil_manual; //!< flag to indicate manual shadow SSHORT fil_partitions; //!< number of log file partitions USHORT fil_flags; }; -typedef fil* FIL; //! Stored Procedure block class dsql_prc : public pool_alloc_rpt @@ -256,7 +251,6 @@ public: USHORT prc_flags; TEXT prc_data[3]; }; -typedef dsql_prc* DSQL_PRC; // prc_flags bits @@ -266,10 +260,10 @@ enum prc_flags_vals { }; //! User defined function block -class udf : public pool_alloc_rpt +class dsql_udf : public pool_alloc_rpt { public: - udf* udf_next; + dsql_udf* udf_next; dsql_sym* udf_symbol; //!< Hash symbol for udf USHORT udf_dtype; SSHORT udf_scale; @@ -282,7 +276,6 @@ public: TEXT udf_name[2]; }; -typedef udf* UDF; //! these values are multiplied by -1 to indicate that server frees them //! on return from the udf @@ -392,18 +385,18 @@ public: dsql_req* req_sibling; //!< Next sibling request, if cursor update dsql_req* req_offspring; //!< Cursor update requests DsqlMemoryPool* req_pool; - DLLS req_context; - DLLS req_union_context; //!< Save contexts for views of unions - DLLS req_dt_context; //!< Save contexts for views of derived tables + dsql_lls* req_context; + dsql_lls* req_union_context; //!< Save contexts for views of unions + dsql_lls* req_dt_context; //!< Save contexts for views of derived tables dsql_sym* req_name; //!< Name of request dsql_sym* req_cursor; //!< Cursor symbol, if any dbb* req_dbb; //!< Database handle FRBRD* req_trans; //!< Database transaction handle class opn* req_open_cursor; dsql_nod* req_ddl_node; //!< Store metadata request - class blb* req_blob; //!< Blob info for blob requests + class dsql_blb* req_blob; //!< Blob info for blob requests FRBRD* req_handle; //!< OSRI request handle - str* req_blr_string; //!< String block during BLR generation + dsql_str* req_blr_string; //!< String block during BLR generation class dsql_msg* req_send; //!< Message to be sent to start request class dsql_msg* req_receive; //!< Per record message to be received class dsql_msg* req_async; //!< Message for sending scrolling information @@ -427,9 +420,9 @@ public: USHORT req_scope_level; //!< Scope level for parsing aliases in subqueries USHORT req_message_number; //!< Next available message number USHORT req_loop_level; //!< Loop level - DLLS req_labels; //!< Loop labels + dsql_lls* req_labels; //!< Loop labels USHORT req_cursor_number; //!< Cursor number - DLLS req_cursors; //!< Cursors + dsql_lls* req_cursors; //!< Cursors USHORT req_in_select_list; //!< now processing "select list" USHORT req_in_where_clause; //!< processing "where clause" USHORT req_in_group_by_clause; //!< processing "group by clause" @@ -439,9 +432,8 @@ public: USHORT req_flags; //!< generic flag USHORT req_client_dialect; //!< dialect passed into the API call USHORT req_in_outer_join; //!< processing inside outer-join part - STR req_alias_relation_prefix; //!< prefix for every relation-alias. + dsql_str* req_alias_relation_prefix; //!< prefix for every relation-alias. }; -typedef dsql_req* DSQL_REQ; // values used in req_flags @@ -461,7 +453,7 @@ enum req_flags_vals { }; //! Blob -class blb : public pool_alloc +class dsql_blb : public pool_alloc { public: dsql_nod* blb_field; //!< Related blob field @@ -473,7 +465,6 @@ public: class dsql_msg* blb_open_out_msg; //!< Output message from open cursor class dsql_msg* blb_segment_msg; //!< Segment message }; -typedef blb* BLB; //! List of open cursors class opn : public pool_alloc @@ -491,7 +482,6 @@ class dsql_tra : public pool_alloc public: dsql_tra* tra_next; //!< Next open transaction }; -typedef dsql_tra* DSQL_TRA; //! Context block used to create an instance of a relation reference @@ -509,9 +499,8 @@ public: USHORT ctx_context; //!< Context id USHORT ctx_scope_level; //!< Subquery level within this request USHORT ctx_flags; //!< Various flag values - DLLS ctx_childs_derived_table; //!< Childs derived table context + dsql_lls* ctx_childs_derived_table; //!< Childs derived table context }; -typedef dsql_ctx* DSQL_CTX; // Flag values for ctx_flags @@ -526,7 +515,6 @@ public: dsql_nod* map_node; //!< Value for map item USHORT map_position; //!< Position in map }; -typedef dsql_map* DSQL_MAP; //! Message block used in communicating with a running request class dsql_msg : public pool_alloc @@ -540,7 +528,6 @@ public: USHORT msg_parameter; //!< Next parameter number USHORT msg_index; //!< Next index into SQLDA }; -typedef dsql_msg* DSQL_MSG; //! Parameter block used to describe a parameter of a message class par : public pool_alloc diff --git a/src/dsql/dsql.tab.h b/src/dsql/dsql.tab.h index 6722006b25..6bcefdf191 100644 --- a/src/dsql/dsql.tab.h +++ b/src/dsql/dsql.tab.h @@ -1,265 +1,277 @@ -#define ACTIVE 257 -#define ADD 258 -#define AFTER 259 -#define ALL 260 -#define ALTER 261 -#define AND 262 -#define ANY 263 -#define AS 264 -#define ASC 265 -#define AT 266 -#define AVG 267 -#define AUTO 268 -#define BASENAME 269 -#define BEFORE 270 -#define BEGIN 271 -#define BETWEEN 272 -#define BLOB 273 -#define BY 274 -#define CACHE 275 -#define CAST 276 -#define CHARACTER 277 -#define CHECK 278 -#define CHECK_POINT_LEN 279 -#define COLLATE 280 -#define COMMA 281 -#define COMMIT 282 -#define COMMITTED 283 -#define COMPUTED 284 -#define CONCATENATE 285 -#define CONDITIONAL 286 -#define CONSTRAINT 287 -#define CONTAINING 288 -#define COUNT 289 -#define CREATE 290 -#define CSTRING 291 -#define CURRENT 292 -#define CURSOR 293 -#define DATABASE 294 -#define DATE 295 -#define DB_KEY 296 -#define KW_DEBUG 297 -#define DECIMAL 298 -#define DECLARE 299 -#define DEFAULT 300 -#define KW_DELETE 301 -#define DESC 302 -#define DISTINCT 303 -#define DO 304 -#define DOMAIN 305 -#define DROP 306 -#define ELSE 307 -#define END 308 -#define ENTRY_POINT 309 -#define EQL 310 -#define ESCAPE 311 -#define EXCEPTION 312 -#define EXECUTE 313 -#define EXISTS 314 -#define EXIT 315 -#define EXTERNAL 316 -#define FILTER 317 -#define FOR 318 -#define FOREIGN 319 -#define FROM 320 -#define FULL 321 -#define FUNCTION 322 -#define GDSCODE 323 -#define GEQ 324 -#define GENERATOR 325 -#define GEN_ID 326 -#define GRANT 327 -#define GROUP 328 -#define GROUP_COMMIT_WAIT 329 -#define GTR 330 -#define HAVING 331 -#define IF 332 -#define KW_IN 333 -#define INACTIVE 334 -#define INNER 335 -#define INPUT_TYPE 336 -#define INDEX 337 -#define INSERT 338 -#define INTEGER 339 -#define INTO 340 -#define IS 341 -#define ISOLATION 342 -#define JOIN 343 -#define KEY 344 -#define KW_CHAR 345 -#define KW_DEC 346 -#define KW_DOUBLE 347 -#define KW_FILE 348 -#define KW_FLOAT 349 -#define KW_INT 350 -#define KW_LONG 351 -#define KW_NULL 352 -#define KW_NUMERIC 353 -#define KW_UPPER 354 -#define KW_VALUE 355 -#define LENGTH 356 -#define LOGFILE 357 -#define LPAREN 358 -#define LEFT 359 -#define LEQ 360 -#define LEVEL 361 -#define LIKE 362 -#define LOG_BUF_SIZE 363 -#define LSS 364 -#define MANUAL 365 -#define MAXIMUM 366 -#define MAX_SEGMENT 367 -#define MERGE 368 -#define MESSAGE 369 -#define MINIMUM 370 -#define MODULE_NAME 371 -#define NAMES 372 -#define NATIONAL 373 -#define NATURAL 374 -#define NCHAR 375 -#define NEQ 376 -#define NO 377 -#define NOT 378 -#define NOT_GTR 379 -#define NOT_LSS 380 -#define NUM_LOG_BUFS 381 -#define OF 382 -#define ON 383 -#define ONLY 384 -#define OPTION 385 -#define OR 386 -#define ORDER 387 -#define OUTER 388 -#define OUTPUT_TYPE 389 -#define OVERFLOW 390 -#define PAGE 391 -#define PAGES 392 -#define PAGE_SIZE 393 -#define PARAMETER 394 -#define PASSWORD 395 -#define PLAN 396 -#define POSITION 397 -#define POST_EVENT 398 -#define PRECISION 399 -#define PRIMARY 400 -#define PRIVILEGES 401 -#define PROCEDURE 402 -#define PROTECTED 403 -#define RAW_PARTITIONS 404 -#define READ 405 -#define REAL 406 -#define REFERENCES 407 -#define RESERVING 408 -#define RETAIN 409 -#define RETURNING_VALUES 410 -#define RETURNS 411 -#define REVOKE 412 -#define RIGHT 413 -#define RPAREN 414 -#define ROLLBACK 415 -#define SEGMENT 416 -#define SELECT 417 -#define SET 418 -#define SHADOW 419 -#define KW_SHARED 420 -#define SINGULAR 421 -#define KW_SIZE 422 -#define SMALLINT 423 -#define SNAPSHOT 424 -#define SOME 425 -#define SORT 426 -#define SQLCODE 427 -#define STABILITY 428 -#define STARTING 429 -#define STATISTICS 430 -#define SUB_TYPE 431 -#define SUSPEND 432 -#define SUM 433 -#define TABLE 434 -#define THEN 435 -#define TO 436 -#define TRANSACTION 437 -#define TRIGGER 438 -#define UNCOMMITTED 439 -#define UNION 440 -#define UNIQUE 441 -#define UPDATE 442 -#define USER 443 -#define VALUES 444 -#define VARCHAR 445 -#define VARIABLE 446 -#define VARYING 447 -#define VERSION 448 -#define VIEW 449 -#define WAIT 450 -#define WHEN 451 -#define WHERE 452 -#define WHILE 453 -#define WITH 454 -#define WORK 455 -#define WRITE 456 -#define FLOAT_NUMBER 457 -#define NUMBER 458 -#define NUMERIC 459 -#define SYMBOL 460 -#define STRING 461 -#define INTRODUCER 462 -#define ACTION 463 -#define ADMIN 464 -#define CASCADE 465 -#define FREE_IT 466 -#define RESTRICT 467 -#define ROLE 468 -#define COLUMN 469 -#define TYPE 470 -#define EXTRACT 471 -#define YEAR 472 -#define MONTH 473 -#define DAY 474 -#define HOUR 475 -#define MINUTE 476 -#define SECOND 477 -#define WEEKDAY 478 -#define YEARDAY 479 -#define TIME 480 -#define TIMESTAMP 481 -#define CURRENT_DATE 482 -#define CURRENT_TIME 483 -#define CURRENT_TIMESTAMP 484 -#define NUMBER64BIT 485 -#define SCALEDINT 486 -#define CURRENT_USER 487 -#define CURRENT_ROLE 488 -#define KW_BREAK 489 -#define SUBSTRING 490 -#define RECREATE 491 -#define KW_DESCRIPTOR 492 -#define FIRST 493 -#define SKIP 494 -#define CURRENT_CONNECTION 495 -#define CURRENT_TRANSACTION 496 -#define BIGINT 497 -#define CASE 498 -#define NULLIF 499 -#define COALESCE 500 -#define USING 501 -#define NULLS 502 -#define LAST 503 -#define ROW_COUNT 504 -#define LOCK 505 -#define SAVEPOINT 506 -#define RELEASE 507 -#define STATEMENT 508 -#define LEAVE 509 -#define INSERTING 510 -#define UPDATING 511 -#define DELETING 512 -#define KW_INSERTING 513 -#define KW_UPDATING 514 -#define KW_DELETING 515 -#define BACKUP 516 -#define KW_DIFFERENCE 517 -#define OPEN 518 -#define CLOSE 519 -#define FETCH 520 -#define ROWS 521 +#ifndef BISON_DSQL_TAB_H +# define BISON_DSQL_TAB_H + +# ifndef YYSTYPE +# define YYSTYPE int +# define YYSTYPE_IS_TRIVIAL 1 +# endif +# define ACTIVE 257 +# define ADD 258 +# define AFTER 259 +# define ALL 260 +# define ALTER 261 +# define AND 262 +# define ANY 263 +# define AS 264 +# define ASC 265 +# define AT 266 +# define AVG 267 +# define AUTO 268 +# define BASENAME 269 +# define BEFORE 270 +# define BEGIN 271 +# define BETWEEN 272 +# define BLOB 273 +# define BY 274 +# define CACHE 275 +# define CAST 276 +# define CHARACTER 277 +# define CHECK 278 +# define CHECK_POINT_LEN 279 +# define COLLATE 280 +# define COMMA 281 +# define COMMIT 282 +# define COMMITTED 283 +# define COMPUTED 284 +# define CONCATENATE 285 +# define CONDITIONAL 286 +# define CONSTRAINT 287 +# define CONTAINING 288 +# define COUNT 289 +# define CREATE 290 +# define CSTRING 291 +# define CURRENT 292 +# define CURSOR 293 +# define DATABASE 294 +# define DATE 295 +# define DB_KEY 296 +# define KW_DEBUG 297 +# define DECIMAL 298 +# define DECLARE 299 +# define DEFAULT 300 +# define KW_DELETE 301 +# define DESC 302 +# define DISTINCT 303 +# define DO 304 +# define DOMAIN 305 +# define DROP 306 +# define ELSE 307 +# define END 308 +# define ENTRY_POINT 309 +# define EQL 310 +# define ESCAPE 311 +# define EXCEPTION 312 +# define EXECUTE 313 +# define EXISTS 314 +# define EXIT 315 +# define EXTERNAL 316 +# define FILTER 317 +# define FOR 318 +# define FOREIGN 319 +# define FROM 320 +# define FULL 321 +# define FUNCTION 322 +# define GDSCODE 323 +# define GEQ 324 +# define GENERATOR 325 +# define GEN_ID 326 +# define GRANT 327 +# define GROUP 328 +# define GROUP_COMMIT_WAIT 329 +# define GTR 330 +# define HAVING 331 +# define IF 332 +# define KW_IN 333 +# define INACTIVE 334 +# define INNER 335 +# define INPUT_TYPE 336 +# define INDEX 337 +# define INSERT 338 +# define INTEGER 339 +# define INTO 340 +# define IS 341 +# define ISOLATION 342 +# define JOIN 343 +# define KEY 344 +# define KW_CHAR 345 +# define KW_DEC 346 +# define KW_DOUBLE 347 +# define KW_FILE 348 +# define KW_FLOAT 349 +# define KW_INT 350 +# define KW_LONG 351 +# define KW_NULL 352 +# define KW_NUMERIC 353 +# define KW_UPPER 354 +# define KW_VALUE 355 +# define LENGTH 356 +# define LOGFILE 357 +# define LPAREN 358 +# define LEFT 359 +# define LEQ 360 +# define LEVEL 361 +# define LIKE 362 +# define LOG_BUF_SIZE 363 +# define LSS 364 +# define MANUAL 365 +# define MAXIMUM 366 +# define MAX_SEGMENT 367 +# define MERGE 368 +# define MESSAGE 369 +# define MINIMUM 370 +# define MODULE_NAME 371 +# define NAMES 372 +# define NATIONAL 373 +# define NATURAL 374 +# define NCHAR 375 +# define NEQ 376 +# define NO 377 +# define NOT 378 +# define NOT_GTR 379 +# define NOT_LSS 380 +# define NUM_LOG_BUFS 381 +# define OF 382 +# define ON 383 +# define ONLY 384 +# define OPTION 385 +# define OR 386 +# define ORDER 387 +# define OUTER 388 +# define OUTPUT_TYPE 389 +# define OVERFLOW 390 +# define PAGE 391 +# define PAGES 392 +# define PAGE_SIZE 393 +# define PARAMETER 394 +# define PASSWORD 395 +# define PLAN 396 +# define POSITION 397 +# define POST_EVENT 398 +# define PRECISION 399 +# define PRIMARY 400 +# define PRIVILEGES 401 +# define PROCEDURE 402 +# define PROTECTED 403 +# define RAW_PARTITIONS 404 +# define READ 405 +# define REAL 406 +# define REFERENCES 407 +# define RESERVING 408 +# define RETAIN 409 +# define RETURNING_VALUES 410 +# define RETURNS 411 +# define REVOKE 412 +# define RIGHT 413 +# define RPAREN 414 +# define ROLLBACK 415 +# define SEGMENT 416 +# define SELECT 417 +# define SET 418 +# define SHADOW 419 +# define KW_SHARED 420 +# define SINGULAR 421 +# define KW_SIZE 422 +# define SMALLINT 423 +# define SNAPSHOT 424 +# define SOME 425 +# define SORT 426 +# define SQLCODE 427 +# define STABILITY 428 +# define STARTING 429 +# define STATISTICS 430 +# define SUB_TYPE 431 +# define SUSPEND 432 +# define SUM 433 +# define TABLE 434 +# define THEN 435 +# define TO 436 +# define TRANSACTION 437 +# define TRIGGER 438 +# define UNCOMMITTED 439 +# define UNION 440 +# define UNIQUE 441 +# define UPDATE 442 +# define USER 443 +# define VALUES 444 +# define VARCHAR 445 +# define VARIABLE 446 +# define VARYING 447 +# define VERSION 448 +# define VIEW 449 +# define WAIT 450 +# define WHEN 451 +# define WHERE 452 +# define WHILE 453 +# define WITH 454 +# define WORK 455 +# define WRITE 456 +# define FLOAT_NUMBER 457 +# define NUMBER 458 +# define NUMERIC 459 +# define SYMBOL 460 +# define STRING 461 +# define INTRODUCER 462 +# define ACTION 463 +# define ADMIN 464 +# define CASCADE 465 +# define FREE_IT 466 +# define RESTRICT 467 +# define ROLE 468 +# define COLUMN 469 +# define TYPE 470 +# define EXTRACT 471 +# define YEAR 472 +# define MONTH 473 +# define DAY 474 +# define HOUR 475 +# define MINUTE 476 +# define SECOND 477 +# define WEEKDAY 478 +# define YEARDAY 479 +# define TIME 480 +# define TIMESTAMP 481 +# define CURRENT_DATE 482 +# define CURRENT_TIME 483 +# define CURRENT_TIMESTAMP 484 +# define NUMBER64BIT 485 +# define SCALEDINT 486 +# define CURRENT_USER 487 +# define CURRENT_ROLE 488 +# define KW_BREAK 489 +# define SUBSTRING 490 +# define RECREATE 491 +# define KW_DESCRIPTOR 492 +# define FIRST 493 +# define SKIP 494 +# define CURRENT_CONNECTION 495 +# define CURRENT_TRANSACTION 496 +# define BIGINT 497 +# define CASE 498 +# define NULLIF 499 +# define COALESCE 500 +# define USING 501 +# define NULLS 502 +# define LAST 503 +# define ROW_COUNT 504 +# define LOCK 505 +# define SAVEPOINT 506 +# define RELEASE 507 +# define STATEMENT 508 +# define LEAVE 509 +# define INSERTING 510 +# define UPDATING 511 +# define DELETING 512 +# define KW_INSERTING 513 +# define KW_UPDATING 514 +# define KW_DELETING 515 +# define BACKUP 516 +# define KW_DIFFERENCE 517 +# define OPEN 518 +# define CLOSE 519 +# define FETCH 520 +# define ROWS 521 + + +extern YYSTYPE yylval; + +#endif /* not BISON_DSQL_TAB_H */ diff --git a/src/dsql/gen.cpp b/src/dsql/gen.cpp index c4a6600703..33e4588d80 100644 --- a/src/dsql/gen.cpp +++ b/src/dsql/gen.cpp @@ -104,7 +104,7 @@ UCHAR GEN_expand_buffer( dsql_req* request, UCHAR byte) const bool bIsPermanentPool = MemoryPool::blk_pool(request->req_blr_string) == DSQL_permanent_pool; DsqlMemoryPool* pool = bIsPermanentPool ? DSQL_permanent_pool : tdsql->tsql_default; - str* new_buffer = FB_NEW_RPT(*pool, length) str; + dsql_str* new_buffer = FB_NEW_RPT(*pool, length) dsql_str; new_buffer->str_length = length; // one huge pointer per line for LIBS @@ -476,7 +476,7 @@ void GEN_expr( dsql_req* request, dsql_nod* node) case nod_count: blr_operator = blr_count; /* count2 - blr_operator = node->nod_arg [0]->nod_arg [e_rse_items] ? blr_count2 : blr_count; + blr_operator = node->nod_arg[0]->nod_arg[e_rse_items] ? blr_count2 : blr_count; */ break; case nod_from: @@ -637,7 +637,7 @@ void GEN_port( dsql_req* request, dsql_msg* message) /* Allocate buffer for message */ // CVC: again, final possibility of having overflow! Should be < 64K const USHORT new_len = message->msg_length + DOUBLE_ALIGN - 1; - str* buffer = FB_NEW_RPT(*tdsql->tsql_default, new_len) str; + dsql_str* buffer = FB_NEW_RPT(*tdsql->tsql_default, new_len) dsql_str; message->msg_buffer = (UCHAR *) FB_ALIGN((U_IPTR) buffer->str_data, DOUBLE_ALIGN); @@ -873,8 +873,8 @@ void GEN_statement( dsql_req* request, dsql_nod* node) const dsql_nod* const* end; dsql_ctx* context; dsql_msg* message; - str* name; - str* string; + dsql_str* name; + dsql_str* string; ULONG id_length; switch (node->nod_type) { @@ -926,7 +926,7 @@ void GEN_statement( dsql_req* request, dsql_nod* node) else message = NULL; stuff(request, blr_exec_proc); - name = (str*) node->nod_arg[e_exe_procedure]; + name = (dsql_str*) node->nod_arg[e_exe_procedure]; stuff_cstring(request, name->str_data); if (temp = node->nod_arg[e_exe_inputs]) { stuff_word(request, temp->nod_count); @@ -959,7 +959,7 @@ void GEN_statement( dsql_req* request, dsql_nod* node) case nod_set_generator: case nod_set_generator2: stuff(request, blr_set_generator); - string = (str*) node->nod_arg[e_gen_id_name]; + string = (dsql_str*) node->nod_arg[e_gen_id_name]; stuff_cstring(request, string->str_data); GEN_expr(request, node->nod_arg[e_gen_id_value]); return; @@ -1100,7 +1100,7 @@ void GEN_statement( dsql_req* request, dsql_nod* node) case nod_user_savepoint: stuff(request, blr_user_savepoint); stuff(request, blr_savepoint_set); - stuff_cstring(request, ((str*)node->nod_arg[e_sav_name])->str_data); + stuff_cstring(request, ((dsql_str*)node->nod_arg[e_sav_name])->str_data); return; case nod_release_savepoint: @@ -1111,18 +1111,18 @@ void GEN_statement( dsql_req* request, dsql_nod* node) else { stuff(request, blr_savepoint_release); } - stuff_cstring(request, ((str*)node->nod_arg[e_sav_name])->str_data); + stuff_cstring(request, ((dsql_str*)node->nod_arg[e_sav_name])->str_data); return; case nod_undo_savepoint: stuff(request, blr_user_savepoint); stuff(request, blr_savepoint_undo); - stuff_cstring(request, ((str*)node->nod_arg[e_sav_name])->str_data); + stuff_cstring(request, ((dsql_str*)node->nod_arg[e_sav_name])->str_data); return; case nod_exception_stmt: stuff(request, blr_abort); - string = (str*) node->nod_arg[e_xcps_name]; + string = (dsql_str*) node->nod_arg[e_xcps_name]; temp = node->nod_arg[e_xcps_msg]; /* if exception name is undefined, it means we have re-initiate semantics here, @@ -1616,7 +1616,7 @@ static void gen_descriptor( dsql_req* request, const dsc* desc, bool texttype) **/ static void gen_error_condition( dsql_req* request, const dsql_nod* node) { - const str* string; + const dsql_str* string; switch (node->nod_type) { case nod_sqlcode: @@ -1626,13 +1626,13 @@ static void gen_error_condition( dsql_req* request, const dsql_nod* node) case nod_gdscode: stuff(request, blr_gds_code); - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; stuff_cstring(request, string->str_data); return; case nod_exception: stuff(request, blr_exception); - string = (str*) node->nod_arg[0]; + string = (dsql_str*) node->nod_arg[0]; stuff_cstring(request, string->str_data); return; @@ -1791,7 +1791,7 @@ static void gen_for_select( dsql_req* request, dsql_nod* for_select) static void gen_gen_id( dsql_req* request, const dsql_nod* node) { stuff(request, blr_gen_id); - const str* string = (str*) node->nod_arg[e_gen_id_name]; + const dsql_str* string = (dsql_str*) node->nod_arg[e_gen_id_name]; stuff_cstring(request, string->str_data); GEN_expr(request, node->nod_arg[e_gen_id_value]); } @@ -1941,7 +1941,7 @@ static void gen_plan( dsql_req* request, const dsql_nod* plan_expression) gen_relation(request, (dsql_ctx*) arg->nod_arg[e_rel_context]); /* now stuff the access method for this stream */ - const str* index_string; + const dsql_str* index_string; arg = node->nod_arg[1]; switch (arg->nod_type) { @@ -1951,7 +1951,7 @@ static void gen_plan( dsql_req* request, const dsql_nod* plan_expression) case nod_index_order: stuff(request, blr_navigational); - index_string = (str*) arg->nod_arg[0]; + index_string = (dsql_str*) arg->nod_arg[0]; stuff_cstring(request, index_string->str_data); if (!arg->nod_arg[1]) break; @@ -1967,7 +1967,7 @@ static void gen_plan( dsql_req* request, const dsql_nod* plan_expression) for (const dsql_nod* const* const end2 = ptr2 + arg->nod_count; ptr2 < end2; ptr2++) { - index_string = (str*) * ptr2; + index_string = (dsql_str*) * ptr2; stuff_cstring(request, index_string->str_data); } break; @@ -2166,7 +2166,7 @@ static void gen_rse( dsql_req* request, const dsql_nod* rse) GEN_expr(request, node); } - if ((node = rse->nod_arg [e_rse_skip]) != NULL) { + if ((node = rse->nod_arg[e_rse_skip]) != NULL) { stuff(request, blr_skip); GEN_expr (request, node); } @@ -2316,7 +2316,7 @@ static void gen_select( dsql_req* request, dsql_nod* rse) break; } case nod_alias: { - const str* string = (str*) item->nod_arg[e_alias_alias]; + const dsql_str* string = (dsql_str*) item->nod_arg[e_alias_alias]; parameter->par_alias = reinterpret_cast(string->str_data); dsql_nod* alias = item->nod_arg[e_alias_value]; if (alias->nod_type == nod_field) { @@ -2344,7 +2344,7 @@ static void gen_select( dsql_req* request, dsql_nod* rse) break; } case nod_derived_field: { - const str* string = (str*) item->nod_arg[e_derived_field_name]; + const dsql_str* string = (dsql_str*) item->nod_arg[e_derived_field_name]; parameter->par_alias = reinterpret_cast(string->str_data); dsql_nod* alias = item->nod_arg[e_derived_field_value]; if (alias->nod_type == nod_field) { @@ -2386,7 +2386,7 @@ static void gen_select( dsql_req* request, dsql_nod* rse) break; } case nod_alias: { - const str* string = (str*) map_node->nod_arg[e_alias_alias]; + const dsql_str* string = (dsql_str*) map_node->nod_arg[e_alias_alias]; parameter->par_alias = reinterpret_cast(string->str_data); dsql_nod* alias = map_node->nod_arg[e_alias_value]; if (alias->nod_type == nod_field) { @@ -2396,7 +2396,7 @@ static void gen_select( dsql_req* request, dsql_nod* rse) break; } case nod_derived_field: { - const str* string = (str*) map_node->nod_arg[e_derived_field_name]; + const dsql_str* string = (dsql_str*) map_node->nod_arg[e_derived_field_name]; parameter->par_alias = reinterpret_cast(string->str_data); dsql_nod* alias = map_node->nod_arg[e_derived_field_value]; if (alias->nod_type == nod_field) { @@ -2432,7 +2432,7 @@ static void gen_select( dsql_req* request, dsql_nod* rse) } // case nod_map case nod_udf: { - udf* userFunc = (UDF) item->nod_arg[0]; + dsql_udf* userFunc = (dsql_udf*) item->nod_arg[0]; name_alias = userFunc->udf_name; break; } @@ -2748,7 +2748,7 @@ static void gen_table_lock( dsql_req* request, const dsql_nod* tbl_lock, stuff(request, lock_mode); /* stuff table name */ - const str* temp = (str*) ((*ptr)->nod_arg[e_rln_name]); + const dsql_str* temp = (dsql_str*) ((*ptr)->nod_arg[e_rln_name]); stuff_cstring(request, reinterpret_cast(temp->str_data)); stuff(request, lock_level); @@ -2769,7 +2769,7 @@ static void gen_table_lock( dsql_req* request, const dsql_nod* tbl_lock, **/ static void gen_udf( dsql_req* request, const dsql_nod* node) { - const udf* userFunc = (UDF) node->nod_arg[0]; + const dsql_udf* userFunc = (dsql_udf*) node->nod_arg[0]; stuff(request, blr_function); stuff_cstring(request, userFunc->udf_name); @@ -2803,7 +2803,7 @@ static void gen_union( dsql_req* request, const dsql_nod* union_node) { stuff(request, blr_union); -// Obtain the context for UNION from the first DSQL_MAP node +// Obtain the context for UNION from the first dsql_map* node dsql_nod* items = union_node->nod_arg[e_rse_items]; dsql_nod* map_item = items->nod_arg[0]; // AB: First item could be a virtual field generated by derived table. diff --git a/src/dsql/gen_proto.h b/src/dsql/gen_proto.h index df3ef0adc3..97202cdfaa 100644 --- a/src/dsql/gen_proto.h +++ b/src/dsql/gen_proto.h @@ -28,7 +28,7 @@ UCHAR GEN_expand_buffer(dsql_req*, UCHAR); void GEN_expr(dsql_req*, dsql_nod*); void GEN_port(dsql_req*, dsql_msg*); void GEN_request(dsql_req*, dsql_nod*); -void GEN_return(DSQL_REQ, const dsql_nod*, bool); +void GEN_return(dsql_req*, const dsql_nod*, bool); void GEN_start_transaction(dsql_req*, const dsql_nod*); void GEN_statement(dsql_req*, dsql_nod*); diff --git a/src/dsql/hsh.cpp b/src/dsql/hsh.cpp index 6532d473d6..982385a85e 100644 --- a/src/dsql/hsh.cpp +++ b/src/dsql/hsh.cpp @@ -396,14 +396,14 @@ void HSHD_set_flag( switch (type) { case SYM_relation: { - DSQL_REL sym_rel = (DSQL_REL) homonym->sym_object; + dsql_rel* sym_rel = (dsql_rel*) homonym->sym_object; sym_rel->rel_flags |= flag; break; } case SYM_procedure: { - DSQL_PRC sym_prc = (DSQL_PRC) homonym->sym_object; + dsql_prc* sym_prc = (dsql_prc*) homonym->sym_object; sym_prc->prc_flags |= flag; break; } diff --git a/src/dsql/make.cpp b/src/dsql/make.cpp index 33affe3ea9..68330082ef 100644 --- a/src/dsql/make.cpp +++ b/src/dsql/make.cpp @@ -85,7 +85,7 @@ static inline bool is_date_and_time(const dsc& d1, const dsc& d2) @param numeric_flag **/ -dsql_nod* MAKE_constant(str* constant, dsql_constant_type numeric_flag) +dsql_nod* MAKE_constant(dsql_str* constant, dsql_constant_type numeric_flag) { TSQL tdsql = GET_THREAD_DATA; @@ -232,7 +232,7 @@ dsql_nod* MAKE_constant(str* constant, dsql_constant_type numeric_flag) @param character_set **/ -dsql_nod* MAKE_str_constant(str* constant, SSHORT character_set) +dsql_nod* MAKE_str_constant(dsql_str* constant, SSHORT character_set) { TSQL tdsql = GET_THREAD_DATA; @@ -265,7 +265,7 @@ dsql_nod* MAKE_str_constant(str* constant, SSHORT character_set) @param str **/ -str* MAKE_cstring(const char* str) +dsql_str* MAKE_cstring(const char* str) { return MAKE_string(str, strlen(str)); @@ -288,8 +288,8 @@ void MAKE_desc(dsc* desc, dsql_nod* node) dsc desc1, desc2; USHORT dtype, dtype1, dtype2; dsql_map* map; - DSQL_CTX context; - DSQL_REL relation; + dsql_ctx* context; + dsql_rel* relation; dsql_fld* field; DEV_BLKCHK(node, dsql_type_nod); @@ -420,7 +420,7 @@ void MAKE_desc(dsc* desc, dsql_nod* node) /* Beware that JRD treats substring() always as returning CHAR instead of VARCHAR for historical reasons. */ if (node->nod_type == nod_substr && desc1.dsc_dtype == dtype_blob) { - dsql_nod* for_node = node->nod_arg [e_substr_length]; + dsql_nod* for_node = node->nod_arg[e_substr_length]; fb_assert (for_node->nod_desc.dsc_dtype == dtype_long); /* Migrate the charset from the blob to the string. */ desc->dsc_ttype = desc1.dsc_scale; @@ -888,7 +888,7 @@ void MAKE_desc(dsc* desc, dsql_nod* node) case nod_dbkey: /* Fix for bug 10072 check that the target is a relation */ - context = (DSQL_CTX) node->nod_arg[0]->nod_arg[0]; + context = (dsql_ctx*) node->nod_arg[0]->nod_arg[0]; relation = context->ctx_relation; if (relation != 0) { desc->dsc_dtype = dtype_text; @@ -904,7 +904,7 @@ void MAKE_desc(dsc* desc, dsql_nod* node) case nod_udf: { - const udf* userFunc = (UDF) node->nod_arg[0]; + const dsql_udf* userFunc = (dsql_udf*) node->nod_arg[0]; desc->dsc_dtype = static_cast(userFunc->udf_dtype); desc->dsc_length = userFunc->udf_length; desc->dsc_scale = static_cast(userFunc->udf_scale); @@ -1419,7 +1419,7 @@ void MAKE_desc_from_list(dsc* desc, dsql_nod* node, const TEXT* expression_name) @param indices **/ -dsql_nod* MAKE_field(DSQL_CTX context, dsql_fld* field, dsql_nod* indices) +dsql_nod* MAKE_field(dsql_ctx* context, dsql_fld* field, dsql_nod* indices) { DEV_BLKCHK(context, dsql_type_ctx); DEV_BLKCHK(field, dsql_type_fld); @@ -1454,7 +1454,8 @@ dsql_nod* MAKE_field(DSQL_CTX context, dsql_fld* field, dsql_nod* indices) } if ((field->fld_flags & FLD_nullable) || - (context->ctx_flags & CTX_outer_join)) { + (context->ctx_flags & CTX_outer_join)) + { node->nod_desc.dsc_flags = DSC_nullable; } @@ -1472,12 +1473,12 @@ dsql_nod* MAKE_field(DSQL_CTX context, dsql_fld* field, dsql_nod* indices) @param stack **/ -dsql_nod* MAKE_list(DLLS stack) +dsql_nod* MAKE_list(dsql_lls* stack) { DEV_BLKCHK(stack, dsql_type_lls); USHORT count = 0; - for (DLLS temp = stack; temp; temp = temp->lls_next) + for (dsql_lls* temp = stack; temp; temp = temp->lls_next) ++count; dsql_nod* node = MAKE_node(nod_list, count); @@ -1590,7 +1591,7 @@ par* MAKE_parameter(dsql_msg* message, bool sqlda_flag, bool null_flag, @param length **/ -str* MAKE_string(const char* str, int length) +dsql_str* MAKE_string(const char* str, int length) { return MAKE_tagged_string(str, length, NULL); } @@ -1650,11 +1651,11 @@ dsql_sym* MAKE_symbol(DBB database, @param charset **/ -str* MAKE_tagged_string(const char* str_, size_t length, const char* charset) +dsql_str* MAKE_tagged_string(const char* str_, size_t length, const char* charset) { TSQL tdsql = GET_THREAD_DATA; - str* string = FB_NEW_RPT(*tdsql->tsql_default, length) str; + dsql_str* string = FB_NEW_RPT(*tdsql->tsql_default, length) dsql_str; string->str_charset = charset; string->str_length = length; memcpy(string->str_data, str_, length); @@ -1680,7 +1681,7 @@ dsql_nod* MAKE_trigger_type(dsql_nod* prefix_node, dsql_nod* suffix_node) const long suffix = (long) suffix_node->nod_arg[0]; delete prefix_node; delete suffix_node; - return MAKE_constant((str*) (prefix + suffix - 1), CONSTANT_SLONG); + return MAKE_constant((dsql_str*) (prefix + suffix - 1), CONSTANT_SLONG); } diff --git a/src/dsql/make_proto.h b/src/dsql/make_proto.h index 6ff81be4c6..7400f91113 100644 --- a/src/dsql/make_proto.h +++ b/src/dsql/make_proto.h @@ -28,9 +28,9 @@ #include "../dsql/sym.h" -dsql_nod* MAKE_constant(class str*, dsql_constant_type); -dsql_nod* MAKE_str_constant(class str*, SSHORT); -class str* MAKE_cstring(const char*); +dsql_nod* MAKE_constant(class dsql_str*, dsql_constant_type); +dsql_nod* MAKE_str_constant(class dsql_str*, SSHORT); +class dsql_str* MAKE_cstring(const char*); void MAKE_desc(dsc*, dsql_nod*); void MAKE_desc_from_field(dsc*, const class dsql_fld*); void MAKE_desc_from_list(dsc*, dsql_nod*, const TEXT*); @@ -38,10 +38,10 @@ dsql_nod* MAKE_field(class dsql_ctx*, class dsql_fld*, dsql_nod*); dsql_nod* MAKE_list(class dsql_lls*); dsql_nod* MAKE_node(enum nod_t, int); class par* MAKE_parameter(class dsql_msg* , bool, bool, USHORT); -class str* MAKE_string(const char* , int); +class dsql_str* MAKE_string(const char* , int); dsql_sym* MAKE_symbol(class dbb*, const TEXT*, USHORT, enum sym_type, class dsql_req*); -class str* MAKE_tagged_string(const char* str, size_t length, const char* charset); +class dsql_str* MAKE_tagged_string(const char* str, size_t length, const char* charset); dsql_nod* MAKE_trigger_type(dsql_nod*, dsql_nod*); dsql_nod* MAKE_variable(class dsql_fld*, const TEXT*, USHORT, USHORT, USHORT, USHORT); diff --git a/src/dsql/metd.epp b/src/dsql/metd.epp index 49cf4dbaee..a4336c1fe6 100644 --- a/src/dsql/metd.epp +++ b/src/dsql/metd.epp @@ -82,14 +82,15 @@ nested FOR loops are added. DATABASE DB = STATIC "yachts.lnk"; -static const UCHAR blr_bpb[] = { isc_bpb_version1, +static const UCHAR blr_bpb[] = { + isc_bpb_version1, isc_bpb_source_type, 1, BLOB_blr, isc_bpb_target_type, 1, BLOB_blr }; -static void check_array(DSQL_REQ, const SCHAR*, DSQL_FLD); -static void convert_dtype(DSQL_FLD, SSHORT); -static void free_function (udf*); +static void check_array(dsql_req*, const SCHAR*, dsql_fld*); +static void convert_dtype(dsql_fld*, SSHORT); +static void free_function (dsql_udf*); static void free_procedure(dsql_prc*); static void free_relation(dsql_rel*); static TEXT* metd_exact_name(TEXT*); @@ -124,7 +125,7 @@ static inline void metd_rec_unlock() } #endif -void METD_drop_function (DSQL_REQ request, const str* name) +void METD_drop_function (dsql_req* request, const dsql_str* name) { /************************************** * @@ -142,7 +143,7 @@ void METD_drop_function (DSQL_REQ request, const str* name) * accessing it. * **************************************/ - udf* userFunc; + dsql_udf* userFunc; dsql_sym* symbol; metd_rec_lock(); @@ -154,7 +155,7 @@ void METD_drop_function (DSQL_REQ request, const str* name) name->str_length, SYM_udf, 0); for (; symbol; symbol = symbol->sym_homonym) { if ((symbol->sym_type == SYM_udf) && - ((userFunc = (udf*) symbol->sym_object) && + ((userFunc = (dsql_udf*) symbol->sym_object) && (!(userFunc->udf_flags & UDF_dropped)))) { break; @@ -162,7 +163,7 @@ void METD_drop_function (DSQL_REQ request, const str* name) } if (symbol) { - userFunc = (udf*) symbol->sym_object; + userFunc = (dsql_udf*) symbol->sym_object; userFunc->udf_flags |= UDF_dropped; } @@ -176,7 +177,7 @@ void METD_drop_function (DSQL_REQ request, const str* name) } -void METD_drop_procedure( DSQL_REQ request, const str* name) +void METD_drop_procedure( dsql_req* request, const dsql_str* name) { /************************************** * @@ -223,7 +224,7 @@ void METD_drop_procedure( DSQL_REQ request, const str* name) } -void METD_drop_relation( DSQL_REQ request, const str* name) +void METD_drop_relation( dsql_req* request, const dsql_str* name) { /************************************** * @@ -271,7 +272,7 @@ void METD_drop_relation( DSQL_REQ request, const str* name) } -INTLSYM METD_get_collation(DSQL_REQ request, const str* name) +INTLSYM METD_get_collation(dsql_req* request, const dsql_str* name) { /************************************** * @@ -351,7 +352,7 @@ INTLSYM METD_get_collation(DSQL_REQ request, const str* name) } -void METD_get_col_default(DSQL_REQ request, +void METD_get_col_default(dsql_req* request, const char* for_rel_name, const char* for_col_name, bool* has_default, @@ -472,7 +473,7 @@ void METD_get_col_default(DSQL_REQ request, } -INTLSYM METD_get_charset(DSQL_REQ request, USHORT length, const char* name /* UTF-8 */) +INTLSYM METD_get_charset(dsql_req* request, USHORT length, const char* name /* UTF-8 */) { /************************************** * @@ -557,7 +558,7 @@ INTLSYM METD_get_charset(DSQL_REQ request, USHORT length, const char* name /* UT } -USHORT METD_get_charset_bpc (DSQL_REQ request, +USHORT METD_get_charset_bpc (dsql_req* request, SSHORT charset_id) { /************************************** @@ -615,7 +616,7 @@ USHORT METD_get_charset_bpc (DSQL_REQ request, return bpc; } -STR METD_get_default_charset(DSQL_REQ request) +dsql_str* METD_get_default_charset(dsql_req* request) { /************************************** * @@ -658,7 +659,7 @@ STR METD_get_default_charset(DSQL_REQ request) /* Terminate ASCIIZ string on first trailing blank */ metd_exact_name(DBB.RDB$CHARACTER_SET_NAME); length = strlen(DBB.RDB$CHARACTER_SET_NAME); - dbb->dbb_dfl_charset = FB_NEW_RPT(*dbb->dbb_pool, length) str; + dbb->dbb_dfl_charset = FB_NEW_RPT(*dbb->dbb_pool, length) dsql_str; dbb->dbb_dfl_charset->str_length = length; dbb->dbb_dfl_charset->str_charset = NULL; str_ = (UCHAR*) DBB.RDB$CHARACTER_SET_NAME; @@ -691,7 +692,7 @@ THREAD_EXIT; } -USHORT METD_get_domain(DSQL_REQ request, DSQL_FLD field, const char* name /* UTF-8 */) +USHORT METD_get_domain(dsql_req* request, dsql_fld* field, const char* name /* UTF-8 */) { /************************************** * @@ -753,7 +754,7 @@ USHORT METD_get_domain(DSQL_REQ request, DSQL_FLD field, const char* name /* UTF } -void METD_get_domain_default(DSQL_REQ request, +void METD_get_domain_default(dsql_req* request, const TEXT* domain_name, bool* has_default, TEXT* buffer, USHORT buff_length) @@ -856,7 +857,7 @@ void METD_get_domain_default(DSQL_REQ request, } -udf* METD_get_function(DSQL_REQ request, const str* name) +dsql_udf* METD_get_function(dsql_req* request, const dsql_str* name) { /************************************** * @@ -870,8 +871,8 @@ udf* METD_get_function(DSQL_REQ request, const str* name) * **************************************/ FRBRD *DB, *gds_trans; - udf* userFunc; - udf* temp; + dsql_udf* userFunc; + dsql_udf* temp; DSQL_NOD udf_param_node, *ptr; @@ -883,18 +884,18 @@ udf* METD_get_function(DSQL_REQ request, const str* name) reinterpret_cast(name->str_data), name->str_length, SYM_udf, 0); if (symbol && (symbol->sym_type == SYM_udf) && - ((userFunc = (udf*) symbol->sym_object) && + ((userFunc = (dsql_udf*) symbol->sym_object) && (!(userFunc->udf_flags & UDF_dropped)))) { metd_rec_unlock(); - return (udf*) symbol->sym_object; + return (dsql_udf*) symbol->sym_object; } /* This was the old code that didn't do the loop above to check for the flag. if (symbol) { metd_rec_unlock(); - return (udf*) symbol->sym_object; + return (dsql_udf*) symbol->sym_object; } */ @@ -904,7 +905,7 @@ udf* METD_get_function(DSQL_REQ request, const str* name) DB = dbb->dbb_database_handle; gds_trans = request->req_trans; userFunc = NULL; - DLLS stack = 0; + dsql_lls* stack = 0; USHORT return_arg; THREAD_EXIT; @@ -915,7 +916,7 @@ udf* METD_get_function(DSQL_REQ request, const str* name) THREAD_ENTER; - userFunc = FB_NEW_RPT(*dbb->dbb_pool, name->str_length) udf; + userFunc = FB_NEW_RPT(*dbb->dbb_pool, name->str_length) dsql_udf; /* Moved below as still can't say for sure it will be stored. Following the same logic for MET_get_procedure and MET_get_relation userFunc->udf_next = dbb->dbb_functions; @@ -941,7 +942,7 @@ udf* METD_get_function(DSQL_REQ request, const str* name) /* Note: The following two requests differ in the fields which are * new since ODS7 (DBB_v3 flag). One of the two requests - * here will be cached in dbb_requests [ird_func_return], + * here will be cached in dbb_requests[ird_func_return], * the one that is appropriate for the database we are * working against. */ @@ -1005,7 +1006,7 @@ udf* METD_get_function(DSQL_REQ request, const str* name) udf_param_node = FB_NEW_RPT(*dbb->dbb_pool, 0) dsql_nod; d = &udf_param_node->nod_desc; d->dsc_dtype = (X.RDB$FIELD_TYPE != blr_blob) ? - gds_cvt_blr_dtype [X.RDB$FIELD_TYPE] : dtype_blob; + gds_cvt_blr_dtype[X.RDB$FIELD_TYPE] : dtype_blob; d->dsc_scale = X.RDB$FIELD_SCALE; if (!X.RDB$FIELD_SUB_TYPE.NULL) { d->dsc_sub_type = X.RDB$FIELD_SUB_TYPE; @@ -1060,7 +1061,7 @@ udf* METD_get_function(DSQL_REQ request, const str* name) /* Can't call MAKE_list because it allocates an initial list node in the default pool. */ USHORT arg_count = 0; - for (DLLS stack_temp = stack; stack_temp; stack_temp = stack_temp->lls_next) + for (dsql_lls* stack_temp = stack; stack_temp; stack_temp = stack_temp->lls_next) { ++arg_count; } @@ -1086,14 +1087,14 @@ udf* METD_get_function(DSQL_REQ request, const str* name) for (; symbol; symbol = symbol->sym_homonym) { if ((symbol->sym_type == SYM_udf) && - ((temp = (udf*) symbol->sym_object) && + ((temp = (dsql_udf*) symbol->sym_object) && (!(temp->udf_flags & UDF_dropped)))) { /* Get rid of all the stuff we just read in. Use existing one */ free_function (userFunc); metd_rec_unlock(); - return (udf*) symbol->sym_object; + return (dsql_udf*) symbol->sym_object; } } @@ -1118,7 +1119,7 @@ udf* METD_get_function(DSQL_REQ request, const str* name) } -DSQL_NOD METD_get_primary_key(DSQL_REQ request, const str* relation_name) +DSQL_NOD METD_get_primary_key(dsql_req* request, const dsql_str* relation_name) { /************************************** * @@ -1157,7 +1158,7 @@ DSQL_NOD METD_get_primary_key(DSQL_REQ request, const str* relation_name) if (!list) list = MAKE_node(nod_list, (int) X.RDB$SEGMENT_COUNT); - str* field_name = MAKE_cstring(Y.RDB$FIELD_NAME); + dsql_str* field_name = MAKE_cstring(Y.RDB$FIELD_NAME); dsql_nod* field_node = MAKE_node(nod_field_name, (int) e_fln_count); field_node->nod_arg[e_fln_name] = (DSQL_NOD) field_name; list->nod_arg[count] = field_node; @@ -1175,7 +1176,7 @@ DSQL_NOD METD_get_primary_key(DSQL_REQ request, const str* relation_name) } -dsql_prc* METD_get_procedure(DSQL_REQ request, const str* name) +dsql_prc* METD_get_procedure(dsql_req* request, const dsql_str* name) { /************************************** * @@ -1191,7 +1192,8 @@ dsql_prc* METD_get_procedure(DSQL_REQ request, const str* name) **************************************/ FRBRD *DB, *gds_trans; DBB dbb; - DSQL_FLD parameter, *ptr; + dsql_fld* parameter; + dsql_fld** ptr; dsql_prc* procedure; dsql_prc* temp; SSHORT type, count; @@ -1369,7 +1371,7 @@ dsql_prc* METD_get_procedure(DSQL_REQ request, const str* name) } -dsql_rel* METD_get_relation(DSQL_REQ request, const str* name) +dsql_rel* METD_get_relation(dsql_req* request, const dsql_str* name) { /************************************** * @@ -1384,7 +1386,8 @@ dsql_rel* METD_get_relation(DSQL_REQ request, const str* name) **************************************/ FRBRD *DB, *gds_trans; DBB dbb; - DSQL_FLD field, *ptr; + dsql_fld* field; + dsql_fld** ptr; dsql_rel* relation; dsql_rel* temp; dsql_sym* symbol; @@ -1646,7 +1649,7 @@ dsql_rel* METD_get_relation(DSQL_REQ request, const str* name) } -STR METD_get_trigger_relation(DSQL_REQ request, const str* name, USHORT* trig_type) +dsql_str* METD_get_trigger_relation(dsql_req* request, const dsql_str* name, USHORT* trig_type) { /************************************** * @@ -1660,7 +1663,7 @@ STR METD_get_trigger_relation(DSQL_REQ request, const str* name, USHORT* trig_ty **************************************/ FRBRD *DB, *gds_trans; DBB dbb; - STR relation; + dsql_str* relation; dbb = request->req_dbb; DB = dbb->dbb_database_handle; @@ -1692,7 +1695,7 @@ STR METD_get_trigger_relation(DSQL_REQ request, const str* name, USHORT* trig_ty } -USHORT METD_get_type(DSQL_REQ request, const str* name, char* field, SSHORT* value) +USHORT METD_get_type(dsql_req* request, const dsql_str* name, char* field, SSHORT* value) { /************************************** * @@ -1737,7 +1740,7 @@ USHORT METD_get_type(DSQL_REQ request, const str* name, char* field, SSHORT* val } -dsql_rel* METD_get_view_relation(DSQL_REQ request, +dsql_rel* METD_get_view_relation(dsql_req* request, const char* view_name /* UTF-8 */, const char* relation_or_alias /* UTF-8 */, USHORT level) @@ -1774,7 +1777,7 @@ dsql_rel* METD_get_view_relation(DSQL_REQ request, if (!strcmp(X.RDB$RELATION_NAME, relation_or_alias) || !strcmp(X.RDB$CONTEXT_NAME, relation_or_alias)) { - STR relation_name = MAKE_string(X.RDB$RELATION_NAME, + dsql_str* relation_name = MAKE_string(X.RDB$RELATION_NAME, strlen(X.RDB$RELATION_NAME)); relation = METD_get_relation(request, relation_name); delete relation_name; @@ -1800,7 +1803,7 @@ dsql_rel* METD_get_view_relation(DSQL_REQ request, } -static void check_array( DSQL_REQ request, const TEXT* field_name, DSQL_FLD field) +static void check_array( dsql_req* request, const TEXT* field_name, dsql_fld* field) { /************************************** * @@ -1847,7 +1850,7 @@ static void check_array( DSQL_REQ request, const TEXT* field_name, DSQL_FLD fiel } -static void convert_dtype( DSQL_FLD field, SSHORT field_type) +static void convert_dtype( dsql_fld* field, SSHORT field_type) { /************************************** * @@ -1884,7 +1887,7 @@ static void convert_dtype( DSQL_FLD field, SSHORT field_type) } -static void free_function (udf* userFunc) +static void free_function (dsql_udf* userFunc) { /************************************** * @@ -1902,7 +1905,7 @@ static void free_function (udf* userFunc) if (userFunc->udf_arguments) { dsql_nod* args = userFunc->udf_arguments; for (USHORT arg_count = 0; arg_count < args->nod_count; ++arg_count) { - dsql_nod* udf_argument = args->nod_arg [arg_count]; + dsql_nod* udf_argument = args->nod_arg[arg_count]; delete udf_argument; } } @@ -1924,7 +1927,8 @@ static void free_procedure( dsql_prc* procedure) * Free memory allocated for a procedure block and params * **************************************/ - DSQL_FLD param, temp; + dsql_fld* param; + dsql_fld* temp; /* release the input & output parameter blocks */ @@ -1958,7 +1962,8 @@ static void free_relation( dsql_rel* relation) * Free memory allocated for a relation block and fields * **************************************/ - DSQL_FLD field, temp; + dsql_fld* field; + dsql_fld* temp; /* release the field blocks */ diff --git a/src/dsql/metd_proto.h b/src/dsql/metd_proto.h index cc23e5e1dc..31f9489f3d 100644 --- a/src/dsql/metd_proto.h +++ b/src/dsql/metd_proto.h @@ -32,26 +32,26 @@ // forward declarations class dsql_req; -class str; +class dsql_str; -void METD_drop_function(dsql_req*, const str*); -void METD_drop_procedure(dsql_req*, const str*); -void METD_drop_relation(dsql_req*, const str*); +void METD_drop_function(dsql_req*, const dsql_str*); +void METD_drop_procedure(dsql_req*, const dsql_str*); +void METD_drop_relation(dsql_req*, const dsql_str*); INTLSYM METD_get_charset(dsql_req*, USHORT, const char* name /* UTF-8 */); USHORT METD_get_charset_bpc(dsql_req*, SSHORT); -INTLSYM METD_get_collation(dsql_req*, const str*); -void METD_get_col_default(DSQL_REQ, const char*, const char*, bool*, TEXT*, USHORT); -STR METD_get_default_charset(dsql_req*); +INTLSYM METD_get_collation(dsql_req*, const dsql_str*); +void METD_get_col_default(dsql_req*, const char*, const char*, bool*, TEXT*, USHORT); +dsql_str* METD_get_default_charset(dsql_req*); USHORT METD_get_domain(dsql_req*, class dsql_fld*, const char* name /* UTF-8 */); void METD_get_domain_default(dsql_req*, const TEXT*, bool*, TEXT*, USHORT); -UDF METD_get_function(dsql_req*, const str*); -DSQL_NOD METD_get_primary_key(dsql_req*, const str*); -DSQL_PRC METD_get_procedure(dsql_req*, const str*); -DSQL_REL METD_get_relation(dsql_req*, const str*); -STR METD_get_trigger_relation(dsql_req*, const str*, USHORT*); -USHORT METD_get_type(dsql_req*, const str*, char*, SSHORT*); -DSQL_REL METD_get_view_relation(dsql_req* request, +dsql_udf* METD_get_function(dsql_req*, const dsql_str*); +DSQL_NOD METD_get_primary_key(dsql_req*, const dsql_str*); +dsql_prc* METD_get_procedure(dsql_req*, const dsql_str*); +dsql_rel* METD_get_relation(dsql_req*, const dsql_str*); +dsql_str* METD_get_trigger_relation(dsql_req*, const dsql_str*, USHORT*); +USHORT METD_get_type(dsql_req*, const dsql_str*, char*, SSHORT*); +dsql_rel* METD_get_view_relation(dsql_req* request, const char* view_name /* UTF-8 */, const char* relation_or_alias /* UTF-8 */, USHORT level); diff --git a/src/dsql/parse.cpp b/src/dsql/parse.cpp index 6f32fcd167..024cf6d6ef 100644 --- a/src/dsql/parse.cpp +++ b/src/dsql/parse.cpp @@ -1,13 +1,275 @@ -#ifndef lint -static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"; -#endif -#define YYBYACC 1 -#define YYMAJOR 1 -#define YYMINOR 9 -#define yyclearin (DSQL_yychar=(-1)) -#define yyerrok (DSQL_yyerrflag=0) -#define YYRECOVERING (DSQL_yyerrflag!=0) -#define YYPREFIX "yy" +/* A Bison parser, made from F:\fb2dev\fbbuild\firebird2\src\dsql\parse.y + by GNU bison 1.35. */ + +#define YYBISON 1 /* Identify Bison output. */ + +# define ACTIVE 257 +# define ADD 258 +# define AFTER 259 +# define ALL 260 +# define ALTER 261 +# define AND 262 +# define ANY 263 +# define AS 264 +# define ASC 265 +# define AT 266 +# define AVG 267 +# define AUTO 268 +# define BASENAME 269 +# define BEFORE 270 +# define BEGIN 271 +# define BETWEEN 272 +# define BLOB 273 +# define BY 274 +# define CACHE 275 +# define CAST 276 +# define CHARACTER 277 +# define CHECK 278 +# define CHECK_POINT_LEN 279 +# define COLLATE 280 +# define COMMA 281 +# define COMMIT 282 +# define COMMITTED 283 +# define COMPUTED 284 +# define CONCATENATE 285 +# define CONDITIONAL 286 +# define CONSTRAINT 287 +# define CONTAINING 288 +# define COUNT 289 +# define CREATE 290 +# define CSTRING 291 +# define CURRENT 292 +# define CURSOR 293 +# define DATABASE 294 +# define DATE 295 +# define DB_KEY 296 +# define KW_DEBUG 297 +# define DECIMAL 298 +# define DECLARE 299 +# define DEFAULT 300 +# define KW_DELETE 301 +# define DESC 302 +# define DISTINCT 303 +# define DO 304 +# define DOMAIN 305 +# define DROP 306 +# define ELSE 307 +# define END 308 +# define ENTRY_POINT 309 +# define EQL 310 +# define ESCAPE 311 +# define EXCEPTION 312 +# define EXECUTE 313 +# define EXISTS 314 +# define EXIT 315 +# define EXTERNAL 316 +# define FILTER 317 +# define FOR 318 +# define FOREIGN 319 +# define FROM 320 +# define FULL 321 +# define FUNCTION 322 +# define GDSCODE 323 +# define GEQ 324 +# define GENERATOR 325 +# define GEN_ID 326 +# define GRANT 327 +# define GROUP 328 +# define GROUP_COMMIT_WAIT 329 +# define GTR 330 +# define HAVING 331 +# define IF 332 +# define KW_IN 333 +# define INACTIVE 334 +# define INNER 335 +# define INPUT_TYPE 336 +# define INDEX 337 +# define INSERT 338 +# define INTEGER 339 +# define INTO 340 +# define IS 341 +# define ISOLATION 342 +# define JOIN 343 +# define KEY 344 +# define KW_CHAR 345 +# define KW_DEC 346 +# define KW_DOUBLE 347 +# define KW_FILE 348 +# define KW_FLOAT 349 +# define KW_INT 350 +# define KW_LONG 351 +# define KW_NULL 352 +# define KW_NUMERIC 353 +# define KW_UPPER 354 +# define KW_VALUE 355 +# define LENGTH 356 +# define LOGFILE 357 +# define LPAREN 358 +# define LEFT 359 +# define LEQ 360 +# define LEVEL 361 +# define LIKE 362 +# define LOG_BUF_SIZE 363 +# define LSS 364 +# define MANUAL 365 +# define MAXIMUM 366 +# define MAX_SEGMENT 367 +# define MERGE 368 +# define MESSAGE 369 +# define MINIMUM 370 +# define MODULE_NAME 371 +# define NAMES 372 +# define NATIONAL 373 +# define NATURAL 374 +# define NCHAR 375 +# define NEQ 376 +# define NO 377 +# define NOT 378 +# define NOT_GTR 379 +# define NOT_LSS 380 +# define NUM_LOG_BUFS 381 +# define OF 382 +# define ON 383 +# define ONLY 384 +# define OPTION 385 +# define OR 386 +# define ORDER 387 +# define OUTER 388 +# define OUTPUT_TYPE 389 +# define OVERFLOW 390 +# define PAGE 391 +# define PAGES 392 +# define PAGE_SIZE 393 +# define PARAMETER 394 +# define PASSWORD 395 +# define PLAN 396 +# define POSITION 397 +# define POST_EVENT 398 +# define PRECISION 399 +# define PRIMARY 400 +# define PRIVILEGES 401 +# define PROCEDURE 402 +# define PROTECTED 403 +# define RAW_PARTITIONS 404 +# define READ 405 +# define REAL 406 +# define REFERENCES 407 +# define RESERVING 408 +# define RETAIN 409 +# define RETURNING_VALUES 410 +# define RETURNS 411 +# define REVOKE 412 +# define RIGHT 413 +# define RPAREN 414 +# define ROLLBACK 415 +# define SEGMENT 416 +# define SELECT 417 +# define SET 418 +# define SHADOW 419 +# define KW_SHARED 420 +# define SINGULAR 421 +# define KW_SIZE 422 +# define SMALLINT 423 +# define SNAPSHOT 424 +# define SOME 425 +# define SORT 426 +# define SQLCODE 427 +# define STABILITY 428 +# define STARTING 429 +# define STATISTICS 430 +# define SUB_TYPE 431 +# define SUSPEND 432 +# define SUM 433 +# define TABLE 434 +# define THEN 435 +# define TO 436 +# define TRANSACTION 437 +# define TRIGGER 438 +# define UNCOMMITTED 439 +# define UNION 440 +# define UNIQUE 441 +# define UPDATE 442 +# define USER 443 +# define VALUES 444 +# define VARCHAR 445 +# define VARIABLE 446 +# define VARYING 447 +# define VERSION 448 +# define VIEW 449 +# define WAIT 450 +# define WHEN 451 +# define WHERE 452 +# define WHILE 453 +# define WITH 454 +# define WORK 455 +# define WRITE 456 +# define FLOAT_NUMBER 457 +# define NUMBER 458 +# define NUMERIC 459 +# define SYMBOL 460 +# define STRING 461 +# define INTRODUCER 462 +# define ACTION 463 +# define ADMIN 464 +# define CASCADE 465 +# define FREE_IT 466 +# define RESTRICT 467 +# define ROLE 468 +# define COLUMN 469 +# define TYPE 470 +# define EXTRACT 471 +# define YEAR 472 +# define MONTH 473 +# define DAY 474 +# define HOUR 475 +# define MINUTE 476 +# define SECOND 477 +# define WEEKDAY 478 +# define YEARDAY 479 +# define TIME 480 +# define TIMESTAMP 481 +# define CURRENT_DATE 482 +# define CURRENT_TIME 483 +# define CURRENT_TIMESTAMP 484 +# define NUMBER64BIT 485 +# define SCALEDINT 486 +# define CURRENT_USER 487 +# define CURRENT_ROLE 488 +# define KW_BREAK 489 +# define SUBSTRING 490 +# define RECREATE 491 +# define KW_DESCRIPTOR 492 +# define FIRST 493 +# define SKIP 494 +# define CURRENT_CONNECTION 495 +# define CURRENT_TRANSACTION 496 +# define BIGINT 497 +# define CASE 498 +# define NULLIF 499 +# define COALESCE 500 +# define USING 501 +# define NULLS 502 +# define LAST 503 +# define ROW_COUNT 504 +# define LOCK 505 +# define SAVEPOINT 506 +# define RELEASE 507 +# define STATEMENT 508 +# define LEAVE 509 +# define INSERTING 510 +# define UPDATING 511 +# define DELETING 512 +# define KW_INSERTING 513 +# define KW_UPDATING 514 +# define KW_DELETING 515 +# define BACKUP 516 +# define KW_DIFFERENCE 517 +# define OPEN 518 +# define CLOSE 519 +# define FETCH 520 +# define ROWS 521 + + /* * PROGRAM: Dynamic SQL runtime support * MODULE: parse.y @@ -110,7 +372,7 @@ static char yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93"; #include "../wal/wal.h" #include "../jrd/err_proto.h" -static void yyerror (TEXT *); +static void yyerror(const TEXT*); /* since UNIX isn't standard, we have to define stuff which is in (which isn't available @@ -136,8 +398,8 @@ const int DEF_CACHE_BUFFERS = 1000; #define YYDEBUG 1 #endif -static const char INTERNAL_FIELD_NAME [] = "DSQL internal"; /* NTX: placeholder */ -static const char NULL_STRING [] = ""; +static const char INTERNAL_FIELD_NAME[] = "DSQL internal"; /* NTX: placeholder */ +static const char NULL_STRING[] = ""; inline SLONG trigger_type_suffix(const int slot1, const int slot2, const int slot3) { @@ -145,9 +407,9 @@ inline SLONG trigger_type_suffix(const int slot1, const int slot2, const int slo } -DSQL_NOD DSQL_parse; +dsql_nod* DSQL_parse; -static void yyerror (TEXT *); +//static void yyerror(const TEXT*); redeclaration. #define YYPARSE_PARAM_TYPE #define YYPARSE_PARAM USHORT client_dialect, USHORT db_dialect, USHORT parser_version, BOOLEAN *stmt_ambiguous @@ -160,8 +422,8 @@ static TEXT *lex_position (void); #ifdef NOT_USED_OR_REPLACED static bool long_int(DSQL_NOD, SLONG *); #endif -static DSQL_FLD make_field (DSQL_NOD); -static FIL make_file (void); +static dsql_fld* make_field (DSQL_NOD); +static dsql_fil* make_file (void); static DSQL_NOD make_list (DSQL_NOD); static DSQL_NOD make_node (NOD_TYPE, int, ...); static DSQL_NOD make_parameter (void); @@ -170,8 +432,8 @@ static void prepare_console_debug (int, int *); #ifdef NOT_USED_OR_REPLACED static bool short_int(DSQL_NOD, SLONG *, SSHORT); #endif -static void stack_nodes (DSQL_NOD, DLLS *); -inline static int yylex (USHORT, USHORT, USHORT, BOOLEAN *); +static void stack_nodes (DSQL_NOD, dsql_lls**); +inline static int yylex (USHORT, USHORT, USHORT, BOOLEAN*); static void yyabandon (SSHORT, ISC_STATUS); static void check_log_file_attrs (void); @@ -189,8 +451,8 @@ inline void check_copy_incr(char*& to, const char ch, const char* const string) struct LexerState { /* This is, in fact, parser state. Not used in lexer itself */ - DSQL_FLD g_field; - FIL g_file; + dsql_fld* g_field; + dsql_fil* g_file; DSQL_NOD g_field_name; SSHORT log_defined, cache_defined; int dsql_debug; @@ -213,4948 +475,6597 @@ struct LexerState { USHORT client_dialect, USHORT db_dialect, USHORT parser_version, - BOOLEAN *stmt_ambiguous); + BOOLEAN* stmt_ambiguous); }; /* Get ready for thread-safety. Move this to BISON object pointer when we switch to generating "pure" reenterant parser. */ static LexerState lex; -#define ACTIVE 257 -#define ADD 258 -#define AFTER 259 -#define ALL 260 -#define ALTER 261 -#define AND 262 -#define ANY 263 -#define AS 264 -#define ASC 265 -#define AT 266 -#define AVG 267 -#define AUTO 268 -#define BASENAME 269 -#define BEFORE 270 -#define BEGIN 271 -#define BETWEEN 272 -#define BLOB 273 -#define BY 274 -#define CACHE 275 -#define CAST 276 -#define CHARACTER 277 -#define CHECK 278 -#define CHECK_POINT_LEN 279 -#define COLLATE 280 -#define COMMA 281 -#define COMMIT 282 -#define COMMITTED 283 -#define COMPUTED 284 -#define CONCATENATE 285 -#define CONDITIONAL 286 -#define CONSTRAINT 287 -#define CONTAINING 288 -#define COUNT 289 -#define CREATE 290 -#define CSTRING 291 -#define CURRENT 292 -#define CURSOR 293 -#define DATABASE 294 -#define DATE 295 -#define DB_KEY 296 -#define KW_DEBUG 297 -#define DECIMAL 298 -#define DECLARE 299 -#define DEFAULT 300 -#define KW_DELETE 301 -#define DESC 302 -#define DISTINCT 303 -#define DO 304 -#define DOMAIN 305 -#define DROP 306 -#define ELSE 307 -#define END 308 -#define ENTRY_POINT 309 -#define EQL 310 -#define ESCAPE 311 -#define EXCEPTION 312 -#define EXECUTE 313 -#define EXISTS 314 -#define EXIT 315 -#define EXTERNAL 316 -#define FILTER 317 -#define FOR 318 -#define FOREIGN 319 -#define FROM 320 -#define FULL 321 -#define FUNCTION 322 -#define GDSCODE 323 -#define GEQ 324 -#define GENERATOR 325 -#define GEN_ID 326 -#define GRANT 327 -#define GROUP 328 -#define GROUP_COMMIT_WAIT 329 -#define GTR 330 -#define HAVING 331 -#define IF 332 -#define KW_IN 333 -#define INACTIVE 334 -#define INNER 335 -#define INPUT_TYPE 336 -#define INDEX 337 -#define INSERT 338 -#define INTEGER 339 -#define INTO 340 -#define IS 341 -#define ISOLATION 342 -#define JOIN 343 -#define KEY 344 -#define KW_CHAR 345 -#define KW_DEC 346 -#define KW_DOUBLE 347 -#define KW_FILE 348 -#define KW_FLOAT 349 -#define KW_INT 350 -#define KW_LONG 351 -#define KW_NULL 352 -#define KW_NUMERIC 353 -#define KW_UPPER 354 -#define KW_VALUE 355 -#define LENGTH 356 -#define LOGFILE 357 -#define LPAREN 358 -#define LEFT 359 -#define LEQ 360 -#define LEVEL 361 -#define LIKE 362 -#define LOG_BUF_SIZE 363 -#define LSS 364 -#define MANUAL 365 -#define MAXIMUM 366 -#define MAX_SEGMENT 367 -#define MERGE 368 -#define MESSAGE 369 -#define MINIMUM 370 -#define MODULE_NAME 371 -#define NAMES 372 -#define NATIONAL 373 -#define NATURAL 374 -#define NCHAR 375 -#define NEQ 376 -#define NO 377 -#define NOT 378 -#define NOT_GTR 379 -#define NOT_LSS 380 -#define NUM_LOG_BUFS 381 -#define OF 382 -#define ON 383 -#define ONLY 384 -#define OPTION 385 -#define OR 386 -#define ORDER 387 -#define OUTER 388 -#define OUTPUT_TYPE 389 -#define OVERFLOW 390 -#define PAGE 391 -#define PAGES 392 -#define PAGE_SIZE 393 -#define PARAMETER 394 -#define PASSWORD 395 -#define PLAN 396 -#define POSITION 397 -#define POST_EVENT 398 -#define PRECISION 399 -#define PRIMARY 400 -#define PRIVILEGES 401 -#define PROCEDURE 402 -#define PROTECTED 403 -#define RAW_PARTITIONS 404 -#define READ 405 -#define REAL 406 -#define REFERENCES 407 -#define RESERVING 408 -#define RETAIN 409 -#define RETURNING_VALUES 410 -#define RETURNS 411 -#define REVOKE 412 -#define RIGHT 413 -#define RPAREN 414 -#define ROLLBACK 415 -#define SEGMENT 416 -#define SELECT 417 -#define SET 418 -#define SHADOW 419 -#define KW_SHARED 420 -#define SINGULAR 421 -#define KW_SIZE 422 -#define SMALLINT 423 -#define SNAPSHOT 424 -#define SOME 425 -#define SORT 426 -#define SQLCODE 427 -#define STABILITY 428 -#define STARTING 429 -#define STATISTICS 430 -#define SUB_TYPE 431 -#define SUSPEND 432 -#define SUM 433 -#define TABLE 434 -#define THEN 435 -#define TO 436 -#define TRANSACTION 437 -#define TRIGGER 438 -#define UNCOMMITTED 439 -#define UNION 440 -#define UNIQUE 441 -#define UPDATE 442 -#define USER 443 -#define VALUES 444 -#define VARCHAR 445 -#define VARIABLE 446 -#define VARYING 447 -#define VERSION 448 -#define VIEW 449 -#define WAIT 450 -#define WHEN 451 -#define WHERE 452 -#define WHILE 453 -#define WITH 454 -#define WORK 455 -#define WRITE 456 -#define FLOAT_NUMBER 457 -#define NUMBER 458 -#define NUMERIC 459 -#define SYMBOL 460 -#define STRING 461 -#define INTRODUCER 462 -#define ACTION 463 -#define ADMIN 464 -#define CASCADE 465 -#define FREE_IT 466 -#define RESTRICT 467 -#define ROLE 468 -#define COLUMN 469 -#define TYPE 470 -#define EXTRACT 471 -#define YEAR 472 -#define MONTH 473 -#define DAY 474 -#define HOUR 475 -#define MINUTE 476 -#define SECOND 477 -#define WEEKDAY 478 -#define YEARDAY 479 -#define TIME 480 -#define TIMESTAMP 481 -#define CURRENT_DATE 482 -#define CURRENT_TIME 483 -#define CURRENT_TIMESTAMP 484 -#define NUMBER64BIT 485 -#define SCALEDINT 486 -#define CURRENT_USER 487 -#define CURRENT_ROLE 488 -#define KW_BREAK 489 -#define SUBSTRING 490 -#define RECREATE 491 -#define KW_DESCRIPTOR 492 -#define FIRST 493 -#define SKIP 494 -#define CURRENT_CONNECTION 495 -#define CURRENT_TRANSACTION 496 -#define BIGINT 497 -#define CASE 498 -#define NULLIF 499 -#define COALESCE 500 -#define USING 501 -#define NULLS 502 -#define LAST 503 -#define ROW_COUNT 504 -#define LOCK 505 -#define SAVEPOINT 506 -#define RELEASE 507 -#define STATEMENT 508 -#define LEAVE 509 -#define INSERTING 510 -#define UPDATING 511 -#define DELETING 512 -#define KW_INSERTING 513 -#define KW_UPDATING 514 -#define KW_DELETING 515 -#define BACKUP 516 -#define KW_DIFFERENCE 517 -#define OPEN 518 -#define CLOSE 519 -#define FETCH 520 -#define ROWS 521 -#define YYERRCODE 256 -static short yylhs[] = { -1, - 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 9, 9, 9, 9, 9, 22, 22, 21, 21, - 21, 32, 32, 25, 33, 33, 33, 33, 33, 24, - 24, 30, 30, 26, 14, 14, 14, 14, 14, 14, - 14, 36, 27, 27, 27, 27, 37, 37, 37, 37, - 23, 23, 38, 38, 38, 28, 28, 43, 29, 29, - 44, 44, 6, 45, 45, 47, 52, 52, 52, 49, - 49, 49, 56, 56, 57, 57, 50, 50, 59, 59, - 59, 59, 59, 46, 5, 62, 62, 62, 62, 62, - 62, 62, 62, 62, 62, 62, 12, 77, 77, 77, - 13, 81, 81, 64, 64, 67, 67, 67, 75, 90, - 90, 90, 91, 91, 92, 92, 93, 93, 97, 97, - 74, 100, 100, 102, 102, 103, 103, 106, 106, 107, - 108, 108, 109, 110, 72, 76, 73, 94, 94, 113, - 114, 114, 116, 116, 117, 117, 117, 117, 117, 115, - 115, 118, 118, 119, 119, 119, 119, 119, 121, 121, - 121, 121, 120, 120, 125, 125, 124, 98, 126, 126, - 127, 130, 131, 131, 132, 128, 129, 129, 133, 133, - 134, 134, 135, 135, 135, 96, 96, 96, 69, 79, - 136, 136, 136, 137, 137, 138, 138, 139, 139, 139, - 145, 86, 86, 141, 141, 104, 104, 99, 149, 150, - 58, 142, 142, 105, 105, 105, 105, 105, 105, 143, - 143, 157, 157, 158, 160, 160, 160, 160, 160, 140, - 159, 159, 164, 164, 164, 164, 166, 167, 168, 162, - 162, 163, 161, 161, 161, 161, 161, 169, 170, 171, - 171, 171, 171, 68, 78, 82, 176, 172, 172, 173, - 173, 177, 177, 178, 174, 174, 179, 179, 180, 182, - 182, 183, 181, 181, 185, 185, 184, 188, 188, 175, - 190, 190, 190, 191, 191, 189, 189, 189, 189, 189, - 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, - 189, 189, 189, 189, 194, 194, 195, 196, 197, 209, - 209, 198, 203, 204, 199, 199, 200, 213, 201, 214, - 207, 207, 207, 208, 208, 208, 211, 211, 211, 211, - 202, 210, 210, 205, 205, 205, 212, 212, 192, 192, - 219, 220, 220, 221, 221, 221, 221, 206, 206, 206, - 223, 225, 224, 226, 11, 71, 80, 227, 230, 230, - 230, 231, 234, 238, 238, 239, 239, 240, 240, 147, - 229, 87, 89, 228, 228, 70, 83, 243, 243, 243, - 244, 247, 247, 248, 248, 248, 248, 248, 248, 248, - 248, 248, 248, 248, 248, 248, 248, 248, 245, 245, - 246, 2, 250, 250, 250, 250, 250, 250, 250, 258, - 259, 256, 256, 260, 260, 260, 260, 260, 260, 260, - 251, 251, 261, 261, 261, 261, 261, 261, 261, 255, - 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, - 266, 266, 266, 266, 266, 266, 266, 266, 266, 266, - 266, 266, 266, 266, 266, 266, 266, 263, 263, 265, - 265, 264, 262, 262, 262, 257, 257, 253, 254, 254, - 268, 268, 268, 268, 268, 268, 268, 268, 269, 269, - 252, 270, 270, 271, 271, 8, 272, 272, 272, 272, - 272, 272, 272, 272, 272, 272, 272, 272, 101, 101, - 144, 144, 275, 275, 278, 278, 280, 280, 53, 53, - 277, 277, 277, 277, 277, 277, 277, 277, 277, 285, - 285, 276, 276, 276, 276, 286, 286, 61, 61, 61, - 55, 55, 282, 282, 282, 279, 279, 279, 290, 290, - 290, 289, 289, 288, 288, 288, 283, 283, 291, 291, - 291, 292, 292, 284, 284, 284, 284, 293, 293, 18, - 18, 18, 295, 295, 295, 16, 16, 16, 297, 298, - 301, 301, 299, 303, 303, 4, 15, 302, 302, 304, - 304, 305, 305, 294, 306, 306, 307, 307, 308, 308, - 308, 308, 309, 309, 310, 310, 311, 311, 313, 313, - 313, 314, 314, 314, 315, 315, 315, 312, 317, 317, - 317, 318, 318, 316, 316, 319, 321, 321, 320, 320, - 296, 17, 322, 322, 322, 323, 323, 328, 328, 329, - 65, 65, 65, 331, 331, 330, 330, 324, 324, 324, - 325, 325, 334, 334, 326, 326, 327, 187, 338, 339, - 332, 333, 335, 335, 335, 335, 340, 340, 340, 341, - 341, 341, 232, 232, 233, 233, 344, 344, 345, 345, - 347, 347, 336, 349, 349, 350, 350, 350, 353, 354, - 354, 355, 355, 357, 357, 351, 351, 352, 352, 358, - 358, 241, 241, 31, 242, 242, 242, 242, 242, 242, - 242, 242, 236, 236, 359, 359, 360, 237, 237, 235, - 235, 337, 337, 361, 362, 362, 362, 362, 362, 363, - 363, 364, 364, 365, 365, 366, 366, 366, 367, 367, - 368, 368, 10, 10, 7, 7, 370, 371, 372, 19, - 19, 373, 374, 375, 375, 193, 346, 346, 216, 216, - 3, 3, 377, 377, 377, 379, 379, 61, 378, 378, - 380, 380, 34, 34, 85, 84, 84, 369, 369, 381, - 382, 382, 217, 217, 217, 146, 376, 376, 111, 111, - 111, 111, 111, 386, 386, 386, 386, 386, 386, 385, - 385, 385, 388, 388, 388, 388, 388, 388, 388, 388, - 388, 388, 389, 389, 389, 389, 389, 389, 389, 389, - 394, 394, 394, 394, 394, 394, 394, 394, 394, 394, - 394, 394, 394, 394, 394, 394, 400, 400, 390, 390, - 391, 391, 391, 391, 392, 392, 396, 396, 397, 397, - 397, 397, 395, 398, 393, 393, 384, 384, 384, 387, - 387, 387, 401, 401, 402, 399, 404, 88, 88, 88, - 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, - 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, - 88, 88, 88, 156, 156, 156, 405, 403, 403, 151, - 151, 411, 411, 411, 411, 411, 407, 407, 407, 407, - 407, 342, 152, 152, 153, 154, 154, 154, 154, 154, - 51, 51, 20, 20, 249, 412, 54, 123, 281, 281, - 95, 406, 406, 406, 406, 413, 413, 413, 413, 413, - 413, 413, 413, 413, 413, 413, 414, 415, 417, 416, - 416, 419, 420, 420, 410, 410, 408, 409, 409, 421, - 421, 422, 422, 423, 423, 426, 426, 424, 424, 429, - 429, 428, 425, 427, 418, 418, 418, 418, 418, 418, - 418, 418, 343, 343, 155, 48, 287, 122, 148, 383, - 165, 186, 274, 63, 60, 222, 112, 66, 348, 218, - 35, 41, 356, 273, 39, 42, 215, 40, 300, 267, - 267, 430, 430, 430, 430, 430, 430, 430, 430, 430, - 430, 430, 430, 430, 430, 430, 430, -}; -static short yylen[] = { 2, - 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 2, 7, 8, 6, 7, 5, 1, 2, 1, 2, - 1, 1, 3, 1, 1, 1, 1, 2, 2, 3, - 0, 3, 0, 1, 7, 8, 6, 7, 6, 7, - 4, 3, 1, 3, 3, 3, 2, 2, 2, 2, - 1, 3, 1, 2, 2, 1, 3, 1, 1, 3, - 1, 2, 2, 2, 3, 8, 1, 1, 5, 0, - 1, 3, 1, 3, 2, 4, 1, 3, 2, 3, - 4, 4, 2, 9, 2, 3, 7, 2, 2, 2, - 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, - 4, 2, 2, 1, 0, 1, 1, 6, 6, 1, - 1, 0, 0, 1, 0, 4, 0, 1, 1, 2, - 8, 1, 0, 3, 0, 0, 1, 1, 2, 1, - 1, 1, 2, 6, 1, 1, 3, 0, 1, 1, - 0, 1, 1, 2, 3, 4, 2, 2, 3, 0, - 1, 1, 2, 1, 1, 1, 4, 3, 3, 3, - 3, 3, 1, 1, 6, 3, 1, 3, 1, 3, - 2, 1, 0, 2, 3, 1, 0, 1, 1, 2, - 3, 4, 0, 1, 2, 0, 1, 1, 5, 5, - 3, 2, 0, 1, 3, 1, 1, 6, 3, 2, - 6, 2, 1, 2, 2, 2, 0, 1, 1, 2, - 0, 2, 0, 1, 1, 1, 1, 1, 1, 0, - 1, 1, 2, 2, 2, 5, 1, 2, 3, 2, - 2, 0, 1, 1, 1, 1, 3, 4, 8, 4, - 0, 6, 1, 1, 2, 2, 0, 3, 3, 1, - 2, 2, 2, 8, 8, 8, 8, 3, 0, 2, - 0, 1, 3, 2, 1, 0, 1, 2, 4, 1, - 1, 3, 1, 0, 2, 1, 6, 1, 1, 3, - 1, 2, 0, 1, 2, 2, 2, 1, 1, 1, - 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, - 2, 2, 1, 2, 3, 4, 2, 6, 4, 1, - 1, 8, 9, 6, 8, 6, 4, 0, 4, 2, - 1, 3, 0, 2, 4, 0, 1, 1, 3, 3, - 7, 2, 0, 2, 2, 3, 3, 0, 1, 2, - 4, 1, 3, 2, 2, 2, 1, 1, 1, 1, - 2, 2, 5, 0, 4, 7, 7, 1, 1, 3, - 4, 7, 2, 1, 3, 1, 1, 6, 3, 0, - 0, 0, 0, 3, 0, 9, 9, 1, 1, 0, - 2, 1, 1, 1, 1, 1, 3, 3, 3, 3, - 3, 3, 5, 5, 5, 5, 5, 5, 2, 0, - 4, 2, 3, 3, 2, 2, 3, 3, 2, 3, - 6, 1, 2, 4, 3, 2, 2, 2, 2, 3, - 1, 3, 3, 3, 2, 2, 4, 4, 5, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, - 2, 1, 1, 1, 0, 2, 2, 0, 1, 2, - 2, 2, 2, 2, 4, 3, 2, 2, 1, 3, - 7, 1, 0, 1, 0, 2, 2, 2, 2, 2, - 2, 2, 2, 2, 3, 2, 2, 2, 1, 1, - 1, 1, 4, 5, 1, 3, 1, 3, 1, 2, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 4, 4, 6, 5, 3, 0, 2, 2, 0, - 3, 0, 4, 1, 5, 4, 1, 4, 1, 2, - 2, 1, 1, 1, 2, 2, 2, 2, 0, 3, - 5, 1, 1, 2, 3, 1, 2, 3, 0, 1, - 1, 1, 5, 5, 6, 1, 1, 1, 2, 4, - 1, 0, 5, 1, 0, 3, 2, 1, 0, 2, - 0, 1, 0, 3, 1, 0, 1, 2, 1, 1, - 1, 1, 2, 2, 1, 2, 3, 1, 1, 3, - 3, 1, 2, 3, 1, 2, 0, 2, 1, 1, - 0, 1, 1, 1, 3, 2, 3, 0, 1, 3, - 4, 5, 1, 3, 4, 3, 0, 1, 3, 3, - 1, 1, 0, 1, 1, 4, 0, 2, 4, 0, - 3, 0, 2, 0, 2, 0, 9, 11, 0, 0, - 0, 0, 3, 2, 1, 0, 3, 5, 3, 2, - 5, 2, 1, 1, 1, 1, 1, 3, 1, 3, - 1, 0, 2, 1, 3, 1, 1, 1, 6, 1, - 0, 3, 0, 1, 3, 6, 3, 4, 2, 3, - 0, 1, 2, 1, 1, 1, 2, 1, 2, 1, - 2, 0, 3, 0, 1, 3, 1, 2, 0, 2, - 0, 2, 0, 4, 1, 2, 1, 1, 0, 1, - 3, 2, 1, 1, 2, 1, 4, 3, 1, 3, - 4, 0, 8, 5, 1, 1, 4, 4, 4, 1, - 1, 5, 5, 1, 3, 3, 1, 1, 1, 3, - 7, 7, 5, 3, 0, 1, 1, 1, 2, 0, - 1, 1, 1, 0, 3, 1, 3, 1, 0, 3, - 1, 3, 1, 3, 3, 1, 1, 3, 1, 2, - 1, 3, 3, 1, 2, 3, 3, 3, 3, 1, - 3, 2, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 3, 3, 3, 3, 3, 3, 3, 3, - 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, - 6, 6, 6, 6, 6, 6, 1, 1, 5, 6, - 3, 4, 5, 6, 3, 4, 3, 4, 3, 4, - 4, 5, 4, 4, 3, 4, 1, 1, 1, 1, - 1, 1, 1, 3, 3, 11, 11, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 2, 2, 3, 3, - 3, 3, 3, 3, 3, 3, 1, 1, 1, 1, - 3, 1, 1, 1, 1, 1, 4, 1, 3, 1, - 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, - 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, - 1, 1, 1, 1, 1, 4, 5, 5, 5, 5, - 5, 5, 5, 5, 5, 5, 6, 1, 6, 1, - 4, 7, 2, 0, 4, 3, 6, 1, 1, 6, - 6, 1, 1, 4, 6, 4, 5, 3, 5, 4, - 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, - 1, 1, 1, 1, 1, 1, 1, -}; -static short yydefred[] = { 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 3, 4, 5, 6, 7, 8, 9, 10, 11, - 12, 13, 14, 15, 16, 17, 18, 19, 20, 570, - 571, 572, 576, 577, 578, 0, 633, 745, 746, 750, - 751, 478, 0, 0, 0, 0, 0, 0, 412, 588, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 114, 0, 0, 95, 0, 925, 0, 21, 923, 0, - 0, 73, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 496, 0, 0, 37, 34, - 36, 0, 35, 0, 1010, 1012, 1014, 1013, 1019, 1015, - 1022, 1020, 1016, 1018, 1021, 1017, 1023, 1024, 1025, 1026, - 1027, 0, 0, 0, 0, 32, 68, 66, 1002, 1011, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 665, 0, 0, 0, 702, 0, 1004, - 0, 0, 0, 0, 107, 1009, 579, 0, 2, 0, - 0, 0, 0, 442, 443, 444, 445, 446, 447, 448, - 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, - 459, 460, 461, 462, 463, 464, 465, 466, 467, 0, - 440, 441, 0, 994, 0, 419, 998, 0, 416, 1001, - 0, 704, 0, 415, 1005, 0, 586, 921, 0, 150, - 103, 0, 104, 0, 218, 990, 786, 0, 102, 145, - 997, 0, 0, 98, 0, 105, 927, 0, 99, 0, - 100, 0, 101, 1008, 146, 106, 641, 642, 0, 926, - 924, 0, 74, 0, 995, 0, 993, 504, 497, 0, - 503, 508, 498, 499, 506, 500, 501, 502, 507, 0, - 30, 0, 39, 773, 38, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 931, 0, 912, 659, 659, 660, 670, 672, 983, 673, - 0, 674, 664, 660, 0, 0, 0, 0, 0, 0, - 0, 605, 594, 0, 597, 599, 600, 601, 602, 608, - 609, 0, 1003, 703, 0, 108, 0, 109, 0, 110, - 0, 0, 0, 634, 0, 0, 0, 0, 0, 0, - 0, 0, 479, 0, 0, 382, 0, 221, 0, 422, - 413, 476, 477, 0, 0, 0, 0, 0, 0, 431, - 0, 388, 389, 0, 592, 590, 922, 0, 0, 0, - 0, 0, 0, 0, 153, 132, 0, 96, 0, 0, - 111, 0, 121, 120, 0, 0, 0, 0, 0, 0, - 986, 75, 0, 0, 0, 747, 748, 505, 0, 0, - 0, 0, 890, 918, 0, 985, 0, 892, 0, 0, - 919, 0, 913, 904, 903, 902, 0, 0, 0, 0, - 894, 895, 896, 905, 906, 914, 915, 0, 916, 917, - 0, 0, 0, 920, 0, 0, 0, 0, 0, 908, - 0, 783, 887, 888, 889, 758, 893, 365, 873, 0, - 0, 0, 872, 759, 0, 869, 870, 871, 874, 875, - 876, 907, 932, 933, 934, 935, 948, 950, 958, 959, - 962, 963, 0, 776, 0, 0, 27, 0, 0, 0, - 71, 69, 1006, 67, 33, 0, 0, 0, 778, 0, - 52, 0, 0, 0, 0, 0, 584, 0, 0, 0, - 667, 669, 0, 676, 0, 0, 677, 0, 663, 0, - 631, 0, 606, 0, 603, 0, 604, 629, 0, 624, - 0, 0, 598, 787, 754, 0, 0, 0, 0, 0, - 0, 581, 580, 0, 0, 638, 635, 0, 0, 0, - 186, 0, 0, 0, 129, 484, 173, 174, 0, 487, - 482, 0, 488, 0, 0, 0, 0, 489, 0, 480, - 0, 0, 426, 428, 427, 0, 429, 0, 423, 219, - 0, 0, 272, 0, 0, 0, 0, 435, 436, 0, - 469, 0, 0, 0, 0, 0, 0, 0, 393, 392, - 492, 0, 0, 149, 0, 0, 158, 0, 157, 0, - 0, 164, 147, 0, 162, 165, 166, 154, 0, 0, - 527, 562, 530, 0, 563, 0, 0, 531, 0, 0, - 0, 554, 566, 526, 549, 528, 529, 524, 511, 382, - 509, 510, 512, 0, 0, 521, 522, 523, 525, 0, - 0, 0, 0, 0, 112, 0, 113, 0, 124, 0, - 0, 202, 0, 0, 380, 0, 221, 0, 0, 83, - 0, 0, 768, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 789, 791, 800, 803, 804, 805, - 806, 807, 808, 809, 810, 811, 812, 0, 0, 0, - 909, 0, 0, 0, 0, 0, 0, 910, 911, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 330, 1007, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 775, 28, 0, 0, 44, - 72, 0, 0, 26, 0, 781, 0, 0, 0, 744, - 0, 0, 0, 0, 0, 583, 0, 659, 0, 0, - 0, 0, 681, 0, 574, 0, 929, 573, 0, 607, - 0, 615, 611, 610, 0, 0, 0, 626, 614, 0, - 0, 752, 753, 0, 0, 0, 380, 0, 0, 0, - 0, 0, 632, 0, 0, 0, 130, 0, 486, 0, - 0, 0, 0, 0, 382, 425, 0, 382, 383, 430, - 519, 0, 274, 0, 268, 270, 380, 241, 991, 0, - 0, 382, 0, 0, 210, 380, 0, 0, 0, 0, - 246, 240, 243, 244, 245, 434, 474, 473, 433, 432, - 0, 0, 0, 0, 0, 0, 391, 0, 382, 0, - 155, 159, 0, 0, 163, 0, 0, 550, 551, 567, - 0, 564, 0, 0, 557, 555, 556, 0, 0, 0, - 0, 520, 0, 0, 0, 0, 558, 0, 0, 380, - 0, 201, 0, 204, 206, 207, 0, 0, 0, 0, - 0, 221, 78, 0, 0, 77, 538, 987, 539, 0, - 0, 0, 0, 790, 802, 0, 0, 860, 861, 862, - 0, 794, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 975, 976, 977, 978, 979, - 980, 981, 982, 0, 0, 0, 0, 0, 0, 968, - 0, 0, 0, 0, 885, 332, 886, 956, 0, 0, - 881, 989, 0, 0, 0, 0, 0, 760, 0, 891, - 785, 784, 777, 0, 0, 0, 0, 0, 0, 0, - 0, 53, 61, 63, 0, 0, 70, 0, 0, 0, - 780, 0, 0, 0, 0, 0, 0, 0, 0, 668, - 671, 0, 0, 0, 0, 686, 687, 688, 0, 0, - 678, 999, 680, 575, 930, 616, 625, 620, 619, 0, - 630, 788, 755, 756, 380, 0, 0, 661, 640, 639, - 0, 0, 651, 655, 182, 176, 183, 0, 179, 485, - 0, 0, 178, 0, 189, 170, 169, 928, 172, 171, - 490, 0, 0, 0, 424, 273, 0, 212, 382, 214, - 0, 383, 209, 215, 0, 0, 0, 0, 437, 438, - 382, 380, 383, 0, 0, 0, 409, 0, 197, 198, - 156, 0, 168, 0, 0, 0, 0, 0, 565, 0, - 0, 382, 383, 0, 515, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, - 0, 0, 0, 369, 0, 82, 0, 0, 0, 0, - 87, 84, 0, 0, 0, 749, 992, 0, 0, 795, - 0, 0, 801, 0, 0, 0, 0, 0, 838, 837, - 0, 0, 0, 845, 863, 855, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 793, 0, 0, 0, - 221, 0, 936, 0, 0, 951, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 964, 0, - 974, 0, 0, 0, 0, 0, 0, 955, 897, 65, - 57, 58, 64, 59, 60, 0, 0, 22, 0, 0, - 0, 42, 0, 0, 0, 762, 782, 0, 0, 761, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 705, 0, 0, 0, 0, 0, 622, 623, 627, - 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 190, 0, 0, 0, 420, 224, 225, 226, 227, - 228, 229, 900, 0, 0, 0, 277, 0, 222, 0, - 0, 0, 0, 247, 0, 470, 471, 439, 0, 0, - 0, 0, 0, 0, 382, 494, 383, 167, 988, 0, - 0, 533, 0, 532, 568, 0, 560, 0, 0, 0, - 513, 0, 541, 0, 0, 543, 546, 548, 380, 0, - 0, 0, 119, 0, 205, 382, 0, 0, 381, 0, - 97, 0, 117, 0, 93, 0, 0, 0, 0, 86, - 0, 853, 854, 797, 0, 799, 0, 0, 0, 0, - 0, 0, 0, 856, 0, 0, 0, 0, 0, 0, - 0, 846, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 942, 941, 0, 0, - 938, 937, 0, 946, 945, 944, 943, 940, 939, 0, - 0, 970, 0, 0, 0, 969, 0, 0, 0, 0, - 0, 0, 56, 62, 54, 55, 23, 766, 767, 0, - 764, 771, 772, 769, 0, 743, 0, 0, 0, 697, - 0, 0, 0, 711, 707, 709, 0, 0, 0, 0, - 0, 381, 644, 645, 662, 0, 184, 180, 0, 0, - 195, 191, 0, 383, 901, 283, 0, 0, 383, 278, - 0, 0, 0, 232, 0, 0, 248, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 491, 535, 0, 536, - 0, 134, 0, 0, 0, 138, 140, 141, 142, 516, - 518, 514, 545, 0, 0, 383, 0, 0, 0, 0, - 366, 0, 370, 382, 88, 0, 0, 90, 0, 0, - 0, 0, 0, 0, 865, 864, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 220, 957, 947, 949, 0, 0, - 966, 965, 0, 971, 960, 961, 0, 40, 0, 0, - 0, 700, 698, 0, 0, 0, 715, 0, 0, 657, - 383, 367, 646, 0, 175, 192, 383, 144, 0, 0, - 280, 281, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 364, 0, 0, 0, 0, - 289, 294, 288, 0, 0, 0, 298, 299, 300, 301, - 302, 303, 305, 306, 308, 309, 310, 313, 0, 0, - 0, 358, 359, 360, 0, 267, 0, 0, 208, 233, - 0, 0, 0, 0, 234, 237, 0, 0, 383, 407, - 408, 404, 403, 406, 405, 0, 534, 561, 143, 131, - 139, 0, 382, 264, 126, 383, 0, 0, 384, 371, - 0, 0, 91, 92, 79, 0, 824, 832, 0, 825, - 833, 828, 836, 0, 0, 826, 834, 827, 835, 821, - 829, 822, 830, 823, 831, 0, 952, 967, 0, 763, - 0, 0, 690, 0, 0, 725, 727, 0, 722, 0, - 265, 185, 421, 0, 279, 0, 317, 0, 0, 320, - 321, 0, 312, 0, 0, 311, 344, 345, 0, 1000, - 361, 362, 0, 297, 304, 0, 307, 290, 0, 295, - 0, 349, 296, 314, 0, 0, 342, 211, 216, 235, - 0, 0, 238, 0, 250, 252, 411, 383, 0, 386, - 0, 0, 0, 376, 377, 0, 0, 76, 94, 0, - 0, 0, 0, 689, 0, 716, 726, 0, 0, 286, - 282, 0, 315, 0, 0, 0, 0, 0, 346, 0, - 0, 337, 338, 0, 357, 0, 0, 0, 0, 352, - 350, 0, 0, 0, 239, 0, 0, 0, 0, 0, - 266, 383, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 694, 0, 0, 733, 0, 0, 0, 285, 0, - 316, 0, 0, 319, 0, 327, 0, 329, 0, 0, - 356, 355, 996, 354, 0, 0, 0, 0, 0, 0, - 0, 0, 249, 0, 256, 0, 255, 387, 379, 0, - 0, 372, 118, 0, 0, 0, 0, 692, 735, 724, - 0, 0, 736, 0, 732, 0, 0, 0, 0, 0, - 0, 340, 339, 351, 353, 0, 0, 0, 236, 0, - 0, 260, 259, 258, 0, 0, 0, 0, 695, 731, - 0, 0, 287, 0, 0, 318, 324, 0, 0, 0, - 0, 0, 263, 261, 262, 0, 0, 867, 658, 0, - 0, 0, 738, 0, 0, 0, 0, 0, 341, 0, - 0, 0, 737, 0, 335, 325, 0, 347, 322, 0, - 740, 0, 323, 866, 741, -}; -static short yydgoto[] = { 20, - 21, 22, 23, 24, 25, 26, 1567, 28, 29, 1568, - 31, 32, 33, 34, 35, 36, 1569, 38, 1570, 653, - 122, 466, 970, 1208, 123, 719, 971, 124, 470, 724, - 148, 125, 126, 263, 993, 138, 972, 973, 203, 232, - 127, 974, 128, 472, 82, 243, 382, 429, 648, 1109, - 430, 875, 619, 225, 852, 649, 650, 651, 1111, 244, - 1398, 74, 193, 75, 239, 1880, 1321, 224, 229, 231, - 233, 219, 211, 213, 226, 236, 155, 316, 318, 320, - 371, 635, 637, 463, 264, 801, 552, 663, 1045, 375, - 640, 1097, 1313, 585, 747, 1071, 534, 535, 567, 367, - 620, 1083, 1464, 1599, 1256, 1465, 1466, 1467, 1468, 1469, - 664, 220, 212, 363, 593, 364, 365, 594, 595, 596, - 597, 1288, 1039, 537, 538, 1028, 1026, 539, 1033, 1027, - 1246, 1427, 1034, 1035, 1251, 377, 863, 864, 865, 866, - 803, 1052, 1442, 621, 805, 432, 868, 951, 561, 1370, - 1257, 433, 434, 435, 436, 437, 1443, 1444, 570, 1605, - 1768, 1274, 811, 812, 798, 813, 814, 815, 1769, 1770, - 1853, 345, 565, 1265, 1571, 199, 562, 563, 1266, 1267, - 1437, 1550, 1551, 1552, 1741, 1116, 730, 1572, 1573, 1574, - 1575, 1701, 1576, 1577, 1578, 1579, 1580, 1581, 1582, 1583, - 1584, 1585, 1586, 1587, 1588, 1589, 438, 1838, 1682, 1590, - 1751, 1871, 1748, 439, 703, 440, 441, 1591, 1702, 1759, - 1760, 1802, 1592, 1593, 1594, 1693, 1102, 1319, 1481, 1103, - 1104, 291, 495, 1628, 386, 1237, 1420, 1722, 1723, 1724, - 1725, 1235, 354, 581, 829, 1286, 582, 827, 79, 59, - 349, 204, 163, 332, 190, 339, 196, 789, 786, 340, - 350, 819, 351, 577, 1063, 191, 442, 333, 549, 583, - 1287, 96, 202, 248, 622, 623, 791, 1084, 792, 1085, - 1086, 626, 627, 628, 629, 1077, 879, 630, 631, 632, - 845, 633, 842, 40, 41, 42, 43, 44, 45, 157, - 523, 61, 488, 207, 356, 303, 304, 305, 306, 307, - 308, 309, 310, 311, 753, 509, 1010, 1240, 510, 511, - 758, 46, 162, 326, 530, 773, 47, 525, 526, 1019, - 1425, 1244, 1543, 1023, 142, 741, 1540, 491, 293, 143, - 144, 443, 292, 496, 497, 444, 744, 1003, 994, 995, - 996, 997, 998, 1662, 1734, 445, 1783, 1229, 1536, 1537, - 1785, 1670, 1786, 1787, 1788, 1835, 1881, 1883, 478, 48, - 49, 387, 50, 51, 517, 518, 979, 1216, 1400, 1404, - 479, 727, 217, 665, 666, 893, 894, 667, 668, 669, - 670, 671, 672, 673, 674, 675, 676, 677, 1342, 1132, - 1134, 1135, 950, 702, 446, 447, 448, 449, 450, 451, - 452, 241, 453, 454, 455, 456, 457, 934, 458, 1520, - 459, 460, 461, 462, 693, 938, 1192, 1187, 694, 130, -}; -static short yysindex[] = { 5872, - 1280, -90, 3340, 93, 1374, 189, 3249, 8,10481, 45, - 497, 9521, -90, 1222, 709, 7792, 498, 7792, 288, 0, - 766, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 536, 0, 0, 0, 0, - 0, 0,10704, 7792, 7792, 7792, 7792, 7792, 0, 0, - 488, 1367, 7792, 7792, 7792, 761, 7792, 573, 7792, 7792, - 0, 7792, 7792, 0, 868, 0, 583, 0, 0, 856, - 7792, 0, 7792, 7792, 7792, 873, 7792, 7792, 7792, 7792, - 573, 7792, 7792, 7792, 7792, 0, 7792, 682, 0, 0, - 0, 1073, 0, 1073, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 846, 852, 202, 1259, 0, 0, 0, 0, 0, - 7792, 7792, 7792, 1041, 1111, 1117, 128, 1266, 1070, 87, - 121, 1027, 1088, 0, 7792, 1224, 1216, 0, 1193, 0, - 7792, 7792, 7792, 7792, 0, 0, 0, 7792, 0, 1362, - 3, 1124, 993, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 899, - 0, 0, 1367, 0, 68, 0, 0, 1612, 0, 0, - 1413, 0, 547, 0, 0, 1235, 0, 0, 1246, 0, - 0, 1402, 0, 1421, 0, 0, 0, 1367, 0, 0, - 0, 605, 1612, 0, 24, 0, 0, 1361, 0, 1450, - 0, 1073, 0, 0, 0, 0, 0, 0, 1426, 0, - 0, 1324, 0, 1473, 0, 1341, 0, 0, 0, 1324, - 0, 0, 0, 0, 0, 0, 0, 0, 0,10448, - 0, 7792, 0, 0, 0, 8298, 1412, 7927, 7792, 912, - 1517, 1784, 1513, 1557, 8298, 1485, 7927, 1497, 1508, 1389, - 0,12139, 0, 0, 0, 0, 0, 0, 0, 0, - 9720, 0, 0, 0, 1470, 7792, 1567, 1468, -6, 7792, - 1490, 0, 0, 1216, 0, 0, 0, 0, 0, 0, - 0, 7792, 0, 0, 1612, 0, 1361, 0, 1073, 0, - 1556,12139, 1531, 0,12139, 1640, 402, 1467, -82, 1474, - 1029, 993, 0, 1706, 1187, 0, 7792, 0, 899, 0, - 0, 0, 0, 7792, 1583, 6655, 1533, 7371, 1960, 0, -10704, 0, 0, 1090, 0, 0, 0, 1944, 1944, 1367, - 1637, 1367, 1615, 1402, 0, 0,10958, 0, 7792, 7792, - 0, 1583, 0, 0, 1720, -40, 1970, 7792, 1747, 7792, - 0, 0, 1972, 186, 7213, 0, 0, 0, 1974, 1983, - 1984, 1565, 0, 0, 1989, 0, 1992, 0, 1993, 1998, - 0, 1999, 0, 0, 0, 0, 0, 2001, 1566, 1579, - 0, 0, 0, 0, 0, 0, 0, 2004, 0, 0, -10545, 2009, 2010, 0,12139,12139, 9818, 7792, 2012, 0, - 3012, 0, 0, 0, 0, 0, 0, 0, 0, 2011, - 1962, 0, 0, 0, 2008, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 1182, 0, 7792, 1621, 0, 7792, 7792, 72, - 0, 0, 0, 0, 0, 7792, 7792, 974, 0, 7792, - 0, 1739, 7792, 2016, 8298, 1660, 0, 7792,10784, 1825, - 0, 0,12139, 0, 1743, 2020, 0, 1807, 0, 90, - 0, -25, 0, 614, 0, 614, 0, 0, 2023, 0, - 173, 1646, 0, 0, 0, 2029, 154, 2015, 1583, 2038, - 1813, 0, 0, 2037, 2025, 0, 0, 1129, 1644, 1633, - 0, 161, 1744, 1746, 0, 0, 0, 0, 1367, 0, - 0, 1748, 0, 1944, 1944, 1944, 1944, 0, 2047, 0, - 1815, 1817, 0, 0, 0, 1799, 0,10958, 0, 0, -10958, 1483, 0, 1612, 1834, 7792,12768, 0, 0, 781, - 0, 7792, 1383, 1413, 1704, 1666, 1642, 0, 0, 0, - 0, 670, 1707, 0, 1656, 573, 0, 1367, 0, 1841, - 1772, 0, 0, 1615, 0, 0, 0, 0, 389, 1674, - 0, 0, 0, 1675, 0, 1724, 2085, 0, 1778, 2089, - 939, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 2042, 672, 0, 0, 0, 0, 201, - 2090, 2095, 2089, 1612, 0, 1819, 0, 1875, 0, 1367, - 1367, 0, 6655, 547, 0, 1757, 0, 1731, 2102, 0, - 7054, 4605, 0, 1759, 1767, 2111, 7704, 2117, 0, 0, - 0, 6954, 9529, 19, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1054,11023, 453, - 0, 7792,12139, 1275, 1330, 1386, 2508, 0, 0,12139, - 7856, 3012, 1713, 774,12139,11023, 791, 791, 1222, 1956, - 1500, 2120, 0, 0,11103, 7792,12139,12139,12139,12139, -12139,11023,12139, 960, 7792, 0, 0, 8334, 1732, 0, - 0, 1702, 7927, 0, 1850, 0, 1710, 1222, 2131, 0, - 1850, 8334, 1852, 1853, 7792, 0, 1956, 0, 2113, 2723, - 1722,11023, 0, 7792, 0, 782, 0, 0, 580, 0, - 1735, 0, 0, 0, 7792, 522, 7792, 0, 0, 7792, - 7792, 0, 0,11023, 1923, 6655, 0, 1688,12139,12139, - 1806, 1687, 0, 1367, 1367, 1367, 0, 560, 0, 1656, - 1656, 1750, 573, 1029, 0, 0, 2154, 0, 0, 0, - 0, 1921, 0, 7792, 0, 0, 0, 0, 0, 1927, - 2162, 0, 1911, 1928, 0, 0, 1873, 1888, 1073, 1955, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 573, 7792,12858, 1836, 1848, 1849, 0, 573, 0, 1585, - 0, 0, 1824, 1367, 0, 199, 1822, 0, 0, 0, - 573, 0, 2085, 106, 0, 0, 0, 1943, 106, 1828, - 106, 0, 2209, 573, 573, 573, 0, 1583, 7792, 0, - 1896, 0, 1736, 0, 0, 0, 1090, 1837, 7792, 1798, - 196, 0, 0, 2213, 1985, 0, 0, 0, 0, 186, - 7792, 1840, 8095, 0, 0, 1840, 7704, 0, 0, 0, - 7945, 0, 130, 31,12139,12139, 8192, 2226, 342, 8450, -12139, 8602, 1009, 8711, 8970,11342, 9122, 9231, 9490, 7856, - 7856,12139,12139, 2005,12139, 2227,12139, 2229, 2354,12139, -12139,12139,12139,12139,12139, 0, 0, 0, 0, 0, - 0, 0, 0, 1950, 1613, 538,12139, 829,11023, 0, - 7856, 2064, 2232, 1027, 0, 0, 0, 0, 3012, 1805, - 0, 0, 2014, 791, 791, 1260, 1260, 0, 1004, 0, - 0, 0, 0, 7792, 7792, 7792, 7792, 7792, 7792, 143, - 2234, 0, 0, 0, 8334, 1894, 0, 452, 1914, 7792, - 0, 1027,11023, 1914, 2240, 2234, 8334, 7442, 1968, 0, - 0, 1400, 2249, 2247, 1267, 0, 0, 0, 7856, 1969, - 0, 0, 0, 0, 0, 0, 0, 0, 0, -56, - 0, 0, 0, 0, 0, 1814, 1837, 0, 0, 0, - 3012, 7792, 0, 0, 0, 0, 0, 1820, 0, 0, - 1944, 2034, 0, 560, 0, 0, 0, 0, 0, 0, - 0, 2265, 7856, 4106, 0, 0, 2022, 0, 0, 0, - 4106, 0, 0, 0, 1073, 1073, 1808, 2273, 0, 0, - 0, 0, 0, -69, 420, 1116, 0, 2050, 0, 0, - 0, 7792, 0, 93, 1833, 1901, 1921, 2283, 0, 1656, - 1863, 0, 0, 1160, 0, 2267, 7792, 1320, 573, 2285, - 2286, 2287, 2066, 547, 2022, 1944, 1746, 6655, 0, 1707, - 1027, 1884, 1892, 0, 2416, 0, 573, 1939, 2031, 7054, - 0, 0, 573, 1851, 2041, 0, 0, 2305, 2311, 0, - 7856, 7856, 0, 7856, 7856, 2680, 3012, 2317, 0, 0, - 3012, 2319,11581, 0, 0, 0, 2017, 2326, 3012, 2327, - 1919, 2332, 3012, 2333,12139,12139, 2226,12139,11661, 2334, - 3012, 2335, 2339, 3012, 2340,12139, 3012, 2346, 3012, 2349, - 2351, 3012, 2352, 2360, 3012, 2362, 0, 2141, 2571, 2612, - 0, 2816, 0, 2893,12139, 0, 2921, 2998, 3115, 3123, - 3202, 3225,12139,12139,11023, 3012, 1971,11023, 0,12139, - 0, 2097, 625,12139,11023,12139,12139, 0, 0, 0, - 0, 0, 0, 0, 0, 2080, 8334, 0, 8334, 143, - 2234, 0, 233, 233, 83, 0, 0, 9720, 1878, 0, - 2240, 2234, 2364, 7442, 2368, 1267, 2371,11023, 1807, 2723, - 2030, 0, 2044, 2045, 2093, 2167, 2112, 0, 0, 0, - 2022, 0, 1884, 1318, 2400, 2024, 1367, 2055, 1656, 2059, - 1656, 0, 7856, 449, 1522, 0, 0, 0, 0, 0, - 0, 0, 0, 2006, 2176, 2022, 0,12139, 0, 2164, - 2048, 1808, 868, 0, 7856, 0, 0, 0, 2068, 2074, - 2075, 2076, 2077, 2084, 0, 0, 0, 0, 0, 2431, - 93, 0, 1750, 0, 0, 106, 0, 4106, 2101, 106, - 0, 106, 0, 1921, 2432, 0, 0, 0, 0, 1090, - 2176, 1656, 0, 1746, 0, 0, 9720, 2204, 0, 47, - 0, 2400, 0, 2448, 0, 2449, 1367, -42, 2452, 0, - 1367, 0, 0, 0, 2141, 0, 2141,12139, 2078, 2078, - 1222, 2453, 1879, 0, 2078, 2078,12139, 2078, 2078, 2931, - 3012, 0, 2000,12139, 3012, 2078, 2078, 2078, 2078, 3012, - 2078, 2078, 2078, 2078, 2078, 2078, 0, 0,10958, 2457, - 0, 0, 3239, 0, 0, 0, 0, 0, 0, 3263, - 1437, 0,11023, 2192, 2069, 0,11023, 3302, 1905, 1839, - 3012, 2116, 0, 0, 0, 0, 0, 0, 0, 2070, - 0, 0, 0, 0, 1743, 0, 7442, 2364, 1807, 0, - 1915, 7792, 1267, 0, 0, 0, 2723,12139, 7856, 2109, - 2176, 0, 0, 0, 0, 1944, 0, 0, 1367, 1585, - 0, 0, 463, 0, 0, 0, 7792, 8845, 0, 0, - 3012, 2233, 2164, 0, 865, 7792, 0, 2175, 470, 2079, - 2181, 2081, 2219, 2184, 2224, 2022, 0, 0, 2485, 0, - 2486, 0, 2178, 2233, 2101, 0, 0, 0, 0, 0, - 0, 0, 0, 2022, 1707, 0, 1585, 2050, 2208, 2149, - 0, 1837, 0, 0, 0, 2168, -46, 0, 1921, 2169, - 3012, 2494, 2497, 1027, 0, 0, 2500, 2501, 3012, 2506, - 2509,12139,12139, 3012, 2510, 2511, 2519, 2521, 2522, 2528, - 2529, 2530, 2533, 2534, 0, 0, 0, 0,12139, 2537, - 0, 0,11023, 0, 0, 0, 1722, 0, 233, 1722, - 7792, 0, 0, 1062, 3012, 2535, 0, 19, 722, 0, - 0, 0, 0, 1656, 0, 0, 0, 0,10958, 2523, - 0, 0, 2288, 0, 6724, 685, 2526, 2547, 2248,12139, - 2539, 2541, 7021, 7792, 7792, 0, 2542, 2548, 2252, 2549, - 0, 0, 0, 2281,11243, 2556, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 2558, -12, - 2563, 0, 0, 0, 0, 0, 2582, 7792, 0, 0, - 2272, 2282, 7792, 1808, 0, 0, 1073, 7792, 0, 0, - 0, 0, 0, 0, 0, 2176, 0, 0, 0, 0, - 0, 2176, 0, 0, 0, 0, 3028, 1722, 0, 0, -12139, 1367, 0, 0, 0, 1367, 0, 0,12139, 0, - 0, 0, 0, 3012, 3012, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 3012, 0, 0, 1969, 0, - 1969, 2585, 0, 7856,12139, 0, 0, 2259, 0, 2588, - 0, 0, 0, 688, 0, 2312, 0,11900, 7792, 0, - 0,12139, 0, 7856, 3012, 0, 0, 0, 2574, 0, - 0, 0, 7792, 0, 0, 5975, 0, 0, 765, 0, - 2186, 0, 0, 0, 409, 2595, 0, 0, 0, 0, - 1808, 1073, 0, 2262, 0, 0, 0, 0, 2050, 0, - 3028, 2602, 1267, 0, 0, 1969, 3012, 0, 0, 1839, - 2112, 2112, 7792, 0, 19, 0, 0, 7605, 4106, 0, - 0, 2608, 0, 2957,10448, 1745, 586, 2592, 0, 2316, - 331, 0, 0, 2616, 0, 7792, 7792, 93, 632, 0, - 0, -125, 2324, 7856, 0, 2262, 545, 1808, 2290, 2292, - 0, 0, 1267, 2624, 3028, 2328, 2112, 2635, 1722, 2109, - 2109, 0, 1916, 7792, 0, 2637, 2639, 1227, 0, 1840, - 0, 2269, 5975, 0, 2246, 0, 5975, 0, 5975, 3331, - 0, 0, 0, 0, 8845, 765,12139, 5975, 615, 1808, - -21, -21, 0, 2391, 0, 2251, 0, 0, 0, 1267, - 3028, 0, 0, 1969, 2304, 2304, 7792, 0, 0, 0, - 7605, 2654, 0, 7792, 0, 2662, 2094, 2645, 1563, 8845, - 2661, 0, 0, 0, 0, 1251, 674, 2403, 0, 2253, - 591, 0, 0, 0, 1170, 2112, 1124, 1124, 0, 0, - 7792, 2373, 0, 5975, 2661, 0, 0, 2408, 5975, 2424, - 2420, 8845, 0, 0, 0, 7856, 2109, 0, 0, 2682, - 2694, 2696, 0, 1924, 8845, 635, 7792, 8845, 0, 19, - 2304, 7792, 0, 7792, 0, 0, 8845, 0, 0, 1124, - 0, 2698, 0, 0, 0, -}; -static short yyrindex[] = { 0, - 0, 211, 1098, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 165, 7293, 0, 0, 0, 0, 0, 0, - 2742, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 256, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 995, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 2406, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 2361, 0, 0, - 0, 230, 0, 230, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 2367, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 998, 0, - 0,10057, 7552, 0, 0, 0, 1061, 0, 0, 0, - 4633, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 137, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 595, 0, 0, - 0, 0, 927, 0, 0, 1180, 0, 0, 0, 0, - 0, 831, 0,11516, 0, 0, 0, 0, 0, 0, - 0, 0, 595, 0, 489, 0, 0, 2705, 0, 0, - 0, 2487, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 1245, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1311, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 1071, 0, 0, 0, 0, 0, 0, 0, 8810, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 693, 0, 0, 1328, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 595, 0, 2705, 0, 2487, 0, - 1343, 0, 0, 0, 0, 168, 0, 0, 0, 0, - 0, 1368, 0, 2474, 0, 0, 0, 0, 1394, 0, - 0, 0, 0, 0, 2495, 675,11820, 0, 1399, 0, - 0, 0, 0, 345, 0, 0, 0, 2302, 2302, 0, - 0, 0, 1433, 1268, 0, 0, 0, 0, 0, 0, - 0, 2495, 0, 0, 1452, 0, 0, 0, 0, 0, - 0, 0, 4893, 2377, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1975, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 2687, 0, 0, - 0, 2991, 3295, 0, 0, 0, 0, 0, 0, 0, - 2056, 0, 0, 0, 0, 0, 0, 0, 0, 185, - 3599, 2378, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1443, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 1444, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 2442, 0, 3633, 0, 0, - 0, 0, 0, 588, 0, 588, 0, 0, 737, 0, - 1059, 1326, 0, 0, 0, 0, 1245, 0, 2495, 0, - 0, 0, 0, 179, 322, 0, 0, 262, 0, 812, - 0, 4537, 0, 411, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 2302, 2302, 2302, 2302, 0, 861, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 2505, 0, 0, 0, 0, 0, 2474, - 0, 0, 1315, 0, 2300, 0, 0, 689, 0, 0, - 0, 0, 225, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 1493, 0, 0, 0, 0, 3929,12476, - 0, 0, 0,12488, 0, 0,12500, 0, 0,12698, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 1987, 2390, 0, 0, 0, 0,12751, - 8453, 0,12698, 595, 0, 0, 0, 0, 0, 0, - 0, 0, 675, 1511, 0, 0, 0, 0, 2366, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 823, 5697, - 5945, 0, 0, 992, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0,12219, 0,12219, - 0, 0, 0,12219,12219,12219, 0, 0, 0, 0, - 0, 2320, 0, 0, 0, 0, 4639, 4943,10209, 2728, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 332, 0, 0, 7293, 0, 0, - 332, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1094, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 659, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 675, 0, 206, 0, 0, - 311, 0, 0, 0, 0, 0, 0, 5577, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 3588, 0, 0, 0, 0, 0, 0, 0, 2733, - 0, 0, 4264, 4031, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 377, 840, 858, 0, 0, 0, 1478, - 0, 0, 0, 0, 0, 0, 5296, 0, 0, 0, - 0, 0,12500, 0, 0, 0, 0, 702, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 2495, 0, 0, - 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 9992, 0, 0, 0, 156, 0, 0, 0, 0, 2472, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0,12219, 0, 0, 0, 0, 976, 0, - 0, 0, 3903, 5159, 5463, 4119, 4423, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1504, - 1510, 0, 0, 0, 0, 0, 0, 0, 1512, 0, - 0,10057, 0, 1512, 1516, 1528, 0, 0, 0, 0, - 0, 0, 6008, 578, 174, 0, 0, 0, 0, 1155, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 347, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 2302, 2325, 0, 5795, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 2513, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1345, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1539, 0, 0, - 0, 0, 0, 0, 0, 0, 2231, 0, 0, 0, - 0, 0, 0, 0, 0, 1445, 0, 0, 0, 0, - 0, 0, 0, 1511, 2513, 2302, 1580, 675, 0, 2518, -10057, 1605, 132, 0, 0, 0, 0, 9992, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1730, 0, 0, 0, - 1810, 0, 0, 0, 0, 0, 0, 0, 2458, 0, - 2767, 0, 3071, 0, 0, 0, 0, 0, 0, 0, - 3375, 0, 0, 4320, 0, 0, 4840, 0, 5269, 0, - 0, 5367, 0, 0, 5861, 0, 0, 1292, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 2350, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1504, - 1608, 0, 2356, 336, 0, 0, 0, 0, 0, 0, - 1634, 1638, 1662, 0, 0, 2444, 903, 0, 6238, 0, - 2451, 0, 2456, 2459, 0, 0, 114, 0, 0, 0, - 2513, 0, 1605, 0, 367, 3713, 0, 0, 0, 2337, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 9552, 0, 2525, 0, 0, 0, 2103, - 0, 1345, 2406, 0, 0, 0, 0, 0, 874, 876, - 886, 944, 964, 968, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 769, 0, - 0, 0, 0, 4448, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 1686, 0, 0, 0, 0, 0, 0, - 0, 1694, 0, 0, 0, 0, 0, 312, 0, 0, - 0, 0, 0, 0, 244, 0, 289, 0, 0, 0, -10209, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 6259, 0, 6375, 0, 6386, 0, 0, 0, 0, 6504, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 2759, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1457, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 1700, 6041, 0, - 0, 0, 440, 0, 0, 0, 0, 0, 0, 368, - 0, 0, 0, 0, 0, 2302, 0, 0, 0, 1067, - 0, 0, 0, 0, 0, 0, 0, 593, 0, 0, - 2762, 1606, 2136, 0, 2474, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 2513, 0, 0, 0, 0, - 0, 0, 0, 1764, 895, 0, 0, 0, 0, 0, - 0, 0, 0, 2513, 2518, 0, 344, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 119, 0, - 6527, 0, 0,12219, 0, 0, 0, 0, 6591, 0, - 0, 0, 0, 6733, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 111, 0, 336, 272, - 1190, 0, 0, 2444, 175, 1241, 0, 258, 2764, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0,10383, 0, 0, 0, 0, 0, 0, - 0, 1641, 1721, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 696, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 1740, 0, 0, 0, 0, 0, - 0, 0, 0, 4449, 0, 0, 148, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 523, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 6765, 6861, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 2765, 0, 0, 142, 0, - 169, 926, 0, 0, 0, 0, 0, 2769, 0, 0, - 0, 0, 0, 2746, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 2751, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 2504, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 4449, 1929, 0, 235, 0, 0, 0, 0, 0, 0, - 0, 357, 834, 0, 0, 475, 2762, 0, 0, 0, - 125, 140, 0, 0, 2301, 0, 0, 2764, 0, 0, - 0, 0, 0, 0, 129, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 940, 0, 1345, 1803, 1941, - 0, 0, 2444, 1484, 0, 0, 170, 0, 111, 56, - 153, 0, 0, 1428, 0, 0, 2774, 0, 0, 0, - 0, 2757, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 603, 0, 0, 0, 0, 4449, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 1189, - 0, 0, 0, 142, 28, 118, 0, 0, 0, 0, - 2764, 0, 0, 0, 0, 0, 0, 0, 0, 603, - 2760, 0, 0, 0, 0, 0, 2516, 0, 0, 0, - 0, 0, 0, 0, 2444, 125, 2780, 1331, 0, 0, - 0, 1930, 0, 0, 2766, 0, 0,12735, 0, 0, - 0, 603, 0, 0, 0, 0, 56, 0, 0, 2782, - 0, 0, 0, 0, 603, 0, 0, 603, 0, 5153, - 28, 0, 0, 0, 0, 0, 603, 0, 0, 2780, - 0, 0, 0, 0, 0, -}; -static short yygindex[] = { 0, - 0, 0, 0, 0, 0, 0, 2824, 0, 0, 2827, - 0, 0, 0, 0, 0, 0, 5, 0, 2828, -2, - 274, -89, -601, 1623, 276, -185, -65, 2822, 2559, 0, - -27, 0, 2565, -93, -31, 0, 777, -370, -20, -60, - -38, -186, 2570, 2119, 0, 0, 0, 1257, 0, 0, - -36, 1733, -538, -68, -897, 2193, 1976, -298, 1738, 2763, - -297, 0, -58, 0, -481, -51, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, -177, -143, 1742, -316, 1030, -954, 0, - 0, 0, 0, -342, -128, -575, 1752, -339, -55, 0, - -528, 0, 0, 1388, -998, 0, 1390, 0, 0, 2531, - -659, 2, 0, 0, 0, 0, 2489, 0, 2266, 2545, - -229, 1775, -733, 0, 0, 0, -705, 0, 0, 0, - 0, 0, 0, 1830, 0, 2552, 2100, 1776, 2527, 2536, - 0, 1201, 0, -496, 2087, -32, -639, 1286, 0, 0, - 0, -955, -944, -940, -936, -934, 0, 1442, -975, 0, - 1130,-1179, 1455, 0, 2329, 0, 0, 0, 1132, 1134, - 1092, 44, -277, -931, -564, 0, 0, 2115, 0, 1645, - 0, 0, 0, 0, 0,-1275, -849, -535, 0, 0, - 0, 0, -192, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1162, 0, 1151, 0, - 783, 0, 0, 392, 0, -376, 660, 1351, 1219, 0, - 1123, 0, 0, 0, 0, 0, 1906, 1679, 1509, 0, - -986, -852, -870, 0, -501, -617, -722, 0,-1420, 1209, - 330, -389, -510, -711, -839,-1241, 0, 0, -39, 0, - 0, 0, 0, 0, 2586, 0, 0, 0, 0, 2606, - 2376, 0, 0, 0, 0, 0, -9, 2621, 0, 0, - 0, 0, -15, 0, 0, 0, -353, 2104, -345, 1654, - -472, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 2323, 0, 2114, 0, 0, 0, 0, 0, 0, 32, - 0, 2945, 0, 0, 0, 0, 0, 2657, 0, 0, - 0, 0, 2467, 0, 2464, 0, 0, 0, 2216, 0, - 0, 0, -449, -204, 0, 0, 582, 0, 2221, 0, - 0, 0, 0, 0, -574,-1197, -521, -179, 1276, 0, - 2834, -122, 1152, 0, 2250, -281, -958,-1339, 0, -851, - 1996, 0, 0, 0, 0, -136, 0, 0, 0, 1332, - 1454, 0, 1165, 0, 1217, 0, 97, 0, 0, 0, - 0, 2492, 0, 0, 0, -436, 2275, 2019,-1001, 0, - 0, 0, -693, -393, 241, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 2107, 2039, - 1865, 0, -580, 0, 0, 0, -932, 0, 0, 0, - 1755, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, -508, 1823, 0, 0, -}; -#define YYTABLESIZE 13375 -static short yytable[] = { 129, - 151, 78, 129, 195, 37, 218, 150, 214, 156, 498, - 265, 284, 287, 624, 314, 762, 586, 285, 288, 556, - 962, 625, 255, 592, 198, 210, 249, 748, 227, 201, - 215, 936, 1118, 258, 235, 223, 1119, 253, 802, 558, - 726, 228, 768, 192, 194, 197, 200, 150, 205, 230, - 701, 227, 1269, 216, 194, 221, 259, 200, 254, 150, - 205, 790, 234, 129, 793, 260, 1012, 151, 637, 1029, - 804, 245, 257, 150, 247, 194, 256, 245, 221, 197, - 200, 471, 150, 205, 234, 129, 654, 200, 1258, 252, - 471, 1196, 1447, 319, 638, 1258, 723, 1270, 271, 1259, - 273, 548, 1075, 1260, 272, 492, 1259, 1261, 1278, 1262, - 1260, 1263, 876, 719, 1261, 723, 1262, 637, 1263, 515, - 315, 216, 150, 216, 944, 317, 282, 1017, 1299, 1218, - 985, 368, 959, 867, 746, 221, 650, 77, 379, 719, - 1226, 313, 200, 150, 234, 283, 295, 774, 156, 283, - 1080, 721, 723, 982, 719, 1100, 341, 1047, 637, 542, - 286, 1553, 542, 1311, 589, 719, 1054, 652, 714, 719, - 1123, 269, 719, 684, 717, 516, 637, 650, 643, 1294, - 719, 368, 714, 283, 331, 482, 1207, 333, 774, 321, - 368, 774, 1527, 723, 777, 650, 85, 761, 719, 85, - 775, 780, 781, 782, 783, 647, 774, 1530, 652, 714, - 589, 723, 1401, 624, 684, 717, 757, 684, 717, 643, - 1095, 625, 643, 589, 410, 521, 652, 714, 719, 464, - 77, 1487, 684, 717, 257, 1108, 1626, 643, 467, 1000, - 854, 765, 1074, 331, 501, 269, 647, 467, 1317, 647, - 1167, 1168, 216, 810, 592, 637, 150, 718, 473, 129, - 1316, 648, 323, 884, 647, 150, 372, 473, 1279, 589, - 1412, 721, 508, 774, 541, 257, 504, 77, 257, 514, - 910, 1193, 721, 410, 796, 135, 197, 136, 1691, 1692, - 150, 373, 1124, 257, 1445, 283, 637, 733, 718, 1462, - 1773, 837, 648, 848, 557, 1705, 1482, 641, 1633, 1421, - 654, 560, 721, 215, 637, 573, 718, 131, 575, 1680, - 648, 636, 125, 587, 342, 589, 1061, 216, 646, 798, - 721, 765, 1457, 1483, 216, 540, 216, 634, 216, 642, - 516, 578, 1258, 196, 493, 149, 649, 1405, 1238, 636, - 644, 654, 89, 1259, 1820, 1850, 373, 1260, 519, 200, - 205, 1261, 636, 1262, 60, 1263, 653, 723, 150, 654, - 197, 1081, 1280, 1210, 1799, 1241, 396, 505, 1413, 749, - 636, 125, 1681, 1254, 132, 1221, 1223, 649, 374, 1798, - 765, 1121, 542, 1782, 540, 734, 1851, 914, 301, 1239, - 1855, 343, 196, 493, 911, 649, 1472, 653, 723, 97, - 481, 278, 246, 279, 943, 373, 1125, 1750, 704, 14, - 208, 209, 1277, 1488, 1713, 653, 723, 542, 836, 774, - 958, 719, 506, 77, 542, 396, 720, 717, 721, 685, - 1706, 721, 723, 1852, 514, 1634, 1479, 277, 725, 507, - 1531, 720, 731, 719, 650, 150, 830, 467, 200, 473, - 498, 1334, 1335, 1101, 1336, 1337, 150, 1445, 1042, 481, - 150, 1044, 714, 200, 714, 150, 650, 1772, 156, 1548, - 685, 1402, 1014, 685, 1596, 1050, 1597, 1859, 410, 1434, - 756, 684, 717, 1120, 916, 1630, 643, 721, 685, 714, - 719, 684, 778, 1547, 684, 717, 721, 652, 83, 719, - 1609, 719, 1068, 684, 717, 1122, 712, 831, 643, 736, - 719, 1624, 721, 647, 1616, 722, 719, 1660, 714, 542, - 774, 1765, 1779, 714, 806, 719, 471, 714, 333, 723, - 1038, 1428, 1622, 1217, 281, 647, 227, 281, 637, 989, - 76, 832, 1343, 719, 1041, 714, 799, 216, 990, 1460, - 684, 717, 799, 281, 714, 1534, 85, 719, 1013, 684, - 717, 876, 1110, 637, 745, 718, 723, 683, 281, 648, - 1093, 721, 1115, 1310, 542, 368, 1671, 617, 1813, 1107, - 650, 1635, 1673, 1433, 331, 637, 1206, 718, 1475, 721, - 589, 648, 721, 861, 862, 385, 1219, 796, 493, 719, - 215, 1898, 774, 684, 717, 1449, 652, 1005, 683, 589, - 89, 652, 1408, 719, 516, 684, 1795, 684, 717, 796, - 1849, 721, 643, 216, 719, 1623, 683, 268, 637, 636, - 396, 1639, 878, 76, 718, 719, 617, 853, 774, 877, - 654, 1036, 1037, 718, 1716, 1848, 1038, 1191, 721, 647, - 719, 636, 714, 652, 649, 1057, 986, 721, 481, 1474, - 125, 1720, 221, 723, 798, 1806, 1382, 858, 1799, 1384, - 643, 481, 963, 918, 373, 723, 649, 373, 1249, 714, - 76, 196, 612, 1136, 684, 717, 952, 718, 765, 643, - 1439, 135, 540, 720, 216, 216, 653, 723, 473, 637, - 910, 718, 289, 473, 1040, 648, 481, 1799, 481, 1137, - 1281, 1762, 473, 1545, 910, 200, 647, 508, 514, 1011, - 200, 910, 1268, 215, 1002, 257, 618, 1025, 1025, 1030, - 1789, 493, 324, 227, 1276, 150, 1476, 150, 1739, 531, - 216, 612, 1059, 1312, 723, 915, 216, 685, 532, 1538, - 135, 560, 851, 1771, 654, 1298, 1494, 685, 136, 133, - 685, 1213, 1778, 396, 122, 636, 637, 1200, 718, 685, - 1203, 227, 712, 1258, 216, 1090, 1091, 1092, 1067, 1060, - 1062, 1448, 721, 158, 1259, 618, 373, 1073, 1260, 910, - 649, 1078, 1261, 352, 1262, 714, 1263, 723, 373, 1110, - 373, 656, 216, 216, 227, 227, 227, 1818, 1389, 652, - 653, 723, 857, 1461, 159, 14, 685, 136, 481, 1471, - 151, 1094, 710, 374, 911, 685, 1394, 711, 1396, 394, - 1515, 1105, 636, 516, 1245, 1811, 76, 910, 911, 150, - 721, 1411, 656, 721, 1546, 911, 1541, 395, 269, 150, - 483, 1282, 504, 857, 1023, 1023, 857, 1023, 1023, 1023, - 656, 1117, 1369, 401, 1521, 402, 910, 374, 1524, 685, - 353, 857, 1023, 1023, 1023, 398, 910, 1214, 723, 151, - 1874, 685, 374, 685, 137, 683, 206, 885, 394, 152, - 293, 1625, 892, 1191, 527, 683, 1191, 1204, 683, 1211, - 343, 1271, 1272, 1023, 714, 1031, 395, 683, 533, 483, - 343, 1222, 160, 911, 1008, 693, 390, 1322, 714, 617, - 1205, 153, 401, 1201, 402, 1805, 498, 1870, 1897, 257, - 1836, 1009, 1875, 397, 398, 1202, 154, 514, 850, 122, - 122, 1005, 242, 137, 473, 200, 205, 473, 234, 129, - 685, 1323, 721, 400, 683, 473, 693, 399, 1456, 693, - 824, 911, 1185, 683, 777, 161, 721, 473, 473, 135, - 257, 135, 200, 257, 693, 390, 1812, 1051, 1032, 464, - 751, 720, 617, 242, 591, 617, 1225, 587, 257, 1478, - 911, 961, 397, 291, 1735, 269, 369, 825, 1780, 1781, - 911, 617, 216, 343, 1658, 624, 898, 683, 506, 898, - 1305, 222, 400, 625, 1747, 1659, 399, 1755, 1661, 683, - 76, 683, 720, 145, 612, 498, 1394, 617, 1325, 1700, - 240, 1731, 370, 1732, 1329, 343, 382, 1197, 136, 227, - 720, 1717, 1674, 591, 1822, 343, 587, 1718, 628, 1387, - 596, 752, 1289, 621, 1666, 215, 196, 227, 898, 612, - 706, 1290, 464, 227, 242, 707, 1756, 1289, 618, 135, - 939, 940, 261, 1544, 857, 990, 1679, 1757, 216, 1667, - 1399, 1399, 1403, 721, 1023, 216, 1199, 612, 683, 807, - 612, 1191, 1023, 394, 1809, 1191, 962, 1023, 1777, 151, - 1023, 826, 262, 618, 621, 242, 612, 628, 483, 596, - 1430, 395, 1432, 885, 441, 196, 1726, 885, 810, 1680, - 151, 483, 237, 1877, 721, 1188, 1189, 401, 146, 402, - 857, 618, 612, 857, 618, 147, 1023, 1668, 343, 398, - 857, 656, 721, 857, 714, 1023, 334, 857, 990, 151, - 618, 374, 857, 1023, 374, 857, 483, 1631, 483, 238, - 710, 708, 382, 709, 137, 711, 712, 242, 151, 593, - 808, 857, 1023, 1477, 1023, 390, 618, 151, 375, 691, - 390, 1758, 1681, 151, 250, 714, 390, 473, 1023, 473, - 1023, 1023, 1023, 1300, 335, 857, 1856, 397, 857, 857, - 1025, 151, 99, 714, 473, 846, 1890, 257, 857, 257, - 200, 809, 716, 686, 941, 715, 257, 400, 266, 691, - 691, 399, 375, 691, 267, 857, 394, 686, 593, 281, - 713, 1191, 1601, 693, 721, 686, 693, 375, 691, 101, - 327, 1023, 1301, 693, 395, 960, 693, 857, 1825, 1826, - 693, 686, 857, 328, 1602, 693, 1004, 152, 693, 1844, - 401, 1603, 402, 374, 857, 1533, 857, 1824, 483, 1190, - 1145, 713, 398, 847, 693, 374, 289, 374, 1459, 431, - 1486, 792, 710, 708, 1490, 709, 1146, 711, 329, 713, - 330, 516, 270, 721, 1868, 1604, 1719, 544, 693, 720, - 333, 490, 693, 289, 475, 686, 336, 257, 102, 720, - 431, 693, 720, 390, 196, 613, 152, 595, 103, 290, - 650, 720, 792, 1776, 337, 792, 1889, 196, 693, 257, - 397, 1147, 582, 857, 251, 196, 257, 151, 579, 1896, - 792, 524, 1899, 104, 528, 1891, 912, 545, 475, 580, - 400, 1903, 115, 1300, 399, 693, 196, 417, 338, 333, - 1148, 650, 196, 475, 196, 1857, 1858, 693, 720, 693, - 257, 1549, 1231, 1776, 613, 251, 595, 720, 251, 650, - 728, 546, 1025, 418, 1663, 196, 1232, 473, 414, 115, - 628, 582, 313, 251, 215, 514, 1399, 200, 706, 547, - 331, 721, 1304, 707, 196, 1672, 1283, 729, 1607, 105, - 1233, 721, 196, 196, 721, 274, 417, 1554, 1595, 196, - 1776, 720, 160, 721, 115, 628, 150, 1149, 516, 992, - 257, 1900, 43, 51, 1664, 720, 693, 196, 106, 107, - 692, 108, 418, 1284, 697, 698, 700, 414, 109, 110, - 111, 112, 113, 628, 114, 1776, 628, 115, 116, 117, - 118, 119, 714, 554, 1234, 120, 121, 196, 710, 708, - 721, 709, 628, 711, 196, 714, 555, 779, 517, 721, - 1231, 160, 161, 275, 714, 196, 1678, 899, 383, 276, - 899, 43, 51, 41, 1232, 280, 388, 691, 628, 24, - 691, 770, 720, 1714, 779, 47, 375, 691, 737, 375, - 691, 313, 739, 795, 691, 98, 794, 49, 1233, 691, - 706, 712, 691, 721, 289, 707, 196, 517, 495, 706, - 946, 714, 514, 712, 707, 194, 152, 721, 691, 899, - 714, 161, 1876, 1690, 1117, 1117, 1715, 297, 713, 1754, - 296, 493, 41, 1832, 770, 1595, 99, 152, 24, 499, - 770, 713, 691, 52, 47, 1712, 691, 920, 100, 127, - 713, 141, 1234, 196, 53, 691, 49, 1231, 952, 289, - 1869, 54, 298, 150, 714, 1728, 152, 495, 197, 1729, - 1833, 1232, 691, 101, 385, 217, 1799, 25, 714, 792, - 312, 151, 792, 1834, 721, 152, 55, 150, 1766, 792, - 299, 1867, 792, 300, 152, 1233, 792, 713, 375, 691, - 152, 792, 922, 48, 792, 322, 713, 50, 127, 301, - 375, 691, 375, 691, 325, 289, 217, 1745, 152, 217, - 792, 344, 1878, 1879, 710, 708, 1754, 709, 355, 711, - 1754, 45, 1754, 385, 217, 302, 25, 613, 516, 200, - 346, 1754, 102, 347, 792, 714, 376, 792, 792, 1234, - 713, 56, 103, 1117, 366, 128, 1012, 792, 924, 80, - 81, 891, 48, 116, 713, 1904, 50, 1801, 1012, 46, - 1754, 1012, 613, 516, 792, 151, 357, 104, 431, 1763, - 691, 150, 919, 57, 140, 141, 706, 58, 348, 935, - 45, 707, 1784, 1002, 942, 431, 792, 1754, 150, 847, - 613, 792, 1754, 613, 949, 516, 953, 954, 955, 956, - 957, 431, 949, 792, 128, 792, 194, 1803, 516, 613, - 981, 516, 116, 980, 1519, 1804, 196, 358, 46, 151, - 516, 713, 380, 217, 734, 150, 1017, 378, 1784, 390, - 847, 431, 514, 847, 150, 613, 1099, 196, 1017, 1098, - 390, 1017, 1862, 381, 152, 1003, 710, 708, 847, 709, - 216, 711, 385, 431, 359, 1595, 360, 1000, 524, 1021, - 990, 734, 253, 1794, 376, 151, 196, 514, 384, 816, - 1423, 150, 792, 468, 734, 1784, 14, 1002, 376, 361, - 1424, 150, 217, 477, 197, 196, 376, 208, 209, 913, - 1595, 917, 480, 196, 196, 921, 923, 925, 1106, 514, - 196, 872, 376, 253, 362, 1198, 253, 817, 1197, 818, - 816, 197, 514, 816, 1242, 514, 476, 1098, 196, 105, - 1248, 253, 1595, 1247, 514, 738, 710, 708, 816, 709, - 196, 711, 196, 1292, 481, 1595, 1291, 1117, 1595, 485, - 710, 708, 197, 709, 197, 711, 483, 1595, 106, 107, - 486, 108, 706, 544, 487, 196, 376, 707, 109, 110, - 111, 112, 113, 1297, 114, 500, 1296, 115, 116, 117, - 118, 119, 123, 123, 590, 120, 121, 503, 1406, 1496, - 196, 712, 1197, 512, 1126, 1127, 1131, 502, 774, 1139, - 1141, 1143, 1184, 1151, 1154, 1157, 1159, 1162, 1165, 522, - 254, 1169, 1170, 545, 1172, 1526, 1174, 14, 712, 1177, - 1178, 1179, 1180, 1181, 1182, 1532, 1828, 529, 712, 1827, - 710, 708, 531, 709, 1895, 711, 1186, 1799, 431, 774, - 742, 532, 774, 742, 1010, 1069, 1070, 546, 404, 405, - 406, 254, 540, 1393, 254, 1395, 519, 774, 1901, 543, - 1902, 847, 551, 564, 196, 547, 945, 710, 708, 254, - 709, 571, 711, 574, 584, 639, 414, 415, 588, 643, - 645, 647, 431, 678, 986, 1010, 1010, 1010, 1010, 1010, - 1010, 1010, 679, 680, 706, 681, 688, 519, 682, 707, - 519, 683, 684, 1010, 1010, 1010, 1010, 685, 686, 689, - 687, 710, 708, 690, 709, 519, 711, 847, 695, 696, - 847, 705, 713, 714, 712, 757, 718, 847, 732, 723, - 847, 735, 740, 742, 847, 1010, 755, 1010, 769, 847, - 743, 816, 847, 759, 760, 764, 767, 766, 710, 708, - 253, 709, 253, 711, 1793, 771, 772, 1752, 847, 253, - 784, 776, 785, 531, 787, 779, 757, 797, 788, 757, - 821, 822, 230, 828, 706, 710, 708, 1194, 709, 707, - 711, 823, 847, 281, 757, 847, 847, 833, 706, 834, - 838, 839, 840, 707, 841, 847, 843, 816, 844, 855, - 816, 591, 849, 1864, 856, 231, 859, 816, 860, 869, - 816, 871, 847, 230, 816, 872, 230, 880, 881, 816, - 882, 428, 816, 991, 710, 708, 886, 709, 740, 711, - 947, 230, 949, 937, 847, 976, 978, 975, 816, 847, - 983, 987, 988, 999, 1350, 1351, 231, 1353, 1355, 231, - 253, 847, 1006, 847, 1752, 1360, 1015, 1022, 1752, 1018, - 1842, 1024, 816, 1043, 231, 816, 816, 850, 706, 1752, - 1048, 1049, 253, 707, 1373, 816, 774, 1038, 774, 253, - 1051, 800, 1380, 1381, 431, 774, 1055, 431, 254, 1186, - 254, 1064, 816, 1388, 431, 1390, 1391, 254, 1752, 1347, - 542, 1056, 1058, 1065, 1066, 706, 1010, 1076, 1010, 1010, - 707, 1072, 1082, 253, 816, 1087, 1010, 431, 1089, 816, - 847, 1096, 1113, 1101, 1010, 1752, 728, 431, 1114, 1010, - 1752, 816, 1010, 816, 519, 1133, 519, 1173, 1171, 1183, - 519, 542, 1175, 519, 542, 1195, 1010, 1209, 1212, 706, - 1215, 1010, 1010, 1207, 707, 1010, 519, 1224, 1228, 542, - 1230, 542, 1010, 706, 1010, 1010, 1236, 1441, 1010, 1250, - 696, 237, 1010, 253, 1253, 1010, 774, 1010, 1273, 1010, - 1503, 774, 1275, 1285, 1010, 1010, 706, 1010, 254, 757, - 1264, 707, 1293, 1295, 1302, 1306, 1307, 1308, 774, 1309, - 816, 1320, 1107, 1010, 1010, 774, 1010, 1318, 238, 1327, - 254, 696, 1330, 706, 696, 1332, 431, 254, 707, 1331, - 1010, 1333, 1010, 1010, 1010, 1753, 1339, 1010, 1340, 696, - 1010, 1010, 757, 757, 519, 1345, 1346, 1491, 1344, 774, - 1010, 1348, 1349, 1356, 1357, 757, 1499, 990, 1358, 1359, - 242, 254, 230, 1504, 1010, 1361, 519, 1010, 1362, 542, - 1363, 1364, 706, 519, 1176, 710, 708, 707, 709, 1365, - 711, 1366, 910, 1010, 1386, 1383, 1392, 1407, 1409, 1010, - 1010, 1410, 431, 242, 1010, 231, 431, 1414, 990, 990, - 990, 990, 990, 1003, 990, 1010, 1010, 519, 1010, 774, - 542, 1415, 1416, 542, 1010, 1417, 990, 990, 990, 990, - 1418, 254, 1419, 715, 1429, 1426, 1438, 1535, 542, 1431, - 566, 1436, 1753, 1450, 1446, 262, 1753, 817, 1843, 1451, - 1452, 1453, 1454, 1010, 1010, 757, 1010, 1753, 990, 1455, - 990, 1458, 1473, 1010, 1010, 1010, 1010, 1010, 1463, 1010, - 242, 1480, 1010, 1010, 1010, 1010, 1010, 1484, 542, 1485, - 1010, 1010, 1489, 1495, 1341, 1010, 1753, 1516, 817, 1522, - 1528, 817, 242, 1523, 1539, 1529, 757, 757, 542, 242, - 542, 1608, 1598, 242, 542, 757, 817, 542, 1611, 1613, - 1610, 1614, 1612, 1753, 1615, 1617, 1618, 1627, 1753, 1619, - 542, 1644, 1645, 1629, 1637, 242, 542, 1638, 1632, 1636, - 1640, 1641, 242, 242, 757, 757, 1642, 757, 1656, 1643, - 1646, 1647, 431, 105, 757, 757, 757, 757, 757, 1648, - 757, 1649, 1650, 757, 757, 757, 757, 757, 1651, 1652, - 1653, 757, 757, 1654, 1655, 1839, 242, 1657, 1665, 1841, - 1676, 1675, 106, 107, 1683, 108, 1684, 132, 1698, 1685, - 1847, 1696, 109, 110, 111, 112, 113, 1686, 114, 1687, - 1694, 115, 116, 117, 118, 119, 1695, 1697, 542, 120, - 121, 1367, 710, 708, 1703, 709, 1704, 711, 696, 1865, - 1707, 696, 1708, 1710, 1733, 1711, 1737, 1738, 696, 1742, - 542, 696, 1749, 706, 1764, 696, 1699, 542, 707, 990, - 696, 990, 990, 696, 1767, 1775, 1884, 1790, 542, 990, - 1796, 1886, 1368, 710, 708, 1797, 709, 990, 711, 696, - 1727, 1800, 990, 1808, 1819, 990, 542, 542, 1730, 542, - 1821, 542, 1814, 542, 1816, 1823, 542, 1830, 1837, 990, - 1840, 990, 1831, 696, 990, 990, 1014, 696, 990, 542, - 160, 1811, 1812, 1861, 1535, 990, 696, 990, 990, 800, - 542, 990, 1863, 1866, 1799, 990, 1872, 1744, 990, 1882, - 990, 1746, 990, 696, 1885, 1873, 1887, 990, 990, 817, - 990, 710, 708, 1888, 709, 1892, 711, 1014, 1014, 1014, - 1014, 1014, 1014, 1014, 1893, 1894, 990, 990, 1905, 990, - 696, 1, 643, 29, 203, 1014, 1014, 1014, 1014, 31, - 774, 382, 696, 990, 696, 990, 990, 990, 271, 148, - 990, 675, 992, 990, 990, 540, 841, 542, 269, 472, - 973, 757, 213, 990, 431, 817, 81, 1014, 817, 1014, - 540, 410, 193, 276, 972, 817, 712, 990, 817, 542, - 990, 540, 817, 710, 194, 275, 542, 817, 706, 954, - 817, 708, 383, 729, 223, 953, 990, 841, 728, 328, - 841, 292, 990, 990, 730, 336, 817, 990, 363, 348, - 650, 696, 739, 27, 334, 841, 30, 39, 990, 990, - 542, 990, 1397, 137, 475, 484, 1846, 990, 474, 870, - 817, 977, 1328, 817, 817, 1326, 1324, 1112, 1314, 251, - 706, 1620, 598, 817, 1621, 707, 1371, 710, 708, 835, - 709, 1303, 711, 1252, 553, 1016, 990, 990, 520, 990, - 817, 536, 568, 1315, 1740, 105, 990, 990, 990, 990, - 990, 569, 990, 1709, 1600, 990, 990, 990, 990, 990, - 1053, 706, 817, 990, 990, 1810, 707, 817, 990, 1606, - 816, 1817, 1815, 1854, 106, 107, 1792, 108, 1046, 817, - 1440, 817, 1807, 1689, 109, 110, 111, 112, 113, 1761, - 114, 1422, 1243, 115, 116, 117, 118, 119, 1845, 1774, - 1542, 120, 121, 1372, 710, 708, 576, 709, 1140, 711, - 1144, 1338, 1152, 1155, 559, 1160, 1163, 1166, 1014, 820, - 1014, 1014, 550, 1470, 1088, 857, 1079, 139, 1014, 706, - 513, 1374, 710, 708, 707, 709, 1014, 711, 750, 754, - 1007, 1014, 710, 708, 1014, 709, 294, 711, 817, 926, - 927, 928, 929, 930, 931, 932, 933, 1227, 1014, 1020, - 1019, 1001, 1669, 1014, 1014, 1860, 1736, 1014, 710, 708, - 1829, 709, 1220, 711, 1014, 984, 1014, 1014, 763, 1435, - 1014, 1352, 1385, 0, 1014, 1791, 0, 1014, 0, 1014, - 0, 1014, 0, 0, 0, 0, 1014, 1014, 841, 1014, - 0, 1019, 1019, 1019, 1019, 1019, 1019, 1019, 1375, 710, - 708, 0, 709, 0, 711, 1014, 1014, 0, 1014, 1019, - 1019, 1019, 1019, 710, 708, 0, 709, 0, 711, 0, - 0, 0, 1014, 0, 1014, 1014, 1014, 1721, 0, 1014, - 820, 0, 1014, 1014, 0, 0, 0, 0, 0, 0, - 0, 1019, 1014, 1019, 841, 0, 0, 841, 0, 0, - 0, 0, 0, 0, 841, 706, 1014, 841, 0, 1014, - 707, 841, 0, 0, 0, 0, 841, 0, 0, 841, - 0, 820, 0, 0, 820, 1014, 0, 0, 0, 0, - 0, 1014, 1014, 0, 0, 841, 1014, 0, 0, 820, - 0, 0, 0, 0, 0, 0, 0, 1014, 1014, 0, - 1014, 0, 0, 0, 0, 0, 1014, 0, 0, 841, - 0, 0, 841, 841, 0, 1376, 710, 708, 0, 709, - 0, 711, 841, 1377, 710, 708, 0, 709, 0, 711, - 0, 0, 706, 0, 0, 1014, 1014, 707, 1014, 841, - 0, 0, 105, 0, 0, 1014, 1014, 1014, 1014, 1014, - 0, 1014, 1502, 0, 1014, 1014, 1014, 1014, 1014, 0, - 706, 841, 1014, 1014, 0, 707, 841, 1014, 0, 0, - 706, 106, 107, 0, 108, 707, 0, 0, 841, 0, - 841, 109, 110, 111, 112, 113, 0, 114, 0, 0, - 115, 116, 117, 118, 119, 0, 706, 0, 120, 121, - 0, 707, 1378, 710, 708, 0, 709, 0, 711, 0, - 0, 0, 1019, 0, 1019, 1019, 0, 0, 0, 0, - 0, 0, 1019, 0, 0, 1379, 710, 708, 0, 709, - 1019, 711, 0, 0, 0, 1019, 0, 706, 1019, 1517, - 710, 708, 707, 709, 0, 711, 0, 841, 0, 0, - 0, 706, 1019, 0, 1015, 0, 707, 1019, 1019, 0, - 0, 1019, 0, 1518, 710, 708, 0, 709, 1019, 711, - 1019, 1019, 0, 0, 1019, 0, 0, 0, 1019, 0, - 0, 1019, 0, 1019, 0, 1019, 0, 0, 0, 0, - 1019, 1019, 820, 1019, 0, 1015, 1015, 1015, 1015, 1015, - 1015, 1015, 1525, 710, 708, 0, 709, 0, 711, 1019, - 1019, 0, 1019, 1015, 1015, 1015, 1015, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1019, 0, 1019, 1019, - 1019, 0, 961, 1019, 818, 0, 1019, 1019, 0, 0, - 0, 0, 0, 0, 0, 1015, 1019, 1015, 820, 0, - 0, 820, 0, 0, 706, 0, 0, 0, 820, 707, - 1019, 820, 706, 1019, 0, 820, 0, 707, 0, 0, - 820, 0, 0, 820, 0, 818, 0, 0, 818, 1019, - 0, 0, 0, 0, 0, 1019, 1019, 0, 0, 820, - 1019, 0, 0, 818, 0, 0, 0, 0, 0, 0, - 0, 1019, 1019, 0, 1019, 1492, 1493, 0, 0, 0, - 1019, 1497, 1498, 820, 1500, 1501, 820, 820, 0, 0, - 0, 0, 1505, 1506, 1507, 1508, 820, 1509, 1510, 1511, - 1512, 1513, 1514, 0, 0, 0, 0, 0, 0, 1019, - 1019, 706, 1019, 820, 0, 0, 707, 105, 0, 1019, - 1019, 1019, 1019, 1019, 0, 1019, 0, 0, 1019, 1019, - 1019, 1019, 1019, 0, 706, 820, 1019, 1019, 0, 707, - 820, 1019, 0, 0, 0, 0, 106, 107, 706, 108, - 0, 0, 820, 707, 820, 0, 109, 110, 111, 112, - 113, 0, 114, 0, 0, 115, 116, 117, 118, 119, - 0, 0, 706, 120, 121, 0, 0, 707, 0, 0, - 0, 0, 0, 84, 0, 0, 1015, 0, 1015, 1015, - 85, 0, 0, 0, 86, 87, 1015, 0, 0, 0, - 0, 0, 0, 88, 1015, 0, 0, 0, 0, 1015, - 0, 706, 1015, 0, 0, 89, 707, 542, 0, 0, - 0, 820, 0, 0, 0, 0, 1015, 0, 868, 0, - 0, 1015, 1015, 0, 0, 1015, 0, 0, 0, 0, - 0, 0, 1015, 0, 1015, 1015, 0, 0, 1015, 0, - 0, 0, 1015, 0, 0, 1015, 0, 1015, 542, 1015, - 0, 542, 0, 62, 1015, 1015, 818, 1015, 0, 868, - 868, 868, 868, 868, 63, 868, 542, 0, 542, 0, - 90, 64, 0, 1015, 1015, 0, 1015, 868, 868, 868, - 868, 0, 0, 0, 65, 0, 0, 91, 0, 0, - 1015, 0, 1015, 1015, 1015, 0, 679, 1015, 0, 0, - 1015, 1015, 92, 0, 0, 0, 93, 0, 0, 0, - 1015, 868, 818, 0, 0, 818, 0, 94, 0, 0, - 0, 0, 818, 0, 1015, 818, 0, 1015, 0, 818, - 0, 0, 181, 0, 818, 0, 95, 818, 0, 0, - 0, 0, 0, 1015, 0, 66, 0, 0, 0, 1015, - 1015, 0, 0, 818, 1015, 0, 0, 0, 0, 0, - 0, 67, 0, 0, 0, 1015, 1015, 0, 1015, 0, - 0, 0, 0, 181, 1015, 0, 181, 818, 68, 0, - 818, 818, 0, 0, 0, 0, 0, 0, 0, 0, - 818, 181, 0, 69, 0, 0, 0, 70, 0, 0, - 71, 0, 0, 1015, 1015, 0, 1015, 818, 72, 0, - 105, 0, 0, 1015, 1015, 1015, 1015, 1015, 0, 1015, - 0, 0, 1015, 1015, 1015, 1015, 1015, 73, 0, 818, - 1015, 1015, 0, 0, 818, 1015, 0, 0, 0, 106, - 107, 0, 108, 0, 0, 0, 818, 0, 818, 109, - 110, 111, 112, 113, 0, 114, 0, 0, 115, 116, - 117, 118, 119, 0, 0, 542, 120, 121, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 868, 542, 868, 868, 0, 0, 0, 0, 0, 0, - 868, 0, 0, 0, 0, 0, 0, 0, 868, 0, - 0, 0, 0, 868, 0, 0, 868, 542, 0, 0, - 0, 0, 0, 542, 0, 818, 542, 0, 0, 0, - 868, 0, 880, 0, 0, 868, 868, 0, 0, 868, - 0, 0, 0, 0, 0, 0, 868, 0, 868, 868, - 0, 0, 868, 0, 0, 0, 868, 0, 540, 868, - 0, 868, 0, 868, 0, 0, 0, 0, 868, 868, - 0, 868, 0, 880, 880, 880, 880, 880, 0, 880, - 0, 0, 679, 0, 0, 0, 0, 868, 868, 0, - 868, 880, 880, 880, 880, 0, 0, 0, 0, 540, - 181, 0, 540, 0, 868, 0, 868, 868, 868, 0, - 0, 868, 0, 181, 868, 868, 0, 540, 0, 540, - 0, 181, 0, 0, 868, 880, 0, 0, 542, 0, - 0, 0, 0, 0, 0, 542, 0, 0, 868, 0, - 0, 868, 181, 0, 0, 0, 0, 0, 181, 0, - 181, 0, 0, 542, 0, 0, 0, 868, 0, 0, - 509, 0, 0, 868, 868, 0, 0, 0, 868, 0, - 0, 181, 0, 0, 0, 0, 0, 0, 0, 868, - 868, 0, 868, 542, 0, 0, 0, 542, 868, 0, - 181, 0, 0, 0, 0, 0, 0, 0, 0, 181, - 0, 509, 0, 0, 509, 181, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 868, 868, 509, - 868, 0, 682, 181, 0, 0, 0, 868, 868, 868, - 868, 868, 0, 868, 0, 0, 868, 868, 868, 868, - 868, 0, 0, 0, 868, 868, 0, 0, 883, 868, - 0, 682, 682, 0, 682, 0, 0, 0, 0, 0, - 181, 682, 682, 682, 682, 682, 0, 682, 0, 0, - 682, 682, 682, 682, 682, 0, 0, 0, 682, 682, - 1255, 0, 0, 0, 0, 0, 0, 0, 0, 883, - 883, 883, 883, 883, 880, 883, 880, 880, 0, 0, - 0, 0, 0, 0, 880, 0, 0, 883, 883, 883, - 883, 0, 0, 0, 0, 0, 540, 880, 0, 0, - 880, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 880, 540, 540, 0, 540, 880, - 880, 883, 540, 880, 0, 540, 0, 0, 0, 0, - 880, 0, 880, 880, 0, 0, 880, 0, 540, 181, - 880, 0, 0, 880, 540, 880, 0, 880, 0, 0, - 0, 0, 880, 880, 0, 880, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 880, 880, 223, 880, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 880, 0, - 880, 880, 880, 0, 0, 880, 0, 0, 880, 880, - 0, 0, 0, 0, 0, 0, 0, 0, 880, 0, - 0, 0, 0, 0, 223, 0, 540, 223, 509, 0, - 509, 0, 880, 0, 0, 880, 0, 509, 0, 819, - 0, 0, 223, 0, 0, 0, 0, 0, 540, 0, - 509, 880, 0, 0, 0, 540, 0, 880, 880, 0, - 0, 0, 880, 0, 540, 0, 540, 0, 0, 0, - 0, 0, 0, 880, 880, 0, 880, 0, 0, 0, - 819, 0, 880, 819, 540, 0, 0, 0, 0, 540, - 0, 0, 0, 0, 0, 0, 0, 0, 819, 0, - 883, 0, 883, 883, 0, 0, 0, 0, 0, 0, - 883, 880, 880, 0, 880, 0, 0, 0, 540, 0, - 392, 880, 880, 880, 880, 880, 883, 880, 509, 0, - 880, 880, 880, 880, 880, 0, 0, 0, 880, 880, - 883, 0, 884, 880, 0, 883, 883, 0, 394, 883, - 509, 0, 0, 0, 0, 0, 883, 509, 883, 883, - 0, 0, 883, 0, 0, 0, 883, 542, 251, 883, - 0, 883, 0, 883, 0, 0, 0, 396, 883, 883, - 0, 883, 0, 884, 884, 884, 884, 884, 0, 884, - 0, 509, 0, 0, 0, 0, 0, 883, 883, 0, - 883, 884, 884, 884, 884, 0, 0, 0, 542, 251, - 0, 542, 251, 0, 883, 0, 883, 883, 883, 0, - 0, 883, 0, 0, 883, 883, 542, 251, 0, 0, - 0, 0, 0, 0, 883, 884, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 883, 0, - 0, 883, 401, 0, 0, 0, 177, 0, 0, 0, - 0, 223, 0, 223, 0, 0, 0, 883, 403, 0, - 223, 0, 0, 883, 883, 0, 0, 0, 883, 0, - 0, 0, 404, 405, 406, 0, 208, 209, 0, 883, - 883, 0, 883, 0, 0, 0, 0, 0, 883, 0, - 0, 819, 0, 0, 0, 409, 410, 411, 412, 413, - 414, 415, 416, 417, 0, 177, 0, 0, 0, 0, - 419, 420, 0, 0, 0, 0, 0, 883, 883, 424, - 883, 0, 0, 0, 0, 0, 0, 883, 883, 883, - 883, 883, 0, 883, 0, 0, 883, 883, 883, 883, - 883, 0, 704, 0, 883, 883, 0, 819, 878, 883, - 819, 223, 0, 0, 0, 0, 0, 819, 0, 77, - 819, 0, 0, 0, 819, 0, 0, 0, 0, 819, - 0, 0, 819, 223, 0, 0, 0, 0, 0, 0, - 223, 0, 0, 0, 0, 0, 704, 0, 819, 878, - 0, 878, 878, 878, 884, 0, 884, 884, 0, 0, - 0, 704, 0, 0, 884, 0, 0, 878, 878, 878, - 878, 0, 819, 0, 223, 819, 819, 0, 0, 0, - 884, 0, 0, 0, 0, 819, 0, 0, 0, 0, - 0, 0, 0, 0, 884, 542, 251, 542, 251, 884, - 884, 878, 819, 884, 542, 251, 0, 0, 0, 0, - 884, 0, 884, 884, 0, 0, 884, 542, 0, 0, - 884, 0, 0, 884, 819, 884, 0, 884, 0, 819, - 0, 0, 884, 884, 0, 884, 0, 0, 0, 0, - 0, 819, 0, 819, 0, 0, 0, 0, 0, 0, - 0, 884, 884, 0, 884, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 177, 0, 0, 0, 884, 0, - 884, 884, 884, 0, 0, 884, 0, 177, 884, 884, - 0, 0, 0, 0, 0, 177, 0, 0, 884, 0, - 0, 0, 0, 0, 0, 542, 251, 0, 0, 0, - 0, 0, 884, 0, 0, 884, 177, 0, 0, 849, - 819, 0, 177, 0, 177, 0, 0, 542, 251, 0, - 0, 884, 0, 0, 542, 251, 0, 884, 884, 0, - 0, 0, 884, 0, 0, 177, 0, 0, 0, 0, - 0, 0, 0, 884, 884, 0, 884, 0, 0, 0, - 849, 0, 884, 849, 177, 0, 0, 0, 542, 251, - 0, 0, 0, 177, 0, 0, 0, 0, 849, 177, - 878, 0, 878, 878, 0, 0, 0, 0, 0, 0, - 878, 884, 884, 0, 884, 0, 0, 177, 0, 0, - 0, 884, 884, 884, 884, 884, 878, 884, 0, 0, - 884, 884, 884, 884, 884, 0, 0, 0, 884, 884, - 878, 0, 877, 884, 0, 878, 878, 0, 0, 878, - 0, 0, 0, 704, 177, 0, 878, 0, 878, 878, - 704, 0, 878, 704, 0, 0, 878, 704, 0, 878, - 0, 878, 0, 878, 0, 704, 0, 0, 878, 878, - 0, 878, 0, 877, 0, 877, 877, 877, 0, 0, - 0, 704, 0, 0, 0, 0, 0, 878, 878, 0, - 878, 877, 877, 877, 877, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 878, 704, 878, 878, 878, 0, - 0, 878, 0, 0, 878, 878, 0, 0, 0, 0, - 0, 0, 0, 0, 878, 877, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 704, 0, 0, 878, 0, - 704, 878, 0, 177, 0, 0, 0, 0, 0, 0, - 0, 0, 76, 0, 105, 0, 0, 878, 0, 0, - 0, 0, 704, 878, 878, 0, 0, 0, 878, 0, - 0, 0, 0, 0, 704, 0, 704, 0, 0, 878, - 878, 0, 878, 106, 107, 0, 108, 0, 878, 0, - 0, 849, 0, 109, 110, 111, 112, 113, 0, 114, - 0, 0, 115, 116, 117, 118, 119, 0, 0, 0, - 120, 121, 0, 0, 0, 0, 0, 878, 878, 0, - 878, 0, 0, 0, 0, 0, 0, 878, 878, 878, - 878, 878, 0, 878, 0, 0, 878, 878, 878, 878, - 878, 0, 378, 0, 878, 878, 0, 849, 879, 878, - 849, 0, 0, 0, 0, 221, 0, 849, 0, 221, - 849, 0, 0, 0, 849, 0, 0, 0, 0, 849, - 0, 0, 849, 221, 0, 0, 0, 221, 0, 0, - 221, 0, 0, 378, 0, 0, 378, 0, 849, 879, - 0, 879, 879, 879, 877, 0, 877, 877, 0, 0, - 0, 378, 0, 0, 877, 0, 0, 879, 879, 879, - 879, 0, 849, 0, 0, 849, 849, 0, 0, 0, - 877, 221, 0, 0, 0, 849, 0, 221, 221, 221, - 0, 221, 221, 221, 877, 221, 0, 0, 0, 877, - 877, 879, 849, 877, 0, 0, 0, 0, 0, 0, - 877, 0, 877, 877, 0, 221, 877, 221, 813, 0, - 877, 0, 0, 877, 849, 877, 0, 877, 0, 849, - 0, 0, 877, 877, 0, 877, 0, 0, 0, 0, - 0, 849, 0, 849, 0, 537, 0, 0, 221, 0, - 0, 877, 877, 80, 877, 0, 0, 0, 0, 813, - 0, 0, 813, 0, 0, 221, 0, 0, 877, 0, - 877, 877, 877, 0, 0, 877, 0, 813, 877, 877, - 0, 0, 0, 0, 0, 0, 537, 221, 877, 537, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 877, 0, 537, 877, 537, 0, 0, 0, - 849, 0, 0, 0, 0, 0, 814, 0, 0, 0, - 0, 877, 221, 221, 0, 0, 0, 877, 877, 0, - 0, 0, 877, 0, 0, 0, 0, 0, 0, 221, - 0, 0, 0, 877, 877, 0, 877, 0, 0, 0, - 0, 0, 877, 0, 0, 0, 0, 814, 0, 0, - 814, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 879, 0, 879, 879, 0, 814, 0, 0, 0, 0, - 879, 877, 877, 0, 877, 0, 0, 0, 0, 0, - 0, 877, 877, 877, 877, 877, 879, 877, 0, 0, - 877, 877, 877, 877, 877, 0, 0, 0, 877, 877, - 879, 0, 882, 877, 0, 879, 879, 0, 0, 879, - 0, 0, 0, 378, 0, 0, 879, 0, 879, 879, - 378, 0, 879, 378, 0, 0, 879, 378, 0, 879, - 0, 879, 0, 879, 0, 378, 0, 0, 879, 879, - 0, 879, 0, 882, 0, 882, 882, 882, 0, 0, - 0, 378, 0, 0, 0, 0, 0, 879, 879, 0, - 879, 882, 882, 882, 882, 0, 0, 0, 0, 0, - 813, 0, 0, 0, 879, 378, 879, 879, 879, 0, - 0, 879, 0, 0, 879, 879, 0, 0, 0, 0, - 0, 0, 0, 537, 879, 882, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 378, 0, 0, 879, 0, - 0, 879, 537, 537, 0, 537, 187, 0, 0, 537, - 0, 0, 537, 0, 0, 0, 813, 879, 0, 813, - 0, 0, 378, 879, 879, 537, 813, 0, 879, 813, - 0, 537, 0, 813, 378, 0, 378, 0, 813, 879, - 879, 813, 879, 0, 0, 0, 0, 0, 879, 0, - 0, 0, 0, 0, 0, 0, 0, 813, 814, 0, - 0, 0, 0, 0, 0, 187, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 879, 879, 0, - 879, 813, 0, 0, 813, 813, 0, 879, 879, 879, - 879, 879, 0, 879, 813, 0, 879, 879, 879, 879, - 879, 0, 0, 537, 879, 879, 0, 0, 0, 879, - 0, 813, 0, 0, 814, 0, 0, 814, 0, 0, - 0, 0, 0, 0, 814, 537, 858, 814, 0, 0, - 0, 814, 537, 813, 0, 0, 814, 0, 813, 814, - 0, 0, 0, 537, 0, 0, 0, 0, 0, 0, - 813, 0, 813, 0, 882, 814, 882, 882, 0, 0, - 0, 537, 0, 0, 882, 0, 537, 858, 1024, 1024, - 858, 1024, 1024, 1024, 0, 0, 0, 0, 0, 814, - 882, 0, 814, 814, 0, 858, 1024, 1024, 1024, 0, - 0, 0, 814, 0, 882, 537, 0, 0, 0, 882, - 882, 0, 0, 882, 0, 0, 0, 0, 0, 814, - 882, 0, 882, 882, 0, 0, 882, 1024, 0, 813, - 882, 0, 0, 882, 188, 882, 0, 882, 0, 0, - 0, 814, 882, 882, 0, 882, 814, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 814, 0, - 814, 882, 882, 0, 882, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 187, 0, 0, 0, 882, 0, - 882, 882, 882, 0, 0, 882, 0, 187, 882, 882, - 0, 0, 0, 188, 0, 187, 0, 0, 882, 0, - 815, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 882, 0, 0, 882, 187, 0, 0, 0, - 0, 0, 187, 0, 187, 0, 0, 814, 0, 0, - 0, 882, 0, 0, 0, 0, 0, 882, 882, 0, - 0, 815, 882, 0, 815, 187, 0, 0, 0, 0, - 0, 0, 0, 882, 882, 0, 882, 0, 0, 815, - 0, 0, 882, 0, 187, 0, 0, 0, 0, 0, - 0, 0, 0, 187, 0, 0, 0, 0, 0, 187, - 0, 0, 0, 0, 859, 0, 0, 0, 0, 0, - 0, 882, 882, 0, 882, 0, 0, 187, 858, 0, - 0, 882, 882, 882, 882, 882, 0, 882, 1024, 0, - 882, 882, 882, 882, 882, 0, 1024, 0, 882, 882, - 0, 1024, 0, 882, 1024, 859, 1025, 1025, 859, 1025, - 1025, 1025, 0, 0, 187, 0, 0, 0, 0, 0, - 0, 0, 0, 859, 1025, 1025, 1025, 701, 0, 0, - 0, 0, 0, 0, 858, 0, 0, 858, 0, 0, - 1024, 0, 0, 0, 858, 0, 0, 858, 0, 1024, - 0, 858, 428, 0, 0, 1025, 858, 1024, 0, 858, - 682, 0, 0, 0, 0, 0, 0, 0, 701, 0, - 0, 701, 188, 0, 0, 858, 1024, 0, 1024, 0, - 0, 0, 0, 0, 0, 188, 701, 0, 0, 0, - 0, 0, 1024, 188, 1024, 1024, 1024, 0, 0, 858, - 682, 682, 858, 858, 682, 0, 0, 0, 0, 0, - 0, 0, 858, 187, 188, 0, 0, 0, 0, 682, - 188, 0, 188, 0, 0, 0, 0, 0, 0, 858, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 815, 188, 0, 1024, 0, 0, 0, 0, - 0, 858, 1, 0, 0, 0, 858, 0, 0, 0, - 0, 0, 188, 0, 0, 0, 0, 0, 858, 0, - 858, 188, 0, 2, 0, 0, 0, 188, 0, 0, - 0, 3, 0, 0, 0, 0, 0, 0, 4, 0, - 5, 0, 6, 0, 0, 188, 0, 7, 815, 0, - 0, 815, 0, 0, 8, 0, 0, 0, 815, 0, - 0, 815, 0, 0, 0, 815, 0, 0, 9, 0, - 815, 0, 0, 815, 0, 0, 859, 0, 0, 10, - 0, 0, 188, 0, 0, 0, 1025, 858, 0, 815, - 0, 0, 0, 0, 1025, 0, 0, 0, 0, 1025, - 0, 0, 1025, 0, 0, 0, 0, 699, 0, 0, - 0, 0, 0, 815, 0, 0, 815, 815, 0, 0, - 0, 0, 0, 0, 0, 0, 815, 0, 848, 0, - 0, 0, 859, 0, 0, 859, 0, 0, 1025, 0, - 0, 701, 859, 815, 0, 859, 11, 1025, 699, 859, - 0, 699, 0, 12, 859, 1025, 13, 859, 14, 15, - 0, 0, 0, 0, 0, 815, 699, 0, 0, 848, - 815, 0, 848, 859, 1025, 0, 1025, 0, 0, 0, - 0, 188, 815, 16, 815, 0, 0, 848, 0, 0, - 1025, 0, 1025, 1025, 1025, 701, 0, 859, 701, 0, - 859, 859, 0, 0, 0, 701, 0, 0, 701, 0, - 859, 0, 701, 0, 0, 0, 0, 701, 0, 0, - 701, 0, 0, 0, 0, 0, 0, 859, 682, 0, - 0, 682, 17, 0, 0, 0, 701, 0, 682, 0, - 0, 682, 0, 1025, 842, 682, 0, 18, 19, 859, - 682, 815, 0, 682, 859, 850, 0, 0, 0, 0, - 701, 0, 0, 0, 701, 0, 859, 0, 859, 682, - 0, 0, 0, 701, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 842, 0, 0, 842, 0, - 701, 0, 0, 682, 0, 0, 850, 682, 0, 850, - 0, 0, 0, 842, 105, 0, 682, 0, 0, 0, - 0, 0, 0, 0, 850, 0, 0, 701, 0, 0, - 0, 0, 0, 682, 0, 0, 0, 0, 0, 701, - 0, 701, 0, 106, 107, 859, 108, 701, 0, 0, - 0, 0, 0, 109, 110, 111, 112, 113, 0, 114, - 682, 0, 115, 116, 117, 118, 119, 0, 0, 0, - 120, 121, 682, 0, 682, 0, 701, 701, 0, 701, - 682, 0, 0, 851, 0, 0, 701, 701, 701, 701, - 701, 0, 701, 0, 0, 701, 701, 701, 701, 701, - 848, 0, 0, 701, 701, 0, 839, 0, 701, 682, - 682, 0, 682, 0, 0, 0, 0, 0, 0, 682, - 682, 682, 682, 682, 851, 682, 0, 851, 682, 682, - 682, 682, 682, 0, 0, 699, 682, 682, 699, 0, - 0, 682, 851, 0, 0, 699, 0, 839, 699, 0, - 839, 0, 699, 0, 0, 0, 848, 699, 0, 848, - 699, 0, 0, 0, 0, 839, 848, 0, 0, 848, - 843, 0, 0, 848, 0, 0, 699, 0, 848, 0, - 0, 848, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 848, 0, 0, - 699, 0, 0, 0, 699, 0, 0, 0, 0, 0, - 0, 843, 0, 699, 843, 0, 842, 0, 0, 0, - 0, 848, 0, 0, 848, 848, 0, 850, 0, 843, - 699, 0, 0, 0, 848, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 848, 0, 0, 0, 0, 0, 699, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 699, - 0, 699, 842, 848, 0, 842, 0, 682, 848, 0, - 0, 0, 842, 850, 0, 842, 850, 0, 0, 842, - 848, 0, 848, 850, 842, 0, 850, 842, 0, 0, - 850, 0, 0, 0, 0, 850, 682, 682, 850, 682, - 0, 0, 852, 842, 0, 0, 682, 682, 682, 682, - 682, 0, 682, 0, 850, 682, 682, 682, 682, 682, - 0, 0, 0, 682, 682, 0, 0, 842, 699, 0, - 842, 842, 0, 0, 840, 851, 0, 0, 850, 0, - 842, 850, 850, 852, 0, 0, 852, 0, 0, 848, - 0, 850, 1677, 0, 0, 0, 0, 842, 839, 0, - 0, 852, 0, 0, 0, 0, 0, 0, 850, 0, - 0, 0, 0, 0, 0, 840, 0, 0, 840, 842, - 0, 0, 0, 0, 842, 0, 0, 0, 0, 0, - 850, 851, 0, 840, 851, 850, 842, 0, 842, 0, - 0, 851, 0, 0, 851, 0, 0, 850, 851, 850, - 0, 0, 0, 851, 839, 0, 851, 839, 0, 0, - 0, 0, 843, 0, 839, 0, 0, 839, 0, 0, - 844, 839, 851, 0, 0, 0, 839, 0, 0, 839, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 839, 851, 0, 0, 851, - 851, 0, 0, 0, 0, 842, 0, 0, 0, 851, - 0, 844, 0, 0, 844, 0, 850, 0, 843, 839, - 0, 843, 839, 839, 0, 0, 851, 0, 843, 844, - 0, 843, 839, 0, 0, 843, 0, 0, 0, 0, - 843, 0, 0, 843, 0, 0, 0, 0, 851, 839, - 0, 566, 0, 851, 0, 0, 0, 0, 0, 843, - 0, 0, 0, 0, 0, 851, 0, 851, 0, 0, - 0, 839, 0, 0, 0, 0, 839, 0, 0, 0, - 0, 0, 0, 843, 0, 0, 843, 843, 839, 0, - 839, 0, 0, 0, 0, 0, 843, 0, 0, 0, - 0, 0, 0, 662, 852, 0, 425, 0, 426, 0, - 0, 0, 0, 843, 0, 0, 0, 0, 0, 0, - 0, 428, 0, 0, 0, 0, 283, 0, 0, 0, - 0, 0, 0, 0, 851, 843, 840, 0, 0, 0, - 843, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 843, 0, 843, 0, 0, 839, 0, 0, - 852, 0, 0, 852, 0, 0, 0, 0, 0, 0, - 852, 0, 0, 852, 0, 0, 0, 852, 0, 0, - 0, 0, 852, 0, 0, 852, 0, 0, 0, 1688, - 0, 0, 840, 0, 0, 840, 0, 0, 0, 0, - 0, 852, 840, 0, 0, 840, 0, 0, 0, 840, - 0, 0, 0, 0, 840, 0, 0, 840, 0, 0, - 0, 843, 0, 0, 105, 852, 0, 0, 852, 852, - 0, 0, 844, 840, 0, 0, 0, 0, 852, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 106, 107, 852, 108, 840, 0, 0, - 840, 840, 0, 109, 110, 111, 112, 113, 0, 114, - 840, 0, 115, 116, 117, 118, 119, 852, 0, 0, - 120, 121, 852, 0, 0, 0, 0, 840, 844, 0, - 0, 844, 0, 105, 852, 0, 852, 0, 844, 0, - 0, 844, 0, 0, 0, 844, 0, 0, 0, 840, - 844, 0, 0, 844, 840, 0, 0, 0, 0, 0, - 0, 0, 106, 107, 0, 108, 840, 0, 840, 844, - 389, 0, 109, 110, 111, 112, 113, 0, 114, 390, - 0, 115, 116, 117, 118, 119, 0, 0, 0, 120, - 121, 0, 391, 844, 0, 0, 844, 844, 392, 393, - 0, 0, 662, 852, 0, 425, 844, 426, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 656, 0, 0, - 428, 0, 0, 844, 0, 283, 394, 0, 0, 395, - 0, 0, 0, 0, 0, 840, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 844, 0, 0, 0, 0, - 844, 0, 0, 0, 0, 0, 0, 397, 398, 0, - 0, 0, 844, 0, 844, 0, 0, 0, 0, 399, - 0, 0, 0, 400, 0, 0, 873, 0, 0, 0, - 600, 887, 666, 0, 666, 666, 0, 666, 0, 0, - 0, 0, 0, 0, 874, 0, 0, 0, 601, 0, - 666, 602, 0, 0, 0, 666, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 699, 0, 0, 0, 658, 0, 0, 0, 0, 0, - 401, 844, 0, 0, 0, 0, 402, 0, 0, 0, - 0, 0, 603, 0, 0, 0, 403, 0, 604, 605, - 606, 0, 607, 608, 609, 0, 610, 0, 0, 0, - 404, 405, 406, 407, 208, 209, 0, 0, 0, 0, - 0, 0, 0, 0, 408, 0, 611, 0, 612, 0, - 0, 0, 0, 409, 410, 411, 412, 413, 414, 415, - 416, 417, 106, 418, 0, 108, 0, 0, 419, 420, - 0, 421, 422, 423, 111, 112, 113, 424, 114, 613, - 0, 115, 116, 117, 118, 119, 888, 889, 890, 120, - 121, 0, 0, 0, 0, 0, 614, 0, 0, 389, - 105, 0, 0, 0, 0, 0, 0, 0, 390, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 615, 0, - 0, 391, 0, 0, 655, 0, 0, 392, 393, 106, - 107, 0, 108, 0, 0, 0, 0, 0, 0, 109, - 110, 111, 112, 113, 0, 114, 656, 0, 115, 116, - 117, 118, 119, 616, 617, 394, 120, 121, 395, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 618, 0, 666, 0, 0, 0, 0, 0, 0, 666, - 0, 0, 0, 0, 0, 0, 397, 398, 666, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 399, 0, - 0, 666, 400, 0, 0, 0, 0, 666, 666, 0, - 657, 660, 0, 660, 660, 666, 660, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 660, - 0, 0, 0, 0, 660, 666, 0, 0, 666, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 658, 0, 0, 0, 0, 0, 401, - 0, 0, 0, 0, 666, 402, 666, 666, 0, 0, - 0, 0, 0, 0, 0, 403, 0, 572, 666, 0, - 0, 0, 666, 0, 0, 0, 0, 0, 0, 404, - 405, 406, 407, 208, 209, 0, 0, 0, 0, 0, - 0, 0, 0, 408, 0, 0, 0, 0, 0, 0, - 0, 0, 409, 410, 411, 412, 413, 414, 415, 416, - 417, 106, 418, 0, 108, 0, 0, 419, 420, 0, - 421, 422, 423, 111, 112, 113, 424, 114, 0, 666, - 115, 116, 659, 660, 661, 666, 0, 0, 120, 121, - 0, 0, 0, 0, 0, 666, 0, 0, 0, 0, - 0, 0, 0, 662, 0, 0, 425, 0, 426, 666, - 666, 666, 666, 666, 666, 0, 0, 0, 0, 0, - 0, 428, 0, 666, 0, 0, 283, 0, 0, 964, - 0, 0, 666, 666, 666, 666, 666, 666, 666, 666, - 666, 666, 666, 0, 666, 0, 0, 666, 666, 0, - 666, 666, 666, 666, 666, 666, 666, 666, 0, 0, - 666, 666, 666, 666, 666, 0, 0, 0, 666, 666, - 0, 660, 0, 0, 0, 0, 0, 0, 660, 0, - 0, 0, 0, 0, 0, 0, 0, 660, 0, 0, - 105, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 660, 0, 0, 0, 0, 0, 660, 660, 0, 0, - 0, 0, 0, 0, 660, 0, 0, 0, 0, 106, - 107, 0, 108, 0, 0, 0, 0, 0, 0, 109, - 110, 111, 112, 113, 660, 114, 0, 660, 115, 116, - 117, 118, 119, 0, 967, 0, 120, 121, 0, 0, - 0, 0, 0, 0, 0, 662, 0, 0, 425, 0, - 426, 105, 0, 660, 0, 660, 660, 0, 0, 0, - 0, 0, 0, 428, 0, 0, 0, 660, 283, 0, - 0, 660, 0, 0, 0, 0, 0, 0, 0, 0, - 106, 107, 0, 108, 0, 0, 0, 0, 0, 0, - 109, 110, 111, 112, 113, 0, 114, 1666, 0, 115, - 116, 117, 118, 119, 0, 0, 0, 120, 121, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 389, 0, 1667, 0, 0, 0, 0, 0, 660, 390, - 0, 0, 0, 0, 660, 945, 710, 708, 0, 709, - 0, 711, 391, 0, 660, 0, 0, 0, 392, 393, - 0, 0, 0, 0, 908, 907, 909, 0, 660, 660, - 660, 660, 660, 660, 0, 0, 0, 656, 0, 0, - 0, 0, 660, 0, 0, 0, 394, 0, 0, 395, - 1668, 660, 660, 660, 660, 660, 660, 660, 660, 660, - 660, 660, 0, 660, 0, 0, 660, 660, 0, 660, - 660, 660, 660, 660, 660, 660, 660, 397, 398, 660, - 660, 660, 660, 660, 105, 0, 0, 660, 660, 399, - 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, - 0, 883, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 106, 107, 0, 108, 0, 0, 0, - 0, 0, 0, 109, 110, 111, 112, 113, 0, 114, - 0, 0, 115, 116, 117, 118, 119, 0, 0, 0, - 120, 121, 389, 0, 658, 0, 0, 0, 0, 0, - 401, 390, 0, 0, 662, 0, 402, 425, 0, 426, - 0, 0, 0, 0, 391, 0, 403, 0, 0, 0, - 392, 393, 428, 0, 0, 0, 0, 283, 0, 0, - 404, 405, 406, 407, 208, 209, 0, 0, 0, 656, - 0, 0, 0, 0, 408, 0, 0, 0, 394, 0, - 0, 395, 0, 409, 410, 411, 412, 413, 414, 415, - 416, 417, 106, 418, 0, 108, 0, 0, 419, 420, - 0, 421, 422, 423, 111, 112, 113, 424, 114, 397, - 398, 115, 116, 659, 660, 661, 895, 0, 0, 120, - 121, 399, 0, 0, 706, 400, 0, 0, 0, 707, - 0, 489, 896, 657, 425, 0, 426, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 428, - 0, 105, 0, 0, 283, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 897, 0, - 0, 0, 0, 0, 0, 0, 658, 898, 0, 0, - 106, 107, 401, 108, 0, 899, 0, 0, 402, 0, - 109, 110, 111, 112, 113, 0, 114, 0, 403, 115, - 116, 117, 118, 119, 900, 0, 901, 120, 121, 0, - 0, 0, 404, 405, 406, 407, 208, 209, 0, 0, - 902, 0, 903, 904, 905, 0, 408, 0, 0, 0, - 0, 0, 0, 0, 0, 409, 410, 411, 412, 413, - 414, 415, 416, 417, 106, 418, 0, 108, 0, 0, - 419, 420, 0, 421, 422, 423, 111, 112, 113, 424, - 114, 389, 0, 115, 116, 659, 660, 661, 0, 469, - 390, 120, 121, 906, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 391, 0, 0, 105, 0, 0, 392, - 393, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 656, 0, - 0, 0, 0, 0, 0, 106, 107, 394, 108, 0, - 395, 0, 0, 0, 0, 109, 110, 111, 112, 113, - 0, 114, 0, 0, 115, 116, 117, 118, 119, 0, - 0, 0, 120, 121, 0, 0, 0, 0, 397, 398, - 0, 1128, 547, 0, 1129, 0, 0, 0, 389, 0, - 399, 0, 0, 0, 400, 0, 0, 390, 0, 0, - 0, 0, 883, 0, 0, 0, 0, 0, 0, 0, - 391, 0, 0, 0, 0, 0, 392, 393, 0, 489, - 0, 0, 425, 547, 426, 0, 547, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 428, 0, 0, - 0, 547, 283, 547, 394, 658, 0, 395, 0, 0, - 0, 401, 0, 0, 0, 0, 0, 402, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 403, 0, 0, - 0, 0, 0, 547, 0, 397, 398, 0, 0, 0, - 0, 404, 405, 406, 407, 208, 209, 399, 0, 0, - 0, 400, 0, 0, 0, 408, 0, 0, 0, 0, - 0, 0, 0, 0, 409, 410, 411, 412, 413, 414, - 415, 416, 417, 106, 418, 0, 108, 0, 0, 419, - 420, 0, 421, 422, 423, 111, 112, 113, 424, 114, - 0, 0, 115, 116, 117, 118, 119, 0, 0, 0, - 120, 121, 0, 0, 0, 0, 1130, 0, 401, 0, - 0, 0, 0, 0, 402, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 403, 0, 0, 0, 0, 0, - 0, 489, 0, 0, 425, 0, 426, 0, 404, 405, - 406, 407, 208, 209, 0, 0, 0, 0, 0, 428, - 0, 964, 408, 0, 283, 0, 0, 0, 0, 0, - 0, 409, 410, 411, 412, 413, 414, 415, 416, 417, - 106, 418, 0, 108, 0, 0, 419, 420, 0, 421, - 422, 423, 111, 112, 113, 424, 114, 0, 0, 115, - 116, 117, 118, 119, 0, 0, 0, 120, 121, 1138, - 547, 0, 1129, 0, 0, 0, 389, 0, 0, 0, - 0, 0, 0, 0, 0, 390, 547, 0, 0, 547, - 547, 465, 547, 0, 0, 965, 547, 0, 391, 547, - 0, 0, 0, 0, 392, 393, 0, 0, 0, 0, - 489, 0, 547, 425, 0, 426, 0, 105, 547, 0, - 0, 547, 0, 0, 0, 0, 0, 0, 428, 0, - 0, 966, 394, 283, 0, 395, 967, 0, 0, 0, - 0, 0, 968, 0, 0, 0, 106, 107, 0, 108, - 0, 0, 0, 105, 0, 0, 109, 110, 111, 112, - 113, 969, 114, 397, 398, 115, 116, 117, 118, 119, - 0, 0, 0, 120, 121, 399, 0, 0, 0, 400, - 0, 0, 106, 107, 0, 108, 0, 0, 0, 0, - 547, 0, 109, 110, 111, 112, 113, 0, 114, 0, - 0, 115, 116, 117, 118, 119, 0, 0, 0, 120, - 121, 0, 547, 0, 0, 0, 0, 0, 0, 547, - 0, 1142, 0, 547, 1129, 0, 0, 0, 389, 0, - 547, 0, 0, 0, 1130, 0, 401, 390, 0, 0, - 0, 0, 402, 0, 0, 0, 0, 0, 547, 0, - 391, 0, 403, 547, 0, 0, 392, 393, 0, 0, - 0, 0, 0, 0, 0, 0, 404, 405, 406, 407, - 208, 209, 0, 0, 0, 0, 0, 0, 547, 0, - 408, 0, 547, 0, 394, 0, 0, 395, 0, 409, - 410, 411, 412, 413, 414, 415, 416, 417, 106, 418, - 0, 108, 0, 0, 419, 420, 0, 421, 422, 423, - 111, 112, 113, 424, 114, 397, 398, 115, 116, 117, - 118, 119, 0, 0, 0, 120, 121, 399, 0, 0, - 1150, 400, 0, 1129, 0, 0, 0, 389, 0, 0, - 0, 0, 0, 0, 0, 0, 390, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 391, - 0, 0, 0, 0, 0, 392, 393, 0, 0, 489, - 0, 0, 425, 0, 426, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1130, 428, 401, 0, - 0, 0, 283, 394, 402, 0, 395, 0, 0, 0, - 0, 0, 0, 0, 403, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 404, 405, - 406, 407, 208, 209, 397, 398, 0, 0, 0, 0, - 0, 0, 408, 0, 0, 0, 399, 0, 0, 0, - 400, 409, 410, 411, 412, 413, 414, 415, 416, 417, - 106, 418, 0, 108, 0, 0, 419, 420, 0, 421, - 422, 423, 111, 112, 113, 424, 114, 0, 0, 115, - 116, 117, 118, 119, 0, 1438, 0, 120, 121, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 1130, 0, 401, 0, 0, - 0, 0, 0, 402, 0, 6, 0, 0, 0, 0, - 0, 0, 0, 403, 0, 0, 1555, 1556, 0, 1557, - 0, 489, 0, 0, 425, 0, 426, 404, 405, 406, - 407, 208, 209, 0, 0, 0, 1558, 0, 0, 428, - 0, 408, 1559, 0, 283, 0, 0, 0, 0, 0, - 409, 410, 411, 412, 413, 414, 415, 416, 417, 106, - 418, 0, 108, 0, 0, 419, 420, 0, 421, 422, - 423, 111, 112, 113, 424, 114, 0, 0, 115, 116, - 117, 118, 119, 0, 0, 0, 120, 121, 0, 1153, - 0, 0, 1129, 0, 0, 0, 389, 0, 0, 0, - 0, 0, 1560, 0, 0, 390, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 391, 0, - 0, 14, 0, 0, 392, 393, 0, 0, 0, 585, - 489, 0, 0, 425, 0, 426, 1561, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 16, 0, 428, 0, - 0, 0, 394, 283, 0, 395, 0, 0, 585, 585, - 0, 585, 0, 0, 105, 0, 0, 0, 585, 585, - 585, 585, 585, 0, 585, 0, 0, 585, 585, 585, - 585, 585, 0, 397, 398, 585, 585, 0, 0, 0, - 0, 0, 0, 1562, 107, 399, 108, 0, 0, 400, - 0, 0, 0, 109, 110, 111, 112, 113, 0, 114, - 0, 0, 115, 1563, 117, 118, 119, 0, 0, 0, - 120, 121, 1564, 1565, 1566, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 1158, 0, 0, 1129, 0, 0, 0, 389, 0, - 0, 0, 0, 0, 1130, 0, 401, 390, 0, 0, - 0, 0, 402, 0, 0, 0, 0, 0, 0, 0, - 391, 0, 403, 0, 0, 0, 392, 393, 0, 0, - 0, 0, 0, 0, 0, 0, 404, 405, 406, 407, - 208, 209, 0, 0, 0, 0, 0, 0, 0, 0, - 408, 0, 0, 0, 394, 0, 0, 395, 0, 409, - 410, 411, 412, 413, 414, 415, 416, 417, 106, 418, - 0, 108, 0, 0, 419, 420, 0, 421, 422, 423, - 111, 112, 113, 424, 114, 397, 398, 115, 116, 117, - 118, 119, 0, 0, 0, 120, 121, 399, 0, 0, - 1161, 400, 0, 1129, 0, 0, 0, 389, 0, 0, - 0, 0, 0, 0, 0, 0, 390, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 391, - 0, 0, 0, 0, 0, 392, 393, 0, 0, 489, - 0, 0, 425, 0, 426, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 1130, 428, 401, 0, - 0, 0, 283, 394, 402, 0, 395, 0, 0, 0, - 0, 0, 0, 0, 403, 0, 0, 0, 0, 0, - 710, 708, 0, 709, 0, 711, 0, 0, 404, 405, - 406, 407, 208, 209, 397, 398, 0, 0, 908, 907, - 909, 0, 408, 0, 0, 0, 399, 0, 0, 0, - 400, 409, 410, 411, 412, 413, 414, 415, 416, 417, - 106, 418, 0, 108, 0, 0, 419, 420, 0, 421, - 422, 423, 111, 112, 113, 424, 114, 0, 0, 115, - 116, 117, 118, 119, 0, 0, 0, 120, 121, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 1130, 0, 401, 0, 0, - 0, 0, 0, 402, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 403, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 404, 405, 406, - 407, 208, 209, 0, 0, 0, 0, 0, 0, 0, - 0, 408, 0, 0, 0, 0, 0, 0, 0, 0, - 409, 410, 411, 412, 413, 414, 415, 416, 417, 106, - 418, 0, 108, 0, 0, 419, 420, 0, 421, 422, - 423, 111, 112, 113, 424, 114, 0, 0, 115, 116, - 117, 118, 119, 0, 0, 0, 120, 121, 0, 1164, - 0, 0, 1129, 0, 0, 0, 389, 0, 0, 489, - 0, 494, 425, 0, 426, 390, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 428, 391, 0, - 98, 0, 283, 0, 392, 393, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 895, 0, 0, 0, 0, 0, 0, 0, 706, 0, - 0, 0, 394, 707, 0, 395, 896, 0, 0, 0, - 0, 99, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 100, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 397, 398, 0, 0, 134, 0, 0, - 0, 0, 897, 0, 0, 399, 0, 489, 101, 400, - 425, 898, 426, 0, 0, 0, 0, 0, 0, 899, - 0, 0, 0, 0, 0, 428, 0, 0, 0, 0, - 283, 0, 0, 0, 0, 0, 0, 0, 900, 0, - 901, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 902, 0, 903, 904, 905, 0, - 0, 0, 0, 0, 1130, 0, 401, 0, 0, 0, - 0, 0, 402, 0, 0, 0, 0, 102, 0, 0, - 0, 0, 403, 0, 0, 0, 0, 103, 0, 0, - 0, 0, 0, 0, 0, 0, 404, 405, 406, 407, - 208, 209, 0, 0, 0, 0, 0, 906, 0, 0, - 408, 0, 104, 0, 0, 0, 0, 0, 0, 409, - 410, 411, 412, 413, 414, 415, 416, 417, 106, 418, - 105, 108, 0, 0, 419, 420, 389, 421, 422, 423, - 111, 112, 113, 424, 114, 390, 0, 115, 116, 117, - 118, 119, 0, 0, 0, 120, 121, 0, 391, 106, - 107, 284, 108, 0, 392, 393, 0, 0, 0, 109, - 110, 111, 112, 113, 0, 114, 0, 0, 115, 116, - 117, 118, 119, 0, 0, 0, 120, 121, 0, 0, - 284, 284, 394, 284, 0, 395, 0, 0, 0, 0, - 284, 284, 284, 284, 284, 0, 284, 0, 0, 284, - 284, 284, 284, 284, 0, 0, 0, 284, 284, 0, - 0, 396, 0, 397, 398, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 389, 399, 0, 0, 0, 400, - 0, 0, 0, 390, 0, 0, 984, 0, 984, 984, - 0, 984, 0, 0, 0, 0, 391, 0, 0, 0, - 0, 0, 392, 393, 984, 0, 0, 0, 0, 984, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 394, 0, 0, 395, 0, 0, 401, 0, 0, 0, - 0, 0, 402, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 403, 0, 0, 0, 0, 0, 0, 396, - 0, 397, 398, 0, 0, 0, 404, 405, 406, 407, - 208, 209, 0, 399, 0, 0, 0, 400, 0, 0, - 408, 0, 0, 0, 0, 0, 0, 0, 0, 409, - 410, 411, 412, 413, 414, 415, 416, 417, 106, 418, - 0, 108, 0, 0, 419, 420, 0, 421, 422, 423, - 111, 112, 113, 424, 114, 0, 0, 115, 116, 117, - 118, 119, 0, 0, 699, 120, 121, 0, 0, 0, - 0, 0, 0, 0, 401, 0, 0, 0, 666, 0, - 402, 666, 0, 666, 0, 0, 0, 0, 0, 0, - 403, 0, 0, 0, 221, 0, 666, 0, 221, 0, - 0, 666, 0, 0, 404, 405, 406, 407, 208, 209, - 0, 0, 221, 0, 0, 0, 221, 0, 408, 221, - 0, 0, 0, 0, 0, 0, 0, 409, 410, 411, - 412, 413, 414, 415, 416, 417, 106, 418, 0, 108, - 0, 0, 419, 420, 0, 421, 422, 423, 111, 112, - 113, 424, 114, 984, 0, 115, 116, 117, 118, 119, - 221, 0, 984, 120, 121, 0, 221, 221, 221, 0, - 221, 221, 221, 0, 221, 984, 0, 0, 0, 0, - 0, 984, 984, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 221, 0, 221, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 984, - 0, 0, 984, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 221, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 984, 0, - 984, 984, 0, 0, 221, 0, 0, 0, 0, 0, - 0, 0, 984, 0, 0, 0, 984, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 221, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 666, 0, - 0, 221, 221, 0, 0, 666, 0, 0, 0, 0, - 0, 0, 0, 984, 666, 0, 0, 427, 221, 984, - 425, 0, 426, 0, 0, 0, 0, 666, 0, 984, - 0, 0, 0, 666, 666, 428, 0, 0, 0, 0, - 283, 666, 0, 984, 984, 984, 984, 984, 984, 0, - 0, 0, 0, 0, 0, 0, 0, 984, 0, 0, - 0, 666, 0, 0, 666, 0, 984, 984, 984, 984, - 984, 984, 984, 984, 984, 984, 984, 0, 984, 0, - 0, 984, 984, 0, 984, 984, 984, 984, 984, 984, - 984, 984, 666, 666, 984, 984, 984, 984, 984, 0, - 0, 0, 984, 984, 666, 0, 0, 0, 666, 0, - 0, 0, 0, 0, 489, 0, 0, 425, 0, 426, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 428, 0, 0, 0, 0, 283, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 666, 0, 0, 0, 0, - 0, 666, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 666, 0, 0, 0, 990, 0, 0, 0, 990, - 0, 0, 0, 0, 0, 666, 666, 666, 666, 666, - 666, 0, 0, 0, 0, 992, 0, 990, 0, 666, - 990, 0, 0, 0, 0, 0, 0, 0, 666, 666, - 666, 666, 666, 666, 666, 666, 666, 666, 666, 0, - 666, 0, 0, 666, 666, 0, 666, 666, 666, 666, - 666, 666, 666, 666, 389, 0, 666, 666, 666, 666, - 666, 990, 0, 390, 666, 666, 0, 990, 990, 990, - 0, 990, 990, 990, 0, 990, 391, 0, 0, 0, - 98, 0, 392, 393, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 990, 0, 990, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 394, 0, 0, 395, 0, 0, 0, 0, 0, 0, - 0, 99, 0, 0, 0, 0, 0, 0, 990, 0, - 0, 0, 0, 100, 0, 0, 0, 0, 0, 396, - 0, 397, 398, 0, 0, 990, 0, 0, 0, 0, - 0, 389, 0, 399, 0, 0, 0, 400, 101, 0, - 390, 0, 0, 489, 0, 0, 425, 990, 426, 0, - 0, 0, 0, 391, 0, 0, 0, 0, 0, 392, - 393, 428, 0, 0, 0, 0, 283, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 990, 990, 0, 0, 0, 394, 0, 0, - 395, 0, 0, 0, 401, 0, 0, 0, 0, 990, - 402, 0, 0, 0, 0, 0, 0, 102, 0, 0, - 403, 0, 0, 0, 0, 0, 0, 103, 397, 398, - 0, 0, 0, 0, 404, 405, 406, 407, 208, 209, - 399, 0, 0, 0, 400, 0, 0, 0, 408, 0, - 0, 0, 104, 0, 0, 0, 0, 409, 410, 411, - 412, 413, 414, 415, 416, 417, 106, 418, 0, 108, - 105, 0, 419, 420, 0, 421, 422, 423, 111, 112, - 113, 424, 114, 0, 0, 115, 116, 117, 118, 119, - 0, 0, 0, 120, 121, 0, 0, 0, 0, 106, - 107, 401, 108, 0, 0, 0, 0, 402, 0, 109, - 110, 111, 112, 113, 0, 114, 0, 403, 115, 116, - 117, 118, 119, 0, 0, 691, 120, 121, 0, 0, - 0, 404, 405, 406, 407, 208, 209, 0, 0, 0, - 0, 0, 0, 0, 0, 408, 0, 0, 0, 0, - 0, 0, 0, 0, 409, 410, 411, 412, 413, 414, - 415, 416, 417, 106, 418, 0, 108, 0, 0, 419, - 420, 0, 421, 422, 423, 111, 112, 113, 424, 114, - 389, 0, 115, 116, 117, 118, 119, 0, 0, 390, - 120, 121, 489, 0, 0, 425, 0, 426, 0, 0, - 0, 0, 391, 0, 0, 0, 0, 0, 392, 393, - 428, 0, 0, 0, 0, 283, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 394, 0, 0, 395, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 397, 398, 0, - 0, 0, 489, 948, 0, 425, 0, 426, 0, 399, - 0, 0, 0, 400, 0, 0, 0, 0, 0, 0, - 428, 0, 0, 105, 0, 283, 0, 0, 0, 0, - 0, 0, 164, 165, 166, 167, 168, 169, 170, 171, - 172, 173, 174, 175, 176, 177, 178, 179, 0, 0, - 180, 181, 106, 107, 0, 108, 0, 0, 182, 183, - 699, 0, 109, 110, 111, 112, 113, 184, 114, 185, - 401, 115, 116, 117, 118, 119, 402, 0, 0, 120, - 121, 186, 187, 188, 189, 0, 403, 0, 0, 0, - 599, 0, 0, 0, 600, 0, 0, 0, 0, 0, - 404, 405, 406, 407, 208, 209, 0, 0, 0, 0, - 0, 0, 601, 0, 408, 602, 0, 0, 0, 0, - 0, 0, 0, 409, 410, 411, 412, 413, 414, 415, - 416, 417, 106, 418, 0, 108, 0, 0, 419, 420, - 0, 421, 422, 423, 111, 112, 113, 424, 114, 389, - 0, 115, 116, 117, 118, 119, 603, 0, 390, 120, - 121, 0, 604, 605, 606, 0, 607, 608, 609, 0, - 610, 391, 0, 0, 0, 0, 0, 392, 393, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 611, 0, 612, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 394, 0, 0, 395, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 613, 0, 0, 0, 0, 0, 389, - 0, 0, 0, 0, 396, 0, 397, 398, 390, 0, - 614, 489, 0, 0, 425, 0, 426, 0, 399, 0, - 0, 391, 400, 0, 0, 0, 0, 392, 393, 428, - 0, 0, 615, 0, 283, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 394, 0, 0, 395, 0, - 0, 0, 0, 0, 0, 0, 0, 616, 617, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 401, - 0, 0, 0, 0, 618, 402, 397, 398, 0, 0, - 0, 0, 0, 0, 0, 403, 0, 0, 399, 0, - 0, 0, 400, 0, 0, 0, 0, 0, 0, 404, - 405, 406, 407, 208, 209, 0, 0, 0, 0, 0, - 0, 0, 0, 408, 0, 0, 0, 0, 0, 0, - 0, 0, 409, 410, 411, 412, 413, 414, 415, 416, - 417, 106, 418, 1438, 108, 0, 0, 419, 420, 0, - 421, 422, 423, 111, 112, 113, 424, 114, 0, 401, - 115, 116, 117, 118, 119, 402, 0, 0, 120, 121, - 0, 0, 0, 6, 0, 403, 0, 0, 0, 0, - 0, 0, 0, 0, 1555, 1556, 0, 1557, 0, 404, - 405, 406, 407, 208, 209, 0, 0, 0, 0, 0, - 0, 0, 0, 408, 1558, 0, 0, 0, 0, 0, - 1559, 0, 409, 410, 411, 412, 413, 414, 415, 416, - 417, 106, 418, 0, 108, 0, 0, 419, 420, 0, - 421, 422, 423, 111, 112, 113, 424, 114, 389, 0, - 115, 116, 117, 118, 119, 0, 0, 390, 120, 121, - 489, 0, 0, 425, 0, 426, 0, 0, 0, 0, - 391, 0, 0, 0, 0, 0, 392, 393, 428, 0, - 1560, 0, 0, 283, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, - 0, 0, 0, 0, 394, 0, 0, 395, 0, 0, - 0, 0, 0, 0, 1561, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, - 0, 0, 0, 1699, 0, 397, 398, 0, 0, 0, - 489, 0, 105, 425, 0, 426, 0, 399, 0, 0, - 0, 400, 0, 0, 0, 0, 0, 0, 428, 0, - 0, 0, 0, 283, 0, 0, 0, 0, 0, 0, - 0, 1562, 107, 0, 108, 0, 0, 0, 0, 0, - 0, 109, 110, 111, 112, 113, 0, 114, 0, 0, - 115, 1563, 117, 118, 119, 0, 0, 0, 120, 121, - 1564, 1565, 1566, 0, 0, 0, 0, 0, 401, 0, - 0, 0, 0, 0, 402, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 403, 0, 0, 0, 133, 0, - 0, 0, 133, 0, 0, 1156, 0, 0, 404, 405, - 406, 407, 208, 209, 0, 0, 0, 0, 0, 0, - 133, 0, 408, 133, 0, 0, 0, 0, 0, 0, - 0, 409, 410, 411, 412, 413, 414, 415, 416, 417, - 106, 418, 0, 108, 0, 0, 419, 420, 0, 421, - 422, 423, 111, 112, 113, 424, 114, 389, 0, 115, - 116, 117, 118, 119, 133, 0, 390, 120, 121, 0, - 133, 133, 133, 0, 133, 133, 133, 0, 133, 391, - 0, 0, 0, 0, 0, 392, 393, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 133, 0, - 133, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 394, 0, 0, 395, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 133, 0, 0, 0, 0, 0, 389, 0, 0, - 0, 0, 0, 0, 397, 398, 390, 0, 133, 489, - 0, 0, 425, 0, 426, 0, 399, 0, 0, 391, - 400, 0, 0, 0, 0, 392, 393, 428, 1743, 0, - 133, 0, 283, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 394, 0, 0, 395, 0, 0, 0, - 0, 0, 0, 0, 0, 133, 133, 1341, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 401, 0, 0, - 0, 0, 133, 402, 397, 398, 0, 0, 0, 0, - 0, 0, 0, 403, 0, 0, 399, 0, 0, 0, - 400, 0, 0, 0, 0, 0, 0, 404, 405, 406, - 407, 208, 209, 0, 0, 0, 0, 0, 0, 0, - 0, 408, 0, 0, 0, 0, 0, 0, 0, 0, - 409, 410, 411, 412, 413, 414, 415, 416, 417, 106, - 418, 0, 108, 0, 0, 419, 420, 0, 421, 422, - 423, 111, 112, 113, 424, 114, 0, 401, 115, 116, - 117, 118, 119, 402, 0, 0, 120, 121, 0, 0, - 0, 0, 0, 403, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 1354, 0, 0, 404, 405, 406, - 407, 208, 209, 0, 0, 0, 0, 0, 0, 0, - 0, 408, 0, 0, 0, 0, 0, 0, 0, 0, - 409, 410, 411, 412, 413, 414, 415, 416, 417, 106, - 418, 0, 108, 0, 0, 419, 420, 0, 421, 422, - 423, 111, 112, 113, 424, 114, 389, 0, 115, 116, - 117, 118, 119, 0, 0, 390, 120, 121, 489, 0, - 0, 425, 0, 426, 0, 0, 0, 0, 391, 0, - 0, 0, 0, 0, 392, 393, 428, 0, 0, 0, - 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 394, 0, 0, 395, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 397, 398, 0, 0, 0, 984, 0, - 0, 984, 0, 984, 0, 399, 0, 0, 0, 400, - 0, 0, 0, 0, 0, 0, 984, 0, 0, 468, - 0, 984, 0, 0, 0, 0, 0, 0, 0, 468, - 468, 468, 468, 468, 468, 468, 468, 468, 468, 468, - 468, 468, 468, 468, 0, 0, 468, 468, 468, 468, - 0, 468, 0, 0, 468, 468, 0, 0, 468, 468, - 468, 468, 468, 468, 468, 468, 401, 468, 468, 468, - 468, 468, 402, 0, 0, 468, 468, 468, 468, 468, - 468, 0, 403, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 404, 405, 406, 407, - 208, 209, 0, 0, 0, 0, 0, 0, 0, 0, - 408, 0, 0, 0, 0, 0, 0, 0, 0, 409, - 410, 411, 412, 413, 414, 415, 416, 417, 106, 418, - 0, 108, 0, 0, 419, 420, 0, 421, 422, 423, - 111, 112, 113, 424, 114, 389, 0, 115, 116, 117, - 118, 119, 0, 0, 390, 120, 121, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 391, 0, 0, - 0, 0, 0, 392, 393, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 394, 0, 0, 395, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 552, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 984, 0, 553, 0, 0, - 0, 0, 397, 398, 984, 0, 0, 0, 0, 569, - 0, 0, 0, 0, 399, 0, 0, 984, 400, 0, - 0, 0, 0, 984, 984, 552, 552, 0, 0, 552, - 0, 0, 0, 0, 0, 0, 0, 553, 553, 0, - 0, 553, 0, 0, 552, 0, 552, 0, 0, 0, - 569, 984, 0, 569, 984, 0, 553, 0, 553, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 569, 0, - 569, 0, 0, 0, 0, 401, 552, 0, 0, 0, - 0, 402, 984, 984, 0, 0, 0, 0, 553, 0, - 0, 403, 0, 0, 984, 0, 0, 0, 984, 0, - 569, 0, 0, 0, 0, 404, 405, 406, 407, 208, - 209, 0, 0, 0, 0, 0, 0, 0, 0, 408, - 0, 0, 0, 0, 0, 0, 0, 0, 409, 410, - 411, 412, 413, 414, 415, 416, 417, 106, 418, 0, - 108, 0, 0, 419, 420, 0, 421, 422, 423, 111, - 112, 113, 424, 114, 0, 984, 115, 116, 117, 118, - 119, 984, 0, 0, 120, 121, 0, 0, 0, 0, - 0, 984, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 984, 984, 984, 984, 984, - 984, 0, 0, 0, 0, 0, 0, 0, 0, 984, - 0, 0, 0, 0, 0, 0, 0, 559, 984, 984, - 984, 984, 984, 984, 984, 984, 984, 984, 984, 0, - 984, 0, 0, 984, 984, 0, 984, 984, 984, 984, - 984, 984, 984, 984, 0, 0, 984, 984, 984, 984, - 984, 0, 0, 552, 984, 984, 0, 0, 559, 0, - 0, 559, 0, 0, 0, 553, 0, 0, 0, 552, - 544, 0, 552, 552, 0, 552, 559, 569, 559, 552, - 0, 553, 552, 0, 553, 553, 0, 553, 0, 0, - 0, 553, 0, 569, 553, 552, 0, 569, 0, 569, - 0, 552, 0, 569, 552, 0, 569, 553, 559, 0, - 0, 544, 0, 553, 544, 0, 553, 0, 0, 569, - 0, 0, 0, 0, 0, 569, 0, 0, 569, 544, - 0, 544, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 544, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 552, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 553, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 552, 0, 569, 0, 0, - 0, 0, 552, 0, 0, 0, 552, 553, 0, 0, - 0, 0, 0, 552, 553, 0, 0, 0, 553, 569, - 0, 0, 0, 0, 0, 553, 569, 0, 0, 0, - 569, 552, 0, 0, 0, 0, 552, 569, 0, 0, - 0, 0, 0, 553, 0, 0, 0, 0, 553, 0, - 0, 0, 0, 0, 0, 569, 0, 0, 0, 0, - 569, 552, 0, 0, 0, 552, 0, 0, 0, 0, - 0, 0, 0, 553, 0, 559, 0, 553, 0, 0, - 0, 0, 0, 0, 0, 569, 0, 0, 0, 569, - 0, 559, 0, 0, 0, 559, 0, 559, 0, 0, - 0, 559, 0, 0, 559, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 559, 0, 0, - 0, 0, 0, 559, 0, 326, 559, 0, 544, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 544, 0, 0, 0, 544, 0, - 544, 0, 0, 0, 544, 326, 0, 544, 0, 0, - 599, 0, 326, 0, 600, 0, 326, 326, 0, 326, - 544, 800, 326, 0, 0, 0, 544, 0, 0, 544, - 0, 0, 601, 0, 0, 602, 326, 0, 0, 0, - 0, 0, 326, 0, 0, 559, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 559, 0, 0, - 0, 0, 0, 0, 559, 0, 603, 0, 559, 0, - 0, 0, 604, 605, 606, 559, 607, 608, 609, 0, - 610, 0, 0, 0, 0, 0, 0, 0, 544, 0, - 599, 0, 326, 559, 600, 0, 0, 0, 559, 0, - 611, 0, 612, 0, 0, 0, 0, 0, 0, 0, - 544, 326, 601, 0, 0, 602, 0, 544, 0, 0, - 0, 544, 0, 559, 0, 0, 326, 559, 544, 0, - 0, 0, 0, 613, 0, 0, 326, 0, 0, 0, - 0, 0, 0, 0, 0, 326, 544, 326, 0, 0, - 614, 544, 0, 0, 326, 0, 603, 0, 0, 0, - 0, 0, 604, 605, 606, 0, 607, 608, 609, 0, - 610, 0, 615, 0, 0, 0, 544, 0, 0, 0, - 544, 0, 0, 326, 326, 0, 326, 105, 0, 0, - 611, 0, 612, 326, 326, 326, 326, 326, 0, 326, - 0, 0, 326, 326, 326, 326, 326, 616, 617, 0, - 326, 326, 326, 326, 326, 0, 106, 107, 0, 108, - 0, 0, 0, 613, 618, 0, 109, 110, 111, 112, - 113, 0, 114, 0, 0, 115, 116, 117, 118, 119, - 614, 0, 0, 120, 121, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 615, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 105, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 0, 0, 616, 617, 0, - 0, 0, 0, 0, 0, 0, 106, 107, 0, 108, - 0, 0, 0, 0, 618, 0, 109, 110, 111, 112, - 113, 0, 114, 0, 0, 115, 116, 117, 118, 119, - 0, 0, 0, 120, 121, -}; -static short yycheck[] = { 9, - 16, 4, 12, 55, 0, 64, 16, 63, 18, 291, - 104, 140, 141, 367, 151, 517, 359, 140, 141, 336, - 714, 367, 91, 363, 56, 62, 85, 500, 68, 57, - 63, 691, 882, 94, 73, 67, 886, 89, 567, 338, - 477, 69, 524, 53, 54, 55, 56, 57, 58, 70, - 427, 91, 1051, 63, 64, 65, 95, 67, 90, 69, - 70, 558, 72, 73, 561, 97, 760, 83, 41, 775, - 567, 81, 93, 83, 84, 85, 92, 87, 88, 89, - 90, 268, 92, 93, 94, 95, 384, 97, 1044, 88, - 277, 944, 1272, 154, 372, 1051, 41, 1052, 131, 1044, - 133, 331, 836, 1044, 132, 285, 1051, 1044, 1063, 1044, - 1051, 1044, 651, 0, 1051, 44, 1051, 0, 1051, 312, - 152, 131, 132, 133, 699, 153, 40, 767, 1083, 982, - 732, 0, 713, 644, 45, 145, 0, 45, 232, 0, - 992, 151, 152, 153, 154, 63, 145, 0, 158, 63, - 45, 41, 0, 728, 41, 867, 193, 797, 41, 41, - 40, 1437, 44, 1095, 0, 41, 806, 0, 0, 0, - 41, 44, 59, 0, 0, 312, 59, 41, 0, 1077, - 41, 218, 41, 63, 0, 275, 44, 59, 41, 158, - 59, 44, 1390, 41, 534, 59, 41, 44, 59, 44, - 40, 544, 545, 546, 547, 0, 59, 1405, 41, 41, - 0, 59, 1214, 567, 41, 41, 44, 44, 44, 41, - 860, 567, 44, 59, 0, 319, 59, 59, 59, 262, - 45, 274, 59, 59, 0, 40, 1478, 59, 266, 741, - 40, 519, 44, 59, 296, 44, 41, 275, 1101, 44, - 910, 911, 262, 570, 594, 0, 266, 0, 268, 269, - 1100, 0, 260, 657, 59, 275, 223, 277, 338, 59, - 1229, 0, 300, 44, 357, 41, 283, 45, 44, 312, - 262, 941, 469, 59, 41, 12, 296, 12, 1564, 1565, - 300, 268, 262, 59, 1270, 63, 41, 483, 41, 1298, - 1721, 599, 41, 620, 337, 318, 260, 348, 355, 1241, - 0, 344, 41, 346, 59, 348, 59, 273, 351, 445, - 59, 0, 0, 360, 257, 362, 823, 337, 380, 41, - 59, 0, 1287, 1320, 344, 0, 346, 369, 348, 376, - 477, 351, 1298, 0, 0, 16, 0, 1218, 405, 370, - 378, 41, 41, 1298, 1775, 377, 0, 1298, 315, 369, - 370, 1298, 41, 1298, 455, 1298, 0, 0, 378, 59, - 380, 844, 442, 975, 44, 1015, 0, 384, 1230, 405, - 59, 59, 508, 1043, 340, 987, 988, 41, 365, 59, - 59, 262, 274, 1733, 59, 485, 418, 679, 424, 456, - 1821, 334, 59, 59, 386, 59, 1304, 41, 41, 402, - 0, 138, 83, 138, 696, 59, 386, 1693, 428, 417, - 461, 462, 1062, 466, 1604, 59, 59, 309, 40, 269, - 712, 318, 439, 45, 517, 59, 468, 465, 328, 0, - 453, 331, 387, 465, 477, 492, 1317, 320, 476, 456, - 1409, 483, 480, 340, 318, 465, 585, 485, 468, 469, - 742, 1121, 1122, 417, 1124, 1125, 476, 1443, 785, 59, - 480, 788, 331, 483, 0, 485, 340, 1719, 488, 1434, - 41, 1215, 764, 44, 1439, 802, 1441, 1827, 264, 41, - 318, 318, 318, 887, 42, 1482, 318, 387, 59, 331, - 387, 328, 539, 41, 331, 331, 396, 340, 320, 396, - 41, 387, 829, 340, 340, 386, 343, 586, 340, 488, - 396, 1476, 0, 318, 1456, 454, 387, 1529, 387, 411, - 383, 1711, 1730, 59, 567, 396, 723, 396, 410, 387, - 458, 1247, 1474, 980, 458, 340, 586, 458, 521, 735, - 458, 588, 1133, 440, 784, 387, 566, 567, 738, 1293, - 387, 387, 572, 458, 396, 1417, 411, 454, 761, 396, - 396, 1110, 871, 318, 485, 318, 521, 0, 458, 318, - 858, 59, 880, 1094, 466, 454, 1541, 0, 1768, 394, - 454, 1489, 1547, 1253, 410, 340, 454, 340, 1310, 328, - 436, 340, 331, 640, 641, 452, 983, 564, 264, 440, - 643, 1887, 383, 440, 440, 1275, 431, 746, 41, 409, - 309, 454, 1224, 454, 761, 452, 41, 454, 454, 386, - 1810, 521, 454, 643, 521, 1475, 59, 436, 521, 318, - 264, 1494, 652, 458, 387, 521, 59, 447, 501, 652, - 340, 780, 781, 396, 1609, 41, 458, 939, 387, 454, - 521, 340, 521, 431, 318, 809, 732, 396, 258, 1309, - 348, 1626, 682, 521, 386, 44, 1185, 634, 44, 1188, - 502, 271, 715, 682, 328, 318, 340, 331, 1031, 521, - 458, 348, 0, 352, 521, 521, 706, 440, 367, 521, - 1265, 0, 367, 735, 714, 715, 340, 340, 718, 454, - 262, 454, 260, 723, 783, 454, 306, 44, 308, 378, - 301, 313, 732, 1429, 262, 735, 521, 755, 761, 757, - 740, 262, 1049, 766, 744, 501, 0, 774, 775, 776, - 1739, 397, 161, 783, 1061, 755, 1311, 757, 61, 348, - 760, 59, 821, 1096, 387, 303, 766, 318, 357, 1419, - 59, 794, 91, 1718, 454, 1082, 1341, 328, 0, 273, - 331, 320, 1727, 397, 286, 454, 521, 964, 521, 340, - 967, 821, 343, 1739, 794, 854, 855, 856, 828, 822, - 823, 1273, 521, 506, 1739, 59, 440, 834, 1739, 262, - 454, 841, 1739, 257, 1739, 331, 1739, 440, 452, 1108, - 454, 0, 822, 823, 854, 855, 856, 1772, 1195, 431, - 454, 454, 0, 1296, 59, 417, 387, 59, 418, 1302, - 0, 859, 42, 0, 386, 396, 1207, 47, 1209, 0, - 1369, 869, 521, 980, 1022, 301, 458, 262, 386, 859, - 328, 1228, 41, 331, 1430, 386, 1421, 0, 264, 869, - 0, 442, 283, 41, 42, 43, 44, 45, 46, 47, - 59, 881, 1171, 0, 1383, 0, 262, 44, 1387, 440, - 334, 59, 60, 61, 62, 0, 262, 436, 521, 59, - 300, 452, 59, 454, 0, 318, 409, 657, 59, 402, - 308, 1477, 662, 1185, 323, 328, 1188, 968, 331, 975, - 318, 1055, 1056, 91, 440, 356, 59, 340, 517, 59, - 318, 987, 387, 386, 403, 0, 0, 1105, 454, 342, - 969, 434, 59, 965, 59, 304, 1218, 264, 304, 0, - 1790, 420, 352, 0, 59, 966, 449, 980, 277, 461, - 462, 1080, 278, 59, 964, 965, 966, 967, 968, 969, - 521, 1105, 440, 0, 387, 975, 41, 0, 1285, 44, - 301, 386, 435, 396, 1314, 440, 454, 987, 988, 278, - 41, 280, 992, 44, 59, 59, 442, 300, 429, 1022, - 377, 0, 405, 319, 0, 408, 992, 0, 59, 1316, - 386, 42, 59, 308, 1664, 411, 402, 338, 1731, 1732, - 386, 424, 1022, 318, 1523, 1369, 41, 440, 439, 44, - 1089, 261, 59, 1369, 1684, 1527, 59, 263, 1530, 452, - 458, 454, 41, 325, 342, 1317, 1407, 450, 1107, 1575, - 458, 1659, 438, 1661, 1113, 453, 278, 44, 280, 1089, - 59, 1616, 1549, 59, 1777, 453, 59, 1622, 0, 435, - 0, 448, 1072, 405, 343, 1098, 0, 1107, 93, 377, - 280, 1074, 1105, 1113, 400, 285, 312, 1087, 342, 378, - 307, 308, 401, 1426, 262, 397, 402, 323, 1098, 368, - 1213, 1214, 1215, 0, 272, 1105, 93, 405, 521, 319, - 408, 1383, 280, 264, 1764, 1387, 1800, 285, 1726, 279, - 288, 442, 40, 377, 456, 441, 424, 59, 258, 59, - 1249, 264, 1251, 883, 436, 59, 1628, 887, 1445, 445, - 300, 271, 265, 1856, 41, 307, 308, 264, 430, 264, - 318, 405, 450, 321, 408, 437, 324, 426, 453, 264, - 328, 340, 59, 331, 0, 333, 258, 335, 470, 329, - 424, 328, 340, 341, 331, 343, 306, 1484, 308, 302, - 42, 43, 278, 45, 280, 47, 343, 322, 348, 0, - 400, 359, 360, 1312, 362, 259, 450, 357, 0, 0, - 264, 427, 508, 363, 322, 41, 270, 1207, 376, 1209, - 378, 379, 380, 44, 306, 383, 1824, 264, 386, 387, - 1247, 381, 301, 59, 1224, 277, 1876, 278, 396, 280, - 1230, 441, 41, 321, 451, 44, 287, 264, 383, 40, - 41, 264, 44, 44, 383, 413, 397, 335, 59, 458, - 0, 1523, 378, 318, 0, 343, 321, 59, 59, 338, - 258, 429, 93, 328, 397, 296, 331, 435, 1780, 1781, - 335, 359, 440, 271, 400, 340, 485, 0, 343, 1805, - 397, 407, 397, 440, 452, 1412, 454, 1779, 418, 451, - 272, 41, 397, 345, 359, 452, 260, 454, 1291, 260, - 1327, 0, 42, 43, 1331, 45, 288, 47, 306, 59, - 308, 1438, 44, 59, 1840, 441, 1623, 279, 383, 318, - 0, 282, 387, 260, 0, 413, 418, 378, 407, 328, - 291, 396, 331, 397, 258, 0, 59, 0, 417, 303, - 0, 340, 41, 1723, 436, 44, 1872, 271, 413, 400, - 397, 333, 0, 521, 0, 279, 407, 517, 259, 1885, - 59, 322, 1888, 442, 325, 1877, 303, 329, 44, 270, - 397, 1897, 265, 44, 397, 440, 300, 0, 470, 59, - 362, 41, 306, 59, 308, 1825, 1826, 452, 387, 454, - 441, 1437, 321, 1773, 59, 41, 59, 396, 44, 59, - 417, 363, 1429, 0, 1531, 329, 335, 1407, 0, 302, - 342, 59, 1412, 59, 1437, 1438, 1529, 1417, 280, 381, - 418, 318, 93, 285, 348, 1544, 301, 444, 1446, 460, - 359, 328, 356, 357, 331, 385, 59, 1437, 1438, 363, - 1820, 440, 0, 340, 337, 377, 1446, 429, 1575, 40, - 501, 1891, 0, 0, 383, 454, 521, 381, 489, 490, - 421, 492, 59, 338, 425, 426, 427, 59, 499, 500, - 501, 502, 503, 405, 505, 1855, 408, 508, 509, 510, - 511, 512, 318, 287, 413, 516, 517, 0, 42, 43, - 387, 45, 424, 47, 418, 331, 300, 417, 44, 396, - 321, 59, 0, 383, 340, 429, 1555, 41, 242, 383, - 44, 59, 59, 0, 335, 436, 250, 318, 450, 0, - 321, 0, 521, 1607, 444, 0, 328, 328, 489, 331, - 331, 1531, 493, 41, 335, 260, 44, 0, 359, 340, - 280, 343, 343, 440, 260, 285, 59, 93, 0, 280, - 41, 387, 1575, 44, 285, 1555, 279, 454, 359, 93, - 396, 59, 383, 1563, 1564, 1565, 1608, 342, 318, 1696, - 337, 286, 59, 337, 436, 1575, 301, 300, 59, 294, - 59, 331, 383, 294, 59, 1603, 387, 303, 313, 0, - 340, 494, 413, 517, 305, 396, 59, 321, 1598, 260, - 340, 312, 377, 1603, 440, 1632, 329, 59, 1608, 1636, - 374, 335, 413, 338, 0, 0, 44, 0, 454, 318, - 418, 1627, 321, 387, 521, 348, 337, 1627, 1712, 328, - 405, 59, 331, 408, 357, 359, 335, 387, 440, 440, - 363, 340, 303, 0, 343, 274, 396, 0, 59, 424, - 452, 452, 454, 454, 521, 260, 41, 1679, 381, 44, - 359, 40, 1857, 1858, 42, 43, 1793, 45, 424, 47, - 1797, 0, 1799, 59, 59, 450, 59, 342, 1805, 1679, - 258, 1808, 407, 261, 383, 521, 316, 386, 387, 413, - 440, 402, 417, 1693, 264, 0, 46, 396, 303, 316, - 317, 662, 59, 0, 454, 1900, 59, 1756, 58, 0, - 1837, 61, 377, 1840, 413, 1721, 461, 442, 679, 1705, - 521, 1721, 683, 434, 493, 494, 280, 438, 306, 690, - 59, 285, 1738, 1733, 695, 696, 435, 1864, 1738, 0, - 405, 440, 1869, 408, 705, 1872, 707, 708, 709, 710, - 711, 712, 713, 452, 59, 454, 1756, 1757, 1885, 424, - 41, 1888, 59, 44, 318, 1758, 279, 356, 59, 1775, - 1897, 521, 337, 0, 337, 1775, 46, 318, 1784, 259, - 41, 742, 1805, 44, 1784, 450, 41, 300, 58, 44, - 270, 61, 1834, 460, 517, 46, 42, 43, 59, 45, - 1800, 47, 452, 764, 393, 1805, 395, 58, 769, 770, - 61, 374, 0, 59, 321, 1821, 329, 1840, 336, 0, - 493, 1821, 521, 402, 387, 1831, 417, 1827, 335, 418, - 503, 1831, 59, 40, 1834, 348, 343, 461, 462, 678, - 1840, 680, 320, 356, 357, 684, 685, 686, 41, 1872, - 363, 44, 359, 41, 443, 41, 44, 465, 44, 467, - 41, 1861, 1885, 44, 41, 1888, 340, 44, 381, 460, - 41, 59, 1872, 44, 1897, 41, 42, 43, 59, 45, - 393, 47, 395, 41, 318, 1885, 44, 1887, 1888, 383, - 42, 43, 1892, 45, 1894, 47, 402, 1897, 489, 490, - 383, 492, 280, 279, 506, 418, 413, 285, 499, 500, - 501, 502, 503, 41, 505, 436, 44, 508, 509, 510, - 511, 512, 461, 462, 300, 516, 517, 450, 41, 41, - 443, 44, 44, 434, 895, 896, 897, 361, 0, 900, - 901, 902, 320, 904, 905, 906, 907, 908, 909, 384, - 0, 912, 913, 329, 915, 41, 917, 417, 44, 920, - 921, 922, 923, 924, 925, 41, 41, 318, 44, 44, - 42, 43, 348, 45, 41, 47, 937, 44, 939, 41, - 41, 357, 44, 44, 0, 391, 392, 363, 457, 458, - 459, 41, 516, 1207, 44, 1209, 0, 59, 1892, 516, - 1894, 262, 287, 411, 517, 381, 41, 42, 43, 59, - 45, 469, 47, 44, 61, 286, 485, 486, 372, 40, - 264, 40, 983, 40, 40, 41, 42, 43, 44, 45, - 46, 47, 40, 40, 280, 461, 461, 41, 40, 285, - 44, 40, 40, 59, 60, 61, 62, 40, 40, 461, - 40, 42, 43, 40, 45, 59, 47, 318, 40, 40, - 321, 40, 91, 46, 44, 0, 436, 328, 320, 44, - 331, 402, 320, 44, 335, 91, 44, 93, 44, 340, - 264, 262, 343, 428, 46, 61, 264, 40, 42, 43, - 278, 45, 280, 47, 340, 442, 454, 1696, 359, 287, - 44, 348, 278, 348, 278, 348, 41, 264, 300, 44, - 397, 436, 0, 397, 280, 42, 43, 44, 45, 285, - 47, 470, 383, 458, 59, 386, 387, 277, 280, 348, - 447, 447, 399, 285, 40, 396, 349, 318, 40, 40, - 321, 517, 91, 40, 40, 0, 318, 328, 264, 383, - 331, 411, 413, 41, 335, 44, 44, 389, 382, 340, - 40, 58, 343, 41, 42, 43, 40, 45, 320, 47, - 41, 59, 1133, 451, 435, 464, 317, 436, 359, 440, - 40, 320, 320, 452, 1145, 1146, 41, 1148, 1149, 44, - 378, 452, 448, 454, 1793, 1156, 264, 382, 1797, 502, - 1799, 505, 383, 40, 59, 386, 387, 277, 280, 1808, - 274, 40, 400, 285, 1175, 396, 278, 458, 280, 407, - 300, 284, 1183, 1184, 1185, 287, 344, 1188, 278, 1190, - 280, 386, 413, 1194, 1195, 1196, 1197, 287, 1837, 311, - 0, 344, 278, 386, 386, 280, 262, 416, 264, 265, - 285, 418, 300, 441, 435, 418, 272, 1218, 40, 440, - 521, 356, 40, 417, 280, 1864, 417, 1228, 274, 285, - 1869, 452, 288, 454, 278, 40, 280, 41, 264, 320, - 284, 41, 44, 287, 44, 44, 302, 44, 385, 280, - 367, 307, 308, 44, 285, 311, 300, 320, 40, 59, - 44, 61, 318, 280, 320, 321, 328, 1268, 324, 266, - 0, 265, 328, 501, 40, 331, 378, 333, 501, 335, - 311, 383, 40, 264, 340, 341, 280, 343, 378, 264, - 299, 285, 422, 41, 58, 41, 41, 41, 400, 264, - 521, 440, 394, 359, 360, 407, 362, 454, 302, 309, - 400, 41, 492, 280, 44, 41, 1317, 407, 285, 309, - 376, 41, 378, 379, 380, 1696, 40, 383, 40, 59, - 386, 387, 307, 308, 378, 40, 40, 1338, 352, 441, - 396, 40, 40, 40, 40, 320, 1347, 0, 40, 40, - 278, 441, 280, 1354, 410, 40, 400, 413, 40, 0, - 40, 40, 280, 407, 41, 42, 43, 285, 45, 40, - 47, 40, 262, 429, 308, 435, 327, 44, 41, 435, - 436, 41, 1383, 278, 440, 280, 1387, 388, 41, 42, - 43, 44, 45, 46, 47, 451, 452, 441, 454, 501, - 41, 388, 388, 44, 460, 343, 59, 60, 61, 62, - 274, 501, 331, 44, 390, 422, 271, 1418, 59, 391, - 287, 446, 1793, 386, 407, 40, 1797, 0, 1799, 386, - 386, 386, 386, 489, 490, 410, 492, 1808, 91, 386, - 93, 41, 41, 499, 500, 501, 502, 503, 378, 505, - 378, 278, 508, 509, 510, 511, 512, 40, 258, 41, - 516, 517, 41, 41, 417, 521, 1837, 41, 41, 308, - 385, 44, 400, 435, 396, 436, 451, 452, 278, 407, - 280, 337, 280, 378, 284, 460, 59, 287, 338, 301, - 442, 338, 442, 1864, 301, 41, 41, 320, 1869, 352, - 300, 1502, 1503, 385, 41, 400, 306, 41, 371, 371, - 41, 41, 407, 441, 489, 490, 41, 492, 1519, 41, - 41, 41, 1523, 460, 499, 500, 501, 502, 503, 41, - 505, 41, 41, 508, 509, 510, 511, 512, 41, 41, - 41, 516, 517, 41, 41, 1793, 441, 41, 44, 1797, - 293, 59, 489, 490, 59, 492, 40, 340, 308, 1560, - 1808, 340, 499, 500, 501, 502, 503, 59, 505, 59, - 59, 508, 509, 510, 511, 512, 59, 59, 378, 516, - 517, 41, 42, 43, 59, 45, 59, 47, 318, 1837, - 58, 321, 41, 352, 40, 344, 368, 40, 328, 318, - 400, 331, 59, 280, 40, 335, 451, 407, 285, 262, - 340, 264, 265, 343, 383, 44, 1864, 40, 418, 272, - 59, 1869, 41, 42, 43, 340, 45, 280, 47, 359, - 1631, 46, 285, 340, 41, 288, 436, 278, 1639, 280, - 343, 441, 383, 284, 383, 41, 287, 41, 410, 302, - 435, 304, 44, 383, 307, 308, 0, 387, 311, 300, - 387, 301, 442, 40, 1665, 318, 396, 320, 321, 284, - 470, 324, 41, 59, 44, 328, 304, 1678, 331, 337, - 333, 1682, 335, 413, 307, 463, 293, 340, 341, 262, - 343, 42, 43, 304, 45, 44, 47, 41, 42, 43, - 44, 45, 46, 47, 41, 40, 359, 360, 41, 362, - 440, 0, 337, 383, 40, 59, 60, 61, 62, 383, - 264, 278, 452, 376, 454, 378, 379, 380, 264, 458, - 383, 320, 40, 386, 387, 389, 0, 378, 264, 470, - 451, 44, 40, 396, 1745, 318, 411, 91, 321, 93, - 309, 264, 458, 271, 435, 328, 343, 410, 331, 400, - 413, 436, 335, 343, 458, 271, 407, 340, 343, 41, - 343, 343, 41, 40, 59, 41, 429, 41, 40, 59, - 44, 308, 435, 436, 41, 59, 359, 440, 59, 304, - 41, 521, 41, 0, 59, 59, 0, 0, 451, 452, - 441, 454, 1210, 12, 270, 277, 1807, 460, 269, 647, - 383, 723, 1110, 386, 387, 1108, 1105, 872, 1097, 87, - 280, 1464, 364, 396, 1465, 285, 41, 42, 43, 594, - 45, 1087, 47, 1034, 334, 766, 489, 490, 317, 492, - 413, 327, 346, 1098, 1674, 460, 499, 500, 501, 502, - 503, 346, 505, 1598, 1443, 508, 509, 510, 511, 512, - 804, 280, 435, 516, 517, 1766, 285, 440, 521, 1445, - 572, 1770, 1769, 1812, 489, 490, 1745, 492, 794, 452, - 1266, 454, 1762, 1563, 499, 500, 501, 502, 503, 1701, - 505, 1243, 1017, 508, 509, 510, 511, 512, 1806, 1721, - 1422, 516, 517, 41, 42, 43, 351, 45, 900, 47, - 902, 262, 904, 905, 339, 907, 908, 909, 262, 574, - 264, 265, 332, 1300, 851, 633, 843, 13, 272, 280, - 304, 41, 42, 43, 285, 45, 280, 47, 502, 506, - 755, 285, 42, 43, 288, 45, 143, 47, 521, 472, - 473, 474, 475, 476, 477, 478, 479, 992, 302, 769, - 0, 742, 1539, 307, 308, 1831, 1665, 311, 42, 43, - 1784, 45, 984, 47, 318, 731, 320, 321, 517, 1255, - 324, 1147, 1190, -1, 328, 59, -1, 331, -1, 333, - -1, 335, -1, -1, -1, -1, 340, 341, 262, 343, - -1, 41, 42, 43, 44, 45, 46, 47, 41, 42, - 43, -1, 45, -1, 47, 359, 360, -1, 362, 59, - 60, 61, 62, 42, 43, -1, 45, -1, 47, -1, - -1, -1, 376, -1, 378, 379, 380, 40, -1, 383, - 0, -1, 386, 387, -1, -1, -1, -1, -1, -1, - -1, 91, 396, 93, 318, -1, -1, 321, -1, -1, - -1, -1, -1, -1, 328, 280, 410, 331, -1, 413, - 285, 335, -1, -1, -1, -1, 340, -1, -1, 343, - -1, 41, -1, -1, 44, 429, -1, -1, -1, -1, - -1, 435, 436, -1, -1, 359, 440, -1, -1, 59, - -1, -1, -1, -1, -1, -1, -1, 451, 452, -1, - 454, -1, -1, -1, -1, -1, 460, -1, -1, 383, - -1, -1, 386, 387, -1, 41, 42, 43, -1, 45, - -1, 47, 396, 41, 42, 43, -1, 45, -1, 47, - -1, -1, 280, -1, -1, 489, 490, 285, 492, 413, - -1, -1, 460, -1, -1, 499, 500, 501, 502, 503, - -1, 505, 262, -1, 508, 509, 510, 511, 512, -1, - 280, 435, 516, 517, -1, 285, 440, 521, -1, -1, - 280, 489, 490, -1, 492, 285, -1, -1, 452, -1, - 454, 499, 500, 501, 502, 503, -1, 505, -1, -1, - 508, 509, 510, 511, 512, -1, 280, -1, 516, 517, - -1, 285, 41, 42, 43, -1, 45, -1, 47, -1, - -1, -1, 262, -1, 264, 265, -1, -1, -1, -1, - -1, -1, 272, -1, -1, 41, 42, 43, -1, 45, - 280, 47, -1, -1, -1, 285, -1, 280, 288, 41, - 42, 43, 285, 45, -1, 47, -1, 521, -1, -1, - -1, 280, 302, -1, 0, -1, 285, 307, 308, -1, - -1, 311, -1, 41, 42, 43, -1, 45, 318, 47, - 320, 321, -1, -1, 324, -1, -1, -1, 328, -1, - -1, 331, -1, 333, -1, 335, -1, -1, -1, -1, - 340, 341, 262, 343, -1, 41, 42, 43, 44, 45, - 46, 47, 41, 42, 43, -1, 45, -1, 47, 359, - 360, -1, 362, 59, 60, 61, 62, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 376, -1, 378, 379, - 380, -1, 42, 383, 0, -1, 386, 387, -1, -1, - -1, -1, -1, -1, -1, 91, 396, 93, 318, -1, - -1, 321, -1, -1, 280, -1, -1, -1, 328, 285, - 410, 331, 280, 413, -1, 335, -1, 285, -1, -1, - 340, -1, -1, 343, -1, 41, -1, -1, 44, 429, - -1, -1, -1, -1, -1, 435, 436, -1, -1, 359, - 440, -1, -1, 59, -1, -1, -1, -1, -1, -1, - -1, 451, 452, -1, 454, 1339, 1340, -1, -1, -1, - 460, 1345, 1346, 383, 1348, 1349, 386, 387, -1, -1, - -1, -1, 1356, 1357, 1358, 1359, 396, 1361, 1362, 1363, - 1364, 1365, 1366, -1, -1, -1, -1, -1, -1, 489, - 490, 280, 492, 413, -1, -1, 285, 460, -1, 499, - 500, 501, 502, 503, -1, 505, -1, -1, 508, 509, - 510, 511, 512, -1, 280, 435, 516, 517, -1, 285, - 440, 521, -1, -1, -1, -1, 489, 490, 280, 492, - -1, -1, 452, 285, 454, -1, 499, 500, 501, 502, - 503, -1, 505, -1, -1, 508, 509, 510, 511, 512, - -1, -1, 280, 516, 517, -1, -1, 285, -1, -1, - -1, -1, -1, 305, -1, -1, 262, -1, 264, 265, - 312, -1, -1, -1, 316, 317, 272, -1, -1, -1, - -1, -1, -1, 325, 280, -1, -1, -1, -1, 285, - -1, 280, 288, -1, -1, 337, 285, 0, -1, -1, - -1, 521, -1, -1, -1, -1, 302, -1, 0, -1, - -1, 307, 308, -1, -1, 311, -1, -1, -1, -1, - -1, -1, 318, -1, 320, 321, -1, -1, 324, -1, - -1, -1, 328, -1, -1, 331, -1, 333, 41, 335, - -1, 44, -1, 294, 340, 341, 262, 343, -1, 41, - 42, 43, 44, 45, 305, 47, 59, -1, 61, -1, - 402, 312, -1, 359, 360, -1, 362, 59, 60, 61, - 62, -1, -1, -1, 325, -1, -1, 419, -1, -1, - 376, -1, 378, 379, 380, -1, 44, 383, -1, -1, - 386, 387, 434, -1, -1, -1, 438, -1, -1, -1, - 396, 93, 318, -1, -1, 321, -1, 449, -1, -1, - -1, -1, 328, -1, 410, 331, -1, 413, -1, 335, - -1, -1, 0, -1, 340, -1, 468, 343, -1, -1, - -1, -1, -1, 429, -1, 386, -1, -1, -1, 435, - 436, -1, -1, 359, 440, -1, -1, -1, -1, -1, - -1, 402, -1, -1, -1, 451, 452, -1, 454, -1, - -1, -1, -1, 41, 460, -1, 44, 383, 419, -1, - 386, 387, -1, -1, -1, -1, -1, -1, -1, -1, - 396, 59, -1, 434, -1, -1, -1, 438, -1, -1, - 441, -1, -1, 489, 490, -1, 492, 413, 449, -1, - 460, -1, -1, 499, 500, 501, 502, 503, -1, 505, - -1, -1, 508, 509, 510, 511, 512, 468, -1, 435, - 516, 517, -1, -1, 440, 521, -1, -1, -1, 489, - 490, -1, 492, -1, -1, -1, 452, -1, 454, 499, - 500, 501, 502, 503, -1, 505, -1, -1, 508, 509, - 510, 511, 512, -1, -1, 258, 516, 517, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 262, 274, 264, 265, -1, -1, -1, -1, -1, -1, - 272, -1, -1, -1, -1, -1, -1, -1, 280, -1, - -1, -1, -1, 285, -1, -1, 288, 300, -1, -1, - -1, -1, -1, 306, -1, 521, 309, -1, -1, -1, - 302, -1, 0, -1, -1, 307, 308, -1, -1, 311, - -1, -1, -1, -1, -1, -1, 318, -1, 320, 321, - -1, -1, 324, -1, -1, -1, 328, -1, 0, 331, - -1, 333, -1, 335, -1, -1, -1, -1, 340, 341, - -1, 343, -1, 41, 42, 43, 44, 45, -1, 47, - -1, -1, 320, -1, -1, -1, -1, 359, 360, -1, - 362, 59, 60, 61, 62, -1, -1, -1, -1, 41, - 258, -1, 44, -1, 376, -1, 378, 379, 380, -1, - -1, 383, -1, 271, 386, 387, -1, 59, -1, 61, - -1, 279, -1, -1, 396, 93, -1, -1, 411, -1, - -1, -1, -1, -1, -1, 418, -1, -1, 410, -1, - -1, 413, 300, -1, -1, -1, -1, -1, 306, -1, - 308, -1, -1, 436, -1, -1, -1, 429, -1, -1, - 0, -1, -1, 435, 436, -1, -1, -1, 440, -1, - -1, 329, -1, -1, -1, -1, -1, -1, -1, 451, - 452, -1, 454, 466, -1, -1, -1, 470, 460, -1, - 348, -1, -1, -1, -1, -1, -1, -1, -1, 357, - -1, 41, -1, -1, 44, 363, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 489, 490, 59, - 492, -1, 460, 381, -1, -1, -1, 499, 500, 501, - 502, 503, -1, 505, -1, -1, 508, 509, 510, 511, - 512, -1, -1, -1, 516, 517, -1, -1, 0, 521, - -1, 489, 490, -1, 492, -1, -1, -1, -1, -1, - 418, 499, 500, 501, 502, 503, -1, 505, -1, -1, - 508, 509, 510, 511, 512, -1, -1, -1, 516, 517, - 45, -1, -1, -1, -1, -1, -1, -1, -1, 41, - 42, 43, 44, 45, 262, 47, 264, 265, -1, -1, - -1, -1, -1, -1, 272, -1, -1, 59, 60, 61, - 62, -1, -1, -1, -1, -1, 258, 285, -1, -1, - 288, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 302, 277, 278, -1, 280, 307, - 308, 93, 284, 311, -1, 287, -1, -1, -1, -1, - 318, -1, 320, 321, -1, -1, 324, -1, 300, 517, - 328, -1, -1, 331, 306, 333, -1, 335, -1, -1, - -1, -1, 340, 341, -1, 343, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 359, 360, 0, 362, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 376, -1, - 378, 379, 380, -1, -1, 383, -1, -1, 386, 387, - -1, -1, -1, -1, -1, -1, -1, -1, 396, -1, - -1, -1, -1, -1, 41, -1, 378, 44, 278, -1, - 280, -1, 410, -1, -1, 413, -1, 287, -1, 0, - -1, -1, 59, -1, -1, -1, -1, -1, 400, -1, - 300, 429, -1, -1, -1, 407, -1, 435, 436, -1, - -1, -1, 440, -1, 416, -1, 418, -1, -1, -1, - -1, -1, -1, 451, 452, -1, 454, -1, -1, -1, - 41, -1, 460, 44, 436, -1, -1, -1, -1, 441, - -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, - 262, -1, 264, 265, -1, -1, -1, -1, -1, -1, - 272, 489, 490, -1, 492, -1, -1, -1, 470, -1, - 295, 499, 500, 501, 502, 503, 288, 505, 378, -1, - 508, 509, 510, 511, 512, -1, -1, -1, 516, 517, - 302, -1, 0, 521, -1, 307, 308, -1, 323, 311, - 400, -1, -1, -1, -1, -1, 318, 407, 320, 321, - -1, -1, 324, -1, -1, -1, 328, 0, 0, 331, - -1, 333, -1, 335, -1, -1, -1, 352, 340, 341, - -1, 343, -1, 41, 42, 43, 44, 45, -1, 47, - -1, 441, -1, -1, -1, -1, -1, 359, 360, -1, - 362, 59, 60, 61, 62, -1, -1, -1, 41, 41, - -1, 44, 44, -1, 376, -1, 378, 379, 380, -1, - -1, 383, -1, -1, 386, 387, 59, 59, -1, -1, - -1, -1, -1, -1, 396, 93, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 410, -1, - -1, 413, 427, -1, -1, -1, 0, -1, -1, -1, - -1, 278, -1, 280, -1, -1, -1, 429, 443, -1, - 287, -1, -1, 435, 436, -1, -1, -1, 440, -1, - -1, -1, 457, 458, 459, -1, 461, 462, -1, 451, - 452, -1, 454, -1, -1, -1, -1, -1, 460, -1, - -1, 262, -1, -1, -1, 480, 481, 482, 483, 484, - 485, 486, 487, 488, -1, 59, -1, -1, -1, -1, - 495, 496, -1, -1, -1, -1, -1, 489, 490, 504, - 492, -1, -1, -1, -1, -1, -1, 499, 500, 501, - 502, 503, -1, 505, -1, -1, 508, 509, 510, 511, - 512, -1, 0, -1, 516, 517, -1, 318, 0, 521, - 321, 378, -1, -1, -1, -1, -1, 328, -1, 45, - 331, -1, -1, -1, 335, -1, -1, -1, -1, 340, - -1, -1, 343, 400, -1, -1, -1, -1, -1, -1, - 407, -1, -1, -1, -1, -1, 44, -1, 359, 41, - -1, 43, 44, 45, 262, -1, 264, 265, -1, -1, - -1, 59, -1, -1, 272, -1, -1, 59, 60, 61, - 62, -1, 383, -1, 441, 386, 387, -1, -1, -1, - 288, -1, -1, -1, -1, 396, -1, -1, -1, -1, - -1, -1, -1, -1, 302, 278, 278, 280, 280, 307, - 308, 93, 413, 311, 287, 287, -1, -1, -1, -1, - 318, -1, 320, 321, -1, -1, 324, 300, -1, -1, - 328, -1, -1, 331, 435, 333, -1, 335, -1, 440, - -1, -1, 340, 341, -1, 343, -1, -1, -1, -1, - -1, 452, -1, 454, -1, -1, -1, -1, -1, -1, - -1, 359, 360, -1, 362, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 258, -1, -1, -1, 376, -1, - 378, 379, 380, -1, -1, 383, -1, 271, 386, 387, - -1, -1, -1, -1, -1, 279, -1, -1, 396, -1, - -1, -1, -1, -1, -1, 378, 378, -1, -1, -1, - -1, -1, 410, -1, -1, 413, 300, -1, -1, 0, - 521, -1, 306, -1, 308, -1, -1, 400, 400, -1, - -1, 429, -1, -1, 407, 407, -1, 435, 436, -1, - -1, -1, 440, -1, -1, 329, -1, -1, -1, -1, - -1, -1, -1, 451, 452, -1, 454, -1, -1, -1, - 41, -1, 460, 44, 348, -1, -1, -1, 441, 441, - -1, -1, -1, 357, -1, -1, -1, -1, 59, 363, - 262, -1, 264, 265, -1, -1, -1, -1, -1, -1, - 272, 489, 490, -1, 492, -1, -1, 381, -1, -1, - -1, 499, 500, 501, 502, 503, 288, 505, -1, -1, - 508, 509, 510, 511, 512, -1, -1, -1, 516, 517, - 302, -1, 0, 521, -1, 307, 308, -1, -1, 311, - -1, -1, -1, 321, 418, -1, 318, -1, 320, 321, - 328, -1, 324, 331, -1, -1, 328, 335, -1, 331, - -1, 333, -1, 335, -1, 343, -1, -1, 340, 341, - -1, 343, -1, 41, -1, 43, 44, 45, -1, -1, - -1, 359, -1, -1, -1, -1, -1, 359, 360, -1, - 362, 59, 60, 61, 62, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 376, 383, 378, 379, 380, -1, - -1, 383, -1, -1, 386, 387, -1, -1, -1, -1, - -1, -1, -1, -1, 396, 93, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 413, -1, -1, 410, -1, - 418, 413, -1, 517, -1, -1, -1, -1, -1, -1, - -1, -1, 458, -1, 460, -1, -1, 429, -1, -1, - -1, -1, 440, 435, 436, -1, -1, -1, 440, -1, - -1, -1, -1, -1, 452, -1, 454, -1, -1, 451, - 452, -1, 454, 489, 490, -1, 492, -1, 460, -1, - -1, 262, -1, 499, 500, 501, 502, 503, -1, 505, - -1, -1, 508, 509, 510, 511, 512, -1, -1, -1, - 516, 517, -1, -1, -1, -1, -1, 489, 490, -1, - 492, -1, -1, -1, -1, -1, -1, 499, 500, 501, - 502, 503, -1, 505, -1, -1, 508, 509, 510, 511, - 512, -1, 0, -1, 516, 517, -1, 318, 0, 521, - 321, -1, -1, -1, -1, 273, -1, 328, -1, 277, - 331, -1, -1, -1, 335, -1, -1, -1, -1, 340, - -1, -1, 343, 291, -1, -1, -1, 295, -1, -1, - 298, -1, -1, 41, -1, -1, 44, -1, 359, 41, - -1, 43, 44, 45, 262, -1, 264, 265, -1, -1, - -1, 59, -1, -1, 272, -1, -1, 59, 60, 61, - 62, -1, 383, -1, -1, 386, 387, -1, -1, -1, - 288, 339, -1, -1, -1, 396, -1, 345, 346, 347, - -1, 349, 350, 351, 302, 353, -1, -1, -1, 307, - 308, 93, 413, 311, -1, -1, -1, -1, -1, -1, - 318, -1, 320, 321, -1, 373, 324, 375, 0, -1, - 328, -1, -1, 331, 435, 333, -1, 335, -1, 440, - -1, -1, 340, 341, -1, 343, -1, -1, -1, -1, - -1, 452, -1, 454, -1, 0, -1, -1, 406, -1, - -1, 359, 360, 411, 362, -1, -1, -1, -1, 41, - -1, -1, 44, -1, -1, 423, -1, -1, 376, -1, - 378, 379, 380, -1, -1, 383, -1, 59, 386, 387, - -1, -1, -1, -1, -1, -1, 41, 445, 396, 44, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 410, -1, 59, 413, 61, -1, -1, -1, - 521, -1, -1, -1, -1, -1, 0, -1, -1, -1, - -1, 429, 480, 481, -1, -1, -1, 435, 436, -1, - -1, -1, 440, -1, -1, -1, -1, -1, -1, 497, - -1, -1, -1, 451, 452, -1, 454, -1, -1, -1, - -1, -1, 460, -1, -1, -1, -1, 41, -1, -1, - 44, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 262, -1, 264, 265, -1, 59, -1, -1, -1, -1, - 272, 489, 490, -1, 492, -1, -1, -1, -1, -1, - -1, 499, 500, 501, 502, 503, 288, 505, -1, -1, - 508, 509, 510, 511, 512, -1, -1, -1, 516, 517, - 302, -1, 0, 521, -1, 307, 308, -1, -1, 311, - -1, -1, -1, 321, -1, -1, 318, -1, 320, 321, - 328, -1, 324, 331, -1, -1, 328, 335, -1, 331, - -1, 333, -1, 335, -1, 343, -1, -1, 340, 341, - -1, 343, -1, 41, -1, 43, 44, 45, -1, -1, - -1, 359, -1, -1, -1, -1, -1, 359, 360, -1, - 362, 59, 60, 61, 62, -1, -1, -1, -1, -1, - 262, -1, -1, -1, 376, 383, 378, 379, 380, -1, - -1, 383, -1, -1, 386, 387, -1, -1, -1, -1, - -1, -1, -1, 258, 396, 93, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 413, -1, -1, 410, -1, - -1, 413, 277, 278, -1, 280, 0, -1, -1, 284, - -1, -1, 287, -1, -1, -1, 318, 429, -1, 321, - -1, -1, 440, 435, 436, 300, 328, -1, 440, 331, - -1, 306, -1, 335, 452, -1, 454, -1, 340, 451, - 452, 343, 454, -1, -1, -1, -1, -1, 460, -1, - -1, -1, -1, -1, -1, -1, -1, 359, 262, -1, - -1, -1, -1, -1, -1, 59, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 489, 490, -1, - 492, 383, -1, -1, 386, 387, -1, 499, 500, 501, - 502, 503, -1, 505, 396, -1, 508, 509, 510, 511, - 512, -1, -1, 378, 516, 517, -1, -1, -1, 521, - -1, 413, -1, -1, 318, -1, -1, 321, -1, -1, - -1, -1, -1, -1, 328, 400, 0, 331, -1, -1, - -1, 335, 407, 435, -1, -1, 340, -1, 440, 343, - -1, -1, -1, 418, -1, -1, -1, -1, -1, -1, - 452, -1, 454, -1, 262, 359, 264, 265, -1, -1, - -1, 436, -1, -1, 272, -1, 441, 41, 42, 43, - 44, 45, 46, 47, -1, -1, -1, -1, -1, 383, - 288, -1, 386, 387, -1, 59, 60, 61, 62, -1, - -1, -1, 396, -1, 302, 470, -1, -1, -1, 307, - 308, -1, -1, 311, -1, -1, -1, -1, -1, 413, - 318, -1, 320, 321, -1, -1, 324, 91, -1, 521, - 328, -1, -1, 331, 0, 333, -1, 335, -1, -1, - -1, 435, 340, 341, -1, 343, 440, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 452, -1, - 454, 359, 360, -1, 362, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 258, -1, -1, -1, 376, -1, - 378, 379, 380, -1, -1, 383, -1, 271, 386, 387, - -1, -1, -1, 59, -1, 279, -1, -1, 396, -1, - 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 410, -1, -1, 413, 300, -1, -1, -1, - -1, -1, 306, -1, 308, -1, -1, 521, -1, -1, - -1, 429, -1, -1, -1, -1, -1, 435, 436, -1, - -1, 41, 440, -1, 44, 329, -1, -1, -1, -1, - -1, -1, -1, 451, 452, -1, 454, -1, -1, 59, - -1, -1, 460, -1, 348, -1, -1, -1, -1, -1, - -1, -1, -1, 357, -1, -1, -1, -1, -1, 363, - -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, - -1, 489, 490, -1, 492, -1, -1, 381, 262, -1, - -1, 499, 500, 501, 502, 503, -1, 505, 272, -1, - 508, 509, 510, 511, 512, -1, 280, -1, 516, 517, - -1, 285, -1, 521, 288, 41, 42, 43, 44, 45, - 46, 47, -1, -1, 418, -1, -1, -1, -1, -1, - -1, -1, -1, 59, 60, 61, 62, 0, -1, -1, - -1, -1, -1, -1, 318, -1, -1, 321, -1, -1, - 324, -1, -1, -1, 328, -1, -1, 331, -1, 333, - -1, 335, 58, -1, -1, 91, 340, 341, -1, 343, - 0, -1, -1, -1, -1, -1, -1, -1, 41, -1, - -1, 44, 258, -1, -1, 359, 360, -1, 362, -1, - -1, -1, -1, -1, -1, 271, 59, -1, -1, -1, - -1, -1, 376, 279, 378, 379, 380, -1, -1, 383, - 40, 41, 386, 387, 44, -1, -1, -1, -1, -1, - -1, -1, 396, 517, 300, -1, -1, -1, -1, 59, - 306, -1, 308, -1, -1, -1, -1, -1, -1, 413, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 262, 329, -1, 429, -1, -1, -1, -1, - -1, 435, 261, -1, -1, -1, 440, -1, -1, -1, - -1, -1, 348, -1, -1, -1, -1, -1, 452, -1, - 454, 357, -1, 282, -1, -1, -1, 363, -1, -1, - -1, 290, -1, -1, -1, -1, -1, -1, 297, -1, - 299, -1, 301, -1, -1, 381, -1, 306, 318, -1, - -1, 321, -1, -1, 313, -1, -1, -1, 328, -1, - -1, 331, -1, -1, -1, 335, -1, -1, 327, -1, - 340, -1, -1, 343, -1, -1, 262, -1, -1, 338, - -1, -1, 418, -1, -1, -1, 272, 521, -1, 359, - -1, -1, -1, -1, 280, -1, -1, -1, -1, 285, - -1, -1, 288, -1, -1, -1, -1, 0, -1, -1, - -1, -1, -1, 383, -1, -1, 386, 387, -1, -1, - -1, -1, -1, -1, -1, -1, 396, -1, 0, -1, - -1, -1, 318, -1, -1, 321, -1, -1, 324, -1, - -1, 264, 328, 413, -1, 331, 405, 333, 41, 335, - -1, 44, -1, 412, 340, 341, 415, 343, 417, 418, - -1, -1, -1, -1, -1, 435, 59, -1, -1, 41, - 440, -1, 44, 359, 360, -1, 362, -1, -1, -1, - -1, 517, 452, 442, 454, -1, -1, 59, -1, -1, - 376, -1, 378, 379, 380, 318, -1, 383, 321, -1, - 386, 387, -1, -1, -1, 328, -1, -1, 331, -1, - 396, -1, 335, -1, -1, -1, -1, 340, -1, -1, - 343, -1, -1, -1, -1, -1, -1, 413, 318, -1, - -1, 321, 491, -1, -1, -1, 359, -1, 328, -1, - -1, 331, -1, 429, 0, 335, -1, 506, 507, 435, - 340, 521, -1, 343, 440, 0, -1, -1, -1, -1, - 383, -1, -1, -1, 387, -1, 452, -1, 454, 359, - -1, -1, -1, 396, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, - 413, -1, -1, 383, -1, -1, 41, 387, -1, 44, - -1, -1, -1, 59, 460, -1, 396, -1, -1, -1, - -1, -1, -1, -1, 59, -1, -1, 440, -1, -1, - -1, -1, -1, 413, -1, -1, -1, -1, -1, 452, - -1, 454, -1, 489, 490, 521, 492, 460, -1, -1, - -1, -1, -1, 499, 500, 501, 502, 503, -1, 505, - 440, -1, 508, 509, 510, 511, 512, -1, -1, -1, - 516, 517, 452, -1, 454, -1, 489, 490, -1, 492, - 460, -1, -1, 0, -1, -1, 499, 500, 501, 502, - 503, -1, 505, -1, -1, 508, 509, 510, 511, 512, - 262, -1, -1, 516, 517, -1, 0, -1, 521, 489, - 490, -1, 492, -1, -1, -1, -1, -1, -1, 499, - 500, 501, 502, 503, 41, 505, -1, 44, 508, 509, - 510, 511, 512, -1, -1, 318, 516, 517, 321, -1, - -1, 521, 59, -1, -1, 328, -1, 41, 331, -1, - 44, -1, 335, -1, -1, -1, 318, 340, -1, 321, - 343, -1, -1, -1, -1, 59, 328, -1, -1, 331, - 0, -1, -1, 335, -1, -1, 359, -1, 340, -1, - -1, 343, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 359, -1, -1, - 383, -1, -1, -1, 387, -1, -1, -1, -1, -1, - -1, 41, -1, 396, 44, -1, 262, -1, -1, -1, - -1, 383, -1, -1, 386, 387, -1, 262, -1, 59, - 413, -1, -1, -1, 396, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 413, -1, -1, -1, -1, -1, 440, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 452, - -1, 454, 318, 435, -1, 321, -1, 460, 440, -1, - -1, -1, 328, 318, -1, 331, 321, -1, -1, 335, - 452, -1, 454, 328, 340, -1, 331, 343, -1, -1, - 335, -1, -1, -1, -1, 340, 489, 490, 343, 492, - -1, -1, 0, 359, -1, -1, 499, 500, 501, 502, - 503, -1, 505, -1, 359, 508, 509, 510, 511, 512, - -1, -1, -1, 516, 517, -1, -1, 383, 521, -1, - 386, 387, -1, -1, 0, 262, -1, -1, 383, -1, - 396, 386, 387, 41, -1, -1, 44, -1, -1, 521, - -1, 396, 59, -1, -1, -1, -1, 413, 262, -1, - -1, 59, -1, -1, -1, -1, -1, -1, 413, -1, - -1, -1, -1, -1, -1, 41, -1, -1, 44, 435, - -1, -1, -1, -1, 440, -1, -1, -1, -1, -1, - 435, 318, -1, 59, 321, 440, 452, -1, 454, -1, - -1, 328, -1, -1, 331, -1, -1, 452, 335, 454, - -1, -1, -1, 340, 318, -1, 343, 321, -1, -1, - -1, -1, 262, -1, 328, -1, -1, 331, -1, -1, - 0, 335, 359, -1, -1, -1, 340, -1, -1, 343, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 359, 383, -1, -1, 386, - 387, -1, -1, -1, -1, 521, -1, -1, -1, 396, - -1, 41, -1, -1, 44, -1, 521, -1, 318, 383, - -1, 321, 386, 387, -1, -1, 413, -1, 328, 59, - -1, 331, 396, -1, -1, 335, -1, -1, -1, -1, - 340, -1, -1, 343, -1, -1, -1, -1, 435, 413, - -1, 287, -1, 440, -1, -1, -1, -1, -1, 359, - -1, -1, -1, -1, -1, 452, -1, 454, -1, -1, - -1, 435, -1, -1, -1, -1, 440, -1, -1, -1, - -1, -1, -1, 383, -1, -1, 386, 387, 452, -1, - 454, -1, -1, -1, -1, -1, 396, -1, -1, -1, - -1, -1, -1, 40, 262, -1, 43, -1, 45, -1, - -1, -1, -1, 413, -1, -1, -1, -1, -1, -1, - -1, 58, -1, -1, -1, -1, 63, -1, -1, -1, - -1, -1, -1, -1, 521, 435, 262, -1, -1, -1, - 440, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 452, -1, 454, -1, -1, 521, -1, -1, - 318, -1, -1, 321, -1, -1, -1, -1, -1, -1, - 328, -1, -1, 331, -1, -1, -1, 335, -1, -1, - -1, -1, 340, -1, -1, 343, -1, -1, -1, 59, - -1, -1, 318, -1, -1, 321, -1, -1, -1, -1, - -1, 359, 328, -1, -1, 331, -1, -1, -1, 335, - -1, -1, -1, -1, 340, -1, -1, 343, -1, -1, - -1, 521, -1, -1, 460, 383, -1, -1, 386, 387, - -1, -1, 262, 359, -1, -1, -1, -1, 396, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 489, 490, 413, 492, 383, -1, -1, - 386, 387, -1, 499, 500, 501, 502, 503, -1, 505, - 396, -1, 508, 509, 510, 511, 512, 435, -1, -1, - 516, 517, 440, -1, -1, -1, -1, 413, 318, -1, - -1, 321, -1, 460, 452, -1, 454, -1, 328, -1, - -1, 331, -1, -1, -1, 335, -1, -1, -1, 435, - 340, -1, -1, 343, 440, -1, -1, -1, -1, -1, - -1, -1, 489, 490, -1, 492, 452, -1, 454, 359, - 267, -1, 499, 500, 501, 502, 503, -1, 505, 276, - -1, 508, 509, 510, 511, 512, -1, -1, -1, 516, - 517, -1, 289, 383, -1, -1, 386, 387, 295, 296, - -1, -1, 40, 521, -1, 43, 396, 45, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 314, -1, -1, - 58, -1, -1, 413, -1, 63, 323, -1, -1, 326, - -1, -1, -1, -1, -1, 521, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 435, -1, -1, -1, -1, - 440, -1, -1, -1, -1, -1, -1, 354, 355, -1, - -1, -1, 452, -1, 454, -1, -1, -1, -1, 366, - -1, -1, -1, 370, -1, -1, 273, -1, -1, -1, - 277, 378, 40, -1, 42, 43, -1, 45, -1, -1, - -1, -1, -1, -1, 291, -1, -1, -1, 295, -1, - 58, 298, -1, -1, -1, 63, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 417, -1, -1, -1, 421, -1, -1, -1, -1, -1, - 427, 521, -1, -1, -1, -1, 433, -1, -1, -1, - -1, -1, 339, -1, -1, -1, 443, -1, 345, 346, - 347, -1, 349, 350, 351, -1, 353, -1, -1, -1, - 457, 458, 459, 460, 461, 462, -1, -1, -1, -1, - -1, -1, -1, -1, 471, -1, 373, -1, 375, -1, - -1, -1, -1, 480, 481, 482, 483, 484, 485, 486, - 487, 488, 489, 490, -1, 492, -1, -1, 495, 496, - -1, 498, 499, 500, 501, 502, 503, 504, 505, 406, - -1, 508, 509, 510, 511, 512, 513, 514, 515, 516, - 517, -1, -1, -1, -1, -1, 423, -1, -1, 267, - 460, -1, -1, -1, -1, -1, -1, -1, 276, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 445, -1, - -1, 289, -1, -1, 292, -1, -1, 295, 296, 489, - 490, -1, 492, -1, -1, -1, -1, -1, -1, 499, - 500, 501, 502, 503, -1, 505, 314, -1, 508, 509, - 510, 511, 512, 480, 481, 323, 516, 517, 326, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 497, -1, 260, -1, -1, -1, -1, -1, -1, 267, - -1, -1, -1, -1, -1, -1, 354, 355, 276, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 366, -1, - -1, 289, 370, -1, -1, -1, -1, 295, 296, -1, - 378, 40, -1, 42, 43, 303, 45, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, - -1, -1, -1, -1, 63, 323, -1, -1, 326, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 421, -1, -1, -1, -1, -1, 427, - -1, -1, -1, -1, 352, 433, 354, 355, -1, -1, - -1, -1, -1, -1, -1, 443, -1, 287, 366, -1, - -1, -1, 370, -1, -1, -1, -1, -1, -1, 457, - 458, 459, 460, 461, 462, -1, -1, -1, -1, -1, - -1, -1, -1, 471, -1, -1, -1, -1, -1, -1, - -1, -1, 480, 481, 482, 483, 484, 485, 486, 487, - 488, 489, 490, -1, 492, -1, -1, 495, 496, -1, - 498, 499, 500, 501, 502, 503, 504, 505, -1, 427, - 508, 509, 510, 511, 512, 433, -1, -1, 516, 517, - -1, -1, -1, -1, -1, 443, -1, -1, -1, -1, - -1, -1, -1, 40, -1, -1, 43, -1, 45, 457, - 458, 459, 460, 461, 462, -1, -1, -1, -1, -1, - -1, 58, -1, 471, -1, -1, 63, -1, -1, 328, - -1, -1, 480, 481, 482, 483, 484, 485, 486, 487, - 488, 489, 490, -1, 492, -1, -1, 495, 496, -1, - 498, 499, 500, 501, 502, 503, 504, 505, -1, -1, - 508, 509, 510, 511, 512, -1, -1, -1, 516, 517, - -1, 260, -1, -1, -1, -1, -1, -1, 267, -1, - -1, -1, -1, -1, -1, -1, -1, 276, -1, -1, - 460, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 289, -1, -1, -1, -1, -1, 295, 296, -1, -1, - -1, -1, -1, -1, 303, -1, -1, -1, -1, 489, - 490, -1, 492, -1, -1, -1, -1, -1, -1, 499, - 500, 501, 502, 503, 323, 505, -1, 326, 508, 509, - 510, 511, 512, -1, 443, -1, 516, 517, -1, -1, - -1, -1, -1, -1, -1, 40, -1, -1, 43, -1, - 45, 460, -1, 352, -1, 354, 355, -1, -1, -1, - -1, -1, -1, 58, -1, -1, -1, 366, 63, -1, - -1, 370, -1, -1, -1, -1, -1, -1, -1, -1, - 489, 490, -1, 492, -1, -1, -1, -1, -1, -1, - 499, 500, 501, 502, 503, -1, 505, 343, -1, 508, - 509, 510, 511, 512, -1, -1, -1, 516, 517, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 267, -1, 368, -1, -1, -1, -1, -1, 427, 276, - -1, -1, -1, -1, 433, 41, 42, 43, -1, 45, - -1, 47, 289, -1, 443, -1, -1, -1, 295, 296, - -1, -1, -1, -1, 60, 61, 62, -1, 457, 458, - 459, 460, 461, 462, -1, -1, -1, 314, -1, -1, - -1, -1, 471, -1, -1, -1, 323, -1, -1, 326, - 426, 480, 481, 482, 483, 484, 485, 486, 487, 488, - 489, 490, -1, 492, -1, -1, 495, 496, -1, 498, - 499, 500, 501, 502, 503, 504, 505, 354, 355, 508, - 509, 510, 511, 512, 460, -1, -1, 516, 517, 366, - -1, -1, -1, 370, -1, -1, -1, -1, -1, -1, - -1, 378, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 489, 490, -1, 492, -1, -1, -1, - -1, -1, -1, 499, 500, 501, 502, 503, -1, 505, - -1, -1, 508, 509, 510, 511, 512, -1, -1, -1, - 516, 517, 267, -1, 421, -1, -1, -1, -1, -1, - 427, 276, -1, -1, 40, -1, 433, 43, -1, 45, - -1, -1, -1, -1, 289, -1, 443, -1, -1, -1, - 295, 296, 58, -1, -1, -1, -1, 63, -1, -1, - 457, 458, 459, 460, 461, 462, -1, -1, -1, 314, - -1, -1, -1, -1, 471, -1, -1, -1, 323, -1, - -1, 326, -1, 480, 481, 482, 483, 484, 485, 486, - 487, 488, 489, 490, -1, 492, -1, -1, 495, 496, - -1, 498, 499, 500, 501, 502, 503, 504, 505, 354, - 355, 508, 509, 510, 511, 512, 272, -1, -1, 516, - 517, 366, -1, -1, 280, 370, -1, -1, -1, 285, - -1, 40, 288, 378, 43, -1, 45, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, - -1, 460, -1, -1, 63, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 324, -1, - -1, -1, -1, -1, -1, -1, 421, 333, -1, -1, - 489, 490, 427, 492, -1, 341, -1, -1, 433, -1, - 499, 500, 501, 502, 503, -1, 505, -1, 443, 508, - 509, 510, 511, 512, 360, -1, 362, 516, 517, -1, - -1, -1, 457, 458, 459, 460, 461, 462, -1, -1, - 376, -1, 378, 379, 380, -1, 471, -1, -1, -1, - -1, -1, -1, -1, -1, 480, 481, 482, 483, 484, - 485, 486, 487, 488, 489, 490, -1, 492, -1, -1, - 495, 496, -1, 498, 499, 500, 501, 502, 503, 504, - 505, 267, -1, 508, 509, 510, 511, 512, -1, 443, - 276, 516, 517, 429, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 289, -1, -1, 460, -1, -1, 295, - 296, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 314, -1, - -1, -1, -1, -1, -1, 489, 490, 323, 492, -1, - 326, -1, -1, -1, -1, 499, 500, 501, 502, 503, - -1, 505, -1, -1, 508, 509, 510, 511, 512, -1, - -1, -1, 516, 517, -1, -1, -1, -1, 354, 355, - -1, 260, 0, -1, 263, -1, -1, -1, 267, -1, - 366, -1, -1, -1, 370, -1, -1, 276, -1, -1, - -1, -1, 378, -1, -1, -1, -1, -1, -1, -1, - 289, -1, -1, -1, -1, -1, 295, 296, -1, 40, - -1, -1, 43, 41, 45, -1, 44, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 58, -1, -1, - -1, 59, 63, 61, 323, 421, -1, 326, -1, -1, - -1, 427, -1, -1, -1, -1, -1, 433, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 443, -1, -1, - -1, -1, -1, 91, -1, 354, 355, -1, -1, -1, - -1, 457, 458, 459, 460, 461, 462, 366, -1, -1, - -1, 370, -1, -1, -1, 471, -1, -1, -1, -1, - -1, -1, -1, -1, 480, 481, 482, 483, 484, 485, - 486, 487, 488, 489, 490, -1, 492, -1, -1, 495, - 496, -1, 498, 499, 500, 501, 502, 503, 504, 505, - -1, -1, 508, 509, 510, 511, 512, -1, -1, -1, - 516, 517, -1, -1, -1, -1, 425, -1, 427, -1, - -1, -1, -1, -1, 433, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 443, -1, -1, -1, -1, -1, - -1, 40, -1, -1, 43, -1, 45, -1, 457, 458, - 459, 460, 461, 462, -1, -1, -1, -1, -1, 58, - -1, 328, 471, -1, 63, -1, -1, -1, -1, -1, - -1, 480, 481, 482, 483, 484, 485, 486, 487, 488, - 489, 490, -1, 492, -1, -1, 495, 496, -1, 498, - 499, 500, 501, 502, 503, 504, 505, -1, -1, 508, - 509, 510, 511, 512, -1, -1, -1, 516, 517, 260, - 258, -1, 263, -1, -1, -1, 267, -1, -1, -1, - -1, -1, -1, -1, -1, 276, 274, -1, -1, 277, - 278, 434, 280, -1, -1, 402, 284, -1, 289, 287, - -1, -1, -1, -1, 295, 296, -1, -1, -1, -1, - 40, -1, 300, 43, -1, 45, -1, 460, 306, -1, - -1, 309, -1, -1, -1, -1, -1, -1, 58, -1, - -1, 438, 323, 63, -1, 326, 443, -1, -1, -1, - -1, -1, 449, -1, -1, -1, 489, 490, -1, 492, - -1, -1, -1, 460, -1, -1, 499, 500, 501, 502, - 503, 468, 505, 354, 355, 508, 509, 510, 511, 512, - -1, -1, -1, 516, 517, 366, -1, -1, -1, 370, - -1, -1, 489, 490, -1, 492, -1, -1, -1, -1, - 378, -1, 499, 500, 501, 502, 503, -1, 505, -1, - -1, 508, 509, 510, 511, 512, -1, -1, -1, 516, - 517, -1, 400, -1, -1, -1, -1, -1, -1, 407, - -1, 260, -1, 411, 263, -1, -1, -1, 267, -1, - 418, -1, -1, -1, 425, -1, 427, 276, -1, -1, - -1, -1, 433, -1, -1, -1, -1, -1, 436, -1, - 289, -1, 443, 441, -1, -1, 295, 296, -1, -1, - -1, -1, -1, -1, -1, -1, 457, 458, 459, 460, - 461, 462, -1, -1, -1, -1, -1, -1, 466, -1, - 471, -1, 470, -1, 323, -1, -1, 326, -1, 480, - 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, - -1, 492, -1, -1, 495, 496, -1, 498, 499, 500, - 501, 502, 503, 504, 505, 354, 355, 508, 509, 510, - 511, 512, -1, -1, -1, 516, 517, 366, -1, -1, - 260, 370, -1, 263, -1, -1, -1, 267, -1, -1, - -1, -1, -1, -1, -1, -1, 276, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 289, - -1, -1, -1, -1, -1, 295, 296, -1, -1, 40, - -1, -1, 43, -1, 45, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 425, 58, 427, -1, - -1, -1, 63, 323, 433, -1, 326, -1, -1, -1, - -1, -1, -1, -1, 443, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 457, 458, - 459, 460, 461, 462, 354, 355, -1, -1, -1, -1, - -1, -1, 471, -1, -1, -1, 366, -1, -1, -1, - 370, 480, 481, 482, 483, 484, 485, 486, 487, 488, - 489, 490, -1, 492, -1, -1, 495, 496, -1, 498, - 499, 500, 501, 502, 503, 504, 505, -1, -1, 508, - 509, 510, 511, 512, -1, 271, -1, 516, 517, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 425, -1, 427, -1, -1, - -1, -1, -1, 433, -1, 301, -1, -1, -1, -1, - -1, -1, -1, 443, -1, -1, 312, 313, -1, 315, - -1, 40, -1, -1, 43, -1, 45, 457, 458, 459, - 460, 461, 462, -1, -1, -1, 332, -1, -1, 58, - -1, 471, 338, -1, 63, -1, -1, -1, -1, -1, - 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, - 490, -1, 492, -1, -1, 495, 496, -1, 498, 499, - 500, 501, 502, 503, 504, 505, -1, -1, 508, 509, - 510, 511, 512, -1, -1, -1, 516, 517, -1, 260, - -1, -1, 263, -1, -1, -1, 267, -1, -1, -1, - -1, -1, 398, -1, -1, 276, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 289, -1, - -1, 417, -1, -1, 295, 296, -1, -1, -1, 460, - 40, -1, -1, 43, -1, 45, 432, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 442, -1, 58, -1, - -1, -1, 323, 63, -1, 326, -1, -1, 489, 490, - -1, 492, -1, -1, 460, -1, -1, -1, 499, 500, - 501, 502, 503, -1, 505, -1, -1, 508, 509, 510, - 511, 512, -1, 354, 355, 516, 517, -1, -1, -1, - -1, -1, -1, 489, 490, 366, 492, -1, -1, 370, - -1, -1, -1, 499, 500, 501, 502, 503, -1, 505, - -1, -1, 508, 509, 510, 511, 512, -1, -1, -1, - 516, 517, 518, 519, 520, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 260, -1, -1, 263, -1, -1, -1, 267, -1, - -1, -1, -1, -1, 425, -1, 427, 276, -1, -1, - -1, -1, 433, -1, -1, -1, -1, -1, -1, -1, - 289, -1, 443, -1, -1, -1, 295, 296, -1, -1, - -1, -1, -1, -1, -1, -1, 457, 458, 459, 460, - 461, 462, -1, -1, -1, -1, -1, -1, -1, -1, - 471, -1, -1, -1, 323, -1, -1, 326, -1, 480, - 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, - -1, 492, -1, -1, 495, 496, -1, 498, 499, 500, - 501, 502, 503, 504, 505, 354, 355, 508, 509, 510, - 511, 512, -1, -1, -1, 516, 517, 366, -1, -1, - 260, 370, -1, 263, -1, -1, -1, 267, -1, -1, - -1, -1, -1, -1, -1, -1, 276, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 289, - -1, -1, -1, -1, -1, 295, 296, -1, -1, 40, - -1, -1, 43, -1, 45, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 425, 58, 427, -1, - -1, -1, 63, 323, 433, -1, 326, -1, -1, -1, - -1, -1, -1, -1, 443, -1, -1, -1, -1, -1, - 42, 43, -1, 45, -1, 47, -1, -1, 457, 458, - 459, 460, 461, 462, 354, 355, -1, -1, 60, 61, - 62, -1, 471, -1, -1, -1, 366, -1, -1, -1, - 370, 480, 481, 482, 483, 484, 485, 486, 487, 488, - 489, 490, -1, 492, -1, -1, 495, 496, -1, 498, - 499, 500, 501, 502, 503, 504, 505, -1, -1, 508, - 509, 510, 511, 512, -1, -1, -1, 516, 517, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 425, -1, 427, -1, -1, - -1, -1, -1, 433, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 443, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 457, 458, 459, - 460, 461, 462, -1, -1, -1, -1, -1, -1, -1, - -1, 471, -1, -1, -1, -1, -1, -1, -1, -1, - 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, - 490, -1, 492, -1, -1, 495, 496, -1, 498, 499, - 500, 501, 502, 503, 504, 505, -1, -1, 508, 509, - 510, 511, 512, -1, -1, -1, 516, 517, -1, 260, - -1, -1, 263, -1, -1, -1, 267, -1, -1, 40, - -1, 42, 43, -1, 45, 276, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 58, 289, -1, - 260, -1, 63, -1, 295, 296, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 272, -1, -1, -1, -1, -1, -1, -1, 280, -1, - -1, -1, 323, 285, -1, 326, 288, -1, -1, -1, - -1, 301, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 313, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 354, 355, -1, -1, 327, -1, -1, - -1, -1, 324, -1, -1, 366, -1, 40, 338, 370, - 43, 333, 45, -1, -1, -1, -1, -1, -1, 341, - -1, -1, -1, -1, -1, 58, -1, -1, -1, -1, - 63, -1, -1, -1, -1, -1, -1, -1, 360, -1, - 362, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 376, -1, 378, 379, 380, -1, - -1, -1, -1, -1, 425, -1, 427, -1, -1, -1, - -1, -1, 433, -1, -1, -1, -1, 407, -1, -1, - -1, -1, 443, -1, -1, -1, -1, 417, -1, -1, - -1, -1, -1, -1, -1, -1, 457, 458, 459, 460, - 461, 462, -1, -1, -1, -1, -1, 429, -1, -1, - 471, -1, 442, -1, -1, -1, -1, -1, -1, 480, - 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, - 460, 492, -1, -1, 495, 496, 267, 498, 499, 500, - 501, 502, 503, 504, 505, 276, -1, 508, 509, 510, - 511, 512, -1, -1, -1, 516, 517, -1, 289, 489, - 490, 460, 492, -1, 295, 296, -1, -1, -1, 499, - 500, 501, 502, 503, -1, 505, -1, -1, 508, 509, - 510, 511, 512, -1, -1, -1, 516, 517, -1, -1, - 489, 490, 323, 492, -1, 326, -1, -1, -1, -1, - 499, 500, 501, 502, 503, -1, 505, -1, -1, 508, - 509, 510, 511, 512, -1, -1, -1, 516, 517, -1, - -1, 352, -1, 354, 355, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 267, 366, -1, -1, -1, 370, - -1, -1, -1, 276, -1, -1, 40, -1, 42, 43, - -1, 45, -1, -1, -1, -1, 289, -1, -1, -1, - -1, -1, 295, 296, 58, -1, -1, -1, -1, 63, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 323, -1, -1, 326, -1, -1, 427, -1, -1, -1, - -1, -1, 433, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 443, -1, -1, -1, -1, -1, -1, 352, - -1, 354, 355, -1, -1, -1, 457, 458, 459, 460, - 461, 462, -1, 366, -1, -1, -1, 370, -1, -1, - 471, -1, -1, -1, -1, -1, -1, -1, -1, 480, - 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, - -1, 492, -1, -1, 495, 496, -1, 498, 499, 500, - 501, 502, 503, 504, 505, -1, -1, 508, 509, 510, - 511, 512, -1, -1, 417, 516, 517, -1, -1, -1, - -1, -1, -1, -1, 427, -1, -1, -1, 40, -1, - 433, 43, -1, 45, -1, -1, -1, -1, -1, -1, - 443, -1, -1, -1, 273, -1, 58, -1, 277, -1, - -1, 63, -1, -1, 457, 458, 459, 460, 461, 462, - -1, -1, 291, -1, -1, -1, 295, -1, 471, 298, - -1, -1, -1, -1, -1, -1, -1, 480, 481, 482, - 483, 484, 485, 486, 487, 488, 489, 490, -1, 492, - -1, -1, 495, 496, -1, 498, 499, 500, 501, 502, - 503, 504, 505, 267, -1, 508, 509, 510, 511, 512, - 339, -1, 276, 516, 517, -1, 345, 346, 347, -1, - 349, 350, 351, -1, 353, 289, -1, -1, -1, -1, - -1, 295, 296, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 373, -1, 375, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 323, - -1, -1, 326, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 406, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 352, -1, - 354, 355, -1, -1, 423, -1, -1, -1, -1, -1, - -1, -1, 366, -1, -1, -1, 370, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 445, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 260, -1, - -1, 480, 481, -1, -1, 267, -1, -1, -1, -1, - -1, -1, -1, 427, 276, -1, -1, 40, 497, 433, - 43, -1, 45, -1, -1, -1, -1, 289, -1, 443, - -1, -1, -1, 295, 296, 58, -1, -1, -1, -1, - 63, 303, -1, 457, 458, 459, 460, 461, 462, -1, - -1, -1, -1, -1, -1, -1, -1, 471, -1, -1, - -1, 323, -1, -1, 326, -1, 480, 481, 482, 483, - 484, 485, 486, 487, 488, 489, 490, -1, 492, -1, - -1, 495, 496, -1, 498, 499, 500, 501, 502, 503, - 504, 505, 354, 355, 508, 509, 510, 511, 512, -1, - -1, -1, 516, 517, 366, -1, -1, -1, 370, -1, - -1, -1, -1, -1, 40, -1, -1, 43, -1, 45, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 58, -1, -1, -1, -1, 63, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 427, -1, -1, -1, -1, - -1, 433, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 443, -1, -1, -1, 273, -1, -1, -1, 277, - -1, -1, -1, -1, -1, 457, 458, 459, 460, 461, - 462, -1, -1, -1, -1, 293, -1, 295, -1, 471, - 298, -1, -1, -1, -1, -1, -1, -1, 480, 481, - 482, 483, 484, 485, 486, 487, 488, 489, 490, -1, - 492, -1, -1, 495, 496, -1, 498, 499, 500, 501, - 502, 503, 504, 505, 267, -1, 508, 509, 510, 511, - 512, 339, -1, 276, 516, 517, -1, 345, 346, 347, - -1, 349, 350, 351, -1, 353, 289, -1, -1, -1, - 260, -1, 295, 296, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 373, -1, 375, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 323, -1, -1, 326, -1, -1, -1, -1, -1, -1, - -1, 301, -1, -1, -1, -1, -1, -1, 406, -1, - -1, -1, -1, 313, -1, -1, -1, -1, -1, 352, - -1, 354, 355, -1, -1, 423, -1, -1, -1, -1, - -1, 267, -1, 366, -1, -1, -1, 370, 338, -1, - 276, -1, -1, 40, -1, -1, 43, 445, 45, -1, - -1, -1, -1, 289, -1, -1, -1, -1, -1, 295, - 296, 58, -1, -1, -1, -1, 63, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 480, 481, -1, -1, -1, 323, -1, -1, - 326, -1, -1, -1, 427, -1, -1, -1, -1, 497, - 433, -1, -1, -1, -1, -1, -1, 407, -1, -1, - 443, -1, -1, -1, -1, -1, -1, 417, 354, 355, - -1, -1, -1, -1, 457, 458, 459, 460, 461, 462, - 366, -1, -1, -1, 370, -1, -1, -1, 471, -1, - -1, -1, 442, -1, -1, -1, -1, 480, 481, 482, - 483, 484, 485, 486, 487, 488, 489, 490, -1, 492, - 460, -1, 495, 496, -1, 498, 499, 500, 501, 502, - 503, 504, 505, -1, -1, 508, 509, 510, 511, 512, - -1, -1, -1, 516, 517, -1, -1, -1, -1, 489, - 490, 427, 492, -1, -1, -1, -1, 433, -1, 499, - 500, 501, 502, 503, -1, 505, -1, 443, 508, 509, - 510, 511, 512, -1, -1, 451, 516, 517, -1, -1, - -1, 457, 458, 459, 460, 461, 462, -1, -1, -1, - -1, -1, -1, -1, -1, 471, -1, -1, -1, -1, - -1, -1, -1, -1, 480, 481, 482, 483, 484, 485, - 486, 487, 488, 489, 490, -1, 492, -1, -1, 495, - 496, -1, 498, 499, 500, 501, 502, 503, 504, 505, - 267, -1, 508, 509, 510, 511, 512, -1, -1, 276, - 516, 517, 40, -1, -1, 43, -1, 45, -1, -1, - -1, -1, 289, -1, -1, -1, -1, -1, 295, 296, - 58, -1, -1, -1, -1, 63, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 323, -1, -1, 326, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 354, 355, -1, - -1, -1, 40, 41, -1, 43, -1, 45, -1, 366, - -1, -1, -1, 370, -1, -1, -1, -1, -1, -1, - 58, -1, -1, 460, -1, 63, -1, -1, -1, -1, - -1, -1, 469, 470, 471, 472, 473, 474, 475, 476, - 477, 478, 479, 480, 481, 482, 483, 484, -1, -1, - 487, 488, 489, 490, -1, 492, -1, -1, 495, 496, - 417, -1, 499, 500, 501, 502, 503, 504, 505, 506, - 427, 508, 509, 510, 511, 512, 433, -1, -1, 516, - 517, 518, 519, 520, 521, -1, 443, -1, -1, -1, - 273, -1, -1, -1, 277, -1, -1, -1, -1, -1, - 457, 458, 459, 460, 461, 462, -1, -1, -1, -1, - -1, -1, 295, -1, 471, 298, -1, -1, -1, -1, - -1, -1, -1, 480, 481, 482, 483, 484, 485, 486, - 487, 488, 489, 490, -1, 492, -1, -1, 495, 496, - -1, 498, 499, 500, 501, 502, 503, 504, 505, 267, - -1, 508, 509, 510, 511, 512, 339, -1, 276, 516, - 517, -1, 345, 346, 347, -1, 349, 350, 351, -1, - 353, 289, -1, -1, -1, -1, -1, 295, 296, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - 373, -1, 375, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 323, -1, -1, 326, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 406, -1, -1, -1, -1, -1, 267, - -1, -1, -1, -1, 352, -1, 354, 355, 276, -1, - 423, 40, -1, -1, 43, -1, 45, -1, 366, -1, - -1, 289, 370, -1, -1, -1, -1, 295, 296, 58, - -1, -1, 445, -1, 63, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 323, -1, -1, 326, -1, - -1, -1, -1, -1, -1, -1, -1, 480, 481, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 427, - -1, -1, -1, -1, 497, 433, 354, 355, -1, -1, - -1, -1, -1, -1, -1, 443, -1, -1, 366, -1, - -1, -1, 370, -1, -1, -1, -1, -1, -1, 457, - 458, 459, 460, 461, 462, -1, -1, -1, -1, -1, - -1, -1, -1, 471, -1, -1, -1, -1, -1, -1, - -1, -1, 480, 481, 482, 483, 484, 485, 486, 487, - 488, 489, 490, 271, 492, -1, -1, 495, 496, -1, - 498, 499, 500, 501, 502, 503, 504, 505, -1, 427, - 508, 509, 510, 511, 512, 433, -1, -1, 516, 517, - -1, -1, -1, 301, -1, 443, -1, -1, -1, -1, - -1, -1, -1, -1, 312, 313, -1, 315, -1, 457, - 458, 459, 460, 461, 462, -1, -1, -1, -1, -1, - -1, -1, -1, 471, 332, -1, -1, -1, -1, -1, - 338, -1, 480, 481, 482, 483, 484, 485, 486, 487, - 488, 489, 490, -1, 492, -1, -1, 495, 496, -1, - 498, 499, 500, 501, 502, 503, 504, 505, 267, -1, - 508, 509, 510, 511, 512, -1, -1, 276, 516, 517, - 40, -1, -1, 43, -1, 45, -1, -1, -1, -1, - 289, -1, -1, -1, -1, -1, 295, 296, 58, -1, - 398, -1, -1, 63, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, 417, - -1, -1, -1, -1, 323, -1, -1, 326, -1, -1, - -1, -1, -1, -1, 432, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 442, -1, -1, -1, -1, -1, - -1, -1, -1, 451, -1, 354, 355, -1, -1, -1, - 40, -1, 460, 43, -1, 45, -1, 366, -1, -1, - -1, 370, -1, -1, -1, -1, -1, -1, 58, -1, - -1, -1, -1, 63, -1, -1, -1, -1, -1, -1, - -1, 489, 490, -1, 492, -1, -1, -1, -1, -1, - -1, 499, 500, 501, 502, 503, -1, 505, -1, -1, - 508, 509, 510, 511, 512, -1, -1, -1, 516, 517, - 518, 519, 520, -1, -1, -1, -1, -1, 427, -1, - -1, -1, -1, -1, 433, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 443, -1, -1, -1, 273, -1, - -1, -1, 277, -1, -1, 454, -1, -1, 457, 458, - 459, 460, 461, 462, -1, -1, -1, -1, -1, -1, - 295, -1, 471, 298, -1, -1, -1, -1, -1, -1, - -1, 480, 481, 482, 483, 484, 485, 486, 487, 488, - 489, 490, -1, 492, -1, -1, 495, 496, -1, 498, - 499, 500, 501, 502, 503, 504, 505, 267, -1, 508, - 509, 510, 511, 512, 339, -1, 276, 516, 517, -1, - 345, 346, 347, -1, 349, 350, 351, -1, 353, 289, - -1, -1, -1, -1, -1, 295, 296, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 373, -1, - 375, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 323, -1, -1, 326, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 406, -1, -1, -1, -1, -1, 267, -1, -1, - -1, -1, -1, -1, 354, 355, 276, -1, 423, 40, - -1, -1, 43, -1, 45, -1, 366, -1, -1, 289, - 370, -1, -1, -1, -1, 295, 296, 58, 59, -1, - 445, -1, 63, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 323, -1, -1, 326, -1, -1, -1, - -1, -1, -1, -1, -1, 480, 481, 417, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 427, -1, -1, - -1, -1, 497, 433, 354, 355, -1, -1, -1, -1, - -1, -1, -1, 443, -1, -1, 366, -1, -1, -1, - 370, -1, -1, -1, -1, -1, -1, 457, 458, 459, - 460, 461, 462, -1, -1, -1, -1, -1, -1, -1, - -1, 471, -1, -1, -1, -1, -1, -1, -1, -1, - 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, - 490, -1, 492, -1, -1, 495, 496, -1, 498, 499, - 500, 501, 502, 503, 504, 505, -1, 427, 508, 509, - 510, 511, 512, 433, -1, -1, 516, 517, -1, -1, - -1, -1, -1, 443, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 454, -1, -1, 457, 458, 459, - 460, 461, 462, -1, -1, -1, -1, -1, -1, -1, - -1, 471, -1, -1, -1, -1, -1, -1, -1, -1, - 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, - 490, -1, 492, -1, -1, 495, 496, -1, 498, 499, - 500, 501, 502, 503, 504, 505, 267, -1, 508, 509, - 510, 511, 512, -1, -1, 276, 516, 517, 40, -1, - -1, 43, -1, 45, -1, -1, -1, -1, 289, -1, - -1, -1, -1, -1, 295, 296, 58, -1, -1, -1, - -1, 63, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 323, -1, -1, 326, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 354, 355, -1, -1, -1, 40, -1, - -1, 43, -1, 45, -1, 366, -1, -1, -1, 370, - -1, -1, -1, -1, -1, -1, 58, -1, -1, 460, - -1, 63, -1, -1, -1, -1, -1, -1, -1, 470, - 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, - 481, 482, 483, 484, -1, -1, 487, 488, 489, 490, - -1, 492, -1, -1, 495, 496, -1, -1, 499, 500, - 501, 502, 503, 504, 505, 506, 427, 508, 509, 510, - 511, 512, 433, -1, -1, 516, 517, 518, 519, 520, - 521, -1, 443, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, 457, 458, 459, 460, - 461, 462, -1, -1, -1, -1, -1, -1, -1, -1, - 471, -1, -1, -1, -1, -1, -1, -1, -1, 480, - 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, - -1, 492, -1, -1, 495, 496, -1, 498, 499, 500, - 501, 502, 503, 504, 505, 267, -1, 508, 509, 510, - 511, 512, -1, -1, 276, 516, 517, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 289, -1, -1, - -1, -1, -1, 295, 296, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 323, -1, -1, 326, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 0, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 267, -1, 0, -1, -1, - -1, -1, 354, 355, 276, -1, -1, -1, -1, 0, - -1, -1, -1, -1, 366, -1, -1, 289, 370, -1, - -1, -1, -1, 295, 296, 40, 41, -1, -1, 44, - -1, -1, -1, -1, -1, -1, -1, 40, 41, -1, - -1, 44, -1, -1, 59, -1, 61, -1, -1, -1, - 41, 323, -1, 44, 326, -1, 59, -1, 61, -1, - -1, -1, -1, -1, -1, -1, -1, -1, 59, -1, - 61, -1, -1, -1, -1, 427, 91, -1, -1, -1, - -1, 433, 354, 355, -1, -1, -1, -1, 91, -1, - -1, 443, -1, -1, 366, -1, -1, -1, 370, -1, - 91, -1, -1, -1, -1, 457, 458, 459, 460, 461, - 462, -1, -1, -1, -1, -1, -1, -1, -1, 471, - -1, -1, -1, -1, -1, -1, -1, -1, 480, 481, - 482, 483, 484, 485, 486, 487, 488, 489, 490, -1, - 492, -1, -1, 495, 496, -1, 498, 499, 500, 501, - 502, 503, 504, 505, -1, 427, 508, 509, 510, 511, - 512, 433, -1, -1, 516, 517, -1, -1, -1, -1, - -1, 443, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 457, 458, 459, 460, 461, - 462, -1, -1, -1, -1, -1, -1, -1, -1, 471, - -1, -1, -1, -1, -1, -1, -1, 0, 480, 481, - 482, 483, 484, 485, 486, 487, 488, 489, 490, -1, - 492, -1, -1, 495, 496, -1, 498, 499, 500, 501, - 502, 503, 504, 505, -1, -1, 508, 509, 510, 511, - 512, -1, -1, 258, 516, 517, -1, -1, 41, -1, - -1, 44, -1, -1, -1, 258, -1, -1, -1, 274, - 0, -1, 277, 278, -1, 280, 59, 258, 61, 284, - -1, 274, 287, -1, 277, 278, -1, 280, -1, -1, - -1, 284, -1, 274, 287, 300, -1, 278, -1, 280, - -1, 306, -1, 284, 309, -1, 287, 300, 91, -1, - -1, 41, -1, 306, 44, -1, 309, -1, -1, 300, - -1, -1, -1, -1, -1, 306, -1, -1, 309, 59, - -1, 61, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, 91, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, 378, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 378, -1, -1, -1, -1, - -1, -1, -1, -1, -1, 400, -1, 378, -1, -1, - -1, -1, 407, -1, -1, -1, 411, 400, -1, -1, - -1, -1, -1, 418, 407, -1, -1, -1, 411, 400, - -1, -1, -1, -1, -1, 418, 407, -1, -1, -1, - 411, 436, -1, -1, -1, -1, 441, 418, -1, -1, - -1, -1, -1, 436, -1, -1, -1, -1, 441, -1, - -1, -1, -1, -1, -1, 436, -1, -1, -1, -1, - 441, 466, -1, -1, -1, 470, -1, -1, -1, -1, - -1, -1, -1, 466, -1, 258, -1, 470, -1, -1, - -1, -1, -1, -1, -1, 466, -1, -1, -1, 470, - -1, 274, -1, -1, -1, 278, -1, 280, -1, -1, - -1, 284, -1, -1, 287, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 300, -1, -1, - -1, -1, -1, 306, -1, 271, 309, -1, 258, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, 274, -1, -1, -1, 278, -1, - 280, -1, -1, -1, 284, 301, -1, 287, -1, -1, - 273, -1, 308, -1, 277, -1, 312, 313, -1, 315, - 300, 284, 318, -1, -1, -1, 306, -1, -1, 309, - -1, -1, 295, -1, -1, 298, 332, -1, -1, -1, - -1, -1, 338, -1, -1, 378, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 400, -1, -1, - -1, -1, -1, -1, 407, -1, 339, -1, 411, -1, - -1, -1, 345, 346, 347, 418, 349, 350, 351, -1, - 353, -1, -1, -1, -1, -1, -1, -1, 378, -1, - 273, -1, 398, 436, 277, -1, -1, -1, 441, -1, - 373, -1, 375, -1, -1, -1, -1, -1, -1, -1, - 400, 417, 295, -1, -1, 298, -1, 407, -1, -1, - -1, 411, -1, 466, -1, -1, 432, 470, 418, -1, - -1, -1, -1, 406, -1, -1, 442, -1, -1, -1, - -1, -1, -1, -1, -1, 451, 436, 453, -1, -1, - 423, 441, -1, -1, 460, -1, 339, -1, -1, -1, - -1, -1, 345, 346, 347, -1, 349, 350, 351, -1, - 353, -1, 445, -1, -1, -1, 466, -1, -1, -1, - 470, -1, -1, 489, 490, -1, 492, 460, -1, -1, - 373, -1, 375, 499, 500, 501, 502, 503, -1, 505, - -1, -1, 508, 509, 510, 511, 512, 480, 481, -1, - 516, 517, 518, 519, 520, -1, 489, 490, -1, 492, - -1, -1, -1, 406, 497, -1, 499, 500, 501, 502, - 503, -1, 505, -1, -1, 508, 509, 510, 511, 512, - 423, -1, -1, 516, 517, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, 445, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 460, -1, -1, - -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, - -1, -1, -1, -1, -1, -1, -1, 480, 481, -1, - -1, -1, -1, -1, -1, -1, 489, 490, -1, 492, - -1, -1, -1, -1, 497, -1, 499, 500, 501, 502, - 503, -1, 505, -1, -1, 508, 509, 510, 511, 512, - -1, -1, -1, 516, 517, -}; -#define YYFINAL 20 -#ifndef YYDEBUG -#define YYDEBUG 0 -#endif -#define YYMAXTOKEN 521 -#if YYDEBUG -char *yyname[] = { -"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,"'('","')'","'*'","'+'","','","'-'","'.'","'/'",0,0,0,0,0,0,0,0,0,0, -"':'","';'","'<'","'='","'>'","'?'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,"'['",0,"']'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, -0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"ACTIVE","ADD","AFTER","ALL","ALTER","AND","ANY", -"AS","ASC","AT","AVG","AUTO","BASENAME","BEFORE","BEGIN","BETWEEN","BLOB","BY", -"CACHE","CAST","CHARACTER","CHECK","CHECK_POINT_LEN","COLLATE","COMMA","COMMIT", -"COMMITTED","COMPUTED","CONCATENATE","CONDITIONAL","CONSTRAINT","CONTAINING", -"COUNT","CREATE","CSTRING","CURRENT","CURSOR","DATABASE","DATE","DB_KEY", -"KW_DEBUG","DECIMAL","DECLARE","DEFAULT","KW_DELETE","DESC","DISTINCT","DO", -"DOMAIN","DROP","ELSE","END","ENTRY_POINT","EQL","ESCAPE","EXCEPTION","EXECUTE", -"EXISTS","EXIT","EXTERNAL","FILTER","FOR","FOREIGN","FROM","FULL","FUNCTION", -"GDSCODE","GEQ","GENERATOR","GEN_ID","GRANT","GROUP","GROUP_COMMIT_WAIT","GTR", -"HAVING","IF","KW_IN","INACTIVE","INNER","INPUT_TYPE","INDEX","INSERT", -"INTEGER","INTO","IS","ISOLATION","JOIN","KEY","KW_CHAR","KW_DEC","KW_DOUBLE", -"KW_FILE","KW_FLOAT","KW_INT","KW_LONG","KW_NULL","KW_NUMERIC","KW_UPPER", -"KW_VALUE","LENGTH","LOGFILE","LPAREN","LEFT","LEQ","LEVEL","LIKE", -"LOG_BUF_SIZE","LSS","MANUAL","MAXIMUM","MAX_SEGMENT","MERGE","MESSAGE", -"MINIMUM","MODULE_NAME","NAMES","NATIONAL","NATURAL","NCHAR","NEQ","NO","NOT", -"NOT_GTR","NOT_LSS","NUM_LOG_BUFS","OF","ON","ONLY","OPTION","OR","ORDER", -"OUTER","OUTPUT_TYPE","OVERFLOW","PAGE","PAGES","PAGE_SIZE","PARAMETER", -"PASSWORD","PLAN","POSITION","POST_EVENT","PRECISION","PRIMARY","PRIVILEGES", -"PROCEDURE","PROTECTED","RAW_PARTITIONS","READ","REAL","REFERENCES","RESERVING", -"RETAIN","RETURNING_VALUES","RETURNS","REVOKE","RIGHT","RPAREN","ROLLBACK", -"SEGMENT","SELECT","SET","SHADOW","KW_SHARED","SINGULAR","KW_SIZE","SMALLINT", -"SNAPSHOT","SOME","SORT","SQLCODE","STABILITY","STARTING","STATISTICS", -"SUB_TYPE","SUSPEND","SUM","TABLE","THEN","TO","TRANSACTION","TRIGGER", -"UNCOMMITTED","UNION","UNIQUE","UPDATE","USER","VALUES","VARCHAR","VARIABLE", -"VARYING","VERSION","VIEW","WAIT","WHEN","WHERE","WHILE","WITH","WORK","WRITE", -"FLOAT_NUMBER","NUMBER","NUMERIC","SYMBOL","STRING","INTRODUCER","ACTION", -"ADMIN","CASCADE","FREE_IT","RESTRICT","ROLE","COLUMN","TYPE","EXTRACT","YEAR", -"MONTH","DAY","HOUR","MINUTE","SECOND","WEEKDAY","YEARDAY","TIME","TIMESTAMP", -"CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","NUMBER64BIT","SCALEDINT", -"CURRENT_USER","CURRENT_ROLE","KW_BREAK","SUBSTRING","RECREATE","KW_DESCRIPTOR", -"FIRST","SKIP","CURRENT_CONNECTION","CURRENT_TRANSACTION","BIGINT","CASE", -"NULLIF","COALESCE","USING","NULLS","LAST","ROW_COUNT","LOCK","SAVEPOINT", -"RELEASE","STATEMENT","LEAVE","INSERTING","UPDATING","DELETING","KW_INSERTING", -"KW_UPDATING","KW_DELETING","BACKUP","KW_DIFFERENCE","OPEN","CLOSE","FETCH", -"ROWS", -}; -char *yyrule[] = { -"$accept : top", -"top : statement", -"top : statement ';'", -"statement : alter", -"statement : blob", -"statement : commit", -"statement : create", -"statement : declare", -"statement : delete", -"statement : drop", -"statement : grant", -"statement : insert", -"statement : invoke_procedure", -"statement : recreate", -"statement : replace", -"statement : revoke", -"statement : rollback", -"statement : savepoint", -"statement : select", -"statement : set", -"statement : update", -"statement : KW_DEBUG signed_short_integer", -"grant : GRANT privileges ON prot_table_name TO user_grantee_list grant_option", -"grant : GRANT proc_privileges ON PROCEDURE simple_proc_name TO user_grantee_list grant_option", -"grant : GRANT privileges ON prot_table_name TO grantee_list", -"grant : GRANT proc_privileges ON PROCEDURE simple_proc_name TO grantee_list", -"grant : GRANT role_name_list TO role_grantee_list role_admin_option", -"prot_table_name : simple_table_name", -"prot_table_name : TABLE simple_table_name", -"privileges : ALL", -"privileges : ALL PRIVILEGES", -"privileges : privilege_list", -"privilege_list : privilege", -"privilege_list : privilege_list ',' privilege", -"proc_privileges : EXECUTE", -"privilege : SELECT", -"privilege : INSERT", -"privilege : KW_DELETE", -"privilege : UPDATE column_parens_opt", -"privilege : REFERENCES column_parens_opt", -"grant_option : WITH GRANT OPTION", -"grant_option :", -"role_admin_option : WITH ADMIN OPTION", -"role_admin_option :", -"simple_proc_name : symbol_procedure_name", -"revoke : REVOKE rev_grant_option privileges ON prot_table_name FROM user_grantee_list", -"revoke : REVOKE rev_grant_option proc_privileges ON PROCEDURE simple_proc_name FROM user_grantee_list", -"revoke : REVOKE privileges ON prot_table_name FROM user_grantee_list", -"revoke : REVOKE proc_privileges ON PROCEDURE simple_proc_name FROM user_grantee_list", -"revoke : REVOKE privileges ON prot_table_name FROM grantee_list", -"revoke : REVOKE proc_privileges ON PROCEDURE simple_proc_name FROM grantee_list", -"revoke : REVOKE role_name_list FROM role_grantee_list", -"rev_grant_option : GRANT OPTION FOR", -"grantee_list : grantee", -"grantee_list : grantee_list ',' grantee", -"grantee_list : grantee_list ',' user_grantee", -"grantee_list : user_grantee_list ',' grantee", -"grantee : PROCEDURE symbol_procedure_name", -"grantee : TRIGGER symbol_trigger_name", -"grantee : VIEW symbol_view_name", -"grantee : ROLE symbol_role_name", -"user_grantee_list : user_grantee", -"user_grantee_list : user_grantee_list ',' user_grantee", -"user_grantee : symbol_user_name", -"user_grantee : USER symbol_user_name", -"user_grantee : GROUP symbol_user_name", -"role_name_list : role_name", -"role_name_list : role_name_list ',' role_name", -"role_name : symbol_role_name", -"role_grantee_list : role_grantee", -"role_grantee_list : role_grantee_list ',' role_grantee", -"role_grantee : symbol_user_name", -"role_grantee : USER symbol_user_name", -"declare : DECLARE declare_clause", -"declare_clause : FILTER filter_decl_clause", -"declare_clause : EXTERNAL FUNCTION udf_decl_clause", -"udf_decl_clause : symbol_UDF_name arg_desc_list1 RETURNS return_value1 ENTRY_POINT sql_string MODULE_NAME sql_string", -"udf_data_type : simple_type", -"udf_data_type : BLOB", -"udf_data_type : CSTRING '(' pos_short_integer ')' charset_clause", -"arg_desc_list1 :", -"arg_desc_list1 : arg_desc_list", -"arg_desc_list1 : '(' arg_desc_list ')'", -"arg_desc_list : arg_desc", -"arg_desc_list : arg_desc_list ',' arg_desc", -"arg_desc : init_data_type udf_data_type", -"arg_desc : init_data_type udf_data_type BY KW_DESCRIPTOR", -"return_value1 : return_value", -"return_value1 : '(' return_value ')'", -"return_value : init_data_type udf_data_type", -"return_value : init_data_type udf_data_type FREE_IT", -"return_value : init_data_type udf_data_type BY KW_VALUE", -"return_value : init_data_type udf_data_type BY KW_DESCRIPTOR", -"return_value : PARAMETER pos_short_integer", -"filter_decl_clause : symbol_filter_name INPUT_TYPE blob_subtype OUTPUT_TYPE blob_subtype ENTRY_POINT sql_string MODULE_NAME sql_string", -"create : CREATE create_clause", -"create_clause : EXCEPTION symbol_exception_name sql_string", -"create_clause : unique_opt order_direction INDEX symbol_index_name ON simple_table_name index_definition", -"create_clause : PROCEDURE procedure_clause", -"create_clause : TABLE table_clause", -"create_clause : TRIGGER def_trigger_clause", -"create_clause : VIEW view_clause", -"create_clause : GENERATOR generator_clause", -"create_clause : DATABASE db_clause", -"create_clause : DOMAIN domain_clause", -"create_clause : SHADOW shadow_clause", -"create_clause : ROLE role_clause", -"recreate : RECREATE recreate_clause", -"recreate_clause : PROCEDURE rprocedure_clause", -"recreate_clause : TABLE rtable_clause", -"recreate_clause : VIEW rview_clause", -"replace : CREATE OR ALTER replace_clause", -"replace_clause : PROCEDURE replace_procedure_clause", -"replace_clause : TRIGGER replace_trigger_clause", -"unique_opt : UNIQUE", -"unique_opt :", -"index_definition : column_list", -"index_definition : column_parens", -"index_definition : computed_by '(' begin_trigger value end_trigger ')'", -"shadow_clause : pos_short_integer manual_auto conditional sql_string first_file_length sec_shadow_files", -"manual_auto : MANUAL", -"manual_auto : AUTO", -"manual_auto :", -"conditional :", -"conditional : CONDITIONAL", -"first_file_length :", -"first_file_length : LENGTH equals long_integer page_noise", -"sec_shadow_files :", -"sec_shadow_files : db_file_list", -"db_file_list : db_file", -"db_file_list : db_file_list db_file", -"domain_clause : column_def_name as_opt data_type begin_trigger domain_default_opt end_trigger domain_constraint_clause collate_clause", -"as_opt : AS", -"as_opt :", -"domain_default_opt : DEFAULT begin_trigger default_value", -"domain_default_opt :", -"domain_constraint_clause :", -"domain_constraint_clause : domain_constraint_list", -"domain_constraint_list : domain_constraint_def", -"domain_constraint_list : domain_constraint_list domain_constraint_def", -"domain_constraint_def : domain_constraint", -"domain_constraint : null_constraint", -"domain_constraint : domain_check_constraint", -"null_constraint : NOT KW_NULL", -"domain_check_constraint : begin_trigger CHECK '(' search_condition ')' end_trigger", -"generator_clause : symbol_generator_name", -"role_clause : symbol_role_name", -"db_clause : db_name db_initial_desc1 db_rem_desc1", -"equals :", -"equals : '='", -"db_name : sql_string", -"db_initial_desc1 :", -"db_initial_desc1 : db_initial_desc", -"db_initial_desc : db_initial_option", -"db_initial_desc : db_initial_desc db_initial_option", -"db_initial_option : PAGE_SIZE equals pos_short_integer", -"db_initial_option : LENGTH equals long_integer page_noise", -"db_initial_option : USER sql_string", -"db_initial_option : PASSWORD sql_string", -"db_initial_option : SET NAMES sql_string", -"db_rem_desc1 :", -"db_rem_desc1 : db_rem_desc", -"db_rem_desc : db_rem_option", -"db_rem_desc : db_rem_desc db_rem_option", -"db_rem_option : db_file", -"db_rem_option : db_log", -"db_rem_option : db_log_option", -"db_rem_option : DEFAULT CHARACTER SET symbol_character_set_name", -"db_rem_option : KW_DIFFERENCE KW_FILE sql_string", -"db_log_option : GROUP_COMMIT_WAIT equals long_integer", -"db_log_option : CHECK_POINT_LEN equals long_integer", -"db_log_option : NUM_LOG_BUFS equals pos_short_integer", -"db_log_option : LOG_BUF_SIZE equals unsigned_short_integer", -"db_log : db_default_log_spec", -"db_log : db_rem_log_spec", -"db_rem_log_spec : LOGFILE '(' logfiles ')' OVERFLOW logfile_desc", -"db_rem_log_spec : LOGFILE BASENAME logfile_desc", -"db_default_log_spec : LOGFILE", -"db_file : file1 sql_string file_desc1", -"logfiles : logfile_desc", -"logfiles : logfiles ',' logfile_desc", -"logfile_desc : logfile_name logfile_attrs", -"logfile_name : sql_string", -"logfile_attrs :", -"logfile_attrs : logfile_attrs logfile_attr", -"logfile_attr : KW_SIZE equals long_integer", -"file1 : KW_FILE", -"file_desc1 :", -"file_desc1 : file_desc", -"file_desc : file_clause", -"file_desc : file_desc file_clause", -"file_clause : STARTING file_clause_noise long_integer", -"file_clause : LENGTH equals long_integer page_noise", -"file_clause_noise :", -"file_clause_noise : AT", -"file_clause_noise : AT PAGE", -"page_noise :", -"page_noise : PAGE", -"page_noise : PAGES", -"table_clause : simple_table_name external_file '(' table_elements ')'", -"rtable_clause : simple_table_name external_file '(' table_elements ')'", -"external_file : EXTERNAL KW_FILE sql_string", -"external_file : EXTERNAL sql_string", -"external_file :", -"table_elements : table_element", -"table_elements : table_elements ',' table_element", -"table_element : column_def", -"table_element : table_constraint_definition", -"column_def : column_def_name data_type_or_domain default_opt end_trigger column_constraint_clause collate_clause", -"column_def : column_def_name non_array_type def_computed", -"column_def : column_def_name def_computed", -"def_computed : computed_by '(' begin_trigger value end_trigger ')'", -"computed_by : COMPUTED BY", -"computed_by : COMPUTED", -"data_type_or_domain : data_type begin_trigger", -"data_type_or_domain : simple_column_name begin_string", -"collate_clause : COLLATE symbol_collation_name", -"collate_clause :", -"column_def_name : simple_column_name", -"simple_column_def_name : simple_column_name", -"data_type_descriptor : init_data_type data_type", -"init_data_type :", -"default_opt : DEFAULT default_value", -"default_opt :", -"default_value : constant", -"default_value : current_user", -"default_value : current_role", -"default_value : internal_info", -"default_value : null_value", -"default_value : datetime_value_expression", -"column_constraint_clause :", -"column_constraint_clause : column_constraint_list", -"column_constraint_list : column_constraint_def", -"column_constraint_list : column_constraint_list column_constraint_def", -"column_constraint_def : constraint_name_opt column_constraint", -"column_constraint : NOT KW_NULL", -"column_constraint : REFERENCES simple_table_name column_parens_opt referential_trigger_action constraint_index_opt", -"column_constraint : check_constraint", -"column_constraint : UNIQUE constraint_index_opt", -"column_constraint : PRIMARY KEY constraint_index_opt", -"table_constraint_definition : constraint_name_opt table_constraint", -"constraint_name_opt : CONSTRAINT symbol_constraint_name", -"constraint_name_opt :", -"table_constraint : unique_constraint", -"table_constraint : primary_constraint", -"table_constraint : referential_constraint", -"table_constraint : check_constraint", -"unique_constraint : UNIQUE column_parens constraint_index_opt", -"primary_constraint : PRIMARY KEY column_parens constraint_index_opt", -"referential_constraint : FOREIGN KEY column_parens REFERENCES simple_table_name column_parens_opt referential_trigger_action constraint_index_opt", -"constraint_index_opt : USING order_direction INDEX symbol_index_name", -"constraint_index_opt :", -"check_constraint : begin_trigger CHECK '(' search_condition ')' end_trigger", -"referential_trigger_action : update_rule", -"referential_trigger_action : delete_rule", -"referential_trigger_action : delete_rule update_rule", -"referential_trigger_action : update_rule delete_rule", -"referential_trigger_action :", -"update_rule : ON UPDATE referential_action", -"delete_rule : ON KW_DELETE referential_action", -"referential_action : CASCADE", -"referential_action : SET DEFAULT", -"referential_action : SET KW_NULL", -"referential_action : NO ACTION", -"procedure_clause : symbol_procedure_name input_parameters output_parameters AS begin_string local_declaration_list full_proc_block end_trigger", -"rprocedure_clause : symbol_procedure_name input_parameters output_parameters AS begin_string local_declaration_list full_proc_block end_trigger", -"replace_procedure_clause : symbol_procedure_name input_parameters output_parameters AS begin_string local_declaration_list full_proc_block end_trigger", -"alter_procedure_clause : symbol_procedure_name input_parameters output_parameters AS begin_string local_declaration_list full_proc_block end_trigger", -"input_parameters : '(' proc_parameters ')'", -"input_parameters :", -"output_parameters : RETURNS input_parameters", -"output_parameters :", -"proc_parameters : proc_parameter", -"proc_parameters : proc_parameters ',' proc_parameter", -"proc_parameter : simple_column_def_name non_array_type", -"local_declaration_list : local_declarations", -"local_declaration_list :", -"local_declarations : local_declaration", -"local_declarations : local_declarations local_declaration", -"local_declaration : DECLARE var_decl_opt local_declaration_item ';'", -"local_declaration_item : var_declaration_item", -"local_declaration_item : cursor_declaration_item", -"var_declaration_item : column_def_name non_array_type var_init_opt", -"var_decl_opt : VARIABLE", -"var_decl_opt :", -"var_init_opt : '=' default_value", -"var_init_opt : default_opt", -"cursor_declaration_item : symbol_cursor_name CURSOR FOR '(' ordered_select_expr ')'", -"proc_block : proc_statement", -"proc_block : full_proc_block", -"full_proc_block : BEGIN full_proc_block_body END", -"full_proc_block_body : proc_statements", -"full_proc_block_body : proc_statements excp_hndl_statements", -"full_proc_block_body :", -"proc_statements : proc_block", -"proc_statements : proc_statements proc_block", -"proc_statement : assignment ';'", -"proc_statement : delete ';'", -"proc_statement : excp_statement", -"proc_statement : raise_statement", -"proc_statement : exec_procedure", -"proc_statement : exec_sql", -"proc_statement : for_select", -"proc_statement : if_then_else", -"proc_statement : insert ';'", -"proc_statement : post_event", -"proc_statement : singleton_select", -"proc_statement : update ';'", -"proc_statement : while", -"proc_statement : for_exec_into", -"proc_statement : exec_into", -"proc_statement : SUSPEND ';'", -"proc_statement : EXIT ';'", -"proc_statement : breakleave", -"proc_statement : cursor_statement ';'", -"excp_statement : EXCEPTION symbol_exception_name ';'", -"excp_statement : EXCEPTION symbol_exception_name value ';'", -"raise_statement : EXCEPTION ';'", -"exec_procedure : EXECUTE PROCEDURE symbol_procedure_name proc_inputs proc_outputs ';'", -"exec_sql : EXECUTE varstate value ';'", -"varstate : VARCHAR", -"varstate : STATEMENT", -"for_select : label_opt FOR select INTO variable_list cursor_def DO proc_block", -"for_exec_into : label_opt FOR EXECUTE varstate value INTO variable_list DO proc_block", -"exec_into : EXECUTE varstate value INTO variable_list ';'", -"if_then_else : IF '(' search_condition ')' THEN proc_block ELSE proc_block", -"if_then_else : IF '(' search_condition ')' THEN proc_block", -"post_event : POST_EVENT value event_argument_opt ';'", -"event_argument_opt :", -"singleton_select : select INTO variable_list ';'", -"variable : ':' symbol_variable_name", -"proc_inputs : rhs_list", -"proc_inputs : '(' rhs_list ')'", -"proc_inputs :", -"proc_outputs : RETURNING_VALUES variable_list", -"proc_outputs : RETURNING_VALUES '(' variable_list ')'", -"proc_outputs :", -"variable_list : variable", -"variable_list : column_name", -"variable_list : variable_list ',' column_name", -"variable_list : variable_list ',' variable", -"while : label_opt WHILE '(' search_condition ')' DO proc_block", -"label_opt : symbol_label_name ':'", -"label_opt :", -"breakleave : KW_BREAK ';'", -"breakleave : LEAVE ';'", -"breakleave : LEAVE symbol_label_name ';'", -"cursor_def : AS CURSOR symbol_cursor_name", -"cursor_def :", -"excp_hndl_statements : excp_hndl_statement", -"excp_hndl_statements : excp_hndl_statements excp_hndl_statement", -"excp_hndl_statement : WHEN errors DO proc_block", -"errors : err", -"errors : errors ',' err", -"err : SQLCODE signed_short_integer", -"err : GDSCODE symbol_gdscode_name", -"err : EXCEPTION symbol_exception_name", -"err : ANY", -"cursor_statement : open_cursor", -"cursor_statement : fetch_cursor", -"cursor_statement : close_cursor", -"open_cursor : OPEN symbol_cursor_name", -"close_cursor : CLOSE symbol_cursor_name", -"fetch_cursor : FETCH fetch_opt symbol_cursor_name INTO variable_list", -"fetch_opt :", -"invoke_procedure : EXECUTE PROCEDURE symbol_procedure_name proc_inputs", -"view_clause : symbol_view_name column_parens_opt AS begin_string union_view check_opt end_string", -"rview_clause : symbol_view_name column_parens_opt AS begin_string union_view check_opt end_string", -"union_view : union_view_expr", -"union_view_expr : select_view_expr", -"union_view_expr : union_view_expr UNION select_view_expr", -"union_view_expr : union_view_expr UNION ALL select_view_expr", -"select_view_expr : SELECT distinct_clause select_list from_view_clause where_clause group_clause having_clause", -"from_view_clause : FROM from_view_list", -"from_view_list : view_table", -"from_view_list : from_view_list ',' view_table", -"view_table : joined_view_table", -"view_table : table_name", -"joined_view_table : view_table join_type JOIN view_table ON search_condition", -"joined_view_table : '(' joined_view_table ')'", -"begin_string :", -"end_string :", -"begin_trigger :", -"end_trigger :", -"check_opt : WITH CHECK OPTION", -"check_opt :", -"def_trigger_clause : symbol_trigger_name FOR simple_table_name trigger_active trigger_type trigger_position begin_trigger trigger_action end_trigger", -"replace_trigger_clause : symbol_trigger_name FOR simple_table_name trigger_active trigger_type trigger_position begin_trigger trigger_action end_trigger", -"trigger_active : ACTIVE", -"trigger_active : INACTIVE", -"trigger_active :", -"trigger_type : trigger_type_prefix trigger_type_suffix", -"trigger_type_prefix : BEFORE", -"trigger_type_prefix : AFTER", -"trigger_type_suffix : INSERT", -"trigger_type_suffix : UPDATE", -"trigger_type_suffix : KW_DELETE", -"trigger_type_suffix : INSERT OR UPDATE", -"trigger_type_suffix : INSERT OR KW_DELETE", -"trigger_type_suffix : UPDATE OR INSERT", -"trigger_type_suffix : UPDATE OR KW_DELETE", -"trigger_type_suffix : KW_DELETE OR INSERT", -"trigger_type_suffix : KW_DELETE OR UPDATE", -"trigger_type_suffix : INSERT OR UPDATE OR KW_DELETE", -"trigger_type_suffix : INSERT OR KW_DELETE OR UPDATE", -"trigger_type_suffix : UPDATE OR INSERT OR KW_DELETE", -"trigger_type_suffix : UPDATE OR KW_DELETE OR INSERT", -"trigger_type_suffix : KW_DELETE OR INSERT OR UPDATE", -"trigger_type_suffix : KW_DELETE OR UPDATE OR INSERT", -"trigger_position : POSITION nonneg_short_integer", -"trigger_position :", -"trigger_action : AS begin_trigger local_declaration_list full_proc_block", -"alter : ALTER alter_clause", -"alter_clause : EXCEPTION symbol_exception_name sql_string", -"alter_clause : TABLE simple_table_name alter_ops", -"alter_clause : TRIGGER alter_trigger_clause", -"alter_clause : PROCEDURE alter_procedure_clause", -"alter_clause : DATABASE init_alter_db alter_db", -"alter_clause : DOMAIN alter_column_name alter_domain_ops", -"alter_clause : INDEX alter_index_clause", -"domain_default_opt2 : DEFAULT begin_trigger default_value", -"domain_check_constraint2 : CHECK begin_trigger '(' search_condition ')' end_trigger", -"alter_domain_ops : alter_domain_op", -"alter_domain_ops : alter_domain_ops alter_domain_op", -"alter_domain_op : SET begin_trigger domain_default_opt2 end_trigger", -"alter_domain_op : ADD CONSTRAINT domain_check_constraint2", -"alter_domain_op : ADD domain_check_constraint", -"alter_domain_op : DROP DEFAULT", -"alter_domain_op : DROP CONSTRAINT", -"alter_domain_op : TO simple_column_name", -"alter_domain_op : TYPE init_data_type non_array_type", -"alter_ops : alter_op", -"alter_ops : alter_ops ',' alter_op", -"alter_op : DROP simple_column_name drop_behaviour", -"alter_op : DROP CONSTRAINT symbol_constraint_name", -"alter_op : ADD column_def", -"alter_op : ADD table_constraint_definition", -"alter_op : col_opt simple_column_name POSITION pos_short_integer", -"alter_op : col_opt alter_column_name TO simple_column_name", -"alter_op : col_opt alter_col_name TYPE alter_data_type_or_domain end_trigger", -"alter_column_name : keyword_or_column", -"keyword_or_column : valid_symbol_name", -"keyword_or_column : COLUMN", -"keyword_or_column : TYPE", -"keyword_or_column : EXTRACT", -"keyword_or_column : YEAR", -"keyword_or_column : MONTH", -"keyword_or_column : DAY", -"keyword_or_column : HOUR", -"keyword_or_column : MINUTE", -"keyword_or_column : SECOND", -"keyword_or_column : WEEKDAY", -"keyword_or_column : YEARDAY", -"keyword_or_column : TIME", -"keyword_or_column : TIMESTAMP", -"keyword_or_column : CURRENT_DATE", -"keyword_or_column : CURRENT_TIME", -"keyword_or_column : CURRENT_TIMESTAMP", -"keyword_or_column : CURRENT_USER", -"keyword_or_column : CURRENT_ROLE", -"keyword_or_column : CURRENT_CONNECTION", -"keyword_or_column : CURRENT_TRANSACTION", -"keyword_or_column : ROW_COUNT", -"keyword_or_column : SAVEPOINT", -"keyword_or_column : OPEN", -"keyword_or_column : CLOSE", -"keyword_or_column : FETCH", -"keyword_or_column : ROWS", -"col_opt : ALTER", -"col_opt : ALTER COLUMN", -"alter_data_type_or_domain : non_array_type begin_trigger", -"alter_data_type_or_domain : simple_column_name begin_string", -"alter_col_name : simple_column_name", -"drop_behaviour : RESTRICT", -"drop_behaviour : CASCADE", -"drop_behaviour :", -"alter_index_clause : symbol_index_name ACTIVE", -"alter_index_clause : symbol_index_name INACTIVE", -"init_alter_db :", -"alter_db : db_alter_clause", -"alter_db : alter_db db_alter_clause", -"db_alter_clause : ADD db_file_list", -"db_alter_clause : DROP LOGFILE", -"db_alter_clause : SET db_log_option_list", -"db_alter_clause : ADD db_log", -"db_alter_clause : ADD KW_DIFFERENCE KW_FILE sql_string", -"db_alter_clause : DROP KW_DIFFERENCE KW_FILE", -"db_alter_clause : BEGIN BACKUP", -"db_alter_clause : END BACKUP", -"db_log_option_list : db_log_option", -"db_log_option_list : db_log_option_list ',' db_log_option", -"alter_trigger_clause : symbol_trigger_name trigger_active new_trigger_type trigger_position begin_trigger new_trigger_action end_trigger", -"new_trigger_type : trigger_type", -"new_trigger_type :", -"new_trigger_action : trigger_action", -"new_trigger_action :", -"drop : DROP drop_clause", -"drop_clause : EXCEPTION symbol_exception_name", -"drop_clause : INDEX symbol_index_name", -"drop_clause : PROCEDURE symbol_procedure_name", -"drop_clause : TABLE symbol_table_name", -"drop_clause : TRIGGER symbol_trigger_name", -"drop_clause : VIEW symbol_view_name", -"drop_clause : FILTER symbol_filter_name", -"drop_clause : DOMAIN symbol_domain_name", -"drop_clause : EXTERNAL FUNCTION symbol_UDF_name", -"drop_clause : SHADOW pos_short_integer", -"drop_clause : ROLE symbol_role_name", -"drop_clause : GENERATOR symbol_generator_name", -"data_type : non_array_type", -"data_type : array_type", -"non_array_type : simple_type", -"non_array_type : blob_type", -"array_type : non_charset_simple_type '[' array_spec ']'", -"array_type : character_type '[' array_spec ']' charset_clause", -"array_spec : array_range", -"array_spec : array_spec ',' array_range", -"array_range : signed_long_integer", -"array_range : signed_long_integer ':' signed_long_integer", -"simple_type : non_charset_simple_type", -"simple_type : character_type charset_clause", -"non_charset_simple_type : national_character_type", -"non_charset_simple_type : numeric_type", -"non_charset_simple_type : float_type", -"non_charset_simple_type : BIGINT", -"non_charset_simple_type : integer_keyword", -"non_charset_simple_type : SMALLINT", -"non_charset_simple_type : DATE", -"non_charset_simple_type : TIME", -"non_charset_simple_type : TIMESTAMP", -"integer_keyword : INTEGER", -"integer_keyword : KW_INT", -"blob_type : BLOB blob_subtype blob_segsize charset_clause", -"blob_type : BLOB '(' unsigned_short_integer ')'", -"blob_type : BLOB '(' unsigned_short_integer ',' signed_short_integer ')'", -"blob_type : BLOB '(' ',' signed_short_integer ')'", -"blob_segsize : SEGMENT KW_SIZE unsigned_short_integer", -"blob_segsize :", -"blob_subtype : SUB_TYPE signed_short_integer", -"blob_subtype : SUB_TYPE symbol_blob_subtype_name", -"blob_subtype :", -"charset_clause : CHARACTER SET symbol_character_set_name", -"charset_clause :", -"national_character_type : national_character_keyword '(' pos_short_integer ')'", -"national_character_type : national_character_keyword", -"national_character_type : national_character_keyword VARYING '(' pos_short_integer ')'", -"character_type : character_keyword '(' pos_short_integer ')'", -"character_type : character_keyword", -"character_type : varying_keyword '(' pos_short_integer ')'", -"varying_keyword : VARCHAR", -"varying_keyword : CHARACTER VARYING", -"varying_keyword : KW_CHAR VARYING", -"character_keyword : CHARACTER", -"character_keyword : KW_CHAR", -"national_character_keyword : NCHAR", -"national_character_keyword : NATIONAL CHARACTER", -"national_character_keyword : NATIONAL KW_CHAR", -"numeric_type : KW_NUMERIC prec_scale", -"numeric_type : decimal_keyword prec_scale", -"prec_scale :", -"prec_scale : '(' signed_long_integer ')'", -"prec_scale : '(' signed_long_integer ',' signed_long_integer ')'", -"decimal_keyword : DECIMAL", -"decimal_keyword : KW_DEC", -"float_type : KW_FLOAT precision_opt", -"float_type : KW_LONG KW_FLOAT precision_opt", -"float_type : REAL", -"float_type : KW_DOUBLE PRECISION", -"precision_opt : '(' nonneg_short_integer ')'", -"precision_opt :", -"set : set_transaction", -"set : set_generator", -"set : set_statistics", -"set_generator : SET GENERATOR symbol_generator_name TO signed_long_integer", -"set_generator : SET GENERATOR symbol_generator_name TO NUMBER64BIT", -"set_generator : SET GENERATOR symbol_generator_name TO '-' NUMBER64BIT", -"savepoint : set_savepoint", -"savepoint : release_savepoint", -"savepoint : undo_savepoint", -"set_savepoint : SAVEPOINT symbol_savepoint_name", -"release_savepoint : RELEASE SAVEPOINT symbol_savepoint_name release_only_opt", -"release_only_opt : ONLY", -"release_only_opt :", -"undo_savepoint : ROLLBACK optional_work TO optional_savepoint symbol_savepoint_name", -"optional_savepoint : SAVEPOINT", -"optional_savepoint :", -"commit : COMMIT optional_work optional_retain", -"rollback : ROLLBACK optional_work", -"optional_work : WORK", -"optional_work :", -"optional_retain : RETAIN opt_snapshot", -"optional_retain :", -"opt_snapshot : SNAPSHOT", -"opt_snapshot :", -"set_transaction : SET TRANSACTION tran_opt_list_m", -"tran_opt_list_m : tran_opt_list", -"tran_opt_list_m :", -"tran_opt_list : tran_opt", -"tran_opt_list : tran_opt_list tran_opt", -"tran_opt : access_mode", -"tran_opt : lock_wait", -"tran_opt : isolation_mode", -"tran_opt : tbl_reserve_options", -"access_mode : READ ONLY", -"access_mode : READ WRITE", -"lock_wait : WAIT", -"lock_wait : NO WAIT", -"isolation_mode : ISOLATION LEVEL iso_mode", -"isolation_mode : iso_mode", -"iso_mode : snap_shot", -"iso_mode : READ UNCOMMITTED version_mode", -"iso_mode : READ COMMITTED version_mode", -"snap_shot : SNAPSHOT", -"snap_shot : SNAPSHOT TABLE", -"snap_shot : SNAPSHOT TABLE STABILITY", -"version_mode : VERSION", -"version_mode : NO VERSION", -"version_mode :", -"tbl_reserve_options : RESERVING restr_list", -"lock_type : KW_SHARED", -"lock_type : PROTECTED", -"lock_type :", -"lock_mode : READ", -"lock_mode : WRITE", -"restr_list : restr_option", -"restr_list : restr_list ',' restr_option", -"restr_option : table_list table_lock", -"table_lock : FOR lock_type lock_mode", -"table_lock :", -"table_list : simple_table_name", -"table_list : table_list ',' simple_table_name", -"set_statistics : SET STATISTICS INDEX symbol_index_name", -"select : union_expr order_clause rows_clause for_update_clause lock_clause", -"union_expr : select_expr", -"union_expr : union_expr UNION select_expr", -"union_expr : union_expr UNION ALL select_expr", -"order_clause : ORDER BY order_list", -"order_clause :", -"order_list : order_item", -"order_list : order_list ',' order_item", -"order_item : value order_direction nulls_clause", -"order_direction : ASC", -"order_direction : DESC", -"order_direction :", -"nulls_placement : FIRST", -"nulls_placement : LAST", -"nulls_clause : NULLS begin_first nulls_placement end_first", -"nulls_clause :", -"rows_clause : ROWS value", -"rows_clause : ROWS value TO value", -"rows_clause :", -"for_update_clause : FOR UPDATE for_update_list", -"for_update_clause :", -"for_update_list : OF column_list", -"for_update_list :", -"lock_clause : WITH LOCK", -"lock_clause :", -"select_expr : SELECT limit_clause distinct_clause select_list from_clause where_clause group_clause having_clause plan_clause", -"ordered_select_expr : SELECT limit_clause distinct_clause select_list from_clause where_clause group_clause having_clause plan_clause order_clause rows_clause", -"begin_limit :", -"end_limit :", -"begin_first :", -"end_first :", -"limit_clause : first_clause skip_clause end_limit", -"limit_clause : first_clause end_limit", -"limit_clause : skip_clause", -"limit_clause :", -"first_clause : FIRST long_integer begin_limit", -"first_clause : FIRST '(' value ')' begin_limit", -"first_clause : FIRST parameter begin_limit", -"skip_clause : SKIP long_integer", -"skip_clause : SKIP '(' end_limit value ')'", -"skip_clause : SKIP parameter", -"distinct_clause : DISTINCT", -"distinct_clause : all_noise", -"select_list : select_items", -"select_list : '*'", -"select_items : select_item", -"select_items : select_items ',' select_item", -"select_item : rhs", -"select_item : rhs as_noise symbol_item_alias_name", -"as_noise : AS", -"as_noise :", -"from_clause : FROM from_list", -"from_list : table_reference", -"from_list : from_list ',' table_reference", -"table_reference : joined_table", -"table_reference : table_proc", -"table_reference : derived_table", -"derived_table : '(' select ')' as_noise correlation_name derived_column_list", -"correlation_name : symbol_table_alias_name", -"correlation_name :", -"derived_column_list : '(' alias_list ')'", -"derived_column_list :", -"alias_list : symbol_item_alias_name", -"alias_list : alias_list ',' symbol_item_alias_name", -"joined_table : table_reference join_type JOIN table_reference ON search_condition", -"joined_table : '(' joined_table ')'", -"table_proc : symbol_procedure_name table_proc_inputs as_noise symbol_table_alias_name", -"table_proc : symbol_procedure_name table_proc_inputs", -"table_proc_inputs : '(' rhs_list ')'", -"table_proc_inputs :", -"table_name : simple_table_name", -"table_name : symbol_table_name symbol_table_alias_name", -"simple_table_name : symbol_table_name", -"join_type : INNER", -"join_type : LEFT", -"join_type : LEFT OUTER", -"join_type : RIGHT", -"join_type : RIGHT OUTER", -"join_type : FULL", -"join_type : FULL OUTER", -"join_type :", -"group_clause : GROUP BY group_by_list", -"group_clause :", -"group_by_list : group_by_item", -"group_by_list : group_by_list ',' group_by_item", -"group_by_item : value", -"having_clause : HAVING search_condition", -"having_clause :", -"where_clause : WHERE search_condition", -"where_clause :", -"plan_clause : PLAN plan_expression", -"plan_clause :", -"plan_expression : plan_type '(' plan_item_list ')'", -"plan_type : JOIN", -"plan_type : SORT MERGE", -"plan_type : MERGE", -"plan_type : SORT", -"plan_type :", -"plan_item_list : plan_item", -"plan_item_list : plan_item ',' plan_item_list", -"plan_item : table_or_alias_list access_type", -"plan_item : plan_expression", -"table_or_alias_list : symbol_table_name", -"table_or_alias_list : symbol_table_name table_or_alias_list", -"access_type : NATURAL", -"access_type : INDEX '(' index_list ')'", -"access_type : ORDER symbol_index_name extra_indices_opt", -"index_list : symbol_index_name", -"index_list : symbol_index_name ',' index_list", -"extra_indices_opt : INDEX '(' index_list ')'", -"extra_indices_opt :", -"insert : INSERT INTO simple_table_name ins_column_parens_opt VALUES '(' rhs_list ')'", -"insert : INSERT INTO simple_table_name ins_column_parens_opt ordered_select_expr", -"delete : delete_searched", -"delete : delete_positioned", -"delete_searched : KW_DELETE FROM table_name where_clause", -"delete_positioned : KW_DELETE FROM table_name cursor_clause", -"cursor_clause : WHERE CURRENT OF symbol_cursor_name", -"update : update_searched", -"update : update_positioned", -"update_searched : UPDATE table_name SET assignments where_clause", -"update_positioned : UPDATE table_name SET assignments cursor_clause", -"assignments : assignment", -"assignments : assignments ',' assignment", -"assignment : update_column_name '=' rhs", -"rhs : value", -"rhs : null_value", -"rhs_list : rhs", -"rhs_list : rhs_list ',' rhs", -"blob : READ BLOB simple_column_name FROM simple_table_name filter_clause segment_clause", -"blob : INSERT BLOB simple_column_name INTO simple_table_name filter_clause segment_clause", -"filter_clause : FILTER FROM blob_subtype_value TO blob_subtype_value", -"filter_clause : FILTER TO blob_subtype_value", -"filter_clause :", -"blob_subtype_value : blob_subtype", -"blob_subtype_value : parameter", -"blob_subtype : signed_short_integer", -"segment_clause : MAX_SEGMENT segment_length", -"segment_clause :", -"segment_length : unsigned_short_integer", -"segment_length : parameter", -"column_parens_opt : column_parens", -"column_parens_opt :", -"column_parens : '(' column_list ')'", -"column_list : simple_column_name", -"column_list : column_list ',' simple_column_name", -"ins_column_parens_opt : ins_column_parens", -"ins_column_parens_opt :", -"ins_column_parens : '(' ins_column_list ')'", -"ins_column_list : update_column_name", -"ins_column_list : ins_column_list ',' update_column_name", -"column_name : simple_column_name", -"column_name : symbol_table_alias_name '.' symbol_column_name", -"column_name : symbol_table_alias_name '.' '*'", -"simple_column_name : symbol_column_name", -"update_column_name : simple_column_name", -"update_column_name : symbol_table_alias_name '.' symbol_column_name", -"search_condition : trigger_action_predicate", -"search_condition : NOT trigger_action_predicate", -"search_condition : simple_search_condition", -"search_condition : search_condition OR search_condition", -"search_condition : search_condition AND search_condition", -"bracable_search_condition : simple_search_condition", -"bracable_search_condition : NOT trigger_action_predicate", -"bracable_search_condition : bracable_search_condition OR search_condition", -"bracable_search_condition : bracable_search_condition AND search_condition", -"bracable_search_condition : special_trigger_action_predicate OR search_condition", -"bracable_search_condition : special_trigger_action_predicate AND search_condition", -"simple_search_condition : predicate", -"simple_search_condition : '(' bracable_search_condition ')'", -"simple_search_condition : NOT simple_search_condition", -"predicate : comparison_predicate", -"predicate : between_predicate", -"predicate : like_predicate", -"predicate : in_predicate", -"predicate : null_predicate", -"predicate : quantified_predicate", -"predicate : exists_predicate", -"predicate : containing_predicate", -"predicate : starting_predicate", -"predicate : unique_predicate", -"comparison_predicate : value '=' value", -"comparison_predicate : value '<' value", -"comparison_predicate : value '>' value", -"comparison_predicate : value GEQ value", -"comparison_predicate : value LEQ value", -"comparison_predicate : value NOT_GTR value", -"comparison_predicate : value NOT_LSS value", -"comparison_predicate : value NEQ value", -"quantified_predicate : value '=' ALL '(' column_select ')'", -"quantified_predicate : value '<' ALL '(' column_select ')'", -"quantified_predicate : value '>' ALL '(' column_select ')'", -"quantified_predicate : value GEQ ALL '(' column_select ')'", -"quantified_predicate : value LEQ ALL '(' column_select ')'", -"quantified_predicate : value NOT_GTR ALL '(' column_select ')'", -"quantified_predicate : value NOT_LSS ALL '(' column_select ')'", -"quantified_predicate : value NEQ ALL '(' column_select ')'", -"quantified_predicate : value '=' some '(' column_select ')'", -"quantified_predicate : value '<' some '(' column_select ')'", -"quantified_predicate : value '>' some '(' column_select ')'", -"quantified_predicate : value GEQ some '(' column_select ')'", -"quantified_predicate : value LEQ some '(' column_select ')'", -"quantified_predicate : value NOT_GTR some '(' column_select ')'", -"quantified_predicate : value NOT_LSS some '(' column_select ')'", -"quantified_predicate : value NEQ some '(' column_select ')'", -"some : SOME", -"some : ANY", -"between_predicate : value BETWEEN value AND value", -"between_predicate : value NOT BETWEEN value AND value", -"like_predicate : value LIKE value", -"like_predicate : value NOT LIKE value", -"like_predicate : value LIKE value ESCAPE value", -"like_predicate : value NOT LIKE value ESCAPE value", -"in_predicate : value KW_IN in_predicate_value", -"in_predicate : value NOT KW_IN in_predicate_value", -"containing_predicate : value CONTAINING value", -"containing_predicate : value NOT CONTAINING value", -"starting_predicate : value STARTING value", -"starting_predicate : value NOT STARTING value", -"starting_predicate : value STARTING WITH value", -"starting_predicate : value NOT STARTING WITH value", -"exists_predicate : EXISTS '(' ordered_select_expr ')'", -"unique_predicate : SINGULAR '(' ordered_select_expr ')'", -"null_predicate : value IS KW_NULL", -"null_predicate : value IS NOT KW_NULL", -"trigger_action_predicate : INSERTING", -"trigger_action_predicate : UPDATING", -"trigger_action_predicate : DELETING", -"special_trigger_action_predicate : KW_INSERTING", -"special_trigger_action_predicate : KW_UPDATING", -"special_trigger_action_predicate : KW_DELETING", -"in_predicate_value : table_subquery", -"in_predicate_value : '(' value_list ')'", -"table_subquery : '(' column_select ')'", -"column_select : SELECT limit_clause distinct_clause value from_clause where_clause group_clause having_clause plan_clause order_clause rows_clause", -"column_singleton : SELECT limit_clause distinct_clause value from_clause where_clause group_clause having_clause plan_clause order_clause rows_clause", -"value : column_name", -"value : array_element", -"value : function", -"value : u_constant", -"value : parameter", -"value : variable", -"value : cast_specification", -"value : case_expression", -"value : udf", -"value : '-' value", -"value : '+' value", -"value : value '+' value", -"value : value CONCATENATE value", -"value : value COLLATE symbol_collation_name", -"value : value '-' value", -"value : value '*' value", -"value : value '/' value", -"value : '(' value ')'", -"value : '(' column_singleton ')'", -"value : current_user", -"value : current_role", -"value : internal_info", -"value : DB_KEY", -"value : symbol_table_alias_name '.' DB_KEY", -"value : KW_VALUE", -"value : datetime_value_expression", -"datetime_value_expression : CURRENT_DATE", -"datetime_value_expression : CURRENT_TIME", -"datetime_value_expression : CURRENT_TIMESTAMP", -"array_element : column_name '[' value_list ']'", -"value_list : value", -"value_list : value_list ',' value", -"constant : u_constant", -"constant : '-' u_numeric_constant", -"u_numeric_constant : NUMERIC", -"u_numeric_constant : NUMBER", -"u_numeric_constant : FLOAT_NUMBER", -"u_numeric_constant : NUMBER64BIT", -"u_numeric_constant : SCALEDINT", -"u_constant : u_numeric_constant", -"u_constant : sql_string", -"u_constant : DATE STRING", -"u_constant : TIME STRING", -"u_constant : TIMESTAMP STRING", -"parameter : '?'", -"current_user : USER", -"current_user : CURRENT_USER", -"current_role : CURRENT_ROLE", -"internal_info : CURRENT_CONNECTION", -"internal_info : CURRENT_TRANSACTION", -"internal_info : GDSCODE", -"internal_info : SQLCODE", -"internal_info : ROW_COUNT", -"sql_string : STRING", -"sql_string : INTRODUCER STRING", -"signed_short_integer : nonneg_short_integer", -"signed_short_integer : '-' neg_short_integer", -"nonneg_short_integer : NUMBER", -"neg_short_integer : NUMBER", -"pos_short_integer : nonneg_short_integer", -"unsigned_short_integer : NUMBER", -"signed_long_integer : long_integer", -"signed_long_integer : '-' long_integer", -"long_integer : NUMBER", -"function : aggregate_function", -"function : generate_value_function", -"function : numeric_value_function", -"function : string_value_function", -"aggregate_function : COUNT '(' '*' ')'", -"aggregate_function : COUNT '(' all_noise value ')'", -"aggregate_function : COUNT '(' DISTINCT value ')'", -"aggregate_function : SUM '(' all_noise value ')'", -"aggregate_function : SUM '(' DISTINCT value ')'", -"aggregate_function : AVG '(' all_noise value ')'", -"aggregate_function : AVG '(' DISTINCT value ')'", -"aggregate_function : MINIMUM '(' all_noise value ')'", -"aggregate_function : MINIMUM '(' DISTINCT value ')'", -"aggregate_function : MAXIMUM '(' all_noise value ')'", -"aggregate_function : MAXIMUM '(' DISTINCT value ')'", -"generate_value_function : GEN_ID '(' symbol_generator_name ',' value ')'", -"numeric_value_function : extract_expression", -"extract_expression : EXTRACT '(' timestamp_part FROM value ')'", -"string_value_function : substring_function", -"string_value_function : KW_UPPER '(' value ')'", -"substring_function : SUBSTRING '(' value FROM value string_length_opt ')'", -"string_length_opt : FOR value", -"string_length_opt :", -"udf : symbol_UDF_name '(' value_list ')'", -"udf : symbol_UDF_name '(' ')'", -"cast_specification : CAST '(' rhs AS data_type_descriptor ')'", -"case_expression : case_abbreviation", -"case_expression : case_specification", -"case_abbreviation : NULLIF '(' value ',' value ')'", -"case_abbreviation : COALESCE '(' rhs ',' rhs_list ')'", -"case_specification : simple_case", -"case_specification : searched_case", -"simple_case : CASE case_operand simple_when_clause END", -"simple_case : CASE case_operand simple_when_clause ELSE case_result END", -"simple_when_clause : WHEN when_operand THEN case_result", -"simple_when_clause : simple_when_clause WHEN when_operand THEN case_result", -"searched_case : CASE searched_when_clause END", -"searched_case : CASE searched_when_clause ELSE case_result END", -"searched_when_clause : WHEN search_condition THEN case_result", -"searched_when_clause : searched_when_clause WHEN search_condition THEN case_result", -"when_operand : value", -"case_operand : value", -"case_result : rhs", -"timestamp_part : YEAR", -"timestamp_part : MONTH", -"timestamp_part : DAY", -"timestamp_part : HOUR", -"timestamp_part : MINUTE", -"timestamp_part : SECOND", -"timestamp_part : WEEKDAY", -"timestamp_part : YEARDAY", -"all_noise : ALL", -"all_noise :", -"null_value : KW_NULL", -"symbol_UDF_name : SYMBOL", -"symbol_blob_subtype_name : valid_symbol_name", -"symbol_character_set_name : valid_symbol_name", -"symbol_collation_name : valid_symbol_name", -"symbol_column_name : valid_symbol_name", -"symbol_constraint_name : valid_symbol_name", -"symbol_cursor_name : valid_symbol_name", -"symbol_domain_name : valid_symbol_name", -"symbol_exception_name : valid_symbol_name", -"symbol_filter_name : valid_symbol_name", -"symbol_gdscode_name : valid_symbol_name", -"symbol_generator_name : valid_symbol_name", -"symbol_index_name : valid_symbol_name", -"symbol_item_alias_name : valid_symbol_name", -"symbol_label_name : valid_symbol_name", -"symbol_procedure_name : valid_symbol_name", -"symbol_role_name : valid_symbol_name", -"symbol_table_alias_name : valid_symbol_name", -"symbol_table_name : valid_symbol_name", -"symbol_trigger_name : valid_symbol_name", -"symbol_user_name : valid_symbol_name", -"symbol_variable_name : valid_symbol_name", -"symbol_view_name : valid_symbol_name", -"symbol_savepoint_name : valid_symbol_name", -"valid_symbol_name : SYMBOL", -"valid_symbol_name : non_reserved_word", -"non_reserved_word : KW_BREAK", -"non_reserved_word : KW_DESCRIPTOR", -"non_reserved_word : SUBSTRING", -"non_reserved_word : COALESCE", -"non_reserved_word : LAST", -"non_reserved_word : LEAVE", -"non_reserved_word : LOCK", -"non_reserved_word : NULLIF", -"non_reserved_word : NULLS", -"non_reserved_word : STATEMENT", -"non_reserved_word : USING", -"non_reserved_word : INSERTING", -"non_reserved_word : UPDATING", -"non_reserved_word : DELETING", -"non_reserved_word : BACKUP", -"non_reserved_word : KW_DIFFERENCE", -}; -#endif #ifndef YYSTYPE -typedef int YYSTYPE; +# define YYSTYPE int +# define YYSTYPE_IS_TRIVIAL 1 #endif -#ifdef YYSTACKSIZE -#undef YYMAXDEPTH -#define YYMAXDEPTH YYSTACKSIZE -#else -#ifdef YYMAXDEPTH -#define YYSTACKSIZE YYMAXDEPTH -#else -#define YYSTACKSIZE 500 -#define YYMAXDEPTH 500 +#ifndef YYDEBUG +# define YYDEBUG 0 #endif -#endif -static int yynerrs; -int DSQL_yyerrflag; +#define YYFINAL 1907 +#define YYFLAG -32768 +#define YYNTBASE 284 + +/* YYTRANSLATE(YYLEX) -- Bison token number corresponding to YYLEX. */ +#define YYTRANSLATE(x) ((unsigned)(x) <= 521 ? yytranslate[x] : 715) + +/* YYTRANSLATE[YYLEX] -- Bison token number corresponding to YYLEX. */ +static const short yytranslate[] = +{ + 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 277, 278, 273, 271, 276, 272, 282, 274, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 279, 275, + 269, 268, 270, 283, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 280, 2, 281, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 2, 1, 3, 4, 5, + 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, + 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, + 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, + 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, + 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, + 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, + 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, + 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, + 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, + 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, + 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, + 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, + 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, + 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, + 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, + 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, + 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, + 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, + 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, + 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, + 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, + 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, + 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, + 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, + 266, 267 +}; + +#if YYDEBUG +static const short yyprhs[] = +{ + 0, 0, 2, 5, 7, 9, 11, 13, 15, 17, + 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, + 39, 41, 44, 52, 61, 68, 76, 82, 84, 87, + 89, 92, 94, 96, 100, 102, 104, 106, 108, 111, + 114, 118, 119, 123, 124, 126, 134, 143, 150, 158, + 165, 173, 178, 182, 184, 188, 192, 196, 199, 202, + 205, 208, 210, 214, 216, 219, 222, 224, 228, 230, + 232, 236, 238, 241, 244, 247, 251, 260, 262, 264, + 270, 271, 273, 277, 279, 283, 286, 291, 293, 297, + 300, 304, 309, 314, 317, 327, 330, 334, 342, 345, + 348, 351, 354, 357, 360, 363, 366, 369, 372, 375, + 378, 381, 386, 389, 392, 394, 395, 397, 399, 406, + 413, 415, 417, 418, 419, 421, 422, 427, 428, 430, + 432, 435, 444, 446, 447, 451, 452, 453, 455, 457, + 460, 462, 464, 466, 469, 476, 478, 480, 484, 485, + 487, 489, 490, 492, 494, 497, 501, 506, 509, 512, + 516, 517, 519, 521, 524, 526, 528, 530, 535, 539, + 543, 547, 551, 555, 557, 559, 566, 570, 572, 576, + 578, 582, 585, 587, 588, 591, 595, 597, 598, 600, + 602, 605, 609, 614, 615, 617, 620, 621, 623, 625, + 631, 637, 641, 644, 645, 647, 651, 653, 655, 662, + 666, 669, 676, 679, 681, 684, 687, 690, 691, 693, + 695, 698, 699, 702, 703, 705, 707, 709, 711, 713, + 715, 716, 718, 720, 723, 726, 729, 735, 737, 740, + 744, 747, 750, 751, 753, 755, 757, 759, 763, 768, + 777, 782, 783, 790, 792, 794, 797, 800, 801, 805, + 809, 811, 814, 817, 820, 829, 838, 847, 856, 860, + 861, 864, 865, 867, 871, 874, 876, 877, 879, 882, + 887, 889, 891, 895, 897, 898, 901, 903, 910, 912, + 914, 918, 920, 923, 924, 926, 929, 932, 935, 937, + 939, 941, 943, 945, 947, 950, 952, 954, 957, 959, + 961, 963, 966, 969, 971, 974, 978, 983, 986, 993, + 998, 1000, 1002, 1011, 1021, 1028, 1037, 1044, 1049, 1050, + 1055, 1058, 1060, 1064, 1065, 1068, 1073, 1074, 1076, 1078, + 1082, 1086, 1094, 1097, 1098, 1101, 1104, 1108, 1112, 1113, + 1115, 1118, 1123, 1125, 1129, 1132, 1135, 1138, 1140, 1142, + 1144, 1146, 1149, 1152, 1158, 1159, 1164, 1172, 1180, 1182, + 1184, 1188, 1193, 1201, 1204, 1206, 1210, 1212, 1214, 1221, + 1225, 1226, 1227, 1228, 1229, 1233, 1234, 1244, 1254, 1256, + 1258, 1259, 1262, 1264, 1266, 1268, 1270, 1272, 1276, 1280, + 1284, 1288, 1292, 1296, 1302, 1308, 1314, 1320, 1326, 1332, + 1335, 1336, 1341, 1344, 1348, 1352, 1355, 1358, 1362, 1366, + 1369, 1373, 1380, 1382, 1385, 1390, 1394, 1397, 1400, 1403, + 1406, 1410, 1412, 1416, 1420, 1424, 1427, 1430, 1435, 1440, + 1446, 1448, 1450, 1452, 1454, 1456, 1458, 1460, 1462, 1464, + 1466, 1468, 1470, 1472, 1474, 1476, 1478, 1480, 1482, 1484, + 1486, 1488, 1490, 1492, 1494, 1496, 1498, 1500, 1502, 1504, + 1507, 1510, 1513, 1515, 1517, 1519, 1520, 1523, 1526, 1527, + 1529, 1532, 1535, 1538, 1541, 1544, 1549, 1553, 1556, 1559, + 1561, 1565, 1573, 1575, 1576, 1578, 1579, 1582, 1585, 1588, + 1591, 1594, 1597, 1600, 1603, 1606, 1610, 1613, 1616, 1619, + 1621, 1623, 1625, 1627, 1632, 1638, 1640, 1644, 1646, 1650, + 1652, 1655, 1657, 1659, 1661, 1663, 1665, 1667, 1669, 1671, + 1673, 1675, 1677, 1682, 1687, 1694, 1700, 1704, 1705, 1708, + 1711, 1712, 1716, 1717, 1722, 1724, 1730, 1735, 1737, 1742, + 1744, 1747, 1750, 1752, 1754, 1756, 1759, 1762, 1765, 1768, + 1769, 1773, 1779, 1781, 1783, 1786, 1790, 1792, 1795, 1799, + 1800, 1802, 1804, 1806, 1812, 1818, 1825, 1827, 1829, 1831, + 1834, 1839, 1841, 1842, 1848, 1850, 1851, 1855, 1858, 1860, + 1861, 1864, 1865, 1867, 1868, 1872, 1874, 1875, 1877, 1880, + 1882, 1884, 1886, 1888, 1891, 1894, 1896, 1899, 1903, 1905, + 1907, 1911, 1915, 1917, 1920, 1924, 1926, 1929, 1930, 1933, + 1935, 1937, 1938, 1940, 1942, 1944, 1948, 1951, 1955, 1956, + 1958, 1962, 1967, 1973, 1975, 1979, 1984, 1988, 1989, 1991, + 1995, 1999, 2001, 2003, 2004, 2006, 2008, 2013, 2014, 2017, + 2022, 2023, 2027, 2028, 2031, 2032, 2035, 2036, 2046, 2058, + 2059, 2060, 2061, 2062, 2066, 2069, 2071, 2072, 2076, 2082, + 2086, 2089, 2095, 2098, 2100, 2102, 2104, 2106, 2108, 2112, + 2114, 2118, 2120, 2121, 2124, 2126, 2130, 2132, 2134, 2136, + 2143, 2145, 2146, 2150, 2151, 2153, 2157, 2164, 2168, 2173, + 2176, 2180, 2181, 2183, 2186, 2188, 2190, 2192, 2195, 2197, + 2200, 2202, 2205, 2206, 2210, 2211, 2213, 2217, 2219, 2222, + 2223, 2226, 2227, 2230, 2231, 2236, 2238, 2241, 2243, 2245, + 2246, 2248, 2252, 2255, 2257, 2259, 2262, 2264, 2269, 2273, + 2275, 2279, 2284, 2285, 2294, 2300, 2302, 2304, 2309, 2314, + 2319, 2321, 2323, 2329, 2335, 2337, 2341, 2345, 2347, 2349, + 2351, 2355, 2363, 2371, 2377, 2381, 2382, 2384, 2386, 2388, + 2391, 2392, 2394, 2396, 2398, 2399, 2403, 2405, 2409, 2411, + 2412, 2416, 2418, 2422, 2424, 2428, 2432, 2434, 2436, 2440, + 2442, 2445, 2447, 2451, 2455, 2457, 2460, 2464, 2468, 2472, + 2476, 2478, 2482, 2485, 2487, 2489, 2491, 2493, 2495, 2497, + 2499, 2501, 2503, 2505, 2509, 2513, 2517, 2521, 2525, 2529, + 2533, 2537, 2544, 2551, 2558, 2565, 2572, 2579, 2586, 2593, + 2600, 2607, 2614, 2621, 2628, 2635, 2642, 2649, 2651, 2653, + 2659, 2666, 2670, 2675, 2681, 2688, 2692, 2697, 2701, 2706, + 2710, 2715, 2720, 2726, 2731, 2736, 2740, 2745, 2747, 2749, + 2751, 2753, 2755, 2757, 2759, 2763, 2767, 2779, 2791, 2793, + 2795, 2797, 2799, 2801, 2803, 2805, 2807, 2809, 2812, 2815, + 2819, 2823, 2827, 2831, 2835, 2839, 2843, 2847, 2849, 2851, + 2853, 2855, 2859, 2861, 2863, 2865, 2867, 2869, 2874, 2876, + 2880, 2882, 2885, 2887, 2889, 2891, 2893, 2895, 2897, 2899, + 2902, 2905, 2908, 2910, 2912, 2914, 2916, 2918, 2920, 2922, + 2924, 2926, 2928, 2931, 2933, 2936, 2938, 2940, 2942, 2944, + 2946, 2949, 2951, 2953, 2955, 2957, 2959, 2964, 2970, 2976, + 2982, 2988, 2994, 3000, 3006, 3012, 3018, 3024, 3031, 3033, + 3040, 3042, 3047, 3055, 3058, 3059, 3064, 3068, 3075, 3077, + 3079, 3086, 3093, 3095, 3097, 3102, 3109, 3114, 3120, 3124, + 3130, 3135, 3141, 3143, 3145, 3147, 3149, 3151, 3153, 3155, + 3157, 3159, 3161, 3163, 3165, 3166, 3168, 3170, 3172, 3174, + 3176, 3178, 3180, 3182, 3184, 3186, 3188, 3190, 3192, 3194, + 3196, 3198, 3200, 3202, 3204, 3206, 3208, 3210, 3212, 3214, + 3216, 3218, 3220, 3222, 3224, 3226, 3228, 3230, 3232, 3234, + 3236, 3238, 3240, 3242, 3244, 3246, 3248, 3250 +}; +static const short yyrhs[] = +{ + 285, 0, 285, 275, 0, 470, 0, 612, 0, 524, + 0, 315, 0, 305, 0, 601, 0, 492, 0, 286, + 0, 600, 0, 447, 0, 317, 0, 319, 0, 295, + 0, 525, 0, 518, 0, 547, 0, 516, 0, 605, + 0, 43, 659, 0, 73, 288, 129, 287, 182, 299, + 292, 0, 73, 290, 129, 148, 294, 182, 299, 292, + 0, 73, 288, 129, 287, 182, 297, 0, 73, 290, + 129, 148, 294, 182, 297, 0, 73, 301, 182, 303, + 293, 0, 584, 0, 180, 584, 0, 6, 0, 6, + 147, 0, 289, 0, 291, 0, 289, 276, 291, 0, + 59, 0, 163, 0, 84, 0, 47, 0, 188, 617, + 0, 153, 617, 0, 200, 73, 131, 0, 0, 200, + 210, 131, 0, 0, 704, 0, 158, 296, 288, 129, + 287, 66, 299, 0, 158, 296, 290, 129, 148, 294, + 66, 299, 0, 158, 288, 129, 287, 66, 299, 0, + 158, 290, 129, 148, 294, 66, 299, 0, 158, 288, + 129, 287, 66, 297, 0, 158, 290, 129, 148, 294, + 66, 297, 0, 158, 301, 66, 303, 0, 73, 131, + 64, 0, 298, 0, 297, 276, 298, 0, 297, 276, + 300, 0, 299, 276, 298, 0, 148, 704, 0, 184, + 708, 0, 195, 711, 0, 214, 705, 0, 300, 0, + 299, 276, 300, 0, 709, 0, 189, 709, 0, 74, + 709, 0, 302, 0, 301, 276, 302, 0, 705, 0, + 304, 0, 303, 276, 304, 0, 709, 0, 189, 709, + 0, 45, 306, 0, 63, 314, 0, 62, 68, 307, + 0, 689, 309, 157, 312, 55, 658, 117, 658, 0, + 499, 0, 19, 0, 37, 277, 662, 278, 505, 0, + 0, 310, 0, 277, 310, 278, 0, 311, 0, 310, + 276, 311, 0, 378, 308, 0, 378, 308, 20, 238, + 0, 313, 0, 277, 313, 278, 0, 378, 308, 0, + 378, 308, 212, 0, 378, 308, 20, 101, 0, 378, + 308, 20, 238, 0, 140, 662, 0, 698, 82, 504, + 135, 504, 55, 658, 117, 658, 0, 36, 316, 0, + 58, 697, 658, 0, 321, 552, 83, 701, 129, 584, + 322, 0, 148, 397, 0, 180, 365, 0, 184, 462, + 0, 195, 448, 0, 71, 338, 0, 40, 340, 0, + 51, 329, 0, 165, 323, 0, 214, 339, 0, 237, + 318, 0, 148, 398, 0, 180, 366, 0, 195, 449, + 0, 36, 132, 7, 320, 0, 148, 399, 0, 184, + 463, 0, 187, 0, 0, 619, 0, 618, 0, 372, + 277, 459, 647, 460, 278, 0, 662, 324, 325, 658, + 326, 327, 0, 111, 0, 14, 0, 0, 0, 32, + 0, 0, 102, 341, 665, 364, 0, 0, 328, 0, + 353, 0, 328, 353, 0, 375, 330, 494, 459, 331, + 460, 332, 374, 0, 10, 0, 0, 46, 459, 380, + 0, 0, 0, 333, 0, 334, 0, 333, 334, 0, + 335, 0, 336, 0, 337, 0, 124, 98, 0, 459, + 24, 277, 626, 278, 460, 0, 700, 0, 705, 0, + 342, 343, 346, 0, 0, 268, 0, 658, 0, 0, + 344, 0, 345, 0, 344, 345, 0, 139, 341, 662, + 0, 102, 341, 665, 364, 0, 189, 658, 0, 141, + 658, 0, 164, 118, 658, 0, 0, 347, 0, 348, + 0, 347, 348, 0, 353, 0, 350, 0, 349, 0, + 46, 23, 164, 691, 0, 263, 94, 658, 0, 75, + 341, 665, 0, 25, 341, 665, 0, 127, 341, 662, + 0, 109, 341, 663, 0, 352, 0, 351, 0, 103, + 277, 354, 278, 136, 355, 0, 103, 15, 355, 0, + 103, 0, 359, 658, 360, 0, 355, 0, 354, 276, + 355, 0, 356, 357, 0, 658, 0, 0, 357, 358, + 0, 168, 341, 665, 0, 94, 0, 0, 361, 0, + 362, 0, 361, 362, 0, 175, 363, 665, 0, 102, + 341, 665, 364, 0, 0, 12, 0, 12, 137, 0, + 0, 137, 0, 138, 0, 584, 367, 277, 368, 278, + 0, 584, 367, 277, 368, 278, 0, 62, 94, 658, + 0, 62, 658, 0, 0, 369, 0, 368, 276, 369, + 0, 370, 0, 385, 0, 375, 373, 379, 460, 381, + 374, 0, 375, 495, 371, 0, 375, 371, 0, 372, + 277, 459, 647, 460, 278, 0, 30, 20, 0, 30, + 0, 494, 459, 0, 624, 457, 0, 26, 692, 0, + 0, 624, 0, 624, 0, 378, 494, 0, 0, 46, + 380, 0, 0, 651, 0, 655, 0, 656, 0, 657, + 0, 688, 0, 648, 0, 0, 382, 0, 383, 0, + 382, 383, 0, 386, 384, 0, 124, 98, 0, 153, + 584, 617, 393, 391, 0, 392, 0, 187, 391, 0, + 146, 90, 391, 0, 386, 387, 0, 33, 694, 0, + 0, 388, 0, 389, 0, 390, 0, 392, 0, 187, + 618, 391, 0, 146, 90, 618, 391, 0, 65, 90, + 618, 153, 584, 617, 393, 391, 0, 247, 552, 83, + 701, 0, 0, 459, 24, 277, 626, 278, 460, 0, + 394, 0, 395, 0, 395, 394, 0, 394, 395, 0, + 0, 129, 188, 396, 0, 129, 47, 396, 0, 211, + 0, 164, 46, 0, 164, 98, 0, 123, 209, 0, + 704, 401, 402, 10, 457, 405, 414, 460, 0, 704, + 401, 402, 10, 457, 405, 414, 460, 0, 704, 401, + 402, 10, 457, 405, 414, 460, 0, 704, 401, 402, + 10, 457, 405, 414, 460, 0, 277, 403, 278, 0, + 0, 157, 401, 0, 0, 404, 0, 403, 276, 404, + 0, 376, 495, 0, 406, 0, 0, 407, 0, 406, + 407, 0, 45, 410, 408, 275, 0, 409, 0, 412, + 0, 375, 495, 411, 0, 192, 0, 0, 268, 380, + 0, 379, 0, 695, 39, 64, 277, 560, 278, 0, + 417, 0, 414, 0, 17, 415, 54, 0, 416, 0, + 416, 438, 0, 0, 413, 0, 416, 413, 0, 609, + 275, 0, 601, 275, 0, 418, 0, 419, 0, 420, + 0, 421, 0, 423, 0, 426, 0, 600, 275, 0, + 427, 0, 429, 0, 605, 275, 0, 434, 0, 424, + 0, 425, 0, 178, 275, 0, 61, 275, 0, 436, + 0, 442, 275, 0, 58, 697, 275, 0, 58, 697, + 647, 275, 0, 58, 275, 0, 59, 148, 704, 431, + 432, 275, 0, 59, 422, 647, 275, 0, 191, 0, + 254, 0, 435, 64, 547, 86, 433, 437, 50, 413, + 0, 435, 64, 59, 422, 647, 86, 433, 50, 413, + 0, 59, 422, 647, 86, 433, 275, 0, 78, 277, + 626, 278, 181, 413, 53, 413, 0, 78, 277, 626, + 278, 181, 413, 0, 144, 647, 428, 275, 0, 0, + 547, 86, 433, 275, 0, 279, 710, 0, 611, 0, + 277, 611, 278, 0, 0, 156, 433, 0, 156, 277, + 433, 278, 0, 0, 430, 0, 623, 0, 433, 276, + 623, 0, 433, 276, 430, 0, 435, 199, 277, 626, + 278, 50, 413, 0, 703, 279, 0, 0, 235, 275, + 0, 255, 275, 0, 255, 703, 275, 0, 10, 39, + 695, 0, 0, 439, 0, 438, 439, 0, 197, 440, + 50, 413, 0, 441, 0, 440, 276, 441, 0, 173, + 659, 0, 69, 699, 0, 58, 697, 0, 9, 0, + 443, 0, 445, 0, 444, 0, 264, 695, 0, 265, + 695, 0, 266, 446, 695, 86, 433, 0, 0, 59, + 148, 704, 431, 0, 711, 617, 10, 457, 450, 461, + 458, 0, 711, 617, 10, 457, 450, 461, 458, 0, + 451, 0, 452, 0, 451, 186, 452, 0, 451, 186, + 6, 452, 0, 163, 568, 569, 453, 590, 586, 589, + 0, 66, 454, 0, 455, 0, 454, 276, 455, 0, + 456, 0, 583, 0, 455, 585, 89, 455, 129, 626, + 0, 277, 456, 278, 0, 0, 0, 0, 0, 200, + 24, 131, 0, 0, 708, 64, 584, 464, 465, 468, + 459, 469, 460, 0, 708, 64, 584, 464, 465, 468, + 459, 469, 460, 0, 3, 0, 80, 0, 0, 466, + 467, 0, 16, 0, 5, 0, 84, 0, 188, 0, + 47, 0, 84, 132, 188, 0, 84, 132, 47, 0, + 188, 132, 84, 0, 188, 132, 47, 0, 47, 132, + 84, 0, 47, 132, 188, 0, 84, 132, 188, 132, + 47, 0, 84, 132, 47, 132, 188, 0, 188, 132, + 84, 132, 47, 0, 188, 132, 47, 132, 84, 0, + 47, 132, 84, 132, 188, 0, 47, 132, 188, 132, + 84, 0, 143, 660, 0, 0, 10, 459, 405, 414, + 0, 7, 471, 0, 58, 697, 658, 0, 180, 584, + 476, 0, 184, 489, 0, 148, 400, 0, 40, 485, + 486, 0, 51, 478, 474, 0, 83, 484, 0, 46, + 459, 380, 0, 24, 459, 277, 626, 278, 460, 0, + 475, 0, 474, 475, 0, 164, 459, 472, 460, 0, + 4, 33, 473, 0, 4, 337, 0, 52, 46, 0, + 52, 33, 0, 182, 624, 0, 216, 378, 495, 0, + 477, 0, 476, 276, 477, 0, 52, 624, 483, 0, + 52, 33, 694, 0, 4, 370, 0, 4, 385, 0, + 480, 624, 143, 662, 0, 480, 478, 182, 624, 0, + 480, 482, 216, 481, 460, 0, 479, 0, 713, 0, + 215, 0, 216, 0, 217, 0, 218, 0, 219, 0, + 220, 0, 221, 0, 222, 0, 223, 0, 224, 0, + 225, 0, 226, 0, 227, 0, 228, 0, 229, 0, + 230, 0, 233, 0, 234, 0, 241, 0, 242, 0, + 250, 0, 252, 0, 264, 0, 265, 0, 266, 0, + 267, 0, 7, 0, 7, 215, 0, 495, 459, 0, + 624, 457, 0, 624, 0, 213, 0, 211, 0, 0, + 701, 3, 0, 701, 80, 0, 0, 487, 0, 486, + 487, 0, 4, 328, 0, 52, 103, 0, 164, 488, + 0, 4, 350, 0, 4, 263, 94, 658, 0, 52, + 263, 94, 0, 17, 262, 0, 54, 262, 0, 349, + 0, 488, 276, 349, 0, 708, 464, 490, 468, 459, + 491, 460, 0, 465, 0, 0, 469, 0, 0, 52, + 493, 0, 58, 697, 0, 83, 701, 0, 148, 704, + 0, 180, 707, 0, 184, 708, 0, 195, 711, 0, + 63, 698, 0, 51, 696, 0, 62, 68, 689, 0, + 165, 662, 0, 214, 705, 0, 71, 700, 0, 495, + 0, 496, 0, 499, 0, 502, 0, 500, 280, 497, + 281, 0, 507, 280, 497, 281, 505, 0, 498, 0, + 497, 276, 498, 0, 664, 0, 664, 279, 664, 0, + 500, 0, 507, 505, 0, 506, 0, 511, 0, 514, + 0, 243, 0, 501, 0, 169, 0, 41, 0, 226, + 0, 227, 0, 85, 0, 96, 0, 19, 504, 503, + 505, 0, 19, 277, 663, 278, 0, 19, 277, 663, + 276, 659, 278, 0, 19, 277, 276, 659, 278, 0, + 162, 168, 663, 0, 0, 177, 659, 0, 177, 690, + 0, 0, 23, 164, 691, 0, 0, 510, 277, 662, + 278, 0, 510, 0, 510, 193, 277, 662, 278, 0, + 509, 277, 662, 278, 0, 509, 0, 508, 277, 662, + 278, 0, 191, 0, 23, 193, 0, 91, 193, 0, + 23, 0, 91, 0, 121, 0, 119, 23, 0, 119, + 91, 0, 99, 512, 0, 513, 512, 0, 0, 277, + 664, 278, 0, 277, 664, 276, 664, 278, 0, 44, + 0, 92, 0, 95, 515, 0, 97, 95, 515, 0, + 152, 0, 93, 145, 0, 277, 660, 278, 0, 0, + 529, 0, 517, 0, 546, 0, 164, 71, 700, 182, + 664, 0, 164, 71, 700, 182, 231, 0, 164, 71, + 700, 182, 272, 231, 0, 519, 0, 520, 0, 522, + 0, 252, 712, 0, 253, 252, 712, 521, 0, 130, + 0, 0, 161, 526, 182, 523, 712, 0, 252, 0, + 0, 28, 526, 527, 0, 161, 526, 0, 201, 0, + 0, 155, 528, 0, 0, 170, 0, 0, 164, 183, + 530, 0, 531, 0, 0, 532, 0, 531, 532, 0, + 533, 0, 534, 0, 535, 0, 539, 0, 151, 130, + 0, 151, 202, 0, 196, 0, 123, 196, 0, 88, + 107, 536, 0, 536, 0, 537, 0, 151, 185, 538, + 0, 151, 29, 538, 0, 170, 0, 170, 180, 0, + 170, 180, 174, 0, 194, 0, 123, 194, 0, 0, + 154, 542, 0, 166, 0, 149, 0, 0, 151, 0, + 202, 0, 543, 0, 542, 276, 543, 0, 545, 544, + 0, 64, 540, 541, 0, 0, 584, 0, 545, 276, + 584, 0, 164, 176, 83, 701, 0, 548, 549, 555, + 556, 558, 0, 559, 0, 548, 186, 559, 0, 548, + 186, 6, 559, 0, 133, 20, 550, 0, 0, 551, + 0, 550, 276, 551, 0, 647, 552, 554, 0, 11, + 0, 48, 0, 0, 239, 0, 249, 0, 248, 563, + 553, 564, 0, 0, 267, 647, 0, 267, 647, 182, + 647, 0, 0, 64, 188, 557, 0, 0, 128, 619, + 0, 0, 200, 251, 0, 0, 163, 565, 568, 569, + 573, 590, 586, 589, 591, 0, 163, 565, 568, 569, + 573, 590, 586, 589, 591, 549, 555, 0, 0, 0, + 0, 0, 566, 567, 562, 0, 566, 562, 0, 567, + 0, 0, 239, 665, 561, 0, 239, 277, 647, 278, + 561, 0, 239, 654, 561, 0, 240, 665, 0, 240, + 277, 562, 647, 278, 0, 240, 654, 0, 49, 0, + 687, 0, 570, 0, 273, 0, 571, 0, 570, 276, + 571, 0, 610, 0, 610, 572, 702, 0, 10, 0, + 0, 66, 574, 0, 575, 0, 574, 276, 575, 0, + 580, 0, 581, 0, 576, 0, 277, 547, 278, 572, + 577, 578, 0, 706, 0, 0, 277, 579, 278, 0, + 0, 702, 0, 579, 276, 702, 0, 575, 585, 89, + 575, 129, 626, 0, 277, 580, 278, 0, 704, 582, + 572, 706, 0, 704, 582, 0, 277, 611, 278, 0, + 0, 584, 0, 707, 706, 0, 707, 0, 81, 0, + 105, 0, 105, 134, 0, 159, 0, 159, 134, 0, + 67, 0, 67, 134, 0, 0, 74, 20, 587, 0, + 0, 588, 0, 587, 276, 588, 0, 647, 0, 77, + 626, 0, 0, 198, 626, 0, 0, 142, 592, 0, + 0, 593, 277, 594, 278, 0, 89, 0, 172, 114, + 0, 114, 0, 172, 0, 0, 595, 0, 595, 276, + 594, 0, 596, 597, 0, 592, 0, 707, 0, 707, + 596, 0, 120, 0, 83, 277, 598, 278, 0, 133, + 701, 599, 0, 701, 0, 701, 276, 598, 0, 83, + 277, 598, 278, 0, 0, 84, 86, 584, 620, 190, + 277, 611, 278, 0, 84, 86, 584, 620, 560, 0, + 602, 0, 603, 0, 47, 66, 583, 590, 0, 47, + 66, 583, 604, 0, 198, 38, 128, 695, 0, 606, + 0, 607, 0, 188, 583, 164, 608, 590, 0, 188, + 583, 164, 608, 604, 0, 609, 0, 608, 276, 609, + 0, 625, 268, 610, 0, 647, 0, 688, 0, 610, + 0, 611, 276, 610, 0, 151, 19, 624, 66, 584, + 613, 615, 0, 84, 19, 624, 86, 584, 613, 615, + 0, 63, 66, 614, 182, 614, 0, 63, 182, 614, + 0, 0, 504, 0, 654, 0, 659, 0, 113, 616, + 0, 0, 663, 0, 654, 0, 618, 0, 0, 277, + 619, 278, 0, 624, 0, 619, 276, 624, 0, 621, + 0, 0, 277, 622, 278, 0, 625, 0, 622, 276, + 625, 0, 624, 0, 706, 282, 693, 0, 706, 282, + 273, 0, 693, 0, 624, 0, 706, 282, 693, 0, + 641, 0, 124, 641, 0, 628, 0, 626, 132, 626, + 0, 626, 8, 626, 0, 628, 0, 124, 641, 0, + 627, 132, 626, 0, 627, 8, 626, 0, 642, 132, + 626, 0, 642, 8, 626, 0, 629, 0, 277, 627, + 278, 0, 124, 628, 0, 630, 0, 633, 0, 634, + 0, 635, 0, 640, 0, 631, 0, 638, 0, 636, + 0, 637, 0, 639, 0, 647, 268, 647, 0, 647, + 269, 647, 0, 647, 270, 647, 0, 647, 70, 647, + 0, 647, 106, 647, 0, 647, 125, 647, 0, 647, + 126, 647, 0, 647, 122, 647, 0, 647, 268, 6, + 277, 645, 278, 0, 647, 269, 6, 277, 645, 278, + 0, 647, 270, 6, 277, 645, 278, 0, 647, 70, + 6, 277, 645, 278, 0, 647, 106, 6, 277, 645, + 278, 0, 647, 125, 6, 277, 645, 278, 0, 647, + 126, 6, 277, 645, 278, 0, 647, 122, 6, 277, + 645, 278, 0, 647, 268, 632, 277, 645, 278, 0, + 647, 269, 632, 277, 645, 278, 0, 647, 270, 632, + 277, 645, 278, 0, 647, 70, 632, 277, 645, 278, + 0, 647, 106, 632, 277, 645, 278, 0, 647, 125, + 632, 277, 645, 278, 0, 647, 126, 632, 277, 645, + 278, 0, 647, 122, 632, 277, 645, 278, 0, 171, + 0, 9, 0, 647, 18, 647, 8, 647, 0, 647, + 124, 18, 647, 8, 647, 0, 647, 108, 647, 0, + 647, 124, 108, 647, 0, 647, 108, 647, 57, 647, + 0, 647, 124, 108, 647, 57, 647, 0, 647, 79, + 643, 0, 647, 124, 79, 643, 0, 647, 34, 647, + 0, 647, 124, 34, 647, 0, 647, 175, 647, 0, + 647, 124, 175, 647, 0, 647, 175, 200, 647, 0, + 647, 124, 175, 200, 647, 0, 60, 277, 560, 278, + 0, 167, 277, 560, 278, 0, 647, 87, 98, 0, + 647, 87, 124, 98, 0, 256, 0, 257, 0, 258, + 0, 259, 0, 260, 0, 261, 0, 644, 0, 277, + 650, 278, 0, 277, 645, 278, 0, 163, 565, 568, + 647, 573, 590, 586, 589, 591, 549, 555, 0, 163, + 565, 568, 647, 573, 590, 586, 589, 591, 549, 555, + 0, 623, 0, 649, 0, 666, 0, 653, 0, 654, + 0, 430, 0, 675, 0, 676, 0, 674, 0, 272, + 647, 0, 271, 647, 0, 647, 271, 647, 0, 647, + 31, 647, 0, 647, 26, 692, 0, 647, 272, 647, + 0, 647, 273, 647, 0, 647, 274, 647, 0, 277, + 647, 278, 0, 277, 646, 278, 0, 655, 0, 656, + 0, 657, 0, 42, 0, 706, 282, 42, 0, 101, + 0, 648, 0, 228, 0, 229, 0, 230, 0, 623, + 280, 650, 281, 0, 647, 0, 650, 276, 647, 0, + 653, 0, 272, 652, 0, 205, 0, 204, 0, 203, + 0, 231, 0, 232, 0, 652, 0, 658, 0, 41, + 207, 0, 226, 207, 0, 227, 207, 0, 283, 0, + 189, 0, 233, 0, 234, 0, 241, 0, 242, 0, + 69, 0, 173, 0, 250, 0, 207, 0, 208, 207, + 0, 660, 0, 272, 661, 0, 204, 0, 204, 0, + 660, 0, 204, 0, 665, 0, 272, 665, 0, 204, + 0, 667, 0, 668, 0, 669, 0, 671, 0, 35, + 277, 273, 278, 0, 35, 277, 687, 647, 278, 0, + 35, 277, 49, 647, 278, 0, 179, 277, 687, 647, + 278, 0, 179, 277, 49, 647, 278, 0, 13, 277, + 687, 647, 278, 0, 13, 277, 49, 647, 278, 0, + 116, 277, 687, 647, 278, 0, 116, 277, 49, 647, + 278, 0, 112, 277, 687, 647, 278, 0, 112, 277, + 49, 647, 278, 0, 72, 277, 700, 276, 647, 278, + 0, 670, 0, 217, 277, 686, 66, 647, 278, 0, + 672, 0, 100, 277, 647, 278, 0, 236, 277, 647, + 66, 647, 673, 278, 0, 64, 647, 0, 0, 689, + 277, 650, 278, 0, 689, 277, 278, 0, 22, 277, + 610, 10, 377, 278, 0, 677, 0, 678, 0, 245, + 277, 647, 276, 647, 278, 0, 246, 277, 610, 276, + 611, 278, 0, 679, 0, 681, 0, 244, 684, 680, + 54, 0, 244, 684, 680, 53, 685, 54, 0, 197, + 683, 181, 685, 0, 680, 197, 683, 181, 685, 0, + 244, 682, 54, 0, 244, 682, 53, 685, 54, 0, + 197, 626, 181, 685, 0, 682, 197, 626, 181, 685, + 0, 647, 0, 647, 0, 610, 0, 218, 0, 219, + 0, 220, 0, 221, 0, 222, 0, 223, 0, 224, + 0, 225, 0, 6, 0, 0, 98, 0, 206, 0, + 713, 0, 713, 0, 713, 0, 713, 0, 713, 0, + 713, 0, 713, 0, 713, 0, 713, 0, 713, 0, + 713, 0, 713, 0, 713, 0, 713, 0, 713, 0, + 713, 0, 713, 0, 713, 0, 713, 0, 713, 0, + 713, 0, 713, 0, 713, 0, 206, 0, 714, 0, + 235, 0, 238, 0, 236, 0, 246, 0, 249, 0, + 255, 0, 251, 0, 245, 0, 248, 0, 254, 0, + 247, 0, 256, 0, 257, 0, 258, 0, 262, 0, + 263, 0 +}; + +#endif + +#if YYDEBUG +/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ +static const short yyrline[] = +{ + 0, 533, 535, 539, 540, 541, 542, 543, 544, 545, + 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, + 556, 557, 565, 569, 573, 577, 581, 586, 587, 591, + 593, 595, 599, 600, 604, 608, 610, 612, 614, 616, + 620, 622, 626, 628, 632, 639, 644, 649, 654, 659, + 664, 669, 675, 679, 680, 682, 684, 688, 690, 692, + 694, 698, 699, 706, 708, 710, 714, 715, 719, 723, + 724, 728, 730, 737, 741, 743, 748, 754, 755, 757, + 763, 765, 766, 770, 771, 777, 780, 786, 787, 790, + 793, 797, 801, 804, 809, 818, 822, 825, 828, 830, + 832, 834, 836, 838, 840, 842, 844, 849, 853, 855, + 857, 867, 871, 873, 884, 886, 890, 892, 893, 899, + 905, 907, 909, 913, 915, 919, 921, 925, 927, 930, + 931, 938, 956, 958, 962, 964, 968, 970, 973, 974, + 977, 982, 983, 986, 990, 999, 1007, 1016, 1021, 1022, + 1025, 1031, 1033, 1036, 1037, 1041, 1043, 1045, 1047, 1049, + 1053, 1055, 1058, 1059, 1063, 1065, 1066, 1067, 1069, 1073, + 1075, 1077, 1079, 1083, 1088, 1095, 1101, 1108, 1115, 1148, + 1149, 1152, 1158, 1162, 1163, 1166, 1174, 1178, 1179, 1182, + 1183, 1186, 1188, 1192, 1193, 1194, 1197, 1198, 1199, 1205, + 1210, 1215, 1217, 1219, 1223, 1224, 1228, 1229, 1236, 1240, + 1244, 1253, 1259, 1260, 1263, 1265, 1270, 1272, 1277, 1283, + 1289, 1293, 1299, 1301, 1305, 1310, 1311, 1312, 1314, 1316, + 1320, 1322, 1325, 1326, 1330, 1335, 1337, 1342, 1343, 1345, + 1353, 1357, 1359, 1362, 1363, 1364, 1365, 1368, 1372, 1376, + 1383, 1390, 1395, 1401, 1404, 1406, 1408, 1410, 1414, 1417, + 1421, 1424, 1427, 1430, 1439, 1450, 1460, 1470, 1480, 1482, + 1486, 1488, 1492, 1493, 1497, 1502, 1504, 1508, 1509, 1513, + 1517, 1518, 1521, 1526, 1528, 1532, 1534, 1538, 1543, 1544, + 1547, 1551, 1553, 1555, 1559, 1560, 1564, 1565, 1566, 1567, + 1568, 1569, 1570, 1571, 1572, 1573, 1574, 1575, 1576, 1577, + 1578, 1579, 1581, 1583, 1584, 1587, 1589, 1593, 1597, 1602, + 1606, 1606, 1608, 1613, 1617, 1621, 1623, 1627, 1631, 1637, + 1642, 1647, 1649, 1651, 1655, 1657, 1659, 1663, 1664, 1665, + 1667, 1671, 1675, 1677, 1681, 1683, 1685, 1690, 1692, 1696, + 1697, 1701, 1706, 1707, 1711, 1713, 1715, 1717, 1721, 1722, + 1723, 1726, 1730, 1734, 1738, 1780, 1788, 1795, 1815, 1819, + 1821, 1823, 1827, 1838, 1842, 1843, 1847, 1848, 1856, 1859, + 1865, 1869, 1875, 1879, 1885, 1889, 1897, 1908, 1919, 1921, + 1923, 1927, 1931, 1933, 1937, 1939, 1941, 1943, 1945, 1947, + 1949, 1951, 1953, 1955, 1957, 1959, 1961, 1963, 1965, 1969, + 1971, 1975, 1981, 1985, 1988, 1995, 1997, 1999, 2002, 2005, + 2010, 2014, 2020, 2021, 2025, 2034, 2038, 2040, 2042, 2044, + 2046, 2050, 2051, 2055, 2057, 2059, 2061, 2067, 2070, 2072, + 2076, 2084, 2085, 2086, 2087, 2088, 2089, 2090, 2091, 2092, + 2093, 2094, 2095, 2096, 2097, 2098, 2099, 2100, 2101, 2102, + 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2113, 2115, + 2119, 2121, 2126, 2132, 2134, 2136, 2140, 2142, 2149, 2155, + 2156, 2160, 2168, 2170, 2172, 2174, 2176, 2178, 2180, 2184, + 2185, 2192, 2202, 2203, 2207, 2208, 2214, 2218, 2220, 2222, + 2224, 2226, 2228, 2230, 2232, 2234, 2236, 2238, 2240, 2247, + 2248, 2251, 2252, 2255, 2260, 2267, 2268, 2272, 2281, 2287, + 2288, 2291, 2292, 2293, 2294, 2311, 2316, 2321, 2340, 2357, + 2364, 2365, 2372, 2376, 2382, 2388, 2396, 2400, 2406, 2410, + 2414, 2420, 2424, 2431, 2437, 2443, 2451, 2456, 2461, 2468, + 2469, 2470, 2473, 2474, 2477, 2478, 2479, 2486, 2490, 2501, + 2507, 2561, 2623, 2624, 2631, 2644, 2649, 2654, 2661, 2663, + 2670, 2671, 2672, 2676, 2681, 2686, 2697, 2698, 2699, 2702, + 2706, 2710, 2712, 2716, 2720, 2721, 2724, 2728, 2732, 2733, + 2736, 2738, 2742, 2743, 2747, 2751, 2752, 2756, 2757, 2761, + 2762, 2763, 2764, 2767, 2769, 2773, 2775, 2779, 2781, 2784, + 2786, 2788, 2792, 2794, 2796, 2800, 2802, 2804, 2808, 2812, + 2814, 2816, 2820, 2822, 2826, 2827, 2831, 2835, 2837, 2841, + 2842, 2847, 2855, 2859, 2861, 2863, 2867, 2869, 2873, 2874, + 2878, 2882, 2884, 2886, 2890, 2892, 2896, 2898, 2902, 2905, + 2913, 2917, 2919, 2923, 2925, 2929, 2931, 2938, 2950, 2964, + 2968, 2972, 2976, 2980, 2982, 2984, 2986, 2990, 2992, 2994, + 2998, 3000, 3002, 3006, 3008, 3012, 3014, 3018, 3019, 3023, + 3024, 3028, 3029, 3034, 3038, 3039, 3043, 3044, 3045, 3049, + 3054, 3055, 3059, 3061, 3065, 3066, 3070, 3072, 3076, 3079, + 3084, 3086, 3090, 3091, 3096, 3101, 3103, 3105, 3107, 3109, + 3111, 3113, 3115, 3122, 3124, 3128, 3129, 3135, 3138, 3140, + 3144, 3146, 3153, 3155, 3159, 3163, 3165, 3167, 3173, 3175, + 3179, 3180, 3184, 3186, 3189, 3190, 3194, 3196, 3198, 3202, + 3203, 3207, 3209, 3216, 3219, 3226, 3227, 3230, 3234, 3238, + 3245, 3246, 3249, 3254, 3259, 3260, 3264, 3268, 3269, 3272, + 3273, 3280, 3282, 3286, 3288, 3290, 3293, 3294, 3297, 3301, + 3303, 3306, 3308, 3314, 3315, 3319, 3323, 3324, 3329, 3330, + 3334, 3338, 3339, 3344, 3345, 3348, 3353, 3358, 3361, 3368, + 3369, 3371, 3372, 3374, 3378, 3379, 3381, 3383, 3387, 3389, + 3393, 3394, 3396, 3400, 3401, 3402, 3403, 3404, 3405, 3406, + 3407, 3408, 3409, 3414, 3416, 3418, 3420, 3422, 3424, 3426, + 3428, 3435, 3437, 3439, 3441, 3443, 3445, 3447, 3449, 3451, + 3453, 3455, 3457, 3459, 3461, 3463, 3465, 3469, 3470, 3476, + 3478, 3483, 3485, 3487, 3489, 3494, 3496, 3500, 3502, 3506, + 3508, 3510, 3512, 3516, 3520, 3524, 3526, 3530, 3535, 3540, + 3547, 3552, 3557, 3566, 3567, 3571, 3575, 3589, 3607, 3608, + 3609, 3610, 3611, 3612, 3613, 3614, 3615, 3616, 3618, 3620, + 3627, 3629, 3631, 3638, 3645, 3652, 3654, 3656, 3657, 3658, + 3659, 3661, 3663, 3667, 3671, 3687, 3703, 3707, 3711, 3712, + 3716, 3717, 3721, 3723, 3725, 3727, 3729, 3733, 3734, 3736, + 3752, 3768, 3772, 3776, 3778, 3782, 3786, 3789, 3792, 3795, + 3798, 3803, 3805, 3810, 3811, 3815, 3822, 3829, 3836, 3843, + 3844, 3848, 3854, 3855, 3856, 3857, 3860, 3862, 3864, 3867, + 3874, 3883, 3890, 3899, 3901, 3903, 3905, 3911, 3920, 3923, + 3927, 3928, 3932, 3941, 3943, 3947, 3949, 3953, 3959, 3960, + 3963, 3967, 3971, 3972, 3975, 3977, 3981, 3983, 3987, 3989, + 3993, 3995, 3999, 4002, 4005, 4008, 4010, 4012, 4014, 4016, + 4018, 4020, 4022, 4026, 4027, 4030, 4038, 4041, 4044, 4047, + 4050, 4053, 4056, 4059, 4062, 4065, 4068, 4071, 4074, 4077, + 4080, 4083, 4086, 4089, 4092, 4095, 4098, 4101, 4104, 4107, + 4112, 4113, 4118, 4120, 4121, 4122, 4123, 4124, 4125, 4126, + 4127, 4128, 4129, 4130, 4131, 4132, 4134, 4135 +}; +#endif + + +#if (YYDEBUG) || defined YYERROR_VERBOSE + +/* YYTNAME[TOKEN_NUM] -- String name of the token TOKEN_NUM. */ +static const char *const yytname[] = +{ + "$", "error", "$undefined.", "ACTIVE", "ADD", "AFTER", "ALL", "ALTER", + "AND", "ANY", "AS", "ASC", "AT", "AVG", "AUTO", "BASENAME", "BEFORE", + "BEGIN", "BETWEEN", "BLOB", "BY", "CACHE", "CAST", "CHARACTER", "CHECK", + "CHECK_POINT_LEN", "COLLATE", "COMMA", "COMMIT", "COMMITTED", + "COMPUTED", "CONCATENATE", "CONDITIONAL", "CONSTRAINT", "CONTAINING", + "COUNT", "CREATE", "CSTRING", "CURRENT", "CURSOR", "DATABASE", "DATE", + "DB_KEY", "KW_DEBUG", "DECIMAL", "DECLARE", "DEFAULT", "KW_DELETE", + "DESC", "DISTINCT", "DO", "DOMAIN", "DROP", "ELSE", "END", + "ENTRY_POINT", "EQL", "ESCAPE", "EXCEPTION", "EXECUTE", "EXISTS", + "EXIT", "EXTERNAL", "FILTER", "FOR", "FOREIGN", "FROM", "FULL", + "FUNCTION", "GDSCODE", "GEQ", "GENERATOR", "GEN_ID", "GRANT", "GROUP", + "GROUP_COMMIT_WAIT", "GTR", "HAVING", "IF", "KW_IN", "INACTIVE", + "INNER", "INPUT_TYPE", "INDEX", "INSERT", "INTEGER", "INTO", "IS", + "ISOLATION", "JOIN", "KEY", "KW_CHAR", "KW_DEC", "KW_DOUBLE", "KW_FILE", + "KW_FLOAT", "KW_INT", "KW_LONG", "KW_NULL", "KW_NUMERIC", "KW_UPPER", + "KW_VALUE", "LENGTH", "LOGFILE", "LPAREN", "LEFT", "LEQ", "LEVEL", + "LIKE", "LOG_BUF_SIZE", "LSS", "MANUAL", "MAXIMUM", "MAX_SEGMENT", + "MERGE", "MESSAGE", "MINIMUM", "MODULE_NAME", "NAMES", "NATIONAL", + "NATURAL", "NCHAR", "NEQ", "NO", "NOT", "NOT_GTR", "NOT_LSS", + "NUM_LOG_BUFS", "OF", "ON", "ONLY", "OPTION", "OR", "ORDER", "OUTER", + "OUTPUT_TYPE", "OVERFLOW", "PAGE", "PAGES", "PAGE_SIZE", "PARAMETER", + "PASSWORD", "PLAN", "POSITION", "POST_EVENT", "PRECISION", "PRIMARY", + "PRIVILEGES", "PROCEDURE", "PROTECTED", "RAW_PARTITIONS", "READ", + "REAL", "REFERENCES", "RESERVING", "RETAIN", "RETURNING_VALUES", + "RETURNS", "REVOKE", "RIGHT", "RPAREN", "ROLLBACK", "SEGMENT", "SELECT", + "SET", "SHADOW", "KW_SHARED", "SINGULAR", "KW_SIZE", "SMALLINT", + "SNAPSHOT", "SOME", "SORT", "SQLCODE", "STABILITY", "STARTING", + "STATISTICS", "SUB_TYPE", "SUSPEND", "SUM", "TABLE", "THEN", "TO", + "TRANSACTION", "TRIGGER", "UNCOMMITTED", "UNION", "UNIQUE", "UPDATE", + "USER", "VALUES", "VARCHAR", "VARIABLE", "VARYING", "VERSION", "VIEW", + "WAIT", "WHEN", "WHERE", "WHILE", "WITH", "WORK", "WRITE", + "FLOAT_NUMBER", "NUMBER", "NUMERIC", "SYMBOL", "STRING", "INTRODUCER", + "ACTION", "ADMIN", "CASCADE", "FREE_IT", "RESTRICT", "ROLE", "COLUMN", + "TYPE", "EXTRACT", "YEAR", "MONTH", "DAY", "HOUR", "MINUTE", "SECOND", + "WEEKDAY", "YEARDAY", "TIME", "TIMESTAMP", "CURRENT_DATE", + "CURRENT_TIME", "CURRENT_TIMESTAMP", "NUMBER64BIT", "SCALEDINT", + "CURRENT_USER", "CURRENT_ROLE", "KW_BREAK", "SUBSTRING", "RECREATE", + "KW_DESCRIPTOR", "FIRST", "SKIP", "CURRENT_CONNECTION", + "CURRENT_TRANSACTION", "BIGINT", "CASE", "NULLIF", "COALESCE", "USING", + "NULLS", "LAST", "ROW_COUNT", "LOCK", "SAVEPOINT", "RELEASE", + "STATEMENT", "LEAVE", "INSERTING", "UPDATING", "DELETING", + "KW_INSERTING", "KW_UPDATING", "KW_DELETING", "BACKUP", "KW_DIFFERENCE", + "OPEN", "CLOSE", "FETCH", "ROWS", "'='", "'<'", "'>'", "'+'", "'-'", + "'*'", "'/'", "';'", "','", "'('", "')'", "':'", "'['", "']'", "'.'", + "'?'", "top", "statement", "grant", "prot_table_name", "privileges", + "privilege_list", "proc_privileges", "privilege", "grant_option", + "role_admin_option", "simple_proc_name", "revoke", "rev_grant_option", + "grantee_list", "grantee", "user_grantee_list", "user_grantee", + "role_name_list", "role_name", "role_grantee_list", "role_grantee", + "declare", "declare_clause", "udf_decl_clause", "udf_data_type", + "arg_desc_list1", "arg_desc_list", "arg_desc", "return_value1", + "return_value", "filter_decl_clause", "create", "create_clause", + "recreate", "recreate_clause", "replace", "replace_clause", + "unique_opt", "index_definition", "shadow_clause", "manual_auto", + "conditional", "first_file_length", "sec_shadow_files", "db_file_list", + "domain_clause", "as_opt", "domain_default_opt", + "domain_constraint_clause", "domain_constraint_list", + "domain_constraint_def", "domain_constraint", "null_constraint", + "domain_check_constraint", "generator_clause", "role_clause", + "db_clause", "equals", "db_name", "db_initial_desc1", "db_initial_desc", + "db_initial_option", "db_rem_desc1", "db_rem_desc", "db_rem_option", + "db_log_option", "db_log", "db_rem_log_spec", "db_default_log_spec", + "db_file", "logfiles", "logfile_desc", "logfile_name", "logfile_attrs", + "logfile_attr", "file1", "file_desc1", "file_desc", "file_clause", + "file_clause_noise", "page_noise", "table_clause", "rtable_clause", + "external_file", "table_elements", "table_element", "column_def", + "def_computed", "computed_by", "data_type_or_domain", "collate_clause", + "column_def_name", "simple_column_def_name", "data_type_descriptor", + "init_data_type", "default_opt", "default_value", + "column_constraint_clause", "column_constraint_list", + "column_constraint_def", "column_constraint", + "table_constraint_definition", "constraint_name_opt", + "table_constraint", "unique_constraint", "primary_constraint", + "referential_constraint", "constraint_index_opt", "check_constraint", + "referential_trigger_action", "update_rule", "delete_rule", + "referential_action", "procedure_clause", "rprocedure_clause", + "replace_procedure_clause", "alter_procedure_clause", + "input_parameters", "output_parameters", "proc_parameters", + "proc_parameter", "local_declaration_list", "local_declarations", + "local_declaration", "local_declaration_item", "var_declaration_item", + "var_decl_opt", "var_init_opt", "cursor_declaration_item", "proc_block", + "full_proc_block", "full_proc_block_body", "proc_statements", + "proc_statement", "excp_statement", "raise_statement", "exec_procedure", + "exec_sql", "varstate", "for_select", "for_exec_into", "exec_into", + "if_then_else", "post_event", "event_argument_opt", "singleton_select", + "variable", "proc_inputs", "proc_outputs", "variable_list", "while", + "label_opt", "breakleave", "cursor_def", "excp_hndl_statements", + "excp_hndl_statement", "errors", "err", "cursor_statement", + "open_cursor", "close_cursor", "fetch_cursor", "fetch_opt", + "invoke_procedure", "view_clause", "rview_clause", "union_view", + "union_view_expr", "select_view_expr", "from_view_clause", + "from_view_list", "view_table", "joined_view_table", "begin_string", + "end_string", "begin_trigger", "end_trigger", "check_opt", + "def_trigger_clause", "replace_trigger_clause", "trigger_active", + "trigger_type", "trigger_type_prefix", "trigger_type_suffix", + "trigger_position", "trigger_action", "alter", "alter_clause", + "domain_default_opt2", "domain_check_constraint2", "alter_domain_ops", + "alter_domain_op", "alter_ops", "alter_op", "alter_column_name", + "keyword_or_column", "col_opt", "alter_data_type_or_domain", + "alter_col_name", "drop_behaviour", "alter_index_clause", + "init_alter_db", "alter_db", "db_alter_clause", "db_log_option_list", + "alter_trigger_clause", "new_trigger_type", "new_trigger_action", + "drop", "drop_clause", "data_type", "non_array_type", "array_type", + "array_spec", "array_range", "simple_type", "non_charset_simple_type", + "integer_keyword", "blob_type", "blob_segsize", "blob_subtype", + "charset_clause", "national_character_type", "character_type", + "varying_keyword", "character_keyword", "national_character_keyword", + "numeric_type", "prec_scale", "decimal_keyword", "float_type", + "precision_opt", "set", "set_generator", "savepoint", "set_savepoint", + "release_savepoint", "release_only_opt", "undo_savepoint", + "optional_savepoint", "commit", "rollback", "optional_work", + "optional_retain", "opt_snapshot", "set_transaction", "tran_opt_list_m", + "tran_opt_list", "tran_opt", "access_mode", "lock_wait", + "isolation_mode", "iso_mode", "snap_shot", "version_mode", + "tbl_reserve_options", "lock_type", "lock_mode", "restr_list", + "restr_option", "table_lock", "table_list", "set_statistics", "select", + "union_expr", "order_clause", "order_list", "order_item", + "order_direction", "nulls_placement", "nulls_clause", "rows_clause", + "for_update_clause", "for_update_list", "lock_clause", "select_expr", + "ordered_select_expr", "begin_limit", "end_limit", "begin_first", + "end_first", "limit_clause", "first_clause", "skip_clause", + "distinct_clause", "select_list", "select_items", "select_item", + "as_noise", "from_clause", "from_list", "table_reference", + "derived_table", "correlation_name", "derived_column_list", + "alias_list", "joined_table", "table_proc", "table_proc_inputs", + "table_name", "simple_table_name", "join_type", "group_clause", + "group_by_list", "group_by_item", "having_clause", "where_clause", + "plan_clause", "plan_expression", "plan_type", "plan_item_list", + "plan_item", "table_or_alias_list", "access_type", "index_list", + "extra_indices_opt", "insert", "delete", "delete_searched", + "delete_positioned", "cursor_clause", "update", "update_searched", + "update_positioned", "assignments", "assignment", "rhs", "rhs_list", + "blob", "filter_clause", "blob_subtype_value", "segment_clause", + "segment_length", "column_parens_opt", "column_parens", "column_list", + "ins_column_parens_opt", "ins_column_parens", "ins_column_list", + "column_name", "simple_column_name", "update_column_name", + "search_condition", "bracable_search_condition", + "simple_search_condition", "predicate", "comparison_predicate", + "quantified_predicate", "some", "between_predicate", "like_predicate", + "in_predicate", "containing_predicate", "starting_predicate", + "exists_predicate", "unique_predicate", "null_predicate", + "trigger_action_predicate", "special_trigger_action_predicate", + "in_predicate_value", "table_subquery", "column_select", + "column_singleton", "value", "datetime_value_expression", + "array_element", "value_list", "constant", "u_numeric_constant", + "u_constant", "parameter", "current_user", "current_role", + "internal_info", "sql_string", "signed_short_integer", + "nonneg_short_integer", "neg_short_integer", "pos_short_integer", + "unsigned_short_integer", "signed_long_integer", "long_integer", + "function", "aggregate_function", "generate_value_function", + "numeric_value_function", "extract_expression", "string_value_function", + "substring_function", "string_length_opt", "udf", "cast_specification", + "case_expression", "case_abbreviation", "case_specification", + "simple_case", "simple_when_clause", "searched_case", + "searched_when_clause", "when_operand", "case_operand", "case_result", + "timestamp_part", "all_noise", "null_value", "symbol_UDF_name", + "symbol_blob_subtype_name", "symbol_character_set_name", + "symbol_collation_name", "symbol_column_name", "symbol_constraint_name", + "symbol_cursor_name", "symbol_domain_name", "symbol_exception_name", + "symbol_filter_name", "symbol_gdscode_name", "symbol_generator_name", + "symbol_index_name", "symbol_item_alias_name", "symbol_label_name", + "symbol_procedure_name", "symbol_role_name", "symbol_table_alias_name", + "symbol_table_name", "symbol_trigger_name", "symbol_user_name", + "symbol_variable_name", "symbol_view_name", "symbol_savepoint_name", + "valid_symbol_name", "non_reserved_word", 0 +}; +#endif + +/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ +static const short yyr1[] = +{ + 0, 284, 284, 285, 285, 285, 285, 285, 285, 285, + 285, 285, 285, 285, 285, 285, 285, 285, 285, 285, + 285, 285, 286, 286, 286, 286, 286, 287, 287, 288, + 288, 288, 289, 289, 290, 291, 291, 291, 291, 291, + 292, 292, 293, 293, 294, 295, 295, 295, 295, 295, + 295, 295, 296, 297, 297, 297, 297, 298, 298, 298, + 298, 299, 299, 300, 300, 300, 301, 301, 302, 303, + 303, 304, 304, 305, 306, 306, 307, 308, 308, 308, + 309, 309, 309, 310, 310, 311, 311, 312, 312, 313, + 313, 313, 313, 313, 314, 315, 316, 316, 316, 316, + 316, 316, 316, 316, 316, 316, 316, 317, 318, 318, + 318, 319, 320, 320, 321, 321, 322, 322, 322, 323, + 324, 324, 324, 325, 325, 326, 326, 327, 327, 328, + 328, 329, 330, 330, 331, 331, 332, 332, 333, 333, + 334, 335, 335, 336, 337, 338, 339, 340, 341, 341, + 342, 343, 343, 344, 344, 345, 345, 345, 345, 345, + 346, 346, 347, 347, 348, 348, 348, 348, 348, 349, + 349, 349, 349, 350, 350, 351, 351, 352, 353, 354, + 354, 355, 356, 357, 357, 358, 359, 360, 360, 361, + 361, 362, 362, 363, 363, 363, 364, 364, 364, 365, + 366, 367, 367, 367, 368, 368, 369, 369, 370, 370, + 370, 371, 372, 372, 373, 373, 374, 374, 375, 376, + 377, 378, 379, 379, 380, 380, 380, 380, 380, 380, + 381, 381, 382, 382, 383, 384, 384, 384, 384, 384, + 385, 386, 386, 387, 387, 387, 387, 388, 389, 390, + 391, 391, 392, 393, 393, 393, 393, 393, 394, 395, + 396, 396, 396, 396, 397, 398, 399, 400, 401, 401, + 402, 402, 403, 403, 404, 405, 405, 406, 406, 407, + 408, 408, 409, 410, 410, 411, 411, 412, 413, 413, + 414, 415, 415, 415, 416, 416, 417, 417, 417, 417, + 417, 417, 417, 417, 417, 417, 417, 417, 417, 417, + 417, 417, 417, 417, 417, 418, 418, 419, 420, 421, + 422, 422, 423, 424, 425, 426, 426, 427, 428, 429, + 430, 431, 431, 431, 432, 432, 432, 433, 433, 433, + 433, 434, 435, 435, 436, 436, 436, 437, 437, 438, + 438, 439, 440, 440, 441, 441, 441, 441, 442, 442, + 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, + 451, 451, 452, 453, 454, 454, 455, 455, 456, 456, + 457, 458, 459, 460, 461, 461, 462, 463, 464, 464, + 464, 465, 466, 466, 467, 467, 467, 467, 467, 467, + 467, 467, 467, 467, 467, 467, 467, 467, 467, 468, + 468, 469, 470, 471, 471, 471, 471, 471, 471, 471, + 472, 473, 474, 474, 475, 475, 475, 475, 475, 475, + 475, 476, 476, 477, 477, 477, 477, 477, 477, 477, + 478, 479, 479, 479, 479, 479, 479, 479, 479, 479, + 479, 479, 479, 479, 479, 479, 479, 479, 479, 479, + 479, 479, 479, 479, 479, 479, 479, 479, 480, 480, + 481, 481, 482, 483, 483, 483, 484, 484, 485, 486, + 486, 487, 487, 487, 487, 487, 487, 487, 487, 488, + 488, 489, 490, 490, 491, 491, 492, 493, 493, 493, + 493, 493, 493, 493, 493, 493, 493, 493, 493, 494, + 494, 495, 495, 496, 496, 497, 497, 498, 498, 499, + 499, 500, 500, 500, 500, 500, 500, 500, 500, 500, + 501, 501, 502, 502, 502, 502, 503, 503, 504, 504, + 504, 505, 505, 506, 506, 506, 507, 507, 507, 508, + 508, 508, 509, 509, 510, 510, 510, 511, 511, 512, + 512, 512, 513, 513, 514, 514, 514, 514, 515, 515, + 516, 516, 516, 517, 517, 517, 518, 518, 518, 519, + 520, 521, 521, 522, 523, 523, 524, 525, 526, 526, + 527, 527, 528, 528, 529, 530, 530, 531, 531, 532, + 532, 532, 532, 533, 533, 534, 534, 535, 535, 536, + 536, 536, 537, 537, 537, 538, 538, 538, 539, 540, + 540, 540, 541, 541, 542, 542, 543, 544, 544, 545, + 545, 546, 547, 548, 548, 548, 549, 549, 550, 550, + 551, 552, 552, 552, 553, 553, 554, 554, 555, 555, + 555, 556, 556, 557, 557, 558, 558, 559, 560, 561, + 562, 563, 564, 565, 565, 565, 565, 566, 566, 566, + 567, 567, 567, 568, 568, 569, 569, 570, 570, 571, + 571, 572, 572, 573, 574, 574, 575, 575, 575, 576, + 577, 577, 578, 578, 579, 579, 580, 580, 581, 581, + 582, 582, 583, 583, 584, 585, 585, 585, 585, 585, + 585, 585, 585, 586, 586, 587, 587, 588, 589, 589, + 590, 590, 591, 591, 592, 593, 593, 593, 593, 593, + 594, 594, 595, 595, 596, 596, 597, 597, 597, 598, + 598, 599, 599, 600, 600, 601, 601, 602, 603, 604, + 605, 605, 606, 607, 608, 608, 609, 610, 610, 611, + 611, 612, 612, 613, 613, 613, 614, 614, 504, 615, + 615, 616, 616, 617, 617, 618, 619, 619, 620, 620, + 621, 622, 622, 623, 623, 623, 624, 625, 625, 626, + 626, 626, 626, 626, 627, 627, 627, 627, 627, 627, + 628, 628, 628, 629, 629, 629, 629, 629, 629, 629, + 629, 629, 629, 630, 630, 630, 630, 630, 630, 630, + 630, 631, 631, 631, 631, 631, 631, 631, 631, 631, + 631, 631, 631, 631, 631, 631, 631, 632, 632, 633, + 633, 634, 634, 634, 634, 635, 635, 636, 636, 637, + 637, 637, 637, 638, 639, 640, 640, 641, 641, 641, + 642, 642, 642, 643, 643, 644, 645, 646, 647, 647, + 647, 647, 647, 647, 647, 647, 647, 647, 647, 647, + 647, 647, 647, 647, 647, 647, 647, 647, 647, 647, + 647, 647, 647, 647, 648, 648, 648, 649, 650, 650, + 651, 651, 652, 652, 652, 652, 652, 653, 653, 653, + 653, 653, 654, 655, 655, 656, 657, 657, 657, 657, + 657, 658, 658, 659, 659, 660, 661, 662, 663, 664, + 664, 665, 666, 666, 666, 666, 667, 667, 667, 667, + 667, 667, 667, 667, 667, 667, 667, 668, 669, 670, + 671, 671, 672, 673, 673, 674, 674, 675, 676, 676, + 677, 677, 678, 678, 679, 679, 680, 680, 681, 681, + 682, 682, 683, 684, 685, 686, 686, 686, 686, 686, + 686, 686, 686, 687, 687, 688, 689, 690, 691, 692, + 693, 694, 695, 696, 697, 698, 699, 700, 701, 702, + 703, 704, 705, 706, 707, 708, 709, 710, 711, 712, + 713, 713, 714, 714, 714, 714, 714, 714, 714, 714, + 714, 714, 714, 714, 714, 714, 714, 714 +}; + +/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ +static const short yyr2[] = +{ + 0, 1, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 2, 7, 8, 6, 7, 5, 1, 2, 1, + 2, 1, 1, 3, 1, 1, 1, 1, 2, 2, + 3, 0, 3, 0, 1, 7, 8, 6, 7, 6, + 7, 4, 3, 1, 3, 3, 3, 2, 2, 2, + 2, 1, 3, 1, 2, 2, 1, 3, 1, 1, + 3, 1, 2, 2, 2, 3, 8, 1, 1, 5, + 0, 1, 3, 1, 3, 2, 4, 1, 3, 2, + 3, 4, 4, 2, 9, 2, 3, 7, 2, 2, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 2, 4, 2, 2, 1, 0, 1, 1, 6, 6, + 1, 1, 0, 0, 1, 0, 4, 0, 1, 1, + 2, 8, 1, 0, 3, 0, 0, 1, 1, 2, + 1, 1, 1, 2, 6, 1, 1, 3, 0, 1, + 1, 0, 1, 1, 2, 3, 4, 2, 2, 3, + 0, 1, 1, 2, 1, 1, 1, 4, 3, 3, + 3, 3, 3, 1, 1, 6, 3, 1, 3, 1, + 3, 2, 1, 0, 2, 3, 1, 0, 1, 1, + 2, 3, 4, 0, 1, 2, 0, 1, 1, 5, + 5, 3, 2, 0, 1, 3, 1, 1, 6, 3, + 2, 6, 2, 1, 2, 2, 2, 0, 1, 1, + 2, 0, 2, 0, 1, 1, 1, 1, 1, 1, + 0, 1, 1, 2, 2, 2, 5, 1, 2, 3, + 2, 2, 0, 1, 1, 1, 1, 3, 4, 8, + 4, 0, 6, 1, 1, 2, 2, 0, 3, 3, + 1, 2, 2, 2, 8, 8, 8, 8, 3, 0, + 2, 0, 1, 3, 2, 1, 0, 1, 2, 4, + 1, 1, 3, 1, 0, 2, 1, 6, 1, 1, + 3, 1, 2, 0, 1, 2, 2, 2, 1, 1, + 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, + 1, 2, 2, 1, 2, 3, 4, 2, 6, 4, + 1, 1, 8, 9, 6, 8, 6, 4, 0, 4, + 2, 1, 3, 0, 2, 4, 0, 1, 1, 3, + 3, 7, 2, 0, 2, 2, 3, 3, 0, 1, + 2, 4, 1, 3, 2, 2, 2, 1, 1, 1, + 1, 2, 2, 5, 0, 4, 7, 7, 1, 1, + 3, 4, 7, 2, 1, 3, 1, 1, 6, 3, + 0, 0, 0, 0, 3, 0, 9, 9, 1, 1, + 0, 2, 1, 1, 1, 1, 1, 3, 3, 3, + 3, 3, 3, 5, 5, 5, 5, 5, 5, 2, + 0, 4, 2, 3, 3, 2, 2, 3, 3, 2, + 3, 6, 1, 2, 4, 3, 2, 2, 2, 2, + 3, 1, 3, 3, 3, 2, 2, 4, 4, 5, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, + 2, 2, 1, 1, 1, 0, 2, 2, 0, 1, + 2, 2, 2, 2, 2, 4, 3, 2, 2, 1, + 3, 7, 1, 0, 1, 0, 2, 2, 2, 2, + 2, 2, 2, 2, 2, 3, 2, 2, 2, 1, + 1, 1, 1, 4, 5, 1, 3, 1, 3, 1, + 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 4, 4, 6, 5, 3, 0, 2, 2, + 0, 3, 0, 4, 1, 5, 4, 1, 4, 1, + 2, 2, 1, 1, 1, 2, 2, 2, 2, 0, + 3, 5, 1, 1, 2, 3, 1, 2, 3, 0, + 1, 1, 1, 5, 5, 6, 1, 1, 1, 2, + 4, 1, 0, 5, 1, 0, 3, 2, 1, 0, + 2, 0, 1, 0, 3, 1, 0, 1, 2, 1, + 1, 1, 1, 2, 2, 1, 2, 3, 1, 1, + 3, 3, 1, 2, 3, 1, 2, 0, 2, 1, + 1, 0, 1, 1, 1, 3, 2, 3, 0, 1, + 3, 4, 5, 1, 3, 4, 3, 0, 1, 3, + 3, 1, 1, 0, 1, 1, 4, 0, 2, 4, + 0, 3, 0, 2, 0, 2, 0, 9, 11, 0, + 0, 0, 0, 3, 2, 1, 0, 3, 5, 3, + 2, 5, 2, 1, 1, 1, 1, 1, 3, 1, + 3, 1, 0, 2, 1, 3, 1, 1, 1, 6, + 1, 0, 3, 0, 1, 3, 6, 3, 4, 2, + 3, 0, 1, 2, 1, 1, 1, 2, 1, 2, + 1, 2, 0, 3, 0, 1, 3, 1, 2, 0, + 2, 0, 2, 0, 4, 1, 2, 1, 1, 0, + 1, 3, 2, 1, 1, 2, 1, 4, 3, 1, + 3, 4, 0, 8, 5, 1, 1, 4, 4, 4, + 1, 1, 5, 5, 1, 3, 3, 1, 1, 1, + 3, 7, 7, 5, 3, 0, 1, 1, 1, 2, + 0, 1, 1, 1, 0, 3, 1, 3, 1, 0, + 3, 1, 3, 1, 3, 3, 1, 1, 3, 1, + 2, 1, 3, 3, 1, 2, 3, 3, 3, 3, + 1, 3, 2, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 3, 3, 3, 3, 3, 3, 3, + 3, 6, 6, 6, 6, 6, 6, 6, 6, 6, + 6, 6, 6, 6, 6, 6, 6, 1, 1, 5, + 6, 3, 4, 5, 6, 3, 4, 3, 4, 3, + 4, 4, 5, 4, 4, 3, 4, 1, 1, 1, + 1, 1, 1, 1, 3, 3, 11, 11, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 2, 2, 3, + 3, 3, 3, 3, 3, 3, 3, 1, 1, 1, + 1, 3, 1, 1, 1, 1, 1, 4, 1, 3, + 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, + 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, + 2, 1, 1, 1, 1, 1, 4, 5, 5, 5, + 5, 5, 5, 5, 5, 5, 5, 6, 1, 6, + 1, 4, 7, 2, 0, 4, 3, 6, 1, 1, + 6, 6, 1, 1, 4, 6, 4, 5, 3, 5, + 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 1, 1, 1, 1, 1, 1, 1, 1 +}; + +/* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE + doesn't specify something else to do. Zero means the default is an + error. */ +static const short yydefact[] = +{ + 0, 0, 589, 115, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 589, 666, 0, 0, 0, 0, 0, + 1, 10, 15, 7, 6, 13, 14, 12, 3, 9, + 19, 571, 17, 576, 577, 578, 5, 16, 570, 572, + 18, 637, 633, 11, 8, 745, 746, 20, 750, 751, + 4, 478, 0, 0, 0, 0, 0, 0, 412, 588, + 591, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 114, 0, 0, 95, 643, 925, 0, 21, 923, 0, + 0, 73, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 496, 0, 29, 37, 34, + 36, 774, 35, 774, 1010, 1012, 1014, 1013, 1019, 1015, + 1022, 1020, 1016, 1018, 1021, 1017, 1023, 1024, 1025, 1026, + 1027, 0, 31, 0, 32, 0, 66, 68, 1002, 1011, + 0, 0, 0, 0, 0, 0, 0, 0, 587, 0, + 0, 984, 660, 665, 0, 0, 596, 0, 702, 704, + 1004, 0, 0, 0, 107, 579, 1009, 0, 2, 0, + 0, 650, 0, 442, 443, 444, 445, 446, 447, 448, + 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, + 459, 460, 461, 462, 463, 464, 465, 466, 467, 0, + 440, 441, 0, 994, 419, 0, 998, 416, 269, 1001, + 0, 704, 415, 390, 1005, 593, 586, 921, 0, 103, + 151, 150, 104, 133, 218, 786, 990, 0, 102, 145, + 997, 0, 98, 269, 105, 927, 122, 99, 203, 100, + 0, 101, 774, 1008, 106, 146, 641, 642, 0, 926, + 924, 0, 74, 0, 995, 721, 504, 993, 497, 0, + 503, 508, 498, 499, 506, 500, 501, 502, 507, 333, + 30, 0, 39, 773, 38, 0, 0, 0, 0, 0, + 0, 779, 0, 0, 0, 0, 0, 0, 0, 585, + 931, 0, 912, 659, 659, 660, 672, 670, 983, 673, + 0, 674, 664, 660, 0, 0, 0, 0, 0, 0, + 612, 605, 594, 595, 597, 599, 600, 601, 608, 609, + 602, 0, 703, 1003, 108, 269, 109, 203, 110, 774, + 582, 0, 0, 634, 0, 652, 0, 0, 0, 0, + 0, 417, 479, 382, 0, 382, 0, 221, 418, 422, + 413, 476, 477, 0, 271, 242, 468, 0, 414, 431, + 0, 388, 389, 493, 592, 590, 922, 148, 148, 0, + 0, 0, 160, 152, 153, 132, 0, 96, 0, 0, + 111, 271, 121, 120, 123, 0, 0, 0, 0, 0, + 986, 75, 221, 540, 0, 747, 748, 505, 0, 0, + 0, 0, 890, 918, 0, 985, 0, 892, 0, 0, + 919, 0, 913, 904, 903, 902, 1010, 0, 0, 0, + 894, 895, 896, 905, 906, 914, 915, 1014, 916, 917, + 0, 1019, 1015, 920, 0, 0, 0, 0, 873, 365, + 759, 331, 868, 783, 757, 893, 869, 907, 871, 872, + 887, 888, 889, 908, 870, 932, 933, 934, 948, 935, + 950, 876, 874, 875, 958, 959, 962, 963, 758, 0, + 0, 990, 0, 776, 0, 0, 27, 33, 0, 0, + 43, 69, 71, 1006, 67, 0, 0, 0, 778, 0, + 52, 0, 0, 0, 0, 51, 584, 0, 0, 0, + 669, 667, 0, 676, 0, 675, 677, 682, 663, 0, + 631, 0, 606, 617, 603, 617, 604, 618, 624, 628, + 629, 613, 598, 721, 754, 787, 0, 0, 271, 0, + 0, 581, 580, 636, 638, 643, 635, 648, 0, 656, + 186, 177, 0, 481, 484, 174, 173, 129, 0, 487, + 482, 0, 488, 148, 148, 148, 148, 489, 483, 480, + 0, 426, 0, 428, 427, 0, 429, 0, 423, 0, + 0, 272, 219, 269, 0, 0, 435, 0, 436, 382, + 469, 0, 475, 0, 0, 0, 472, 990, 393, 392, + 492, 0, 410, 149, 0, 0, 158, 0, 157, 0, + 0, 147, 161, 162, 166, 165, 164, 154, 540, 552, + 527, 562, 530, 553, 563, 0, 569, 531, 0, 559, + 0, 554, 566, 526, 549, 528, 529, 524, 382, 509, + 510, 511, 519, 525, 512, 521, 542, 0, 547, 544, + 522, 559, 523, 112, 269, 113, 0, 0, 124, 0, + 0, 202, 242, 390, 380, 0, 221, 0, 81, 83, + 0, 0, 0, 768, 0, 0, 0, 0, 857, 858, + 859, 0, 720, 791, 800, 803, 808, 804, 805, 806, + 810, 811, 809, 812, 807, 789, 0, 984, 0, 984, + 909, 0, 0, 984, 984, 984, 0, 910, 911, 0, + 0, 973, 0, 0, 0, 0, 878, 877, 666, 0, + 0, 757, 330, 1007, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 775, 28, 0, 0, 44, + 72, 0, 0, 26, 765, 0, 781, 666, 0, 744, + 765, 0, 0, 0, 0, 583, 0, 659, 0, 0, + 721, 0, 681, 0, 574, 0, 573, 929, 0, 607, + 0, 615, 611, 610, 0, 621, 0, 626, 614, 0, + 752, 753, 0, 0, 0, 242, 380, 0, 647, 0, + 654, 0, 632, 0, 0, 0, 130, 187, 486, 0, + 0, 0, 0, 0, 382, 425, 0, 382, 383, 430, + 519, 542, 274, 0, 268, 270, 380, 241, 991, 213, + 210, 0, 223, 382, 509, 380, 0, 0, 0, 240, + 243, 244, 245, 246, 0, 434, 474, 473, 433, 432, + 0, 0, 0, 396, 394, 395, 391, 0, 382, 196, + 155, 159, 0, 0, 163, 0, 537, 550, 551, 567, + 0, 564, 569, 0, 557, 555, 556, 135, 0, 0, + 0, 520, 0, 0, 0, 0, 558, 271, 0, 380, + 125, 201, 0, 204, 206, 207, 0, 0, 0, 0, + 221, 221, 78, 0, 85, 77, 538, 539, 987, 540, + 0, 0, 0, 802, 790, 0, 0, 860, 861, 862, + 0, 794, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 975, 976, 977, 978, 979, + 980, 981, 982, 0, 0, 0, 0, 968, 0, 0, + 0, 0, 0, 984, 332, 886, 885, 760, 898, 0, + 881, 989, 880, 879, 882, 883, 884, 956, 0, 891, + 785, 784, 777, 0, 0, 0, 0, 0, 0, 24, + 53, 41, 61, 63, 0, 0, 70, 0, 770, 0, + 780, 984, 0, 770, 49, 47, 0, 0, 0, 668, + 671, 0, 683, 684, 688, 686, 687, 701, 0, 714, + 678, 680, 999, 575, 930, 616, 625, 620, 619, 0, + 630, 755, 756, 788, 380, 0, 0, 639, 661, 640, + 649, 0, 651, 655, 176, 183, 182, 0, 179, 485, + 148, 193, 178, 188, 189, 170, 169, 928, 172, 171, + 490, 0, 0, 0, 424, 273, 276, 212, 382, 0, + 383, 214, 209, 215, 0, 0, 251, 0, 438, 383, + 382, 380, 437, 0, 0, 0, 409, 495, 197, 198, + 156, 0, 168, 0, 0, 0, 542, 0, 565, 0, + 0, 382, 383, 0, 515, 517, 0, 0, 0, 0, + 0, 0, 0, 390, 276, 148, 127, 242, 199, 410, + 984, 385, 368, 369, 0, 82, 0, 221, 0, 87, + 0, 84, 0, 0, 0, 749, 992, 0, 0, 795, + 0, 0, 801, 0, 0, 793, 792, 0, 847, 0, + 838, 837, 0, 816, 0, 845, 863, 855, 0, 0, + 0, 817, 841, 0, 0, 820, 0, 0, 0, 0, + 0, 0, 0, 818, 0, 0, 819, 0, 849, 0, + 0, 813, 0, 0, 814, 0, 0, 815, 0, 0, + 221, 0, 936, 0, 0, 951, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 974, 0, 0, 972, 0, + 0, 964, 0, 0, 0, 0, 0, 897, 955, 65, + 57, 58, 64, 59, 60, 0, 0, 0, 22, 25, + 41, 42, 540, 540, 0, 762, 782, 0, 0, 761, + 50, 48, 45, 0, 0, 712, 686, 0, 710, 705, + 706, 708, 0, 0, 699, 0, 719, 622, 623, 627, + 276, 200, 385, 0, 653, 181, 0, 0, 0, 194, + 0, 190, 0, 0, 0, 420, 229, 224, 900, 225, + 226, 227, 228, 284, 0, 275, 277, 0, 222, 230, + 0, 251, 643, 247, 0, 439, 470, 471, 401, 402, + 398, 397, 400, 399, 382, 494, 383, 167, 988, 0, + 0, 533, 0, 532, 568, 0, 560, 0, 136, 0, + 513, 0, 541, 542, 548, 546, 0, 543, 380, 0, + 0, 0, 119, 128, 205, 382, 0, 0, 381, 0, + 97, 0, 117, 116, 93, 0, 0, 89, 0, 86, + 0, 853, 854, 797, 796, 799, 798, 0, 0, 0, + 666, 0, 0, 856, 0, 0, 0, 0, 0, 0, + 848, 846, 842, 0, 850, 0, 0, 0, 0, 851, + 0, 0, 0, 0, 0, 0, 942, 941, 0, 0, + 938, 937, 0, 946, 945, 944, 943, 940, 939, 0, + 954, 970, 969, 0, 0, 0, 0, 0, 0, 0, + 899, 54, 55, 0, 56, 62, 23, 766, 0, 767, + 764, 769, 772, 771, 0, 743, 0, 46, 682, 697, + 685, 711, 707, 709, 0, 0, 0, 0, 0, 723, + 0, 381, 644, 645, 662, 148, 184, 180, 0, 196, + 195, 191, 0, 383, 901, 283, 0, 343, 383, 278, + 383, 217, 231, 232, 382, 0, 248, 0, 0, 0, + 0, 0, 0, 0, 0, 276, 491, 535, 0, 536, + 0, 134, 0, 217, 137, 138, 140, 141, 142, 516, + 518, 514, 545, 276, 410, 383, 196, 0, 0, 0, + 366, 0, 370, 382, 88, 0, 0, 90, 542, 0, + 839, 0, 0, 984, 865, 864, 0, 0, 843, 0, + 0, 0, 0, 852, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 957, 220, 947, 949, 0, 0, + 971, 966, 965, 0, 960, 961, 721, 40, 540, 721, + 691, 712, 700, 698, 713, 715, 717, 718, 729, 657, + 383, 367, 646, 0, 175, 192, 383, 144, 0, 0, + 280, 281, 0, 990, 0, 0, 0, 0, 0, 0, + 0, 1012, 1017, 0, 0, 364, 294, 289, 0, 343, + 288, 298, 299, 300, 301, 302, 309, 310, 303, 305, + 306, 308, 0, 313, 0, 358, 360, 359, 0, 0, + 0, 0, 0, 0, 990, 267, 0, 0, 208, 233, + 0, 0, 0, 251, 234, 237, 774, 0, 383, 407, + 408, 404, 403, 406, 405, 0, 534, 561, 143, 131, + 139, 0, 382, 264, 126, 383, 0, 721, 384, 371, + 0, 0, 91, 92, 79, 0, 824, 832, 0, 825, + 833, 828, 836, 840, 844, 826, 834, 827, 835, 821, + 829, 822, 830, 823, 831, 953, 952, 967, 714, 763, + 714, 693, 690, 0, 0, 725, 727, 728, 722, 0, + 265, 185, 421, 223, 279, 0, 317, 0, 0, 320, + 321, 0, 312, 0, 328, 311, 344, 345, 0, 1000, + 361, 362, 0, 290, 0, 295, 292, 349, 0, 0, + 314, 0, 304, 297, 307, 296, 342, 211, 216, 235, + 251, 774, 238, 257, 250, 252, 411, 383, 0, 386, + 0, 373, 374, 376, 377, 714, 383, 76, 94, 0, + 719, 719, 0, 689, 696, 716, 726, 729, 0, 286, + 282, 0, 315, 0, 333, 0, 0, 0, 346, 0, + 357, 0, 0, 0, 0, 352, 350, 0, 0, 0, + 337, 0, 338, 0, 239, 257, 0, 251, 253, 254, + 266, 383, 712, 376, 0, 0, 719, 0, 721, 723, + 723, 0, 694, 733, 0, 730, 0, 734, 285, 0, + 316, 336, 0, 319, 0, 327, 0, 356, 355, 996, + 354, 343, 0, 0, 0, 0, 329, 0, 0, 251, + 0, 0, 249, 0, 256, 0, 255, 387, 379, 375, + 0, 372, 118, 714, 637, 637, 0, 692, 724, 729, + 0, 736, 0, 732, 735, 0, 0, 0, 0, 343, + 363, 351, 353, 0, 348, 0, 340, 339, 236, 0, + 0, 260, 259, 258, 712, 719, 650, 650, 695, 731, + 0, 742, 287, 0, 334, 318, 324, 326, 0, 0, + 0, 343, 263, 261, 262, 0, 723, 867, 658, 0, + 739, 0, 738, 0, 343, 0, 0, 343, 341, 378, + 637, 737, 0, 0, 335, 325, 343, 347, 322, 650, + 740, 0, 323, 866, 741, 0, 0, 0 +}; + +static const short yydefgoto[] = +{ + 1905, 20, 21, 465, 121, 122, 123, 124, 1208, 723, + 718, 22, 136, 969, 970, 971, 972, 125, 126, 470, + 471, 23, 81, 381, 874, 647, 648, 649, 1108, 1109, + 242, 24, 73, 25, 154, 26, 370, 74, 1320, 224, + 374, 639, 1096, 1312, 533, 212, 366, 1082, 1463, 1464, + 1465, 1466, 1467, 1468, 218, 234, 209, 584, 210, 362, + 363, 364, 591, 592, 593, 594, 595, 535, 536, 537, + 1027, 1024, 1025, 1245, 1426, 538, 1032, 1033, 1034, 1250, + 1070, 227, 316, 376, 862, 863, 864, 800, 801, 802, + 1598, 567, 559, 1368, 650, 1050, 1255, 1441, 1442, 1443, + 1604, 865, 569, 809, 810, 811, 812, 1273, 813, 1767, + 1768, 1769, 1852, 222, 314, 633, 197, 344, 564, 560, + 561, 1264, 1265, 1266, 1549, 1550, 1436, 1740, 1551, 1566, + 1567, 1568, 1569, 1570, 1571, 1572, 1573, 1574, 1681, 1575, + 1576, 1577, 1578, 1579, 1747, 1580, 428, 429, 1837, 1761, + 1581, 1582, 1583, 1870, 1696, 1697, 1754, 1755, 1584, 1585, + 1586, 1587, 1692, 27, 231, 318, 1101, 1102, 1103, 1627, + 1721, 1722, 1723, 867, 1480, 552, 1044, 1318, 229, 635, + 353, 580, 581, 826, 828, 1285, 28, 58, 788, 785, + 338, 339, 348, 349, 189, 190, 350, 1059, 575, 818, + 194, 162, 331, 332, 548, 202, 582, 1286, 29, 95, + 618, 619, 620, 1083, 1084, 621, 790, 623, 624, 1076, + 1397, 851, 625, 791, 627, 628, 629, 630, 844, 631, + 632, 841, 30, 31, 32, 33, 34, 522, 35, 487, + 36, 37, 60, 206, 355, 38, 302, 303, 304, 305, + 306, 307, 308, 309, 752, 310, 1009, 1239, 507, 508, + 757, 509, 39, 1588, 41, 161, 523, 524, 238, 1424, + 1019, 325, 529, 1022, 772, 42, 729, 490, 292, 1243, + 1542, 141, 142, 143, 290, 494, 495, 496, 743, 740, + 992, 993, 994, 1661, 1733, 1781, 995, 996, 1234, 1724, + 148, 1232, 1236, 1534, 1535, 1419, 385, 1539, 1783, 1669, + 1784, 1785, 1786, 1833, 1879, 1882, 1589, 1590, 45, 46, + 386, 1591, 48, 49, 513, 1592, 430, 431, 50, 978, + 1398, 1215, 1401, 262, 263, 462, 477, 478, 725, 432, + 433, 516, 662, 890, 663, 664, 665, 666, 1132, 667, + 668, 669, 670, 671, 672, 673, 674, 675, 892, 1135, + 1136, 1341, 700, 676, 435, 436, 949, 1257, 437, 438, + 439, 440, 441, 442, 443, 653, 78, 240, 226, 1038, + 1085, 747, 444, 445, 446, 447, 448, 449, 450, 1519, + 451, 452, 453, 454, 455, 456, 940, 457, 692, 1189, + 693, 1186, 933, 291, 458, 459, 877, 1287, 950, 215, + 797, 1115, 246, 192, 243, 1798, 219, 1880, 1001, 1593, + 997, 127, 460, 201, 203, 973, 702, 232, 155, 461, + 129 +}; + +static const short yypact[] = +{ + 6478, 786, 251, 1471, 317, 853, 421, 1601, 350, 2322, + 426, 554, 1932, 251, 15, 404, 5356, 845, 5356, 340, + 454,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768, 101,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768, 6736, 5356, 5356, 5356, 5356, 5356,-32768,-32768, + 473, 715, 5356, 5356, 5356, 650, 5356, 540, 5356, 5356, + -32768, 5356, 5356,-32768, 452,-32768, 572,-32768,-32768, 794, + 5356,-32768, 5356, 5356, 5356, 814, 5356, 5356, 5356, 5356, + 540, 5356, 5356, 5356, 5356,-32768, 5356, 622,-32768,-32768, + -32768, 547,-32768, 547,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768, 718, 636, 790,-32768, 157,-32768,-32768,-32768,-32768, + 5356, 5356, 5356, 777, 823, 835, 1195, 111, 792, 494, + 496, 711, 728,-32768, 5356, 914, 1056, 830,-32768, 5356, + -32768, 5356, 5356, 5356,-32768,-32768,-32768, 5356,-32768, 982, + 183, 743, 268,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 319, + -32768,-32768, 715,-32768,-32768, 219,-32768,-32768, 737,-32768, + 729,-32768,-32768, 222,-32768, 849,-32768,-32768, 816,-32768, + 573,-32768,-32768, 1039,-32768,-32768,-32768, 715,-32768,-32768, + -32768, 320,-32768, 737,-32768,-32768, 428,-32768, 995,-32768, + 999,-32768, 547,-32768,-32768,-32768,-32768,-32768, 993,-32768, + -32768, 881,-32768, 1015,-32768, 906,-32768,-32768,-32768, 881, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 4811, + -32768, 5356,-32768,-32768,-32768, 3375, 647, 964, 3406, 5356, + 1030, 874, 1057, 1062, 3375, 979, 1025, 1035, 3406, 928, + -32768, 6219,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + 4475,-32768,-32768,-32768, 989, 5356, 1095, 1013, 397, 5356, + 1033,-32768,-32768, 1056,-32768,-32768,-32768,-32768,-32768,-32768, + -32768, 5356,-32768,-32768,-32768, 737,-32768, 995,-32768, 547, + 1085, 6219, 1064,-32768, 6219, 1155, 118, 963, 80, 968, + 565, 268,-32768, 1202, 850,-32768, 5356,-32768, 319,-32768, + -32768,-32768,-32768, 5356, 1082, 2110, 1026, 2561, 985,-32768, + 6736,-32768,-32768, 241,-32768,-32768,-32768, 976, 976, 715, + 1140, 715, 382, 573,-32768,-32768, 2604,-32768, 5356, 5356, + -32768, 1082,-32768,-32768, 1231, 395, 987, 5356, 1256, 5356, + -32768,-32768, 49, 392, 3825,-32768,-32768,-32768, 991, 992, + 994, 1065,-32768,-32768, 997,-32768, 1001,-32768, 1004, 1010, + -32768, 1014,-32768,-32768,-32768,-32768, 1019, 1020, 1069, 1092, + -32768,-32768,-32768,-32768,-32768,-32768,-32768, 1028,-32768,-32768, + 4908, 1036, 1037,-32768, 6219, 6219, 4572, 5356,-32768,-32768, + -32768, 1041, 1038,-32768, 1063,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 1042, + 1024, 1040, 623,-32768, 5356, 1133,-32768,-32768, 5356, 5356, + 322,-32768,-32768,-32768,-32768, 5356, 5356, 98,-32768, 5356, + -32768, 1255, 5356, 3375, 1175, 1048,-32768, 5356, 5147, 353, + -32768,-32768, 6219,-32768, 1265, 1066,-32768, 139,-32768, 495, + -32768, 88,-32768, 370,-32768, 370,-32768, 1067,-32768, 109, + -32768, 1158,-32768, -1,-32768,-32768, 1071, 1058, 1082, 1068, + 1334,-32768,-32768, 1070,-32768, 388,-32768, 1055, 1159, 1157, + -32768, 153, 1266, 1268,-32768,-32768,-32768,-32768, 715,-32768, + -32768, 1269,-32768, 976, 976, 976, 976,-32768, 1083,-32768, + 1341,-32768, 1342,-32768,-32768, 1321,-32768, 2604,-32768, 2604, + 697,-32768,-32768, 737, 1359, 5356,-32768, 6553,-32768, 459, + -32768, 5356, 779, 729, 1188, 1156, 1228, 1191,-32768,-32768, + -32768, 256, 1232,-32768, 1170, 540,-32768, 715,-32768, 1353, + 1284,-32768, 382,-32768,-32768,-32768,-32768,-32768, 375, 1187, + -32768,-32768,-32768, 1189,-32768, 1234, 1104,-32768, 1289, 1110, + 683,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768, 1108,-32768,-32768,-32768, 133, 1112, 1113, 27, + -32768, 1110,-32768,-32768, 737,-32768, 1328, 1383,-32768, 715, + 715,-32768, 2110, 222,-32768, 1267,-32768, 1238, 1124,-32768, + 6828, 5031, 1273,-32768, 1274, 1126, 3911, 1127, 863, 977, + 1186, 3574, 192,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768, 1408, 787, 5233, 132, + -32768, 5356, 6219, 802, 839, 846, 1131,-32768,-32768, 6219, + 4150, 1063, 209, 1204, 6219, 5233, 167, 167, 15, 731, + 1132, 468,-32768,-32768, 5233, 6219, 5356, 6219, 6219, 6219, + 6219, 6219, 5472, 1694, 5356,-32768,-32768, 2999, 1227,-32768, + -32768, 1201, 3406,-32768, 1349, 756,-32768, 15, 1137,-32768, + 1349, 2999, 1350, 1354, 5356,-32768, 468,-32768, 544, 4037, + 1221, 5233,-32768, 5356,-32768, 39,-32768,-32768, 197,-32768, + 1230,-32768,-32768,-32768, 5356, 708, 5356,-32768,-32768, 5356, + -32768,-32768, 5233, 5356, 1411, 2110,-32768, 6219, 1177, 6219, + 1294, 1172,-32768, 715, 715, 715,-32768, 378,-32768, 1170, + 1170, 1233, 540, 565,-32768,-32768, 1161,-32768,-32768,-32768, + -32768, 1412,-32768, 5356,-32768,-32768,-32768,-32768,-32768, 1420, + -32768, 1164, 1397,-32768, 1414,-32768, 1360, 1361, 547,-32768, + -32768,-32768,-32768,-32768, 1425,-32768,-32768,-32768,-32768,-32768, + 5356, 6654, 540, 1320, 1329, 1331,-32768, 540,-32768, 807, + -32768,-32768, 1300, 715,-32768, 362, 1291,-32768,-32768,-32768, + 540,-32768, 1104, 506,-32768,-32768,-32768, 1419, 506, 1303, + 506,-32768, 540, 540, 1192, 540,-32768, 1082, 5356,-32768, + 1368,-32768, 757,-32768,-32768,-32768, 241, 1308, 5356, 763, + 170,-32768,-32768, 1196, 1452,-32768,-32768,-32768,-32768, 392, + 5356, 1311, 4236,-32768,-32768, 1311, 3911,-32768,-32768,-32768, + 142,-32768, 196, 1307, 4150, 4150, 6219, 6219, 1819, 1198, + 140, 2211, 6219, 2503, 701, 2763, 2860, 5558, 3120, 3217, + 3477, 6219, 6219, 1466, 6219, 1205, 6219, 1209, 560, 6219, + 6219, 6219, 6219, 6219, 6219,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768, 1413, 1174, 182, 5233,-32768, 4150, 6219, + 214, 270, 1210, 711,-32768,-32768,-32768,-32768, 1063, 332, + -32768,-32768, 1454, 167, 167, 662, 662,-32768, 767,-32768, + -32768,-32768,-32768, 5356, 5356, 5356, 5356, 5356, 5356, 1212, + -32768, 394,-32768,-32768, 2999, 1358,-32768, 234, 1377, 5356, + -32768, 711, 5233, 1377, 1212, 1215, 2999, 2668, 1415,-32768, + -32768, 2043, 1216, 772,-32768,-32768,-32768, 1217, 4150, 1422, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 93, + -32768,-32768,-32768,-32768,-32768, 806, 1308,-32768,-32768,-32768, + 1063, 5356,-32768,-32768,-32768,-32768,-32768, 832,-32768,-32768, + 976, 1486,-32768, 378,-32768,-32768,-32768,-32768,-32768,-32768, + -32768, 1222, 4150, 2409,-32768,-32768, 1459,-32768,-32768, 2409, + -32768,-32768,-32768,-32768, 547, 547, 1258, 1235,-32768,-32768, + -32768,-32768,-32768, 125, 147, 766,-32768, 1496,-32768,-32768, + -32768, 5356,-32768, 317, 852, 1345, 1412, 1239,-32768, 1170, + 872,-32768,-32768, 626,-32768, 1240, 5356, 637, 1242, 1245, + 540, 1247, 1508, 222, 1459, 976, 1268, 2110,-32768, 1232, + 711, 1326, 1355,-32768, 2009,-32768, 540, 1388, 1484,-32768, + 6828,-32768, 540, 1302, 1488,-32768,-32768, 1270, 1280,-32768, + 4150, 4150,-32768, 4150, 4150,-32768, 1536, 177, 1063, 1279, + -32768,-32768, 1282, 1063, 5797,-32768,-32768,-32768, 1448, 1286, + 1287, 1063, 1229, 1288, 1290, 1063, 6219, 6219, 1198, 6219, + 5883, 1292, 1293, 1063, 1295, 1296, 1063, 6219, 1063, 1297, + 1305, 1063, 1309, 1310, 1063, 1312, 1313, 1063, 592, 613, + -32768, 632,-32768, 654, 6219,-32768, 689, 727, 744, 847, + 904, 950, 6219, 6219, 5233,-32768, 1493, 193, 1063, 1380, + 5233,-32768, 6219, 6219, 5233, 6219, 6219,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768, 2999, 1495, 2999,-32768, 1212, + 394,-32768, 328, 328, 28,-32768,-32768, 4475, 877,-32768, + 1212, 1215, 1315, 2668, 1306, 602, 1314, 4037, 1432,-32768, + 1437, 1460, 1506, 5233, 911, 1576, 1520,-32768,-32768,-32768, + 1459,-32768, 1326, 368, 1323, 1433, 715, 1464, 1170, 1465, + 1170,-32768, 4150, 145, 875,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768, 1416, 1587, 1459,-32768, 6219,-32768, 490, + 1453, 1258, 452,-32768, 4150,-32768,-32768,-32768, 1473, 1475, + 1477, 1478, 1480, 1481,-32768,-32768,-32768,-32768,-32768, 1336, + 317,-32768, 1233,-32768,-32768, 506,-32768, 2409, 195, 506, + -32768, 506,-32768, 1412,-32768,-32768, 1337,-32768,-32768, 241, + 1587, 1170,-32768, 1268,-32768,-32768, 4475, 1592,-32768, 190, + -32768, 1347,-32768, 1323,-32768, 1340, 715, 155, 1344,-32768, + 715,-32768,-32768,-32768, 1536,-32768, 1536, 6219, 1463, 1463, + 15, 1352, 885,-32768, 1463, 1463, 6219, 1463, 1463, 245, + 1063,-32768, 1236, 6219, 1063, 1463, 1463, 1463, 1463, 1063, + 1463, 1463, 1463, 1463, 1463, 1463,-32768,-32768, 1357, 2604, + -32768,-32768, 960,-32768,-32768,-32768,-32768,-32768,-32768, 1011, + 920,-32768,-32768, 5233, 5233, 1578, 1456, 1029, 894, 1264, + 1063,-32768,-32768, 1502,-32768,-32768,-32768,-32768, 1457,-32768, + -32768,-32768,-32768,-32768, 1265,-32768, 2668, 1315, 1628,-32768, + 772,-32768,-32768,-32768, 4037, 908, 5356, 6219, 4150, 1498, + 1587,-32768,-32768,-32768,-32768, 976,-32768,-32768, 715, 807, + -32768,-32768, 149,-32768,-32768,-32768, 5356, 4710,-32768,-32768, + 1063, 1615, 490,-32768, 722, 5356,-32768, 1559, 151, 1455, + 1560, 1458, 1598, 1563, 1602, 1459,-32768,-32768, 1370,-32768, + 1372,-32768, 1556, 1615, 195,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768, 1459, 1232,-32768, 807, 1496, 1590, 1529, + -32768, 1308,-32768,-32768,-32768, 1544, 216,-32768, 1412, 1550, + 1063, 1392, 1393, 711,-32768,-32768, 1395, 1396, 1063, 1409, + 1410, 6219, 6219, 1063, 1418, 1421, 1423, 1424, 1426, 1428, + 1429, 1430, 1431, 1434,-32768,-32768,-32768,-32768, 6219, 1435, + -32768,-32768,-32768, 5233,-32768,-32768, 1221,-32768, 328, 1221, + 5356, 939,-32768,-32768, 1399,-32768, 1063, 192, 576,-32768, + -32768,-32768,-32768, 1170,-32768,-32768,-32768,-32768, 2604, 1417, + -32768,-32768, 1647, 1650, 4354, 329, 1439, 1438, 1604, 6219, + 1441, 1442, 4966, 5356, 5356,-32768,-32768,-32768, 1639, 3712, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768, 131,-32768, 1443,-32768,-32768,-32768, 1612, 1444, + 1445, 1446, 1450, 1447, 513,-32768, 1449, 5356,-32768,-32768, + 1632, 1620, 5356, 1258,-32768,-32768, 547, 5356,-32768,-32768, + -32768,-32768,-32768,-32768,-32768, 1587,-32768,-32768,-32768,-32768, + -32768, 1587,-32768,-32768,-32768,-32768, 4294, 1221,-32768,-32768, + 6219, 715,-32768,-32768,-32768, 715,-32768,-32768, 6219,-32768, + -32768,-32768,-32768, 1063, 1063,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768, 1063,-32768,-32768, 1422,-32768, + 1422, 1461,-32768, 4150, 6219,-32768,-32768, 1617,-32768, 1462, + -32768,-32768,-32768, 134,-32768, 1669,-32768, 6122, 5356,-32768, + -32768, 6219,-32768, 4150, 1063,-32768,-32768,-32768, 1469,-32768, + -32768,-32768, 5356,-32768, 179,-32768, 1537,-32768, 259, 1470, + -32768, 3969,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + 1258, 547,-32768, 1606,-32768,-32768,-32768,-32768, 1496,-32768, + 4294, 1474, 772,-32768,-32768, 1422, 1063,-32768,-32768, 1264, + 1520, 1520, 5356,-32768, 192,-32768,-32768, 3305, 2409,-32768, + -32768, 1476,-32768, 867, 4811, 665, 159, 1479,-32768, 1651, + -32768, 5356, 5356, 317, 116,-32768,-32768, 430, 1654, 4150, + -32768, 673,-32768, 1482,-32768, 1606, 200, 1258, 1623, 1626, + -32768,-32768, 602, 1468, 4294, 1652, 1520, 1483, 1221, 1498, + 1498, 919,-32768,-32768, 1489, 1492, 759, 5356,-32768, 1311, + -32768, 1600, 3969,-32768, 1577,-32768, 3969,-32768,-32768,-32768, + -32768, 6357, 179, 6219, 3969, 161,-32768, 3969, 5291, 1258, + 586, 586,-32768, 1713,-32768, 1574,-32768,-32768,-32768, 772, + 4294,-32768,-32768, 1422, 1636, 1636, 5356,-32768,-32768, 3305, + 1494,-32768, 5356,-32768,-32768, 1497, 2918, 1499, 704, 6357, + 1500,-32768,-32768, 1278, 141, 1720,-32768,-32768,-32768, 1564, + 184,-32768,-32768,-32768, 946, 1520, 743, 743,-32768,-32768, + 5356, 1696,-32768, 3969, 1500,-32768,-32768, 1724, 3969, 1741, + 1733, 6357,-32768,-32768,-32768, 4150, 1498,-32768,-32768, 1509, + 1510, 1507,-32768, 930, 6357, 121, 5356, 6357,-32768, 192, + 1636,-32768, 5356, 5356,-32768,-32768, 6357,-32768,-32768, 743, + -32768, 1511,-32768,-32768,-32768, 1788, 1790,-32768 +}; + +static const short yypgoto[] = +{ + -32768,-32768,-32768, -83, 206,-32768, 254, 1525, 583,-32768, + -322,-32768,-32768, -576, -157, -642, -1029, 1782, 1526, 1519, + 1076,-32768,-32768,-32768, 690,-32768, 1160, 931,-32768, 696, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768, 712,-32768,-32768,-32768,-32768,-32768, + 343,-32768,-32768, 1485,-32768,-32768,-32768, -329,-32768,-32768, + -32768, 1472,-32768,-32768, 1218, -235, 1487,-32768,-32768, -341, + -32768, -710,-32768,-32768,-32768,-32768,-32768,-32768, 771,-32768, + -727,-32768,-32768, 1504, 1044, 719, 1467, 1018, 720,-32768, + 356, -51,-32768,-32768, -303, 154, -981,-32768,-32768, 384, + -32768, 1491, -1067,-32768,-32768,-32768,-32768, -1172, 385, 66, + 65, 69, 29,-32768,-32768,-32768,-32768, -84, -285,-32768, + 1045, -960,-32768, 574,-32768,-32768,-32768,-32768,-32768, -1415, + -1131,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 85,-32768, + -32768,-32768,-32768,-32768,-32768,-32768, -1195, 99,-32768, -593, + -32768,-32768,-32768,-32768,-32768, 148,-32768, 43,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768, 831,-32768, -1133,-32768, + -32768, -1088, 128, -660, 429, -254, -930, 610,-32768,-32768, + -538, -750,-32768,-32768, -972, -1315,-32768,-32768,-32768,-32768, + -32768, 1515,-32768, 1283, 1505,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768, 1528,-32768,-32768,-32768,-32768,-32768,-32768, + -509, -527,-32768, 1007, 564, -559, -343,-32768,-32768,-32768, + -314, -948,-32768, -340,-32768,-32768,-32768,-32768, 1237,-32768, + -32768, 1023,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768, 1853,-32768,-32768,-32768,-32768,-32768, 1566,-32768, + -32768,-32768, 1366,-32768, 1365,-32768,-32768,-32768,-32768, 1117, + -32768,-32768,-32768, 5,-32768, -1101,-32768, 1105, -500,-32768, + -32768, -1607,-32768,-32768,-32768, 50, -846, -183, 535,-32768, + -32768, -637,-32768, 1731, -871, -828,-32768, 1135, -1047, -1243, + -32768, -880,-32768,-32768,-32768,-32768, 883,-32768,-32768, 569, + 32, -1138, -1447,-32768, 215, -1205, -498, -1124, 342,-32768, + 53,-32768, 102,-32768, -839,-32768, 1886, 1890,-32768,-32768, + 1381, 1893,-32768,-32768,-32768, -202, -270, -404,-32768, 1165, + -1082, 913,-32768, -91, -661, -415,-32768,-32768,-32768, -1125, + -38, -411, -659,-32768, -491,-32768,-32768,-32768, 164,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768, -482,-32768, 751, + -32768, 639,-32768, 1203, -947,-32768, -597,-32768, 648, -935, + -122, -931, -924, -919, -10, -2, 3,-32768, -54, -732, + -447, -126,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, + -32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768,-32768, 709, + -32768, -1026,-32768, 504, -917, 631,-32768, 817, 307, -697, + 1335, -1323,-32768, -57, 1823,-32768, -46, -50, -1279, 354, + -47, -44, -139, -15, -36, -161,-32768, -56, -20, -9, + -32768 +}; + + +#define YYLAST 7071 + + +static const short yytable[] = +{ + 128, 149, 77, 128, 195, 40, 217, 150, 198, 156, + 312, 213, 264, 284, 287, 760, 961, 283, 286, 223, + 497, 596, 699, 622, 214, 768, 626, 248, 235, 585, + 789, 935, 792, 230, 557, 1117, 254, 257, 252, 1118, + 804, 251, 253, 191, 193, 196, 199, 150, 204, 259, + 258, 211, 746, 216, 193, 220, 256, 199, 803, 150, + 204, 943, 233, 128, 1028, 726, 1013, 149, 1268, 652, + 225, 244, 1195, 150, 247, 193, 255, 244, 220, 196, + 199, 555, 150, 204, 233, 128, 637, 199, 200, 985, + 981, 875, 270, 225, 272, 547, 1256, 319, 294, 1446, + 228, 491, 1256, 1074, 315, 866, 1016, 472, 1258, 514, + 1217, 1225, 1259, 1552, 1258, 958, 1099, 472, 1259, 1260, + 1269, 216, 150, 216, 1261, 1260, 1262, 1315, 1293, 1275, + 1261, 1400, 1262, 1438, 1310, 220, 1046, 320, 288, 371, + 313, 378, 199, 150, 233, 1053, 1526, 1056, 156, 742, + 1120, 1869, 1298, 894, 1695, 984, 849, 894, 1381, 894, + 732, 1529, 1625, 271, 1385, 883, 1801, 894, 773, 894, + 891, 1896, 517, 755, 884, 1486, 1392, 278, 1395, 1475, + 1049, 914, 340, 540, 317, 1337, 1482, 1416, 1750, 322, + 894, 481, 776, 706, 1280, 1698, 1481, 384, 707, 1094, + 894, 894, 1444, 706, 1123, -679, -80, 367, 707, 1278, + 323, 1730, 530, 1731, 779, 780, 781, 782, 134, -382, + 854, 531, 341, 463, 622, 351, 503, 626, 520, 1316, + 1873, 518, 1037, 764, 159, 1125, 1126, 1751, 1137, 748, + 1690, 1691, 999, 280, 1237, 500, 578, 1810, 1752, 1877, + 1878, 596, 216, 1501, 139, 140, 150, 579, 300, 473, + 128, 727, 936, 937, 1138, 150, 135, 1190, 1191, 473, + 1003, 706, 326, 515, 1121, 759, 707, 895, 1776, 1187, + 1420, 895, 1874, 895, 836, 327, 196, 160, 728, 1540, + 150, 895, 1903, 895, 1060, 1238, 706, 466, 556, 342, + 1212, 707, 352, 823, 855, 562, 466, 214, 720, 572, + 1106, 282, 576, 1279, 895, 814, 1461, 1632, 1757, 1462, + 328, 634, 329, 333, 895, 895, 646, 216, 1124, 645, + 1699, 510, 1210, 636, 216, 1281, 216, 517, 216, 268, + 824, 577, 276, 541, 1221, 1222, 14, 1410, 1629, 586, + 1256, 588, 1753, 1100, 1240, 1471, 1456, 1520, 1521, 199, + 204, 1530, 1258, 1184, 847, 641, 1259, 1487, 150, 1749, + 196, 334, 526, 1260, 1383, 1444, 1855, 1395, 1261, 706, + 1262, 532, 505, 1253, 707, 756, 1841, 269, 1811, 1404, + 277, 883, 1802, 1270, 1271, 883, 1080, 1807, 1209, 236, + 733, 1277, 1738, 1771, 1119, 915, 938, 543, 913, 643, + 1220, 1192, 988, 850, 706, -679, 1213, 1807, 703, 707, + 1122, 719, 14, 1433, 1867, 942, 503, 1546, 589, 1608, + 774, 1712, 330, 269, 947, 719, 237, 1794, 515, 1845, + 710, 711, 372, 1322, 825, 130, 1659, 1107, 708, 709, + 710, 711, 59, 1782, 1633, 150, 1888, 544, 829, 199, + 473, 1333, 1334, 236, 1335, 1336, 150, 735, 368, 1895, + 150, 497, 1898, 199, 150, 144, 530, 1678, 156, 795, + 1030, 1902, 1403, 335, 1716, 531, 1778, 82, 1478, 640, + 1717, 545, 1012, 750, 706, 1615, 716, 1657, 96, 707, + 237, 336, 1622, 1547, 369, 651, 1760, 724, 1595, 546, + 1596, 730, 131, 1621, -242, 466, 708, 709, 710, 711, + 1679, 75, 721, 565, 806, 1779, 1780, 504, 777, 805, + 1041, 830, 75, 1043, 1531, 337, 1427, 1342, 1764, 373, + 1634, 708, 709, 710, 711, 1623, 1193, 1858, 1040, 1051, + 857, 875, 651, 1031, 989, 1309, 798, 1011, 216, 1474, + 1459, 472, 798, 1897, 751, 1114, 1037, 1110, 1216, 651, + 706, 1821, 1092, 132, 1067, 707, 1762, 831, 1218, 75, + 145, 1407, 505, 1680, 1775, 147, 706, 146, 225, 76, + 543, 707, 157, 1432, 1206, 1812, 75, 1760, 722, 506, + 76, 1760, 207, 208, 214, 807, 1244, 1422, 1196, 1760, + 1670, 282, 1846, 1197, -242, 1448, 1672, 1423, 706, 1004, + 517, 1679, 1638, 707, 708, 709, 710, 711, 205, 860, + 861, 737, 1772, 216, 1775, 917, -242, 1848, 1073, 706, + 544, 1760, 878, -242, 707, 590, 808, 76, 1473, 876, + 1876, 245, 835, 1035, 1036, 1824, 1825, 221, 706, 708, + 709, 710, 711, 707, 76, 1665, 1185, 1762, 1760, 1228, + 1207, 1762, 220, 1760, 545, 357, 962, -242, 1715, 1762, + 706, 1775, 1847, 1229, 1680, 707, 1819, 719, 706, 1323, + 1666, 706, 546, 707, 98, 1719, 707, 951, 280, 280, + 280, 1248, 1545, 1493, 216, 216, 845, 1230, 473, 1849, + 280, 1762, 358, 473, 359, 706, 1775, 288, 1544, 1146, + 707, 515, 473, 1856, 1857, 199, 744, 214, 1039, 158, + 199, 100, 1854, 345, 1002, 1147, 346, 360, 1762, 708, + 709, 710, 711, 1762, 75, 150, 946, 150, 1667, 1624, + 1850, 1792, 1890, 706, 216, 562, 216, 1788, 707, 1537, + 289, 1231, 361, 1026, 1026, 1029, 1311, 745, 1062, 260, + 706, 281, 1447, 285, 846, 707, 239, 282, 1079, 282, + 1148, 347, 1058, 1061, 216, 225, 510, 1770, 1010, 1899, + 1388, 1256, -1000, 288, 1267, -1003, 1777, 1851, 1088, 1089, + 101, 1091, 1199, 1258, 1110, 1202, 1276, 1259, 288, 1149, + 102, 216, 216, 1282, 1260, 708, 709, 710, 711, 1261, + 492, 1262, 990, 1072, 261, 225, 51, 1297, 498, 1415, + 1066, 708, 709, 710, 711, 103, 911, 52, 1175, 1228, + 517, 1817, 1830, 1077, 53, 288, 1600, 265, 1460, 150, + 1283, 919, 288, 1229, 1470, 225, 225, 1007, 225, 150, + 1515, -712, 241, 708, 709, 710, 711, 1369, 1601, 54, + 1366, 1116, 382, 706, 1008, 1602, 1150, 1230, 707, 1831, + 387, -1023, 249, 553, 708, 709, 710, 711, 921, -1023, + 1093, 1367, 1832, 706, -1023, 923, 554, -1023, 707, 714, + 1104, 715, 1299, 708, 709, 710, 711, 1300, 273, 1603, + 1370, 1203, 266, 1299, 1185, 79, 80, 1200, 1303, 267, + 1185, 742, 207, 208, 1204, 708, 709, 710, 711, 1201, + 706, 1231, 1371, -1023, 55, 707, 708, 709, 710, 711, + 1793, 515, -1023, 1835, 1068, 1069, 706, 497, 1806, 1807, + -1023, 707, 274, 1004, 473, 199, 204, 473, 233, 128, + 708, 709, 710, 711, 275, 473, 56, 1373, 140, -1023, + 57, -1023, 776, 793, 279, 794, 706, 473, 473, 1866, + 1807, 707, 199, 463, 1518, -1023, 706, -1023, -1023, -1023, + 816, 707, 817, 151, 311, -1024, 1224, 295, 708, 709, + 710, 711, 321, -1024, 1734, 1374, 1228, 704, -1024, 944, + 324, -1024, 216, 1228, 343, 708, 709, 710, 711, 354, + 1229, 1673, 1375, 356, 1746, 152, 622, 1229, 1658, 626, + 1455, 1660, 979, 1097, 980, 1098, 1306, 706, -1023, 871, + 153, 1105, 707, 1196, 1230, 1198, 497, -1024, 1391, 365, + 1394, 1230, 1324, 1900, 1901, 706, -1024, 375, 1328, 214, + 707, 1477, 1288, 377, -1024, 1140, 463, 1144, 1663, 1152, + 1155, 1289, 1160, 1163, 1166, 1875, 379, 1288, 403, 404, + 405, 706, 1097, -1024, 1241, -1024, 707, 380, 216, 706, + 1399, 1399, 1402, 225, 707, 216, 1543, 383, 1231, -1024, + 1805, -1024, -1024, -1024, 384, 1231, 413, 414, 1246, 225, + 1247, 961, 468, 1185, 1185, 225, 475, -682, 708, 709, + 710, 711, 1429, 479, 1431, 1376, 480, 482, 1290, 1725, + 1291, -1023, -1023, -1023, -1023, -1023, -1023, -1023, 708, 709, + 710, 711, 1790, -1023, 296, -1023, -682, -682, 1295, -682, + 1296, 476, -1024, 704, 483, 1405, -682, -682, -682, -682, + -682, 1196, -682, 1495, 484, -682, -682, -682, -682, -682, + 704, 499, 1525, -682, -682, 708, 709, 710, 711, 297, + 486, 912, 1377, 916, 704, 1476, 1532, 920, 922, 924, + 814, 708, 709, 710, 711, 1826, 473, 1827, 473, 1838, + 706, 97, 501, 1840, -1025, 707, 1807, 298, 1894, 502, + 299, 1844, -1025, 511, 473, 521, 1889, -1025, 199, 528, + -1025, 708, 709, 710, 711, 539, 300, 14, 1378, 1630, + 542, 708, 709, 710, 711, 550, 1026, 769, 1516, 563, + 1183, 570, 98, 1864, 583, -1024, -1024, -1024, -1024, -1024, + -1024, -1024, 301, 1185, 99, 706, -1025, -1024, 587, -1024, + 707, 573, 706, 638, 642, -1025, 644, 707, 677, 678, + 1883, 679, 680, -1025, 681, 1885, 687, 1533, 682, 100, + 1823, 683, 708, 709, 710, 711, 1346, 684, 1458, 1517, + 706, 685, -1025, 1502, -1025, 707, -986, 686, 517, 688, + 708, 709, 710, 711, 706, 689, 713, 1524, -1025, 707, + -1025, -1025, -1025, 694, 695, 717, 1485, 704, 705, 712, + 1489, 731, -1003, 734, 722, 896, 708, 709, 710, 711, + 739, 739, 758, 706, 708, 709, 710, 711, 707, 762, + 763, 897, 741, 754, 766, 765, 767, 770, 101, 925, + 926, 927, 928, 929, 930, 931, 932, 771, 102, 783, + 775, -1025, 530, 778, 1868, 784, 786, 787, 1718, 796, + 820, 822, 821, -441, 280, 827, 832, 898, 833, 839, + 837, 840, 838, 103, 842, 1548, 899, 843, 848, 852, + 853, 1662, 858, 859, 900, 870, 868, 473, 214, 515, + 871, 939, 880, 881, 885, 199, 1399, 313, 879, 974, + 945, 975, 977, 901, 982, 902, 986, 1671, 1026, 998, + 987, 1014, 1021, 1023, 1005, 1018, 896, 1553, 1594, 903, + 517, 904, 905, 906, 706, 849, 150, 1037, 1042, 707, + 1047, 1048, 897, 1049, 799, 708, 709, 710, 711, 1057, + 1054, 1055, 1063, 1075, -1025, -1025, -1025, -1025, -1025, -1025, + -1025, 1064, 434, 1065, 1071, 1081, -1025, 1086, -1025, 1090, + 1095, 1100, 1113, 1112, 727, 1134, 1170, 1606, 898, 1182, + 706, 1223, 907, 1172, 489, 1174, 1194, 899, 1205, 1211, + 1214, 1207, 1227, 434, 1233, 900, 1235, 1677, 1249, 1252, + 708, 709, 710, 711, 1263, 1272, 1284, 708, 709, 710, + 711, 61, 1274, 1292, 901, 1713, 902, 1294, 1308, 1301, + 1304, 313, 62, 1305, 525, 1307, 1317, 527, 1106, 63, + 903, 515, 904, 905, 906, 708, 709, 710, 711, 1326, + 1329, 1319, 64, 1330, 894, 193, 1343, 1382, 1331, 708, + 709, 710, 711, 1689, 1116, 1116, 1338, 1714, 1332, 1339, + 1594, 1384, 1763, 1344, 1345, 1347, 1411, 1348, 1393, 1355, + 1356, 1412, 1357, 1358, 1360, 908, 909, 910, 708, 709, + 710, 711, 1361, 907, 1408, 946, 1362, 1363, 951, 1364, + 1365, 1406, 1409, 150, 1413, 1414, 1417, 1418, 196, 714, + 1428, 1425, 1430, 65, 1437, 1449, 1445, 1450, 1435, 1451, + 1452, 149, 1453, 1454, 1457, 1472, 1479, 150, 1484, 66, + 1765, 1727, 1488, 691, 1483, 1728, 1340, 696, 697, 701, + 1494, 1744, 1522, 1527, 1711, 1514, 67, 1523, 742, 1528, + 1538, 1597, 1607, 1609, 1610, 1612, 1611, 1613, 1616, 1614, + 1617, 68, 83, 1763, 1618, 69, 1626, 1763, 70, 84, + 1628, 1631, 517, 85, 86, 1763, 71, 1635, 1763, 199, + 1636, 1637, 87, 1639, 1640, 1664, 908, 909, 910, 708, + 709, 710, 711, 1116, 88, 72, 1675, 1641, 1642, -992, + 131, 736, 1674, 1693, 1797, 738, 1645, 1763, 1701, 1646, + 517, 1647, 1648, 1758, 1649, 149, 1650, 1651, 1652, 1653, + 1710, 150, 1654, 1656, 1682, 1683, 1685, 1686, 1700, 1702, + 1703, 1704, 1787, 1002, 1763, 1705, 1706, 1707, 150, 1763, + 1709, 1736, 517, 1741, 1694, 1766, 959, 1796, 1732, 1737, + 1804, 1820, 193, 1799, 1748, 517, 1818, 1759, 517, 89, + 1774, 1800, 1813, 1789, 1795, 1815, 1836, 517, 1839, 149, + 1810, 1822, 1811, 515, 1808, 150, 90, 1828, 1829, 159, + 1871, 1860, 1787, 1872, 1865, 1862, 1807, 1884, 150, 1881, + 1886, 91, 1861, 1887, 1893, 92, 1892, 1891, 1906, 1904, + 1907, 467, 1594, 1396, 137, 474, 93, 485, 976, 216, + 1327, 515, 1111, 1325, 1251, 149, 869, 1620, 1313, 1015, + 834, 150, 566, 534, 1787, 94, 1314, 1002, 551, 1619, + 150, 519, 1052, 196, 1321, 1129, 1599, 1739, 1130, 1605, + 1594, 1809, 388, 515, 1816, 597, 568, 1814, 1045, 1439, + 1853, 389, 1803, 1791, 1756, 1842, 515, 1242, 1773, 515, + 1541, 196, 1421, 558, 390, 574, 819, 1087, 515, 549, + 391, 392, 1594, 1469, 893, 1078, 138, 749, 856, 512, + 753, 1006, 1017, 293, 1226, 1594, 1000, 1116, 1594, 1735, + 1668, 434, 1859, 196, 196, 918, 43, 1594, 393, 1834, + 44, 394, 934, 47, 761, 983, 1219, 941, 434, 1351, + 104, 1386, 1434, 1302, 1708, 0, 815, 434, 948, 250, + 952, 953, 954, 955, 956, 948, 1688, 0, 0, 396, + 397, 0, 0, 0, 0, 0, 0, 0, 0, 105, + 106, 398, 107, 0, 0, 399, 0, 0, 97, 108, + 109, 110, 111, 112, 434, 113, 0, 0, 114, 115, + 116, 117, 118, 0, 0, 0, 119, 120, 0, 0, + 0, 0, 0, 0, 0, 434, 0, 960, 0, 0, + 525, 0, 1020, 0, 0, 0, 0, 1491, 1492, 98, + 0, 0, 0, 1496, 1497, 0, 1499, 1500, 0, 0, + 1131, 99, 400, 0, 1504, 1505, 1506, 1507, 401, 1508, + 1509, 1510, 1511, 1512, 1513, 133, 0, 0, 402, 0, + 0, 0, 0, 0, 0, 0, 100, 0, 0, 0, + 0, 0, 403, 404, 405, 406, 207, 208, 0, 0, + 0, 0, 0, 0, 0, 0, 407, 0, 0, 799, + 0, 0, 0, 0, 0, 408, 409, 410, 411, 412, + 413, 414, 415, 416, 105, 417, 0, 107, 0, 0, + 418, 419, 0, 420, 421, 422, 110, 111, 112, 423, + 113, 0, 0, 114, 115, 116, 117, 118, 0, 0, + 0, 119, 120, 0, 0, 101, 0, 0, 0, 0, + 424, 425, 0, 0, 0, 102, 488, 0, 427, 1127, + 1128, 1133, 282, 0, 1141, 1142, 1145, 0, 1153, 1156, + 1158, 1161, 1164, 1167, 1168, 1169, 0, 1171, 0, 1173, + 103, 0, 1176, 1177, 1178, 1179, 1180, 1181, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 104, 434, + 0, 0, 1188, 565, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 105, 106, 0, + 107, 0, 0, 0, 0, 0, 0, 108, 109, 110, + 111, 112, 0, 113, 0, 434, 114, 115, 116, 117, + 118, 0, 0, 0, 119, 120, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 14, 0, 0, 0, + 0, 0, 0, 0, 0, 104, 0, 1139, 0, 0, + 1130, 0, 0, 0, 388, 0, 0, 0, 0, 0, + 0, 0, 0, 389, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 105, 106, 390, 107, 0, 104, + 0, 0, 391, 392, 108, 109, 110, 111, 112, 0, + 113, 0, 0, 114, 115, 116, 117, 118, 0, 0, + 0, 119, 120, 0, 0, 0, 0, 0, 105, 106, + 393, 107, 0, 394, 0, 0, 261, 0, 108, 109, + 110, 111, 112, 0, 113, 0, 0, 114, 115, 116, + 117, 118, 0, 0, 0, 119, 120, 0, 0, 0, + 0, 396, 397, 0, 0, 0, 104, 0, 0, 0, + 991, 0, 0, 398, 0, 0, 0, 399, 97, 0, + 0, 0, 0, 0, 0, 0, 0, 948, 0, 0, + 0, 0, 0, 0, 0, 105, 106, 0, 107, 1349, + 1350, 0, 1352, 1354, 0, 108, 109, 110, 111, 112, + 1359, 113, 0, 0, 114, 115, 116, 117, 118, 98, + 0, 0, 119, 120, 0, 0, 0, 1372, 0, 0, + 0, 99, 1131, 0, 400, 1379, 1380, 434, 0, 0, + 401, 0, 0, 434, 0, 1188, 1387, 434, 1389, 1390, + 402, 0, 0, 0, 0, 0, 100, 0, 0, 0, + 0, 0, 0, 0, 403, 404, 405, 406, 207, 208, + 434, 0, 0, 0, 0, 0, 0, 0, 407, 0, + 0, 0, 0, 0, 0, 0, 434, 408, 409, 410, + 411, 412, 413, 414, 415, 416, 105, 417, 0, 107, + 391, 0, 418, 419, 0, 420, 421, 422, 110, 111, + 112, 423, 113, 0, 0, 114, 115, 116, 117, 118, + 1440, 0, 0, 119, 120, 101, 0, 0, 393, 0, + 0, 0, 424, 425, 0, 102, 0, 0, 488, 0, + 427, 0, 0, 0, 282, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 395, 0, 1143, + 103, 0, 1130, 0, 0, 0, 388, 0, 0, 434, + 0, 0, 0, 0, 0, 389, 0, 0, 104, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 390, 0, + 1490, 0, 0, 0, 391, 392, 0, 0, 0, 1498, + 0, 0, 0, 0, 0, 0, 1503, 105, 106, 0, + 107, 0, 0, 0, 0, 0, 0, 108, 109, 110, + 111, 112, 393, 113, 0, 394, 114, 115, 116, 117, + 118, 0, 400, 0, 119, 120, 434, 434, 0, 0, + 0, 0, 0, 0, 571, 0, 0, 0, 402, 0, + 0, 0, 0, 396, 397, 0, 0, 0, 0, 0, + 0, 0, 403, 404, 405, 398, 207, 208, 0, 399, + 1536, 0, 0, 598, 0, 0, 0, 599, 0, 0, + 0, 0, 0, 0, 0, 408, 409, 410, 411, 412, + 413, 414, 415, 416, 0, 600, 0, 0, 601, 0, + 418, 419, 0, 0, 0, 0, 0, 0, 0, 423, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 1131, 0, 400, 0, 0, 0, + 0, 1254, 401, 0, 0, 0, 0, 0, 0, 602, + 0, 0, 402, 0, 0, 603, 604, 605, 0, 606, + 607, 608, 0, 609, 1643, 1644, 403, 404, 405, 406, + 207, 208, 0, 0, 0, 0, 0, 0, 0, 0, + 407, 1655, 0, 610, 0, 611, 434, 0, 0, 408, + 409, 410, 411, 412, 413, 414, 415, 416, 105, 417, + 0, 107, 963, 0, 418, 419, 0, 420, 421, 422, + 110, 111, 112, 423, 113, 0, 612, 114, 115, 116, + 117, 118, 1684, 0, 0, 119, 120, 104, 0, 1151, + 0, 0, 1130, 613, 424, 425, 388, 0, 0, 0, + 488, 0, 427, 0, 0, 389, 282, 0, 0, 0, + 0, 0, 0, 0, 0, 614, 105, 106, 390, 107, + 0, 0, 0, 0, 391, 392, 108, 109, 110, 111, + 112, 0, 113, 0, 0, 114, 115, 116, 117, 118, + 0, 0, 0, 119, 120, 0, 0, 0, 0, 0, + 615, 616, 393, 1726, 0, 394, 0, 0, 0, 0, + 0, 1729, 0, 0, 0, 0, 0, 617, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 966, 0, 0, + 0, 0, 0, 396, 397, 0, 1154, 1536, 0, 1130, + 0, 0, 0, 388, 104, 398, 0, 0, 0, 399, + 1743, 0, 389, 0, 1745, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 390, 0, 0, 0, 0, + 0, 391, 392, 105, 106, 0, 107, 0, 0, 0, + 0, 0, 0, 108, 109, 110, 111, 112, 0, 113, + 0, 0, 114, 115, 116, 117, 118, 0, 0, 393, + 119, 120, 394, 0, 1131, 0, 400, 0, 0, 0, + 0, 0, 401, 0, 0, 0, 0, 434, 0, 0, + 0, 0, 402, 0, 0, 0, 0, 0, 0, 0, + 396, 397, 0, 0, 0, 0, 403, 404, 405, 406, + 207, 208, 398, 0, 0, 0, 399, 0, 0, 0, + 407, 0, 0, 0, 0, 0, 0, 0, 0, 408, + 409, 410, 411, 412, 413, 414, 415, 416, 105, 417, + 0, 107, 0, 0, 418, 419, 1843, 420, 421, 422, + 110, 111, 112, 423, 113, 0, 0, 114, 115, 116, + 117, 118, 0, 0, 0, 119, 120, 0, 0, 0, + 0, 1131, 0, 400, 424, 425, 0, 0, 0, 401, + 488, 0, 427, 0, 0, 0, 282, 0, 0, 402, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 403, 404, 405, 406, 207, 208, 0, + 0, 0, 0, 963, 0, 0, 0, 407, 0, 0, + 0, 0, 0, 0, 0, 0, 408, 409, 410, 411, + 412, 413, 414, 415, 416, 105, 417, 0, 107, 0, + 0, 418, 419, 0, 420, 421, 422, 110, 111, 112, + 423, 113, 0, 0, 114, 115, 116, 117, 118, 0, + 0, 0, 119, 120, 104, 0, 1159, 0, 0, 1130, + 0, 424, 425, 388, 0, 0, 0, 488, 0, 427, + 0, 0, 389, 282, 0, 0, 0, 964, 0, 0, + 0, 0, 0, 105, 106, 390, 107, 0, 0, 0, + 0, 391, 392, 108, 109, 110, 111, 112, 0, 113, + 0, 0, 114, 115, 116, 117, 118, 0, 0, 0, + 119, 120, 0, 965, 0, 0, 0, 0, 966, 393, + 0, 0, 394, 0, 967, 1863, 0, 427, 0, 0, + 0, 0, 0, 0, 0, 104, 0, 0, 0, 0, + 0, 0, 0, 968, 0, 0, 0, 0, 0, 0, + 396, 397, 0, 1162, 0, 0, 1130, 0, 0, 0, + 388, 0, 398, 0, 105, 106, 399, 107, 0, 389, + 0, 0, 0, 0, 108, 109, 110, 111, 112, 0, + 113, 0, 390, 114, 115, 116, 117, 118, 391, 392, + 0, 119, 120, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 393, 0, 0, 394, + 0, 1131, 0, 400, 0, 0, 0, 0, 0, 401, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 402, + 0, 0, 0, 0, 0, 0, 0, 396, 397, 0, + 0, 0, 0, 403, 404, 405, 406, 207, 208, 398, + 0, 0, 0, 399, 0, 0, 0, 407, 0, 0, + 0, 0, 0, 0, 0, 0, 408, 409, 410, 411, + 412, 413, 414, 415, 416, 105, 417, 0, 107, 0, + 0, 418, 419, 0, 420, 421, 422, 110, 111, 112, + 423, 113, 0, 0, 114, 115, 116, 117, 118, 0, + 0, 0, 119, 120, 0, 0, 0, 0, 1131, 0, + 400, 424, 425, 0, 1665, 0, 401, 488, 0, 427, + 0, 0, 0, 282, 0, 0, 402, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1666, + 403, 404, 405, 406, 207, 208, 0, 0, 0, 0, + 0, 0, 0, 0, 407, 0, 0, 0, 0, 0, + 0, 0, 0, 408, 409, 410, 411, 412, 413, 414, + 415, 416, 105, 417, 0, 107, 0, 0, 418, 419, + 0, 420, 421, 422, 110, 111, 112, 423, 113, 0, + 0, 114, 115, 116, 117, 118, 0, 1667, 0, 119, + 120, 0, 0, 1165, 0, 0, 1130, 0, 424, 425, + 388, 0, 0, 0, 488, 0, 427, 0, 0, 389, + 282, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 104, 390, 0, 0, 0, 0, 0, 391, 392, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 105, 106, 0, 107, 0, 0, 393, 0, 0, 394, + 108, 109, 110, 111, 112, 464, 113, 0, 0, 114, + 115, 116, 117, 118, 0, 0, 0, 119, 120, 0, + 0, 0, 0, 0, 0, 0, 0, 396, 397, 0, + 0, 104, 0, 0, 0, 0, 0, 388, 0, 398, + 0, 0, 0, 399, 0, 469, 389, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 390, + 105, 106, 104, 107, 0, 391, 392, 0, 0, 0, + 108, 109, 110, 111, 112, 0, 113, 0, 0, 114, + 115, 116, 117, 118, 655, 0, 0, 119, 120, 0, + 0, 105, 106, 393, 107, 0, 394, 0, 1131, 0, + 400, 108, 109, 110, 111, 112, 401, 113, 0, 0, + 114, 115, 116, 117, 118, 0, 402, 0, 119, 120, + 0, 0, 0, 0, 396, 397, 0, 0, 0, 0, + 403, 404, 405, 406, 207, 208, 398, 0, 0, 0, + 399, 0, 0, 0, 407, 0, 0, 0, 886, 0, + 0, 0, 0, 408, 409, 410, 411, 412, 413, 414, + 415, 416, 105, 417, 0, 107, 0, 0, 418, 419, + 0, 420, 421, 422, 110, 111, 112, 423, 113, 1437, + 0, 114, 115, 116, 117, 118, 0, 698, 0, 119, + 120, 657, 0, 0, 0, 0, 0, 400, 424, 425, + 0, 0, 0, 401, 488, 0, 427, 0, 0, 6, + 282, 0, 0, 402, 0, 0, -291, 0, 0, 0, + 1554, 1555, 0, 1556, 0, 0, 0, 403, 404, 405, + 406, 207, 208, 0, 0, 0, 0, 0, 0, 0, + 1557, 407, 0, 0, 0, 0, 1558, 0, 0, 0, + 408, 409, 410, 411, 412, 413, 414, 415, 416, 105, + 417, 0, 107, 0, 0, 418, 419, 0, 420, 421, + 422, 110, 111, 112, 423, 113, 0, 0, 114, 115, + 116, 117, 118, 887, 888, 889, 119, 120, 388, 0, + 0, 0, 0, 0, 0, 424, 425, 389, 0, 0, + 0, 661, 0, 427, 0, 0, 1559, 282, 0, 0, + 390, 0, 0, 654, 0, 0, 391, 392, 0, 0, + 0, 0, 0, 0, 0, 14, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 655, 0, 0, 0, 0, + 1560, 0, 0, 0, 393, 0, 0, 394, 0, 0, + 16, 0, 0, 0, 0, 0, 0, 0, 0, 1694, + 0, 0, 0, 0, 0, 0, 0, 0, 104, 0, + 0, 0, 0, 0, 388, 396, 397, 0, 0, 0, + 0, 0, 0, 389, 0, 0, 0, 398, 0, 0, + 0, 399, 0, 0, 0, 0, 390, 1561, 106, 656, + 107, 0, 391, 392, 0, 0, 0, 108, 109, 110, + 111, 112, 0, 113, 0, 0, 114, 1562, 116, 117, + 118, 655, 0, 0, 119, 120, 1563, 1564, 1565, 0, + 393, 0, 0, 394, 0, 0, 0, 0, 0, 0, + 0, 0, 657, 0, 0, 0, 0, 0, 400, 0, + 0, 0, 0, 0, 401, 0, 0, 0, 0, 0, + 0, 396, 397, 0, 402, 0, 0, 0, 0, 0, + 0, 0, 0, 398, 0, 0, 0, 399, 403, 404, + 405, 406, 207, 208, 0, 882, 0, 0, 0, 0, + 0, 0, 407, 0, 0, 0, 0, 0, 0, 0, + 0, 408, 409, 410, 411, 412, 413, 414, 415, 416, + 105, 417, 0, 107, 0, 0, 418, 419, 0, 420, + 421, 422, 110, 111, 112, 423, 113, 0, 657, 114, + 115, 658, 659, 660, 400, 0, 0, 119, 120, 0, + 401, 0, 0, 0, 0, 0, 424, 425, 0, 0, + 402, 0, 661, 0, 427, 0, 0, 0, 282, 0, + 0, 0, 0, 0, 403, 404, 405, 406, 207, 208, + 0, 0, 0, 0, 0, 0, 0, 0, 407, 0, + 0, 0, 0, 0, 0, 0, 0, 408, 409, 410, + 411, 412, 413, 414, 415, 416, 105, 417, 0, 107, + 0, 0, 418, 419, 0, 420, 421, 422, 110, 111, + 112, 423, 113, 388, 0, 114, 115, 658, 659, 660, + 0, 0, 389, 119, 120, 104, 0, 0, 0, 0, + 0, 0, 424, 425, 0, 390, 0, 0, 661, 0, + 427, 391, 392, 0, 282, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 105, 106, 0, 107, 0, 0, + 655, 0, 0, 0, 108, 109, 110, 111, 112, 393, + 113, 0, 394, 114, 115, 116, 117, 118, 0, 0, + 0, 119, 120, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 104, 0, 0, 0, 0, 427, 388, + 396, 397, 0, 0, 0, 0, 0, 0, 389, 0, + 0, 0, 398, 0, 0, 0, 399, 0, 0, 0, + 0, 390, 105, 106, 656, 107, 0, 391, 392, 0, + 0, 0, 108, 109, 110, 111, 112, 0, 113, 0, + 0, 114, 115, 116, 117, 118, 655, 0, 0, 119, + 120, 0, 0, 0, 0, 393, 0, 0, 394, 0, + 0, 0, 0, 0, 991, 0, 0, 657, 0, 0, + 0, 0, 0, 400, 0, 0, 0, 0, 0, 401, + 0, 0, 0, 0, 0, 0, 396, 397, 0, 402, + 0, 0, 0, 0, 0, 0, 0, 0, 398, 0, + 0, 0, 399, 403, 404, 405, 406, 207, 208, 0, + 882, 0, 0, 0, 0, 0, 0, 407, 0, 0, + 0, 0, 0, 0, 0, 0, 408, 409, 410, 411, + 412, 413, 414, 415, 416, 105, 417, 0, 107, 0, + 0, 418, 419, 0, 420, 421, 422, 110, 111, 112, + 423, 113, 0, 657, 114, 115, 658, 659, 660, 400, + 0, 0, 119, 120, 0, 401, 0, 0, 0, 0, + 0, 424, 425, 0, 0, 402, 0, 661, 0, 427, + 0, 0, 0, 282, 0, 0, 0, 0, 0, 403, + 404, 405, 406, 207, 208, 0, 0, 0, 0, 0, + 0, 0, 0, 407, 0, 0, 0, 0, 0, 0, + 0, 0, 408, 409, 410, 411, 412, 413, 414, 415, + 416, 105, 417, 0, 107, 0, 0, 418, 419, 0, + 420, 421, 422, 110, 111, 112, 423, 113, 388, 0, + 114, 115, 116, 117, 118, 0, 0, 389, 119, 120, + 104, 0, 0, 0, 0, 0, 0, 424, 425, 0, + 390, 0, 0, 661, 0, 427, 391, 392, 0, 282, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 105, + 106, 0, 107, 0, 0, 0, 0, 0, 0, 108, + 109, 110, 111, 112, 393, 113, 0, 394, 114, 115, + 116, 117, 118, 0, 0, 0, 119, 120, 0, 0, + 104, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 1720, 0, 395, 0, 396, 397, 0, 0, 0, + 0, 0, 0, 0, 0, 388, 0, 398, 0, 105, + 106, 399, 107, 0, 389, 0, 0, 0, 0, 108, + 109, 110, 111, 112, 0, 113, 0, 390, 114, 115, + 116, 117, 118, 391, 392, 0, 119, 120, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 1676, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 393, 0, 0, 394, 0, 0, 0, 400, 0, + 0, 0, 0, 0, 401, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 402, 0, 0, 0, 0, 0, + 395, 0, 396, 397, 0, 0, 0, 0, 403, 404, + 405, 406, 207, 208, 398, 0, 0, 0, 399, 0, + 0, 0, 407, 0, 0, 0, 0, 0, 0, 0, + 0, 408, 409, 410, 411, 412, 413, 414, 415, 416, + 105, 417, 0, 107, 0, 0, 418, 419, 0, 420, + 421, 422, 110, 111, 112, 423, 113, 1437, 0, 114, + 115, 116, 117, 118, 0, 698, 0, 119, 120, 0, + 0, 0, 0, 0, 0, 400, 424, 425, 493, 0, + 0, 401, 488, 0, 427, 0, 0, 6, 282, 0, + 0, 402, 0, 0, -293, 0, 0, 0, 1554, 1555, + 0, 1556, 0, 0, 0, 403, 404, 405, 406, 207, + 208, 0, 0, 0, 0, 0, 0, 0, 1557, 407, + 0, 0, 0, 0, 1558, 0, 0, 0, 408, 409, + 410, 411, 412, 413, 414, 415, 416, 105, 417, 0, + 107, 0, 0, 418, 419, 0, 420, 421, 422, 110, + 111, 112, 423, 113, 388, 0, 114, 115, 116, 117, + 118, 0, 0, 389, 119, 120, 0, 0, 0, 0, + 0, 0, 0, 424, 425, 0, 390, 0, 0, 488, + 0, 427, 391, 392, 1559, 282, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 14, 0, 0, 0, 0, 0, 0, + 393, 0, 0, 394, 0, 0, 0, 0, 1560, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 16, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 395, + 0, 396, 397, 0, 0, 0, 104, 0, 0, 0, + 0, 388, 0, 398, 0, 0, 0, 399, 0, 0, + 389, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 390, 0, 1561, 106, 0, 107, 391, + 392, 0, 0, 0, 0, 108, 109, 110, 111, 112, + 0, 113, 0, 0, 114, 1562, 116, 117, 118, 0, + 0, 0, 119, 120, 1563, 1564, 1565, 393, 0, 0, + 394, 0, 0, 0, 400, 0, 0, 0, 0, 0, + 401, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 402, 0, 0, 0, 0, 0, 0, 0, 396, 397, + 0, 0, 0, 0, 403, 404, 405, 406, 207, 208, + 398, 0, 0, 0, 399, 0, 0, 0, 407, 0, + 0, 0, 0, 0, 0, 0, 0, 408, 409, 410, + 411, 412, 413, 414, 415, 416, 105, 417, 0, 107, + 0, 0, 418, 419, 0, 420, 421, 422, 110, 111, + 112, 423, 113, 0, 0, 114, 115, 116, 117, 118, + 0, 0, 0, 119, 120, 0, 0, 0, 0, 0, + 0, 400, 424, 425, 0, 0, 0, 401, 426, 0, + 427, 0, 0, 0, 282, 0, 0, 402, 0, 0, + 0, 0, 0, 0, 0, 690, 0, 0, 0, 0, + 0, 403, 404, 405, 406, 207, 208, 0, 0, 0, + 0, 0, 0, 0, 0, 407, 0, 0, 0, 0, + 0, 0, 0, 0, 408, 409, 410, 411, 412, 413, + 414, 415, 416, 105, 417, 0, 107, 0, 0, 418, + 419, 0, 420, 421, 422, 110, 111, 112, 423, 113, + 388, 0, 114, 115, 116, 117, 118, 0, 0, 389, + 119, 120, 104, 0, 0, 0, 0, 0, 0, 424, + 425, 0, 390, 0, 0, 488, 0, 427, 391, 392, + 0, 282, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 105, 106, 0, 107, 0, 0, 0, 0, 0, + 0, 108, 109, 110, 111, 112, 393, 113, 0, 394, + 114, 115, 116, 117, 118, 0, 0, 0, 119, 120, + 0, 0, 0, 0, 0, 75, 0, 104, 0, 0, + 0, 1687, 0, 0, 0, 0, 388, 396, 397, 0, + 0, 0, 0, 0, 0, 389, 0, 0, 0, 398, + 0, 0, 0, 399, 0, 0, 105, 106, 390, 107, + 0, 0, 0, 0, 391, 392, 108, 109, 110, 111, + 112, 0, 113, 0, 0, 114, 115, 116, 117, 118, + 0, 0, 0, 119, 120, 0, 0, 0, 0, 0, + 0, 0, 393, 76, 0, 394, 0, 0, 0, 0, + 698, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 400, 0, 0, 0, 0, 0, 401, 0, 0, 0, + 0, 395, 0, 396, 397, 0, 402, 0, 0, 0, + 0, 0, 0, 0, 0, 398, 0, 0, 0, 399, + 403, 404, 405, 406, 207, 208, 0, 0, 0, 0, + 0, 0, 0, 0, 407, 0, 0, 0, 0, 0, + 0, 0, 0, 408, 409, 410, 411, 412, 413, 414, + 415, 416, 105, 417, 0, 107, 0, 0, 418, 419, + 0, 420, 421, 422, 110, 111, 112, 423, 113, 0, + 0, 114, 115, 116, 117, 118, 400, 0, 0, 119, + 120, 0, 401, 0, 0, 0, 0, 0, 424, 425, + 0, 0, 402, 0, 488, 0, 427, 0, 0, 0, + 282, 0, 0, 0, 0, 0, 403, 404, 405, 406, + 207, 208, 0, 0, 0, 0, 0, 0, 0, 0, + 407, 0, 0, 0, 0, 0, 0, 0, 0, 408, + 409, 410, 411, 412, 413, 414, 415, 416, 105, 417, + 0, 107, 0, 0, 418, 419, 0, 420, 421, 422, + 110, 111, 112, 423, 113, 388, 0, 114, 115, 116, + 117, 118, 0, 0, 389, 119, 120, 104, 0, 0, + 0, 0, 0, 0, 424, 425, 0, 390, 0, 0, + 488, 0, 427, 391, 392, 0, 282, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 105, 106, 0, 107, + 0, 0, 0, 0, 0, 0, 108, 109, 110, 111, + 112, 393, 113, 0, 394, 114, 115, 116, 117, 118, + 0, 0, 0, 119, 120, 0, 0, 0, 0, 0, + 0, 0, 104, 0, 960, 0, 0, 0, 0, 0, + 0, 388, 396, 397, 0, 0, 0, 0, 0, 0, + 389, 0, 0, 0, 398, 0, 0, 0, 399, 0, + 0, 105, 106, 390, 107, 0, 0, 0, 0, 391, + 392, 108, 109, 110, 111, 112, 0, 113, 0, 0, + 114, 115, 116, 117, 118, 0, 0, 0, 119, 120, + 0, 0, 0, 0, 0, 0, 0, 393, 0, 0, + 394, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 400, 0, 0, 0, 0, + 0, 401, 0, 0, 0, 0, 0, 0, 396, 397, + 0, 402, 0, 0, 0, 0, 0, 0, 0, 0, + 398, 0, 0, 0, 399, 403, 404, 405, 406, 207, + 208, 0, 0, 0, 0, 0, 0, 0, 0, 407, + 0, 0, 0, 0, 0, 0, 0, 0, 408, 409, + 410, 411, 412, 413, 414, 415, 416, 105, 417, 0, + 107, 0, 0, 418, 419, 0, 420, 421, 422, 110, + 111, 112, 423, 113, 0, 0, 114, 115, 116, 117, + 118, 400, 0, 0, 119, 120, 0, 401, 0, 0, + 0, 0, 0, 424, 425, 0, 0, 402, 0, 488, + 957, 427, 0, 0, 0, 282, 0, 0, 1157, 0, + 0, 403, 404, 405, 406, 207, 208, 0, 0, 0, + 0, 0, 0, 0, 0, 407, 0, 0, 0, 0, + 0, 0, 0, 0, 408, 409, 410, 411, 412, 413, + 414, 415, 416, 105, 417, 0, 107, 0, 0, 418, + 419, 0, 420, 421, 422, 110, 111, 112, 423, 113, + 388, 0, 114, 115, 116, 117, 118, 0, 0, 389, + 119, 120, 0, 0, 0, 0, 0, 0, 0, 424, + 425, 0, 390, 0, 0, 488, 0, 427, 391, 392, + 0, 282, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 393, 0, 0, 394, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 388, 396, 397, 0, + 0, 0, 0, 0, 0, 389, 0, 0, 0, 398, + 0, 0, 0, 399, 0, 0, 0, 0, 390, 0, + 0, 0, 0, 0, 391, 392, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 393, 0, 0, 394, 0, 0, 0, 0, + 1340, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 400, 0, 0, 0, 0, 0, 401, 0, 0, 0, + 0, 0, 0, 396, 397, 0, 402, 0, 0, 0, + 0, 0, 0, 0, 0, 398, 0, 0, 0, 399, + 403, 404, 405, 406, 207, 208, 0, 0, 0, 0, + 0, 0, 0, 0, 407, 0, 0, 0, 0, 0, + 0, 0, 0, 408, 409, 410, 411, 412, 413, 414, + 415, 416, 105, 417, 0, 107, 0, 0, 418, 419, + 0, 420, 421, 422, 110, 111, 112, 423, 113, 0, + 0, 114, 115, 116, 117, 118, 400, 0, 0, 119, + 120, 0, 401, 0, 0, 0, 0, 0, 424, 425, + 0, 0, 402, 0, 488, 0, 427, 0, 0, 0, + 282, 0, 0, 1353, 0, 0, 403, 404, 405, 406, + 207, 208, 0, 0, 0, 0, 0, 0, 0, 0, + 407, 0, 0, 0, 0, 0, 0, 0, 0, 408, + 409, 410, 411, 412, 413, 414, 415, 416, 105, 417, + 0, 107, 0, 0, 418, 419, 0, 420, 421, 422, + 110, 111, 112, 423, 113, 388, 0, 114, 115, 116, + 117, 118, 0, 0, 389, 119, 120, 0, 0, 0, + 0, 0, 0, 0, 424, 425, 0, 390, 0, 0, + 488, 0, 427, 391, 392, 0, 282, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 393, 0, 0, 394, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 396, 397, 0, 0, 0, 0, 0, 0, + 0, 0, 388, 0, 398, 0, 0, 0, 399, 0, + 0, 389, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 390, 0, 0, 0, 0, 0, + 391, 392, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 393, 0, + 0, 394, 0, 0, 0, 400, 0, 0, 0, 0, + 0, 401, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 402, 0, 0, 0, 0, 0, 0, 0, 396, + 397, 0, 0, 0, 0, 403, 404, 405, 406, 207, + 208, 398, 0, 0, 0, 399, 0, 0, 0, 407, + 0, 0, 0, 0, 0, 0, 0, 0, 408, 409, + 410, 411, 412, 413, 414, 415, 416, 105, 417, 0, + 107, 0, 0, 418, 419, 0, 420, 421, 422, 110, + 111, 112, 423, 113, 1437, 0, 114, 115, 116, 117, + 118, 0, 0, 0, 119, 120, 0, 0, 0, 0, + 0, 0, 400, 424, 425, 0, 0, 1742, 401, 488, + 0, 427, 0, 0, 6, 282, 0, 0, 402, 0, + 0, 0, 0, 0, 0, 1554, 1555, 0, 1556, 0, + 0, 0, 403, 404, 405, 406, 207, 208, 0, 0, + 0, 0, 0, 0, 0, 1557, 407, 0, 0, 0, + 0, 1558, 0, 0, 0, 408, 409, 410, 411, 412, + 413, 414, 415, 416, 105, 417, 0, 107, 0, 0, + 418, 419, 0, 420, 421, 422, 110, 111, 112, 423, + 113, 0, 0, 114, 115, 116, 117, 118, 0, 0, + 0, 119, 120, 0, 0, 1, 0, 0, 0, 0, + 424, 425, 0, 0, 0, 0, 488, 0, 427, 0, + 0, 1559, 282, 0, 0, 0, 2, 0, 0, 0, + 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, + 14, 4, 0, 5, 0, 6, 0, 0, 0, 0, + 7, 0, 0, 0, 0, 1560, 0, 8, 0, 0, + 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, + 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 10, 104, 0, 0, 0, 0, 0, 0, + 0, 0, 598, 0, 0, 0, 599, 0, 0, 0, + 0, 0, 0, 799, 0, 0, 0, 0, 0, 0, + 0, 0, 1561, 106, 600, 107, 0, 601, 0, 0, + 0, 0, 108, 109, 110, 111, 112, 0, 113, 0, + 0, 114, 1562, 116, 117, 118, 0, 0, 0, 119, + 120, 1563, 1564, 1565, 0, 0, 0, 0, 0, 11, + 0, 0, 0, 0, 0, 0, 12, 0, 602, 13, + 0, 14, 15, 0, 603, 604, 605, 0, 606, 607, + 608, 0, 609, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 16, 0, 0, 0, + 0, 0, 610, 598, 611, 0, 0, 599, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 600, 0, 0, 601, 0, + 0, 0, 0, 0, 0, 612, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 17, 0, 0, 0, 0, + 0, 0, 613, 0, 0, 0, 0, 0, 0, 0, + 18, 19, 0, 0, 0, 0, 0, 0, 0, 602, + 0, 0, 0, 0, 614, 603, 604, 605, 0, 606, + 607, 608, 0, 609, 0, 0, 0, 0, 0, 104, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 610, 0, 611, 0, 0, 0, 615, + 616, 0, 0, 0, 0, 0, 0, 0, 105, 106, + 0, 107, 0, 0, 0, 0, 617, 0, 108, 109, + 110, 111, 112, 0, 113, 0, 612, 114, 115, 116, + 117, 118, 0, 0, 0, 119, 120, 0, 0, 0, + 0, 0, 0, 613, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 614, 0, 872, 0, 0, + 0, 599, 0, 0, 0, 0, 0, 0, 0, 0, + 104, 0, 0, 0, 0, 873, 0, 0, 0, 600, + 0, 0, 601, 0, 0, 0, 0, 0, 0, 0, + 615, 616, 0, 0, 0, 0, 0, 0, 0, 105, + 106, 0, 107, 0, 0, 0, 0, 617, 0, 108, + 109, 110, 111, 112, 0, 113, 0, 0, 114, 115, + 116, 117, 118, 602, 0, 0, 119, 120, 0, 603, + 604, 605, 0, 606, 607, 608, 0, 609, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 104, 0, 0, 0, 0, 610, 0, 611, + 0, 163, 164, 165, 166, 167, 168, 169, 170, 171, + 172, 173, 174, 175, 176, 177, 178, 0, 0, 179, + 180, 105, 106, 0, 107, 0, 0, 181, 182, 0, + 612, 108, 109, 110, 111, 112, 183, 113, 184, 0, + 114, 115, 116, 117, 118, 0, 0, 613, 119, 120, + 185, 186, 187, 188, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 614, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 615, 616, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 617 +}; + +static const short yycheck[] = +{ + 9, 16, 4, 12, 54, 0, 63, 16, 55, 18, + 149, 62, 103, 139, 140, 513, 713, 139, 140, 66, + 290, 362, 426, 366, 62, 525, 366, 84, 72, 358, + 557, 690, 559, 69, 337, 881, 90, 93, 88, 885, + 567, 87, 89, 52, 53, 54, 55, 56, 57, 96, + 94, 61, 499, 62, 63, 64, 92, 66, 567, 68, + 69, 698, 71, 72, 774, 476, 763, 82, 1049, 383, + 67, 80, 943, 82, 83, 84, 91, 86, 87, 88, + 89, 335, 91, 92, 93, 94, 371, 96, 56, 731, + 727, 650, 130, 90, 132, 330, 1043, 153, 144, 1271, + 68, 284, 1049, 835, 151, 643, 766, 268, 1043, 311, + 981, 991, 1043, 1436, 1049, 712, 866, 278, 1049, 1043, + 1050, 130, 131, 132, 1043, 1049, 1043, 1099, 1076, 1059, + 1049, 1213, 1049, 1264, 1094, 144, 796, 157, 6, 223, + 149, 232, 151, 152, 153, 805, 1389, 808, 157, 10, + 8, 10, 1082, 8, 1569, 731, 23, 8, 1184, 8, + 482, 1404, 1477, 131, 1190, 656, 50, 8, 15, 8, + 661, 50, 311, 64, 656, 20, 1205, 66, 1207, 1310, + 46, 49, 192, 103, 152, 8, 1319, 1234, 9, 6, + 8, 274, 533, 26, 47, 64, 6, 198, 31, 859, + 8, 8, 1269, 26, 8, 66, 157, 217, 31, 84, + 160, 1658, 94, 1660, 543, 544, 545, 546, 12, 24, + 193, 103, 3, 261, 567, 3, 29, 567, 319, 1100, + 46, 315, 204, 518, 133, 894, 895, 58, 98, 151, + 1563, 1564, 740, 204, 151, 295, 5, 47, 69, 1856, + 1857, 592, 261, 8, 239, 240, 265, 16, 170, 268, + 269, 163, 53, 54, 124, 274, 12, 53, 54, 278, + 231, 26, 4, 311, 132, 276, 31, 132, 1725, 938, + 1240, 132, 98, 132, 598, 17, 295, 186, 190, 1420, + 299, 132, 1899, 132, 821, 202, 26, 265, 336, 80, + 66, 31, 80, 47, 277, 343, 274, 345, 469, 347, + 140, 283, 350, 188, 132, 569, 1297, 101, 59, 124, + 52, 368, 54, 4, 132, 132, 277, 336, 132, 379, + 199, 299, 974, 369, 343, 188, 345, 476, 347, 182, + 84, 350, 136, 263, 986, 987, 163, 1227, 1481, 359, + 1297, 361, 173, 163, 1014, 1303, 1286, 1383, 1384, 368, + 369, 1408, 1297, 181, 618, 375, 1297, 212, 377, 1692, + 379, 52, 322, 1297, 181, 1442, 1823, 1406, 1297, 26, + 1297, 263, 185, 1042, 31, 276, 1801, 276, 188, 1217, + 136, 882, 276, 1054, 1055, 886, 843, 276, 974, 11, + 483, 1061, 268, 1718, 886, 273, 197, 25, 678, 377, + 986, 197, 734, 280, 26, 276, 182, 276, 427, 31, + 278, 468, 163, 278, 1839, 695, 29, 278, 46, 278, + 277, 1603, 164, 276, 704, 482, 48, 278, 476, 278, + 273, 274, 14, 1104, 188, 19, 1528, 277, 271, 272, + 273, 274, 201, 1732, 238, 464, 1871, 75, 584, 468, + 469, 1120, 1121, 11, 1123, 1124, 475, 487, 148, 1884, + 479, 741, 1887, 482, 483, 71, 94, 148, 487, 563, + 102, 1896, 1214, 164, 1615, 103, 1729, 66, 1316, 94, + 1621, 109, 762, 123, 26, 1455, 464, 1523, 148, 31, + 48, 182, 1474, 1433, 184, 177, 1701, 475, 1438, 127, + 1440, 479, 86, 1473, 24, 483, 271, 272, 273, 274, + 191, 204, 200, 33, 65, 1730, 1731, 130, 538, 567, + 784, 585, 204, 787, 1414, 216, 1246, 1134, 1710, 111, + 1488, 271, 272, 273, 274, 1475, 276, 1826, 783, 803, + 634, 1110, 177, 175, 737, 1093, 565, 759, 567, 1309, + 1292, 722, 571, 1886, 194, 879, 204, 870, 979, 177, + 26, 1776, 857, 19, 828, 31, 1701, 587, 982, 204, + 176, 1223, 185, 254, 1722, 16, 26, 183, 585, 272, + 25, 31, 252, 1252, 200, 1767, 204, 1792, 276, 202, + 272, 1796, 207, 208, 642, 146, 1021, 239, 276, 1804, + 1540, 283, 1807, 281, 124, 1274, 1546, 249, 26, 745, + 759, 191, 1493, 31, 271, 272, 273, 274, 155, 639, + 640, 278, 1720, 642, 1772, 681, 146, 1809, 276, 26, + 75, 1836, 651, 153, 31, 263, 187, 272, 1308, 651, + 1855, 82, 277, 779, 780, 1779, 1780, 7, 26, 271, + 272, 273, 274, 31, 272, 89, 936, 1792, 1863, 67, + 276, 1796, 681, 1868, 109, 102, 714, 187, 1608, 1804, + 26, 1819, 1807, 81, 254, 31, 1774, 734, 26, 1104, + 114, 26, 127, 31, 47, 1625, 31, 706, 204, 204, + 204, 1030, 1429, 1340, 713, 714, 23, 105, 717, 123, + 204, 1836, 139, 722, 141, 26, 1854, 6, 1428, 18, + 31, 759, 731, 1824, 1825, 734, 231, 765, 782, 275, + 739, 84, 1820, 4, 743, 34, 7, 164, 1863, 271, + 272, 273, 274, 1868, 204, 754, 278, 756, 172, 1476, + 164, 86, 1876, 26, 763, 793, 765, 1738, 31, 1418, + 49, 159, 189, 773, 774, 775, 1095, 272, 822, 147, + 26, 277, 1272, 277, 91, 31, 204, 283, 272, 283, + 79, 52, 820, 821, 793, 782, 754, 1717, 756, 1890, + 1194, 1738, 279, 6, 1048, 282, 1726, 211, 852, 853, + 153, 855, 963, 1738, 1107, 966, 1060, 1738, 6, 108, + 163, 820, 821, 47, 1738, 271, 272, 273, 274, 1738, + 285, 1738, 278, 833, 277, 822, 40, 1081, 293, 1233, + 827, 271, 272, 273, 274, 188, 49, 51, 278, 67, + 979, 1771, 83, 840, 58, 6, 124, 129, 1295, 858, + 84, 49, 6, 81, 1301, 852, 853, 149, 855, 868, + 1369, 89, 68, 271, 272, 273, 274, 1170, 146, 83, + 278, 880, 241, 26, 166, 153, 175, 105, 31, 120, + 249, 18, 68, 33, 271, 272, 273, 274, 49, 26, + 858, 278, 133, 26, 31, 49, 46, 34, 31, 276, + 868, 278, 276, 271, 272, 273, 274, 281, 131, 187, + 278, 967, 276, 276, 1184, 62, 63, 964, 281, 129, + 1190, 10, 207, 208, 968, 271, 272, 273, 274, 965, + 26, 159, 278, 70, 148, 31, 271, 272, 273, 274, + 275, 979, 79, 1789, 137, 138, 26, 1217, 275, 276, + 87, 31, 129, 1079, 963, 964, 965, 966, 967, 968, + 271, 272, 273, 274, 129, 974, 180, 278, 240, 106, + 184, 108, 1313, 276, 182, 278, 26, 986, 987, 275, + 276, 31, 991, 1021, 64, 122, 26, 124, 125, 126, + 211, 31, 213, 148, 164, 18, 991, 83, 271, 272, + 273, 274, 20, 26, 1663, 278, 67, 276, 31, 278, + 267, 34, 1021, 67, 277, 271, 272, 273, 274, 170, + 81, 1548, 278, 207, 1683, 180, 1369, 81, 1526, 1369, + 1284, 1529, 276, 276, 278, 278, 1090, 26, 175, 276, + 195, 278, 31, 276, 105, 278, 1316, 70, 1205, 10, + 1207, 105, 1106, 1892, 1893, 26, 79, 62, 1112, 1097, + 31, 1315, 1071, 64, 87, 901, 1104, 903, 129, 905, + 906, 1073, 908, 909, 910, 129, 83, 1086, 203, 204, + 205, 26, 276, 106, 278, 108, 31, 206, 1097, 26, + 1212, 1213, 1214, 1090, 31, 1104, 1425, 82, 159, 122, + 1759, 124, 125, 126, 198, 159, 231, 232, 276, 1106, + 278, 1808, 148, 1383, 1384, 1112, 86, 206, 271, 272, + 273, 274, 1248, 66, 1250, 278, 64, 148, 276, 1627, + 278, 268, 269, 270, 271, 272, 273, 274, 271, 272, + 273, 274, 275, 280, 88, 282, 235, 236, 276, 238, + 278, 277, 175, 276, 129, 278, 245, 246, 247, 248, + 249, 276, 251, 278, 129, 254, 255, 256, 257, 258, + 276, 182, 278, 262, 263, 271, 272, 273, 274, 123, + 252, 677, 278, 679, 276, 1311, 278, 683, 684, 685, + 1444, 271, 272, 273, 274, 276, 1205, 278, 1207, 1792, + 26, 6, 107, 1796, 18, 31, 276, 151, 278, 196, + 154, 1804, 26, 180, 1223, 130, 1875, 31, 1227, 64, + 34, 271, 272, 273, 274, 262, 170, 163, 278, 1483, + 262, 271, 272, 273, 274, 33, 1246, 182, 278, 157, + 66, 215, 47, 1836, 268, 268, 269, 270, 271, 272, + 273, 274, 196, 1523, 59, 26, 70, 280, 118, 282, + 31, 276, 26, 32, 277, 79, 10, 31, 277, 277, + 1863, 277, 207, 87, 277, 1868, 207, 1416, 277, 84, + 1778, 277, 271, 272, 273, 274, 57, 277, 1290, 278, + 26, 277, 106, 57, 108, 31, 277, 277, 1437, 207, + 271, 272, 273, 274, 26, 277, 282, 278, 122, 31, + 124, 125, 126, 277, 277, 182, 1326, 276, 280, 277, + 1330, 66, 282, 148, 276, 18, 271, 272, 273, 274, + 66, 66, 174, 26, 271, 272, 273, 274, 31, 268, + 282, 34, 276, 276, 10, 277, 276, 188, 153, 218, + 219, 220, 221, 222, 223, 224, 225, 200, 163, 276, + 94, 175, 94, 94, 86, 24, 24, 46, 1622, 10, + 182, 143, 216, 182, 204, 143, 23, 70, 94, 145, + 193, 277, 193, 188, 95, 1436, 79, 277, 280, 277, + 277, 1530, 64, 10, 87, 157, 129, 1406, 1436, 1437, + 276, 197, 128, 277, 277, 1414, 1528, 1416, 135, 182, + 278, 210, 63, 106, 277, 108, 66, 1543, 1428, 198, + 66, 10, 128, 251, 194, 248, 18, 1436, 1437, 122, + 1569, 124, 125, 126, 26, 23, 1445, 204, 277, 31, + 20, 277, 34, 46, 30, 271, 272, 273, 274, 24, + 90, 90, 132, 162, 268, 269, 270, 271, 272, 273, + 274, 132, 259, 132, 164, 46, 280, 164, 282, 277, + 102, 163, 20, 277, 163, 277, 10, 1445, 70, 66, + 26, 66, 175, 278, 281, 276, 276, 79, 276, 131, + 113, 276, 276, 290, 277, 87, 74, 1554, 12, 277, + 271, 272, 273, 274, 45, 247, 10, 271, 272, 273, + 274, 40, 277, 168, 106, 1606, 108, 278, 10, 279, + 278, 1530, 51, 278, 321, 278, 200, 324, 140, 58, + 122, 1569, 124, 125, 126, 271, 272, 273, 274, 55, + 238, 186, 71, 55, 8, 1554, 98, 54, 278, 271, + 272, 273, 274, 1562, 1563, 1564, 277, 1607, 278, 277, + 1569, 181, 1701, 277, 277, 277, 134, 277, 73, 277, + 277, 134, 277, 277, 277, 268, 269, 270, 271, 272, + 273, 274, 277, 175, 278, 278, 277, 277, 1597, 277, + 277, 276, 278, 1602, 134, 89, 20, 77, 1607, 276, + 136, 168, 137, 132, 17, 132, 153, 132, 192, 132, + 132, 1626, 132, 132, 278, 278, 24, 1626, 278, 148, + 1711, 1631, 278, 420, 277, 1635, 163, 424, 425, 426, + 278, 1678, 54, 131, 1602, 278, 165, 181, 10, 182, + 142, 26, 83, 188, 84, 47, 188, 84, 278, 47, + 278, 180, 51, 1792, 98, 184, 66, 1796, 187, 58, + 131, 117, 1801, 62, 63, 1804, 195, 117, 1807, 1678, + 278, 278, 71, 278, 278, 276, 268, 269, 270, 271, + 272, 273, 274, 1692, 83, 214, 39, 278, 278, 39, + 86, 488, 275, 54, 1751, 492, 278, 1836, 86, 278, + 1839, 278, 278, 1698, 278, 1720, 278, 278, 278, 278, + 90, 1720, 278, 278, 275, 277, 275, 275, 275, 275, + 275, 275, 1737, 1732, 1863, 275, 279, 278, 1737, 1868, + 98, 114, 1871, 64, 197, 129, 42, 86, 277, 277, + 86, 89, 1751, 1752, 275, 1884, 278, 277, 1887, 148, + 276, 1753, 129, 277, 275, 129, 156, 1896, 181, 1774, + 47, 278, 188, 1801, 282, 1774, 165, 278, 276, 133, + 50, 277, 1787, 209, 275, 278, 276, 53, 1787, 83, + 39, 180, 1832, 50, 277, 184, 276, 278, 0, 278, + 0, 266, 1801, 1210, 12, 269, 195, 278, 722, 1808, + 1110, 1839, 871, 1107, 1033, 1820, 646, 1464, 1096, 765, + 592, 1820, 345, 326, 1829, 214, 1097, 1826, 333, 1463, + 1829, 317, 804, 1832, 1104, 6, 1442, 1673, 9, 1444, + 1839, 1765, 13, 1871, 1769, 363, 345, 1768, 793, 1265, + 1811, 22, 1757, 1744, 1696, 1802, 1884, 1016, 1720, 1887, + 1421, 1860, 1242, 338, 35, 350, 573, 850, 1896, 331, + 41, 42, 1871, 1299, 661, 842, 13, 501, 631, 303, + 505, 754, 767, 142, 991, 1884, 741, 1886, 1887, 1664, + 1538, 678, 1829, 1892, 1893, 682, 0, 1896, 69, 1787, + 0, 72, 689, 0, 513, 730, 983, 694, 695, 1148, + 206, 1192, 1254, 1086, 1597, -1, 571, 704, 705, 86, + 707, 708, 709, 710, 711, 712, 1562, -1, -1, 100, + 101, -1, -1, -1, -1, -1, -1, -1, -1, 235, + 236, 112, 238, -1, -1, 116, -1, -1, 6, 245, + 246, 247, 248, 249, 741, 251, -1, -1, 254, 255, + 256, 257, 258, -1, -1, -1, 262, 263, -1, -1, + -1, -1, -1, -1, -1, 762, -1, 273, -1, -1, + 767, -1, 769, -1, -1, -1, -1, 1338, 1339, 47, + -1, -1, -1, 1344, 1345, -1, 1347, 1348, -1, -1, + 171, 59, 173, -1, 1355, 1356, 1357, 1358, 179, 1360, + 1361, 1362, 1363, 1364, 1365, 73, -1, -1, 189, -1, + -1, -1, -1, -1, -1, -1, 84, -1, -1, -1, + -1, -1, 203, 204, 205, 206, 207, 208, -1, -1, + -1, -1, -1, -1, -1, -1, 217, -1, -1, 30, + -1, -1, -1, -1, -1, 226, 227, 228, 229, 230, + 231, 232, 233, 234, 235, 236, -1, 238, -1, -1, + 241, 242, -1, 244, 245, 246, 247, 248, 249, 250, + 251, -1, -1, 254, 255, 256, 257, 258, -1, -1, + -1, 262, 263, -1, -1, 153, -1, -1, -1, -1, + 271, 272, -1, -1, -1, 163, 277, -1, 279, 896, + 897, 898, 283, -1, 901, 902, 903, -1, 905, 906, + 907, 908, 909, 910, 911, 912, -1, 914, -1, 916, + 188, -1, 919, 920, 921, 922, 923, 924, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 206, 936, + -1, -1, 939, 33, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 235, 236, -1, + 238, -1, -1, -1, -1, -1, -1, 245, 246, 247, + 248, 249, -1, 251, -1, 982, 254, 255, 256, 257, + 258, -1, -1, -1, 262, 263, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 163, -1, -1, -1, + -1, -1, -1, -1, -1, 206, -1, 6, -1, -1, + 9, -1, -1, -1, 13, -1, -1, -1, -1, -1, + -1, -1, -1, 22, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 235, 236, 35, 238, -1, 206, + -1, -1, 41, 42, 245, 246, 247, 248, 249, -1, + 251, -1, -1, 254, 255, 256, 257, 258, -1, -1, + -1, 262, 263, -1, -1, -1, -1, -1, 235, 236, + 69, 238, -1, 72, -1, -1, 277, -1, 245, 246, + 247, 248, 249, -1, 251, -1, -1, 254, 255, 256, + 257, 258, -1, -1, -1, 262, 263, -1, -1, -1, + -1, 100, 101, -1, -1, -1, 206, -1, -1, -1, + 277, -1, -1, 112, -1, -1, -1, 116, 6, -1, + -1, -1, -1, -1, -1, -1, -1, 1134, -1, -1, + -1, -1, -1, -1, -1, 235, 236, -1, 238, 1146, + 1147, -1, 1149, 1150, -1, 245, 246, 247, 248, 249, + 1157, 251, -1, -1, 254, 255, 256, 257, 258, 47, + -1, -1, 262, 263, -1, -1, -1, 1174, -1, -1, + -1, 59, 171, -1, 173, 1182, 1183, 1184, -1, -1, + 179, -1, -1, 1190, -1, 1192, 1193, 1194, 1195, 1196, + 189, -1, -1, -1, -1, -1, 84, -1, -1, -1, + -1, -1, -1, -1, 203, 204, 205, 206, 207, 208, + 1217, -1, -1, -1, -1, -1, -1, -1, 217, -1, + -1, -1, -1, -1, -1, -1, 1233, 226, 227, 228, + 229, 230, 231, 232, 233, 234, 235, 236, -1, 238, + 41, -1, 241, 242, -1, 244, 245, 246, 247, 248, + 249, 250, 251, -1, -1, 254, 255, 256, 257, 258, + 1267, -1, -1, 262, 263, 153, -1, -1, 69, -1, + -1, -1, 271, 272, -1, 163, -1, -1, 277, -1, + 279, -1, -1, -1, 283, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 98, -1, 6, + 188, -1, 9, -1, -1, -1, 13, -1, -1, 1316, + -1, -1, -1, -1, -1, 22, -1, -1, 206, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 35, -1, + 1337, -1, -1, -1, 41, 42, -1, -1, -1, 1346, + -1, -1, -1, -1, -1, -1, 1353, 235, 236, -1, + 238, -1, -1, -1, -1, -1, -1, 245, 246, 247, + 248, 249, 69, 251, -1, 72, 254, 255, 256, 257, + 258, -1, 173, -1, 262, 263, 1383, 1384, -1, -1, + -1, -1, -1, -1, 33, -1, -1, -1, 189, -1, + -1, -1, -1, 100, 101, -1, -1, -1, -1, -1, + -1, -1, 203, 204, 205, 112, 207, 208, -1, 116, + 1417, -1, -1, 19, -1, -1, -1, 23, -1, -1, + -1, -1, -1, -1, -1, 226, 227, 228, 229, 230, + 231, 232, 233, 234, -1, 41, -1, -1, 44, -1, + 241, 242, -1, -1, -1, -1, -1, -1, -1, 250, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 171, -1, 173, -1, -1, -1, + -1, 272, 179, -1, -1, -1, -1, -1, -1, 85, + -1, -1, 189, -1, -1, 91, 92, 93, -1, 95, + 96, 97, -1, 99, 1501, 1502, 203, 204, 205, 206, + 207, 208, -1, -1, -1, -1, -1, -1, -1, -1, + 217, 1518, -1, 119, -1, 121, 1523, -1, -1, 226, + 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, + -1, 238, 74, -1, 241, 242, -1, 244, 245, 246, + 247, 248, 249, 250, 251, -1, 152, 254, 255, 256, + 257, 258, 1559, -1, -1, 262, 263, 206, -1, 6, + -1, -1, 9, 169, 271, 272, 13, -1, -1, -1, + 277, -1, 279, -1, -1, 22, 283, -1, -1, -1, + -1, -1, -1, -1, -1, 191, 235, 236, 35, 238, + -1, -1, -1, -1, 41, 42, 245, 246, 247, 248, + 249, -1, 251, -1, -1, 254, 255, 256, 257, 258, + -1, -1, -1, 262, 263, -1, -1, -1, -1, -1, + 226, 227, 69, 1630, -1, 72, -1, -1, -1, -1, + -1, 1638, -1, -1, -1, -1, -1, 243, -1, -1, + -1, -1, -1, -1, -1, -1, -1, 189, -1, -1, + -1, -1, -1, 100, 101, -1, 6, 1664, -1, 9, + -1, -1, -1, 13, 206, 112, -1, -1, -1, 116, + 1677, -1, 22, -1, 1681, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 35, -1, -1, -1, -1, + -1, 41, 42, 235, 236, -1, 238, -1, -1, -1, + -1, -1, -1, 245, 246, 247, 248, 249, -1, 251, + -1, -1, 254, 255, 256, 257, 258, -1, -1, 69, + 262, 263, 72, -1, 171, -1, 173, -1, -1, -1, + -1, -1, 179, -1, -1, -1, -1, 1744, -1, -1, + -1, -1, 189, -1, -1, -1, -1, -1, -1, -1, + 100, 101, -1, -1, -1, -1, 203, 204, 205, 206, + 207, 208, 112, -1, -1, -1, 116, -1, -1, -1, + 217, -1, -1, -1, -1, -1, -1, -1, -1, 226, + 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, + -1, 238, -1, -1, 241, 242, 1803, 244, 245, 246, + 247, 248, 249, 250, 251, -1, -1, 254, 255, 256, + 257, 258, -1, -1, -1, 262, 263, -1, -1, -1, + -1, 171, -1, 173, 271, 272, -1, -1, -1, 179, + 277, -1, 279, -1, -1, -1, 283, -1, -1, 189, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 203, 204, 205, 206, 207, 208, -1, + -1, -1, -1, 74, -1, -1, -1, 217, -1, -1, + -1, -1, -1, -1, -1, -1, 226, 227, 228, 229, + 230, 231, 232, 233, 234, 235, 236, -1, 238, -1, + -1, 241, 242, -1, 244, 245, 246, 247, 248, 249, + 250, 251, -1, -1, 254, 255, 256, 257, 258, -1, + -1, -1, 262, 263, 206, -1, 6, -1, -1, 9, + -1, 271, 272, 13, -1, -1, -1, 277, -1, 279, + -1, -1, 22, 283, -1, -1, -1, 148, -1, -1, + -1, -1, -1, 235, 236, 35, 238, -1, -1, -1, + -1, 41, 42, 245, 246, 247, 248, 249, -1, 251, + -1, -1, 254, 255, 256, 257, 258, -1, -1, -1, + 262, 263, -1, 184, -1, -1, -1, -1, 189, 69, + -1, -1, 72, -1, 195, 277, -1, 279, -1, -1, + -1, -1, -1, -1, -1, 206, -1, -1, -1, -1, + -1, -1, -1, 214, -1, -1, -1, -1, -1, -1, + 100, 101, -1, 6, -1, -1, 9, -1, -1, -1, + 13, -1, 112, -1, 235, 236, 116, 238, -1, 22, + -1, -1, -1, -1, 245, 246, 247, 248, 249, -1, + 251, -1, 35, 254, 255, 256, 257, 258, 41, 42, + -1, 262, 263, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 69, -1, -1, 72, + -1, 171, -1, 173, -1, -1, -1, -1, -1, 179, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 189, + -1, -1, -1, -1, -1, -1, -1, 100, 101, -1, + -1, -1, -1, 203, 204, 205, 206, 207, 208, 112, + -1, -1, -1, 116, -1, -1, -1, 217, -1, -1, + -1, -1, -1, -1, -1, -1, 226, 227, 228, 229, + 230, 231, 232, 233, 234, 235, 236, -1, 238, -1, + -1, 241, 242, -1, 244, 245, 246, 247, 248, 249, + 250, 251, -1, -1, 254, 255, 256, 257, 258, -1, + -1, -1, 262, 263, -1, -1, -1, -1, 171, -1, + 173, 271, 272, -1, 89, -1, 179, 277, -1, 279, + -1, -1, -1, 283, -1, -1, 189, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 114, + 203, 204, 205, 206, 207, 208, -1, -1, -1, -1, + -1, -1, -1, -1, 217, -1, -1, -1, -1, -1, + -1, -1, -1, 226, 227, 228, 229, 230, 231, 232, + 233, 234, 235, 236, -1, 238, -1, -1, 241, 242, + -1, 244, 245, 246, 247, 248, 249, 250, 251, -1, + -1, 254, 255, 256, 257, 258, -1, 172, -1, 262, + 263, -1, -1, 6, -1, -1, 9, -1, 271, 272, + 13, -1, -1, -1, 277, -1, 279, -1, -1, 22, + 283, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 206, 35, -1, -1, -1, -1, -1, 41, 42, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 235, 236, -1, 238, -1, -1, 69, -1, -1, 72, + 245, 246, 247, 248, 249, 180, 251, -1, -1, 254, + 255, 256, 257, 258, -1, -1, -1, 262, 263, -1, + -1, -1, -1, -1, -1, -1, -1, 100, 101, -1, + -1, 206, -1, -1, -1, -1, -1, 13, -1, 112, + -1, -1, -1, 116, -1, 189, 22, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 35, + 235, 236, 206, 238, -1, 41, 42, -1, -1, -1, + 245, 246, 247, 248, 249, -1, 251, -1, -1, 254, + 255, 256, 257, 258, 60, -1, -1, 262, 263, -1, + -1, 235, 236, 69, 238, -1, 72, -1, 171, -1, + 173, 245, 246, 247, 248, 249, 179, 251, -1, -1, + 254, 255, 256, 257, 258, -1, 189, -1, 262, 263, + -1, -1, -1, -1, 100, 101, -1, -1, -1, -1, + 203, 204, 205, 206, 207, 208, 112, -1, -1, -1, + 116, -1, -1, -1, 217, -1, -1, -1, 124, -1, + -1, -1, -1, 226, 227, 228, 229, 230, 231, 232, + 233, 234, 235, 236, -1, 238, -1, -1, 241, 242, + -1, 244, 245, 246, 247, 248, 249, 250, 251, 17, + -1, 254, 255, 256, 257, 258, -1, 163, -1, 262, + 263, 167, -1, -1, -1, -1, -1, 173, 271, 272, + -1, -1, -1, 179, 277, -1, 279, -1, -1, 47, + 283, -1, -1, 189, -1, -1, 54, -1, -1, -1, + 58, 59, -1, 61, -1, -1, -1, 203, 204, 205, + 206, 207, 208, -1, -1, -1, -1, -1, -1, -1, + 78, 217, -1, -1, -1, -1, 84, -1, -1, -1, + 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, + 236, -1, 238, -1, -1, 241, 242, -1, 244, 245, + 246, 247, 248, 249, 250, 251, -1, -1, 254, 255, + 256, 257, 258, 259, 260, 261, 262, 263, 13, -1, + -1, -1, -1, -1, -1, 271, 272, 22, -1, -1, + -1, 277, -1, 279, -1, -1, 144, 283, -1, -1, + 35, -1, -1, 38, -1, -1, 41, 42, -1, -1, + -1, -1, -1, -1, -1, 163, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 60, -1, -1, -1, -1, + 178, -1, -1, -1, 69, -1, -1, 72, -1, -1, + 188, -1, -1, -1, -1, -1, -1, -1, -1, 197, + -1, -1, -1, -1, -1, -1, -1, -1, 206, -1, + -1, -1, -1, -1, 13, 100, 101, -1, -1, -1, + -1, -1, -1, 22, -1, -1, -1, 112, -1, -1, + -1, 116, -1, -1, -1, -1, 35, 235, 236, 124, + 238, -1, 41, 42, -1, -1, -1, 245, 246, 247, + 248, 249, -1, 251, -1, -1, 254, 255, 256, 257, + 258, 60, -1, -1, 262, 263, 264, 265, 266, -1, + 69, -1, -1, 72, -1, -1, -1, -1, -1, -1, + -1, -1, 167, -1, -1, -1, -1, -1, 173, -1, + -1, -1, -1, -1, 179, -1, -1, -1, -1, -1, + -1, 100, 101, -1, 189, -1, -1, -1, -1, -1, + -1, -1, -1, 112, -1, -1, -1, 116, 203, 204, + 205, 206, 207, 208, -1, 124, -1, -1, -1, -1, + -1, -1, 217, -1, -1, -1, -1, -1, -1, -1, + -1, 226, 227, 228, 229, 230, 231, 232, 233, 234, + 235, 236, -1, 238, -1, -1, 241, 242, -1, 244, + 245, 246, 247, 248, 249, 250, 251, -1, 167, 254, + 255, 256, 257, 258, 173, -1, -1, 262, 263, -1, + 179, -1, -1, -1, -1, -1, 271, 272, -1, -1, + 189, -1, 277, -1, 279, -1, -1, -1, 283, -1, + -1, -1, -1, -1, 203, 204, 205, 206, 207, 208, + -1, -1, -1, -1, -1, -1, -1, -1, 217, -1, + -1, -1, -1, -1, -1, -1, -1, 226, 227, 228, + 229, 230, 231, 232, 233, 234, 235, 236, -1, 238, + -1, -1, 241, 242, -1, 244, 245, 246, 247, 248, + 249, 250, 251, 13, -1, 254, 255, 256, 257, 258, + -1, -1, 22, 262, 263, 206, -1, -1, -1, -1, + -1, -1, 271, 272, -1, 35, -1, -1, 277, -1, + 279, 41, 42, -1, 283, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 235, 236, -1, 238, -1, -1, + 60, -1, -1, -1, 245, 246, 247, 248, 249, 69, + 251, -1, 72, 254, 255, 256, 257, 258, -1, -1, + -1, 262, 263, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 206, -1, -1, -1, -1, 279, 13, + 100, 101, -1, -1, -1, -1, -1, -1, 22, -1, + -1, -1, 112, -1, -1, -1, 116, -1, -1, -1, + -1, 35, 235, 236, 124, 238, -1, 41, 42, -1, + -1, -1, 245, 246, 247, 248, 249, -1, 251, -1, + -1, 254, 255, 256, 257, 258, 60, -1, -1, 262, + 263, -1, -1, -1, -1, 69, -1, -1, 72, -1, + -1, -1, -1, -1, 277, -1, -1, 167, -1, -1, + -1, -1, -1, 173, -1, -1, -1, -1, -1, 179, + -1, -1, -1, -1, -1, -1, 100, 101, -1, 189, + -1, -1, -1, -1, -1, -1, -1, -1, 112, -1, + -1, -1, 116, 203, 204, 205, 206, 207, 208, -1, + 124, -1, -1, -1, -1, -1, -1, 217, -1, -1, + -1, -1, -1, -1, -1, -1, 226, 227, 228, 229, + 230, 231, 232, 233, 234, 235, 236, -1, 238, -1, + -1, 241, 242, -1, 244, 245, 246, 247, 248, 249, + 250, 251, -1, 167, 254, 255, 256, 257, 258, 173, + -1, -1, 262, 263, -1, 179, -1, -1, -1, -1, + -1, 271, 272, -1, -1, 189, -1, 277, -1, 279, + -1, -1, -1, 283, -1, -1, -1, -1, -1, 203, + 204, 205, 206, 207, 208, -1, -1, -1, -1, -1, + -1, -1, -1, 217, -1, -1, -1, -1, -1, -1, + -1, -1, 226, 227, 228, 229, 230, 231, 232, 233, + 234, 235, 236, -1, 238, -1, -1, 241, 242, -1, + 244, 245, 246, 247, 248, 249, 250, 251, 13, -1, + 254, 255, 256, 257, 258, -1, -1, 22, 262, 263, + 206, -1, -1, -1, -1, -1, -1, 271, 272, -1, + 35, -1, -1, 277, -1, 279, 41, 42, -1, 283, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 235, + 236, -1, 238, -1, -1, -1, -1, -1, -1, 245, + 246, 247, 248, 249, 69, 251, -1, 72, 254, 255, + 256, 257, 258, -1, -1, -1, 262, 263, -1, -1, + 206, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 277, -1, 98, -1, 100, 101, -1, -1, -1, + -1, -1, -1, -1, -1, 13, -1, 112, -1, 235, + 236, 116, 238, -1, 22, -1, -1, -1, -1, 245, + 246, 247, 248, 249, -1, 251, -1, 35, 254, 255, + 256, 257, 258, 41, 42, -1, 262, 263, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 275, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 69, -1, -1, 72, -1, -1, -1, 173, -1, + -1, -1, -1, -1, 179, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 189, -1, -1, -1, -1, -1, + 98, -1, 100, 101, -1, -1, -1, -1, 203, 204, + 205, 206, 207, 208, 112, -1, -1, -1, 116, -1, + -1, -1, 217, -1, -1, -1, -1, -1, -1, -1, + -1, 226, 227, 228, 229, 230, 231, 232, 233, 234, + 235, 236, -1, 238, -1, -1, 241, 242, -1, 244, + 245, 246, 247, 248, 249, 250, 251, 17, -1, 254, + 255, 256, 257, 258, -1, 163, -1, 262, 263, -1, + -1, -1, -1, -1, -1, 173, 271, 272, 273, -1, + -1, 179, 277, -1, 279, -1, -1, 47, 283, -1, + -1, 189, -1, -1, 54, -1, -1, -1, 58, 59, + -1, 61, -1, -1, -1, 203, 204, 205, 206, 207, + 208, -1, -1, -1, -1, -1, -1, -1, 78, 217, + -1, -1, -1, -1, 84, -1, -1, -1, 226, 227, + 228, 229, 230, 231, 232, 233, 234, 235, 236, -1, + 238, -1, -1, 241, 242, -1, 244, 245, 246, 247, + 248, 249, 250, 251, 13, -1, 254, 255, 256, 257, + 258, -1, -1, 22, 262, 263, -1, -1, -1, -1, + -1, -1, -1, 271, 272, -1, 35, -1, -1, 277, + -1, 279, 41, 42, 144, 283, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 163, -1, -1, -1, -1, -1, -1, + 69, -1, -1, 72, -1, -1, -1, -1, 178, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 188, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 98, + -1, 100, 101, -1, -1, -1, 206, -1, -1, -1, + -1, 13, -1, 112, -1, -1, -1, 116, -1, -1, + 22, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 35, -1, 235, 236, -1, 238, 41, + 42, -1, -1, -1, -1, 245, 246, 247, 248, 249, + -1, 251, -1, -1, 254, 255, 256, 257, 258, -1, + -1, -1, 262, 263, 264, 265, 266, 69, -1, -1, + 72, -1, -1, -1, 173, -1, -1, -1, -1, -1, + 179, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 189, -1, -1, -1, -1, -1, -1, -1, 100, 101, + -1, -1, -1, -1, 203, 204, 205, 206, 207, 208, + 112, -1, -1, -1, 116, -1, -1, -1, 217, -1, + -1, -1, -1, -1, -1, -1, -1, 226, 227, 228, + 229, 230, 231, 232, 233, 234, 235, 236, -1, 238, + -1, -1, 241, 242, -1, 244, 245, 246, 247, 248, + 249, 250, 251, -1, -1, 254, 255, 256, 257, 258, + -1, -1, -1, 262, 263, -1, -1, -1, -1, -1, + -1, 173, 271, 272, -1, -1, -1, 179, 277, -1, + 279, -1, -1, -1, 283, -1, -1, 189, -1, -1, + -1, -1, -1, -1, -1, 197, -1, -1, -1, -1, + -1, 203, 204, 205, 206, 207, 208, -1, -1, -1, + -1, -1, -1, -1, -1, 217, -1, -1, -1, -1, + -1, -1, -1, -1, 226, 227, 228, 229, 230, 231, + 232, 233, 234, 235, 236, -1, 238, -1, -1, 241, + 242, -1, 244, 245, 246, 247, 248, 249, 250, 251, + 13, -1, 254, 255, 256, 257, 258, -1, -1, 22, + 262, 263, 206, -1, -1, -1, -1, -1, -1, 271, + 272, -1, 35, -1, -1, 277, -1, 279, 41, 42, + -1, 283, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 235, 236, -1, 238, -1, -1, -1, -1, -1, + -1, 245, 246, 247, 248, 249, 69, 251, -1, 72, + 254, 255, 256, 257, 258, -1, -1, -1, 262, 263, + -1, -1, -1, -1, -1, 204, -1, 206, -1, -1, + -1, 275, -1, -1, -1, -1, 13, 100, 101, -1, + -1, -1, -1, -1, -1, 22, -1, -1, -1, 112, + -1, -1, -1, 116, -1, -1, 235, 236, 35, 238, + -1, -1, -1, -1, 41, 42, 245, 246, 247, 248, + 249, -1, 251, -1, -1, 254, 255, 256, 257, 258, + -1, -1, -1, 262, 263, -1, -1, -1, -1, -1, + -1, -1, 69, 272, -1, 72, -1, -1, -1, -1, + 163, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 173, -1, -1, -1, -1, -1, 179, -1, -1, -1, + -1, 98, -1, 100, 101, -1, 189, -1, -1, -1, + -1, -1, -1, -1, -1, 112, -1, -1, -1, 116, + 203, 204, 205, 206, 207, 208, -1, -1, -1, -1, + -1, -1, -1, -1, 217, -1, -1, -1, -1, -1, + -1, -1, -1, 226, 227, 228, 229, 230, 231, 232, + 233, 234, 235, 236, -1, 238, -1, -1, 241, 242, + -1, 244, 245, 246, 247, 248, 249, 250, 251, -1, + -1, 254, 255, 256, 257, 258, 173, -1, -1, 262, + 263, -1, 179, -1, -1, -1, -1, -1, 271, 272, + -1, -1, 189, -1, 277, -1, 279, -1, -1, -1, + 283, -1, -1, -1, -1, -1, 203, 204, 205, 206, + 207, 208, -1, -1, -1, -1, -1, -1, -1, -1, + 217, -1, -1, -1, -1, -1, -1, -1, -1, 226, + 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, + -1, 238, -1, -1, 241, 242, -1, 244, 245, 246, + 247, 248, 249, 250, 251, 13, -1, 254, 255, 256, + 257, 258, -1, -1, 22, 262, 263, 206, -1, -1, + -1, -1, -1, -1, 271, 272, -1, 35, -1, -1, + 277, -1, 279, 41, 42, -1, 283, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 235, 236, -1, 238, + -1, -1, -1, -1, -1, -1, 245, 246, 247, 248, + 249, 69, 251, -1, 72, 254, 255, 256, 257, 258, + -1, -1, -1, 262, 263, -1, -1, -1, -1, -1, + -1, -1, 206, -1, 273, -1, -1, -1, -1, -1, + -1, 13, 100, 101, -1, -1, -1, -1, -1, -1, + 22, -1, -1, -1, 112, -1, -1, -1, 116, -1, + -1, 235, 236, 35, 238, -1, -1, -1, -1, 41, + 42, 245, 246, 247, 248, 249, -1, 251, -1, -1, + 254, 255, 256, 257, 258, -1, -1, -1, 262, 263, + -1, -1, -1, -1, -1, -1, -1, 69, -1, -1, + 72, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 173, -1, -1, -1, -1, + -1, 179, -1, -1, -1, -1, -1, -1, 100, 101, + -1, 189, -1, -1, -1, -1, -1, -1, -1, -1, + 112, -1, -1, -1, 116, 203, 204, 205, 206, 207, + 208, -1, -1, -1, -1, -1, -1, -1, -1, 217, + -1, -1, -1, -1, -1, -1, -1, -1, 226, 227, + 228, 229, 230, 231, 232, 233, 234, 235, 236, -1, + 238, -1, -1, 241, 242, -1, 244, 245, 246, 247, + 248, 249, 250, 251, -1, -1, 254, 255, 256, 257, + 258, 173, -1, -1, 262, 263, -1, 179, -1, -1, + -1, -1, -1, 271, 272, -1, -1, 189, -1, 277, + 278, 279, -1, -1, -1, 283, -1, -1, 200, -1, + -1, 203, 204, 205, 206, 207, 208, -1, -1, -1, + -1, -1, -1, -1, -1, 217, -1, -1, -1, -1, + -1, -1, -1, -1, 226, 227, 228, 229, 230, 231, + 232, 233, 234, 235, 236, -1, 238, -1, -1, 241, + 242, -1, 244, 245, 246, 247, 248, 249, 250, 251, + 13, -1, 254, 255, 256, 257, 258, -1, -1, 22, + 262, 263, -1, -1, -1, -1, -1, -1, -1, 271, + 272, -1, 35, -1, -1, 277, -1, 279, 41, 42, + -1, 283, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 69, -1, -1, 72, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 13, 100, 101, -1, + -1, -1, -1, -1, -1, 22, -1, -1, -1, 112, + -1, -1, -1, 116, -1, -1, -1, -1, 35, -1, + -1, -1, -1, -1, 41, 42, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 69, -1, -1, 72, -1, -1, -1, -1, + 163, -1, -1, -1, -1, -1, -1, -1, -1, -1, + 173, -1, -1, -1, -1, -1, 179, -1, -1, -1, + -1, -1, -1, 100, 101, -1, 189, -1, -1, -1, + -1, -1, -1, -1, -1, 112, -1, -1, -1, 116, + 203, 204, 205, 206, 207, 208, -1, -1, -1, -1, + -1, -1, -1, -1, 217, -1, -1, -1, -1, -1, + -1, -1, -1, 226, 227, 228, 229, 230, 231, 232, + 233, 234, 235, 236, -1, 238, -1, -1, 241, 242, + -1, 244, 245, 246, 247, 248, 249, 250, 251, -1, + -1, 254, 255, 256, 257, 258, 173, -1, -1, 262, + 263, -1, 179, -1, -1, -1, -1, -1, 271, 272, + -1, -1, 189, -1, 277, -1, 279, -1, -1, -1, + 283, -1, -1, 200, -1, -1, 203, 204, 205, 206, + 207, 208, -1, -1, -1, -1, -1, -1, -1, -1, + 217, -1, -1, -1, -1, -1, -1, -1, -1, 226, + 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, + -1, 238, -1, -1, 241, 242, -1, 244, 245, 246, + 247, 248, 249, 250, 251, 13, -1, 254, 255, 256, + 257, 258, -1, -1, 22, 262, 263, -1, -1, -1, + -1, -1, -1, -1, 271, 272, -1, 35, -1, -1, + 277, -1, 279, 41, 42, -1, 283, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 69, -1, -1, 72, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 100, 101, -1, -1, -1, -1, -1, -1, + -1, -1, 13, -1, 112, -1, -1, -1, 116, -1, + -1, 22, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 35, -1, -1, -1, -1, -1, + 41, 42, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, 69, -1, + -1, 72, -1, -1, -1, 173, -1, -1, -1, -1, + -1, 179, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 189, -1, -1, -1, -1, -1, -1, -1, 100, + 101, -1, -1, -1, -1, 203, 204, 205, 206, 207, + 208, 112, -1, -1, -1, 116, -1, -1, -1, 217, + -1, -1, -1, -1, -1, -1, -1, -1, 226, 227, + 228, 229, 230, 231, 232, 233, 234, 235, 236, -1, + 238, -1, -1, 241, 242, -1, 244, 245, 246, 247, + 248, 249, 250, 251, 17, -1, 254, 255, 256, 257, + 258, -1, -1, -1, 262, 263, -1, -1, -1, -1, + -1, -1, 173, 271, 272, -1, -1, 275, 179, 277, + -1, 279, -1, -1, 47, 283, -1, -1, 189, -1, + -1, -1, -1, -1, -1, 58, 59, -1, 61, -1, + -1, -1, 203, 204, 205, 206, 207, 208, -1, -1, + -1, -1, -1, -1, -1, 78, 217, -1, -1, -1, + -1, 84, -1, -1, -1, 226, 227, 228, 229, 230, + 231, 232, 233, 234, 235, 236, -1, 238, -1, -1, + 241, 242, -1, 244, 245, 246, 247, 248, 249, 250, + 251, -1, -1, 254, 255, 256, 257, 258, -1, -1, + -1, 262, 263, -1, -1, 7, -1, -1, -1, -1, + 271, 272, -1, -1, -1, -1, 277, -1, 279, -1, + -1, 144, 283, -1, -1, -1, 28, -1, -1, -1, + -1, -1, -1, -1, 36, -1, -1, -1, -1, -1, + 163, 43, -1, 45, -1, 47, -1, -1, -1, -1, + 52, -1, -1, -1, -1, 178, -1, 59, -1, -1, + -1, -1, -1, -1, -1, 188, -1, -1, -1, -1, + -1, 73, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 84, 206, -1, -1, -1, -1, -1, -1, + -1, -1, 19, -1, -1, -1, 23, -1, -1, -1, + -1, -1, -1, 30, -1, -1, -1, -1, -1, -1, + -1, -1, 235, 236, 41, 238, -1, 44, -1, -1, + -1, -1, 245, 246, 247, 248, 249, -1, 251, -1, + -1, 254, 255, 256, 257, 258, -1, -1, -1, 262, + 263, 264, 265, 266, -1, -1, -1, -1, -1, 151, + -1, -1, -1, -1, -1, -1, 158, -1, 85, 161, + -1, 163, 164, -1, 91, 92, 93, -1, 95, 96, + 97, -1, 99, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, 188, -1, -1, -1, + -1, -1, 119, 19, 121, -1, -1, 23, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 41, -1, -1, 44, -1, + -1, -1, -1, -1, -1, 152, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 237, -1, -1, -1, -1, + -1, -1, 169, -1, -1, -1, -1, -1, -1, -1, + 252, 253, -1, -1, -1, -1, -1, -1, -1, 85, + -1, -1, -1, -1, 191, 91, 92, 93, -1, 95, + 96, 97, -1, 99, -1, -1, -1, -1, -1, 206, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, 119, -1, 121, -1, -1, -1, 226, + 227, -1, -1, -1, -1, -1, -1, -1, 235, 236, + -1, 238, -1, -1, -1, -1, 243, -1, 245, 246, + 247, 248, 249, -1, 251, -1, 152, 254, 255, 256, + 257, 258, -1, -1, -1, 262, 263, -1, -1, -1, + -1, -1, -1, 169, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, 191, -1, 19, -1, -1, + -1, 23, -1, -1, -1, -1, -1, -1, -1, -1, + 206, -1, -1, -1, -1, 37, -1, -1, -1, 41, + -1, -1, 44, -1, -1, -1, -1, -1, -1, -1, + 226, 227, -1, -1, -1, -1, -1, -1, -1, 235, + 236, -1, 238, -1, -1, -1, -1, 243, -1, 245, + 246, 247, 248, 249, -1, 251, -1, -1, 254, 255, + 256, 257, 258, 85, -1, -1, 262, 263, -1, 91, + 92, 93, -1, 95, 96, 97, -1, 99, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, 206, -1, -1, -1, -1, 119, -1, 121, + -1, 215, 216, 217, 218, 219, 220, 221, 222, 223, + 224, 225, 226, 227, 228, 229, 230, -1, -1, 233, + 234, 235, 236, -1, 238, -1, -1, 241, 242, -1, + 152, 245, 246, 247, 248, 249, 250, 251, 252, -1, + 254, 255, 256, 257, 258, -1, -1, 169, 262, 263, + 264, 265, 266, 267, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, 191, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, -1, -1, -1, 226, 227, -1, -1, -1, -1, + -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, + -1, 243 +}; +/* -*-C-*- Note some compilers choke on comments on `#line' lines. */ + +/* Skeleton output parser for bison, + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software + Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +/* As a special exception, when this file is copied by Bison into a + Bison output file, you may use that output file without restriction. + This special exception was added by the Free Software Foundation + in version 1.24 of Bison. */ + +/* This is the parser code that is written into each bison parser when + the %semantic_parser declaration is not specified in the grammar. + It was written by Richard Stallman by simplifying the hairy parser + used when %semantic_parser is specified. */ + +/* All symbols defined below should begin with yy or YY, to avoid + infringing on user name space. This should be done even for local + variables, as they might otherwise be expanded by user macros. + There are some unavoidable exceptions within include files to + define necessary library symbols; they are noted "INFRINGES ON + USER NAME SPACE" below. */ + +#if ! defined (yyoverflow) || defined (YYERROR_VERBOSE) + +/* The parser invokes alloca or malloc; define the necessary symbols. */ + +# if YYSTACK_USE_ALLOCA +# define YYSTACK_ALLOC alloca +# else +# ifndef YYSTACK_USE_ALLOCA +# if defined (alloca) || defined (_ALLOCA_H) +# define YYSTACK_ALLOC alloca +# else +# ifdef __GNUC__ +# define YYSTACK_ALLOC __builtin_alloca +# endif +# endif +# endif +# endif + +# ifdef YYSTACK_ALLOC + /* Pacify GCC's `empty if-body' warning. */ +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) +# else +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +# define YYSTACK_ALLOC malloc +# define YYSTACK_FREE free +# endif +#endif /* ! defined (yyoverflow) || defined (YYERROR_VERBOSE) */ + + +#if (! defined (yyoverflow) \ + && (! defined (__cplusplus) \ + || (YYLTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) + +/* A type that is properly aligned for any stack member. */ +union yyalloc +{ + short DSQL_yyss; + YYSTYPE yyvs; +# if YYLSP_NEEDED + YYLTYPE yyls; +# endif +}; + +/* The size of the maximum gap between one aligned stack and the next. */ +# define YYSTACK_GAP_MAX (sizeof (union yyalloc) - 1) + +/* The size of an array large to enough to hold all stacks, each with + N elements. */ +# if YYLSP_NEEDED +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + + 2 * YYSTACK_GAP_MAX) +# else +# define YYSTACK_BYTES(N) \ + ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + + YYSTACK_GAP_MAX) +# endif + +/* Copy COUNT objects from FROM to TO. The source and destination do + not overlap. */ +# ifndef YYCOPY +# if 1 < __GNUC__ +# define YYCOPY(To, From, Count) \ + __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# else +# define YYCOPY(To, From, Count) \ + do \ + { \ + register YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (To)[yyi] = (From)[yyi]; \ + } \ + while (0) +# endif +# endif + +/* Relocate STACK from its old location to the new one. The + local variables YYSIZE and YYSTACKSIZE give the old and new number of + elements in the stack, and YYPTR gives the new location of the + stack. Advance YYPTR to a properly aligned location for the next + stack. */ +# define YYSTACK_RELOCATE(Stack) \ + do \ + { \ + YYSIZE_T yynewbytes; \ + YYCOPY (&yyptr->Stack, Stack, yysize); \ + Stack = &yyptr->Stack; \ + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAX; \ + yyptr += yynewbytes / sizeof (*yyptr); \ + } \ + while (0) + +#endif + + +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) +# define YYSIZE_T __SIZE_TYPE__ +#endif +#if ! defined (YYSIZE_T) && defined (size_t) +# define YYSIZE_T size_t +#endif +#if ! defined (YYSIZE_T) +# if defined (__STDC__) || defined (__cplusplus) +# include /* INFRINGES ON USER NAME SPACE */ +# define YYSIZE_T size_t +# endif +#endif +#if ! defined (YYSIZE_T) +# define YYSIZE_T unsigned int +#endif + +#define yyerrok (yyerrstatus = 0) +#define yyclearin (DSQL_yychar = YYEMPTY) +#define YYEMPTY -2 +#define YYEOF 0 +#define YYACCEPT goto yyacceptlab +#define YYABORT goto yyabortlab +#define YYERROR goto yyerrlab1 +/* Like YYERROR except do call yyerror. This remains here temporarily + to ease the transition to the new meaning of YYERROR, for GCC. + Once GCC version 2 has supplanted version 1, this can go. */ +#define YYFAIL goto yyerrlab +#define YYRECOVERING() (!!yyerrstatus) +#define YYBACKUP(Token, Value) \ +do \ + if (DSQL_yychar == YYEMPTY && yylen == 1) \ + { \ + DSQL_yychar = (Token); \ + yylval = (Value); \ + DSQL_yychar1 = YYTRANSLATE (DSQL_yychar); \ + YYPOPSTACK; \ + goto yybackup; \ + } \ + else \ + { \ + yyerror ("syntax error: cannot back up"); \ + YYERROR; \ + } \ +while (0) + +#define YYTERROR 1 +#define YYERRCODE 256 + + +/* YYLLOC_DEFAULT -- Compute the default location (before the actions + are run). + + When YYLLOC_DEFAULT is run, CURRENT is set the location of the + first token. By default, to implement support for ranges, extend + its range to the last symbol. */ + +#ifndef YYLLOC_DEFAULT +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + Current.last_line = Rhs[N].last_line; \ + Current.last_column = Rhs[N].last_column; +#endif + + +/* YYLEX -- calling `yylex' with the right arguments. */ + +#if YYPURE +# if YYLSP_NEEDED +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, &yylloc, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval, &yylloc) +# endif +# else /* !YYLSP_NEEDED */ +# ifdef YYLEX_PARAM +# define YYLEX yylex (&yylval, YYLEX_PARAM) +# else +# define YYLEX yylex (&yylval) +# endif +# endif /* !YYLSP_NEEDED */ +#else /* !YYPURE */ +# define YYLEX yylex(client_dialect, db_dialect, parser_version, stmt_ambiguous) +#endif /* !YYPURE */ + + +/* Enable debugging if requested. */ +#if YYDEBUG + +# ifndef YYFPRINTF +# include /* INFRINGES ON USER NAME SPACE */ +# define YYFPRINTF fprintf +# endif + +# define YYDPRINTF(Args) \ +do { \ + if (lex.dsql_debug) \ + YYFPRINTF Args; \ +} while (0) +/* Nonzero means print parse trace. It is left uninitialized so that + multiple parsers can coexist. */ +#else /* !YYDEBUG */ +# define YYDPRINTF(Args) +#endif /* !YYDEBUG */ + +/* YYINITDEPTH -- initial size of the parser's stacks. */ +#ifndef YYINITDEPTH +# define YYINITDEPTH 200 +#endif + +/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only + if the built-in stack extension method is used). + + Do not make this value too large; the results are undefined if + SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) + evaluated with infinite-precision integer arithmetic. */ + +#if YYMAXDEPTH == 0 +# undef YYMAXDEPTH +#endif + +#ifndef YYMAXDEPTH +# define YYMAXDEPTH 10000 +#endif + +#ifdef YYERROR_VERBOSE + +# ifndef yystrlen +# if defined (__GLIBC__) && defined (_STRING_H) +# define yystrlen strlen +# else +/* Return the length of YYSTR. */ +static YYSIZE_T +# if defined (__STDC__) || defined (__cplusplus) +yystrlen (const char *yystr) +# else +yystrlen (yystr) + const char *yystr; +# endif +{ + register const char *yys = yystr; + + while (*yys++ != '\0') + continue; + + return yys - yystr - 1; +} +# endif +# endif + +# ifndef yystpcpy +# if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) +# define yystpcpy stpcpy +# else +/* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in + YYDEST. */ +static char * +# if defined (__STDC__) || defined (__cplusplus) +yystpcpy (char *yydest, const char *yysrc) +# else +yystpcpy (yydest, yysrc) + char *yydest; + const char *yysrc; +# endif +{ + register char *yyd = yydest; + register const char *yys = yysrc; + + while ((*yyd++ = *yys++) != '\0') + continue; + + return yyd - 1; +} +# endif +# endif +#endif + + + +/* The user can define YYPARSE_PARAM as the name of an argument to be passed + into dsql_yyparse. The argument should have type void *. + It should actually point to an object. + Grammar actions can access the variable by casting it + to the proper pointer type. */ + +#ifdef YYPARSE_PARAM +# if defined (__STDC__) || defined (__cplusplus) +# define YYPARSE_PARAM_ARG YYPARSE_PARAM +# define YYPARSE_PARAM_DECL +# else +# define YYPARSE_PARAM_ARG YYPARSE_PARAM +# define YYPARSE_PARAM_DECL YYPARSE_PARAM; +# endif +#else /* !YYPARSE_PARAM */ +# define YYPARSE_PARAM_ARG +# define YYPARSE_PARAM_DECL +#endif /* !YYPARSE_PARAM */ + +/* Prevent warning if -Wstrict-prototypes. */ +#ifdef __GNUC__ +# ifdef YYPARSE_PARAM +int dsql_yyparse (void *); +# else +int dsql_yyparse (void); +# endif +#endif + +/* YY_DECL_VARIABLES -- depending whether we use a pure parser, + variables are global, or local to YYPARSE. */ + +#define YY_DECL_NON_LSP_VARIABLES \ +/* The lookahead symbol. */ \ + int DSQL_yychar; + \ + \ +/* The semantic value of the lookahead symbol. */ \ +static YYSTYPE yylval; \ + \ +/* Number of parse errors so far. */ \ +static int yynerrs; + +#if YYLSP_NEEDED +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES \ + \ +/* Location data for the lookahead symbol. */ \ +YYLTYPE yylloc; +#else +# define YY_DECL_VARIABLES \ +YY_DECL_NON_LSP_VARIABLES +#endif + + +/* If nonreentrant, generate the variables here. */ + +#if !YYPURE +YY_DECL_VARIABLES +#endif /* !YYPURE */ + +int +dsql_yyparse (YYPARSE_PARAM_ARG) + YYPARSE_PARAM_DECL +{ + /* If reentrant, generate the variables here. */ +#if YYPURE + YY_DECL_VARIABLES +#endif /* !YYPURE */ + + register int yystate; + register int yyn; + int yyresult; + /* Number of tokens to shift before error messages enabled. */ + int yyerrstatus; + /* Lookahead token as an internal (translated) token number. */ + int DSQL_yychar1 = 0; + + /* Three stacks and their tools: + `DSQL_yyss': related to states, + `yyvs': related to semantic values, + `yyls': related to locations. + + Refer to the stacks thru separate pointers, to allow yyoverflow + to reallocate them elsewhere. */ + + /* The state stack. */ + short DSQL_yyssa[YYINITDEPTH]; + short *DSQL_yyss = DSQL_yyssa; + register short *DSQL_DSQL_yyssp; + + /* The semantic value stack. */ + YYSTYPE yyvsa[YYINITDEPTH]; + YYSTYPE *yyvs = yyvsa; + register YYSTYPE *yyvsp; + +#if YYLSP_NEEDED + /* The location stack. */ + YYLTYPE yylsa[YYINITDEPTH]; + YYLTYPE *yyls = yylsa; + YYLTYPE *yylsp; +#endif + +#if YYLSP_NEEDED +# define YYPOPSTACK (yyvsp--, DSQL_DSQL_yyssp--, yylsp--) +#else +# define YYPOPSTACK (yyvsp--, DSQL_DSQL_yyssp--) +#endif + + YYSIZE_T yystacksize = YYINITDEPTH; + + + /* The variables used to return semantic value and location from the + action routines. */ + YYSTYPE yyval; +#if YYLSP_NEEDED + YYLTYPE yyloc; +#endif + + /* When reducing, the number of symbols on the RHS of the reduced + rule. */ + int yylen; + + YYDPRINTF ((stderr, "Starting parse\n")); + + yystate = 0; + yyerrstatus = 0; + yynerrs = 0; + DSQL_yychar = YYEMPTY; /* Cause a token to be read. */ + + /* Initialize stack pointers. + Waste one element of value and location stack + so that they stay on the same level as the state stack. + The wasted elements are never initialized. */ + + DSQL_DSQL_yyssp = DSQL_yyss; + yyvsp = yyvs; +#if YYLSP_NEEDED + yylsp = yyls; +#endif + goto yysetstate; + +/*------------------------------------------------------------. +| yynewstate -- Push a new state, which is found in yystate. | +`------------------------------------------------------------*/ + yynewstate: + /* In all cases, when you get here, the value and location stacks + have just been pushed. so pushing a state here evens the stacks. + */ + DSQL_DSQL_yyssp++; + + yysetstate: + *DSQL_DSQL_yyssp = yystate; + + if (DSQL_DSQL_yyssp >= DSQL_yyss + yystacksize - 1) + { + /* Get the current used size of the three stacks, in elements. */ + YYSIZE_T yysize = DSQL_DSQL_yyssp - DSQL_yyss + 1; + +#ifdef yyoverflow + { + /* Give user a chance to reallocate the stack. Use copies of + these so that the &'s don't force the real ones into + memory. */ + YYSTYPE *yyvs1 = yyvs; + short *DSQL_yyss1 = DSQL_yyss; + + /* Each stack pointer address is followed by the size of the + data in use in that stack, in bytes. */ +# if YYLSP_NEEDED + YYLTYPE *yyls1 = yyls; + /* This used to be a conditional around just the two extra args, + but that might be undefined if yyoverflow is a macro. */ + yyoverflow ("parser stack overflow", + &DSQL_yyss1, yysize * sizeof (*DSQL_DSQL_yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yyls1, yysize * sizeof (*yylsp), + &yystacksize); + yyls = yyls1; +# else + yyoverflow ("parser stack overflow", + &DSQL_yyss1, yysize * sizeof (*DSQL_DSQL_yyssp), + &yyvs1, yysize * sizeof (*yyvsp), + &yystacksize); +# endif + DSQL_yyss = DSQL_yyss1; + yyvs = yyvs1; + } +#else /* no yyoverflow */ +# ifndef YYSTACK_RELOCATE + goto yyoverflowlab; +# else + /* Extend the stack our own way. */ + if (yystacksize >= YYMAXDEPTH) + goto yyoverflowlab; + yystacksize *= 2; + if (yystacksize > YYMAXDEPTH) + yystacksize = YYMAXDEPTH; + + { + short *DSQL_yyss1 = DSQL_yyss; + union yyalloc *yyptr = + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); + if (! yyptr) + goto yyoverflowlab; + YYSTACK_RELOCATE (DSQL_yyss); + YYSTACK_RELOCATE (yyvs); +# if YYLSP_NEEDED + YYSTACK_RELOCATE (yyls); +# endif +# undef YYSTACK_RELOCATE + if (DSQL_yyss1 != DSQL_yyssa) + YYSTACK_FREE (DSQL_yyss1); + } +# endif +#endif /* no yyoverflow */ + + DSQL_DSQL_yyssp = DSQL_yyss + yysize - 1; + yyvsp = yyvs + yysize - 1; +#if YYLSP_NEEDED + yylsp = yyls + yysize - 1; +#endif + + YYDPRINTF ((stderr, "Stack size increased to %lu\n", + (unsigned long int) yystacksize)); + + if (DSQL_DSQL_yyssp >= DSQL_yyss + yystacksize - 1) + YYABORT; + } + + YYDPRINTF ((stderr, "Entering state %d\n", yystate)); + + goto yybackup; + + +/*-----------. +| yybackup. | +`-----------*/ +yybackup: + +/* Do appropriate processing given the current state. */ +/* Read a lookahead token if we need one and don't already have one. */ +/* yyresume: */ + + /* First try to decide what to do without reference to lookahead token. */ + + yyn = yypact[yystate]; + if (yyn == YYFLAG) + goto yydefault; + + /* Not known => get a lookahead token if don't already have one. */ + + /* DSQL_yychar is either YYEMPTY or YYEOF + or a valid token in external form. */ + + if (DSQL_yychar == YYEMPTY) + { + YYDPRINTF ((stderr, "Reading a token: ")); + DSQL_yychar = YYLEX; + } + + /* Convert token to internal form (in DSQL_yychar1) for indexing tables with */ + + if (DSQL_yychar <= 0) /* This means end of input. */ + { + DSQL_yychar1 = 0; + DSQL_yychar = YYEOF; /* Don't call YYLEX any more */ + + YYDPRINTF ((stderr, "Now at end of input.\n")); + } + else + { + DSQL_yychar1 = YYTRANSLATE (DSQL_yychar); + +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables + which are defined only if `YYDEBUG' is set. */ + if (lex.dsql_debug) + { + YYFPRINTF (stderr, "Next token is %d (%s", + DSQL_yychar, yytname[DSQL_yychar1]); + /* Give the individual parser a way to print the precise + meaning of a token, for further debugging info. */ +# ifdef YYPRINT + YYPRINT (stderr, DSQL_yychar, yylval); +# endif + YYFPRINTF (stderr, ")\n"); + } +#endif + } + + yyn += DSQL_yychar1; + if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != DSQL_yychar1) + goto yydefault; + + yyn = yytable[yyn]; + + /* yyn is what to do for this token type in this state. + Negative => reduce, -yyn is rule number. + Positive => shift, yyn is new state. + New state is final state => don't bother to shift, + just return success. + 0, or most negative number => error. */ + + if (yyn < 0) + { + if (yyn == YYFLAG) + goto yyerrlab; + yyn = -yyn; + goto yyreduce; + } + else if (yyn == 0) + goto yyerrlab; + + if (yyn == YYFINAL) + YYACCEPT; + + /* Shift the lookahead token. */ + YYDPRINTF ((stderr, "Shifting token %d (%s), ", + DSQL_yychar, yytname[DSQL_yychar1])); + + /* Discard the token being shifted unless it is eof. */ + if (DSQL_yychar != YYEOF) + DSQL_yychar = YYEMPTY; + + *++yyvsp = yylval; +#if YYLSP_NEEDED + *++yylsp = yylloc; +#endif + + /* Count tokens shifted since error; after three, turn off error + status. */ + if (yyerrstatus) + yyerrstatus--; + + yystate = yyn; + goto yynewstate; + + +/*-----------------------------------------------------------. +| yydefault -- do the default action for the current state. | +`-----------------------------------------------------------*/ +yydefault: + yyn = yydefact[yystate]; + if (yyn == 0) + goto yyerrlab; + goto yyreduce; + + +/*-----------------------------. +| yyreduce -- Do a reduction. | +`-----------------------------*/ +yyreduce: + /* yyn is the number of a rule to reduce with. */ + yylen = yyr2[yyn]; + + /* If YYLEN is nonzero, implement the default value of the action: + `$$ = $1'. + + Otherwise, the following line sets YYVAL to the semantic value of + the lookahead token. This behavior is undocumented and Bison + users should not rely upon it. Assigning to YYVAL + unconditionally makes the parser a bit smaller, and it avoids a + GCC warning that YYVAL may be used uninitialized. */ + yyval = yyvsp[1-yylen]; + +#if YYLSP_NEEDED + /* Similarly for the default location. Let the user run additional + commands if for instance locations are ranges. */ + yyloc = yylsp[1-yylen]; + YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); +#endif + +#if YYDEBUG + /* We have to keep this `#if YYDEBUG', since we use variables which + are defined only if `YYDEBUG' is set. */ + if (lex.dsql_debug) + { + int yyi; + + YYFPRINTF (stderr, "Reducing via rule %d (line %d), ", + yyn, yyrline[yyn]); + + /* Print the symbols being reduced, and their result. */ + for (yyi = yyprhs[yyn]; yyrhs[yyi] > 0; yyi++) + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); + YYFPRINTF (stderr, " -> %s\n", yytname[yyr1[yyn]]); + } +#endif + + switch (yyn) { + +case 1: +{ DSQL_parse = yyvsp[0]; } + break; +case 2: +{ DSQL_parse = yyvsp[-1]; } + break; +case 21: +{ prepare_console_debug ((int) yyvsp[0], &lex.dsql_debug); + yyval = make_node (nod_null, (int) 0, NULL); } + break; +case 22: +{ yyval = make_node (nod_grant, (int) e_grant_count, + yyvsp[-5], yyvsp[-3], make_list(yyvsp[-1]), yyvsp[0]); } + break; +case 23: +{ yyval = make_node (nod_grant, (int) e_grant_count, + yyvsp[-6], yyvsp[-3], make_list(yyvsp[-1]), yyvsp[0]); } + break; +case 24: +{ yyval = make_node (nod_grant, (int) e_grant_count, + yyvsp[-4], yyvsp[-2], make_list(yyvsp[0]), NULL); } + break; +case 25: +{ yyval = make_node (nod_grant, (int) e_grant_count, + yyvsp[-5], yyvsp[-2], make_list(yyvsp[0]), NULL); } + break; +case 26: +{ yyval = make_node (nod_grant, (int) e_grant_count, + make_list(yyvsp[-3]), make_list(yyvsp[-1]), NULL, yyvsp[0]); } + break; +case 28: +{ yyval = yyvsp[0]; } + break; +case 29: +{ yyval = make_node (nod_all, (int) 0, NULL); } + break; +case 30: +{ yyval = make_node (nod_all, (int) 0, NULL); } + break; +case 31: +{ yyval = make_list (yyvsp[0]); } + break; +case 33: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 34: +{ yyval = make_list (make_node (nod_execute, (int) 0, NULL)); } + break; +case 35: +{ yyval = make_node (nod_select, (int) 0, NULL); } + break; +case 36: +{ yyval = make_node (nod_insert, (int) 0, NULL); } + break; +case 37: +{ yyval = make_node (nod_delete, (int) 0, NULL); } + break; +case 38: +{ yyval = make_node (nod_update, (int) 1, yyvsp[0]); } + break; +case 39: +{ yyval = make_node (nod_references, (int) 1, yyvsp[0]); } + break; +case 40: +{ yyval = make_node (nod_grant, (int) 0, NULL); } + break; +case 41: +{ yyval = 0; } + break; +case 42: +{ yyval = make_node (nod_grant_admin, (int) 0, NULL); } + break; +case 43: +{ yyval = 0; } + break; +case 44: +{ yyval = make_node (nod_procedure_name, (int) 1, yyvsp[0]); } + break; +case 45: +{ yyval = make_node (nod_revoke, + (int) e_grant_count, yyvsp[-4], yyvsp[-2], + make_list(yyvsp[0]), yyvsp[-5]); } + break; +case 46: +{ yyval = make_node (nod_revoke, + (int) e_grant_count, yyvsp[-5], yyvsp[-2], + make_list(yyvsp[0]), yyvsp[-6]); } + break; +case 47: +{ yyval = make_node (nod_revoke, + (int) e_grant_count, yyvsp[-4], yyvsp[-2], + make_list(yyvsp[0]), NULL); } + break; +case 48: +{ yyval = make_node (nod_revoke, + (int) e_grant_count, yyvsp[-5], yyvsp[-2], + make_list(yyvsp[0]), NULL); } + break; +case 49: +{ yyval = make_node (nod_revoke, + (int) e_grant_count, yyvsp[-4], yyvsp[-2], + make_list(yyvsp[0]), NULL); } + break; +case 50: +{ yyval = make_node (nod_revoke, + (int) e_grant_count, yyvsp[-5], yyvsp[-2], + make_list(yyvsp[0]), NULL); } + break; +case 51: +{ yyval = make_node (nod_revoke, + (int) e_grant_count, make_list(yyvsp[-2]), make_list(yyvsp[0]), + NULL, NULL); } + break; +case 52: +{ yyval = make_node (nod_grant, (int) 0, NULL); } + break; +case 54: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 55: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 56: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 57: +{ yyval = make_node (nod_proc_obj, (int) 1, yyvsp[0]); } + break; +case 58: +{ yyval = make_node (nod_trig_obj, (int) 1, yyvsp[0]); } + break; +case 59: +{ yyval = make_node (nod_view_obj, (int) 1, yyvsp[0]); } + break; +case 60: +{ yyval = make_node (nod_role_name, (int) 1, yyvsp[0]); } + break; +case 62: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 63: +{ yyval = make_node (nod_user_name, (int) 1, yyvsp[0]); } + break; +case 64: +{ yyval = make_node (nod_user_name, (int) 2, yyvsp[0], NULL); } + break; +case 65: +{ yyval = make_node (nod_user_group, (int) 1, yyvsp[0]); } + break; +case 67: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 68: +{ yyval = make_node (nod_role_name, (int) 1, yyvsp[0]); } + break; +case 70: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 71: +{ yyval = make_node (nod_user_name, (int) 1, yyvsp[0]); } + break; +case 72: +{ yyval = make_node (nod_user_name, (int) 1, yyvsp[0]); } + break; +case 73: +{ yyval = yyvsp[0];} + break; +case 74: +{ yyval = yyvsp[0]; } + break; +case 75: +{ yyval = yyvsp[0]; } + break; +case 76: +{ yyval = make_node (nod_def_udf, (int) e_udf_count, + yyvsp[-7], yyvsp[-2], yyvsp[0], make_list (yyvsp[-6]), yyvsp[-4]); } + break; +case 78: +{ lex.g_field->fld_dtype = dtype_blob; } + break; +case 79: +{ + lex.g_field->fld_dtype = dtype_cstring; + lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-2]; } + break; +case 80: +{ yyval = NULL; } + break; +case 82: +{ yyval = yyvsp[-1]; } + break; +case 84: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 85: +{ yyval = make_node (nod_udf_param, (int) e_udf_param_count, + yyvsp[-1], NULL); } + break; +case 86: +{ yyval = make_node (nod_udf_param, (int) e_udf_param_count, + yyvsp[-3], MAKE_constant ((dsql_str*) FUN_descriptor, CONSTANT_SLONG)); } + break; +case 88: +{ yyval = yyvsp[-1]; } + break; +case 89: +{ yyval = make_node (nod_udf_return_value, (int) 2, yyvsp[-1], + MAKE_constant ((dsql_str*) FUN_reference, CONSTANT_SLONG));} + break; +case 90: +{ yyval = make_node (nod_udf_return_value, (int) 2, yyvsp[-2], + MAKE_constant ((dsql_str*) (-1 * FUN_reference), CONSTANT_SLONG));} + break; +case 91: +{ yyval = make_node (nod_udf_return_value, (int) 2, yyvsp[-3], + MAKE_constant ((dsql_str*) FUN_value, CONSTANT_SLONG));} + break; +case 92: +{ yyval = make_node (nod_udf_return_value, (int) 2, yyvsp[-3], + MAKE_constant ((dsql_str*) FUN_descriptor, CONSTANT_SLONG));} + break; +case 93: +{ yyval = make_node (nod_udf_return_value, (int) 2, + NULL, MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG));} + break; +case 94: +{ yyval = make_node (nod_def_filter, (int) e_filter_count, + yyvsp[-8], yyvsp[-6], yyvsp[-4], yyvsp[-2], yyvsp[0]); } + break; +case 95: +{ yyval = yyvsp[0]; } + break; +case 96: +{ yyval = make_node (nod_def_exception, (int) e_xcp_count, + yyvsp[-1], yyvsp[0]); } + break; +case 97: +{ yyval = make_node (nod_def_index, (int) e_idx_count, + yyvsp[-6], yyvsp[-5], yyvsp[-3], yyvsp[-1], yyvsp[0]); } + break; +case 98: +{ yyval = yyvsp[0]; } + break; +case 99: +{ yyval = yyvsp[0]; } + break; +case 100: +{ yyval = yyvsp[0]; } + break; +case 101: +{ yyval = yyvsp[0]; } + break; +case 102: +{ yyval = yyvsp[0]; } + break; +case 103: +{ yyval = yyvsp[0]; } + break; +case 104: +{ yyval = yyvsp[0]; } + break; +case 105: +{ yyval = yyvsp[0]; } + break; +case 106: +{ yyval = yyvsp[0]; } + break; +case 107: +{ yyval = yyvsp[0]; } + break; +case 108: +{ yyval = yyvsp[0]; } + break; +case 109: +{ yyval = yyvsp[0]; } + break; +case 110: +{ yyval = yyvsp[0]; } + break; +case 111: +{ yyval = yyvsp[0]; } + break; +case 112: +{ yyval = yyvsp[0]; } + break; +case 113: +{ yyval = yyvsp[0]; } + break; +case 114: +{ yyval = make_node (nod_unique, 0, NULL); } + break; +case 115: +{ yyval = NULL; } + break; +case 116: +{ yyval = make_list (yyvsp[0]); } + break; +case 118: +{ yyval = make_node (nod_def_computed, 2, yyvsp[-2], yyvsp[-1]); } + break; +case 119: +{ yyval = make_node (nod_def_shadow, (int) e_shadow_count, + yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], make_list (yyvsp[0])); } + break; +case 120: +{ yyval = MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG); } + break; +case 121: +{ yyval = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } + break; +case 122: +{ yyval = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } + break; +case 123: +{ yyval = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } + break; +case 124: +{ yyval = MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG); } + break; +case 125: +{ yyval = (DSQL_NOD) 0;} + break; +case 126: +{ yyval = yyvsp[-1]; } + break; +case 127: +{ yyval = NULL; } + break; +case 130: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } + break; +case 131: +{ yyval = make_node (nod_def_domain, (int) e_dom_count, + yyvsp[-7], yyvsp[-3], yyvsp[-2], make_list (yyvsp[-1]), yyvsp[0]); } + break; +case 132: +{ yyval = NULL; } + break; +case 133: +{ yyval = NULL; } + break; +case 134: +{ yyval = yyvsp[0]; } + break; +case 135: +{ yyval = NULL; } + break; +case 136: +{ yyval = NULL; } + break; +case 139: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } + break; +case 140: +{ yyval = make_node (nod_rel_constraint, (int) 2, NULL, yyvsp[0]);} + break; +case 143: +{ yyval = make_node (nod_null, (int) 0, NULL); } + break; +case 144: +{ yyval = make_node (nod_def_constraint, + (int) e_cnstr_count, MAKE_string(NULL_STRING, 0), NULL, + NULL, NULL, yyvsp[-2], NULL, yyvsp[0], NULL, NULL); } + break; +case 145: +{ yyval = make_node (nod_def_generator, + (int) e_gen_count, yyvsp[0]); } + break; +case 146: +{ yyval = make_node (nod_def_role, + (int) 1, yyvsp[0]); } + break; +case 147: +{ yyval = make_node (nod_def_database, (int) e_cdb_count, + yyvsp[-2], make_list(yyvsp[-1]), make_list (yyvsp[0]));} + break; +case 150: +{ lex.log_defined = FALSE; + lex.cache_defined = FALSE; + yyval = (DSQL_NOD) yyvsp[0]; } + break; +case 151: +{yyval = NULL;} + break; +case 154: +{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } + break; +case 155: +{ yyval = make_node (nod_page_size, 1, yyvsp[0]);} + break; +case 156: +{ yyval = make_node (nod_file_length, 1, yyvsp[-1]);} + break; +case 157: +{ yyval = make_node (nod_user_name, 1, yyvsp[0]);} + break; +case 158: +{ yyval = make_node (nod_password, 1, yyvsp[0]);} + break; +case 159: +{ yyval = make_node (nod_lc_ctype, 1, yyvsp[0]);} + break; +case 160: +{yyval = NULL;} + break; +case 163: +{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } + break; +case 167: +{ yyval = make_node (nod_dfl_charset, 1, yyvsp[0]);} + break; +case 168: +{ yyval = make_node (nod_difference_file, 1, yyvsp[0]); } + break; +case 169: +{ yyval = make_node (nod_group_commit_wait, 1, yyvsp[0]);} + break; +case 170: +{ yyval = make_node (nod_check_point_len, 1, yyvsp[0]);} + break; +case 171: +{ yyval = make_node (nod_num_log_buffers, 1, yyvsp[0]);} + break; +case 172: +{ yyval = make_node (nod_log_buffer_size, 1, yyvsp[0]);} + break; +case 173: +{ if (lex.log_defined) + yyabandon (-260, isc_log_redef); /* Log redefined */ + lex.log_defined = TRUE; + yyval = yyvsp[0]; } + break; +case 174: +{ if (lex.log_defined) + yyabandon (-260, isc_log_redef); + lex.log_defined = TRUE; + yyval = yyvsp[0]; } + break; +case 175: +{ lex.g_file->fil_flags |= LOG_serial | LOG_overflow; + if (lex.g_file->fil_partitions) + yyabandon (-261, isc_partition_not_supp); + /* Partitions not supported in series of log file specification */ + yyval = make_node (nod_list, 2, yyvsp[-3], yyvsp[0]); } + break; +case 176: +{ lex.g_file->fil_flags |= LOG_serial; + if (lex.g_file->fil_partitions) + yyabandon (-261, isc_partition_not_supp); + yyval = yyvsp[0]; } + break; +case 177: +{ lex.g_file = make_file(); + lex.g_file->fil_flags = LOG_serial | LOG_default; + yyval = make_node (nod_log_file_desc, (int) 1, + (DSQL_NOD) lex.g_file);} + break; +case 178: +{ lex.g_file->fil_name = (dsql_str*) yyvsp[-1]; + yyval = (DSQL_NOD) make_node (nod_file_desc, (int) 1, + (DSQL_NOD) lex.g_file); } + break; +case 180: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 181: +{ + check_log_file_attrs(); + yyval = (DSQL_NOD) make_node (nod_log_file_desc, (int) 1, + (DSQL_NOD) lex.g_file); } + break; +case 182: +{ lex.g_file = make_file(); + lex.g_file->fil_name = (dsql_str*) yyvsp[0]; } + break; +case 185: +{ lex.g_file->fil_length = (SLONG) yyvsp[0]; } + break; +case 186: +{ lex.g_file = make_file ();} + break; +case 191: +{ lex.g_file->fil_start = (SLONG) yyvsp[0];} + break; +case 192: +{ lex.g_file->fil_length = (SLONG) yyvsp[-1];} + break; +case 199: +{ yyval = make_node (nod_def_relation, + (int) e_drl_count, yyvsp[-4], make_list (yyvsp[-1]), yyvsp[-3]); } + break; +case 200: +{ yyval = make_node (nod_redef_relation, + (int) e_drl_count, yyvsp[-4], make_list (yyvsp[-1]), yyvsp[-3]); } + break; +case 201: +{ yyval = yyvsp[0]; } + break; +case 202: +{ yyval = yyvsp[0]; } + break; +case 203: +{ yyval = NULL; } + break; +case 205: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 208: +{ yyval = make_node (nod_def_field, (int) e_dfl_count, + yyvsp[-5], yyvsp[-3], yyvsp[-2], make_list (yyvsp[-1]), yyvsp[0], yyvsp[-4], NULL); } + break; +case 209: +{ yyval = make_node (nod_def_field, (int) e_dfl_count, + yyvsp[-2], NULL, NULL, NULL, NULL, NULL, yyvsp[0]); } + break; +case 210: +{ yyval = make_node (nod_def_field, (int) e_dfl_count, + yyvsp[-1], NULL, NULL, NULL, NULL, NULL, yyvsp[0]); } + break; +case 211: +{ + lex.g_field->fld_flags |= FLD_computed; + yyval = make_node (nod_def_computed, 2, yyvsp[-2], yyvsp[-1]); } + break; +case 214: +{ yyval = NULL; } + break; +case 215: +{ yyval = make_node (nod_def_domain, (int) e_dom_count, + yyvsp[-1], NULL, NULL, NULL, NULL); } + break; +case 216: +{ yyval = yyvsp[0]; } + break; +case 217: +{ yyval = NULL; } + break; +case 218: +{ lex.g_field_name = yyvsp[0]; + lex.g_field = make_field (yyvsp[0]); + yyval = (DSQL_NOD) lex.g_field; } + break; +case 219: +{ lex.g_field = make_field (yyvsp[0]); + yyval = (DSQL_NOD) lex.g_field; } + break; +case 220: +{ yyval = yyvsp[-1]; } + break; +case 221: +{ lex.g_field = make_field (NULL); + yyval = (DSQL_NOD) lex.g_field; } + break; +case 222: +{ yyval = yyvsp[0]; } + break; +case 223: +{ yyval = NULL; } + break; +case 227: +{ yyval = yyvsp[0]; } + break; +case 228: +{ yyval = yyvsp[0]; } + break; +case 229: +{ yyval = yyvsp[0]; } + break; +case 230: +{ yyval = NULL; } + break; +case 233: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } + break; +case 234: +{ yyval = make_node (nod_rel_constraint, (int) 2, yyvsp[-1], yyvsp[0]);} + break; +case 235: +{ yyval = make_node (nod_null, (int) 1, NULL); } + break; +case 236: +{ yyval = make_node (nod_foreign, (int) e_for_count, + make_node (nod_list, (int) 1, lex.g_field_name), yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 238: +{ yyval = make_node (nod_unique, 2, NULL, yyvsp[0]); } + break; +case 239: +{ yyval = make_node (nod_primary, (int) e_pri_count, NULL, yyvsp[0]); } + break; +case 240: +{ yyval = make_node (nod_rel_constraint, (int) 2, yyvsp[-1], yyvsp[0]);} + break; +case 241: +{ yyval = yyvsp[0]; } + break; +case 242: +{ yyval = NULL ;} + break; +case 247: +{ yyval = make_node (nod_unique, 2, yyvsp[-1], yyvsp[0]); } + break; +case 248: +{ yyval = make_node (nod_primary, (int) e_pri_count, yyvsp[-1], yyvsp[0]); } + break; +case 249: +{ yyval = make_node (nod_foreign, (int) e_for_count, yyvsp[-5], yyvsp[-3], + yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 250: +{ yyval = make_node (nod_def_index, (int) e_idx_count, + NULL, yyvsp[-2], yyvsp[0], NULL, NULL); } + break; +case 251: +{ yyval = make_node (nod_def_index, (int) e_idx_count, + NULL, NULL, NULL, NULL, NULL); } + break; +case 252: +{ yyval = make_node (nod_def_constraint, + (int) e_cnstr_count, MAKE_string(NULL_STRING, 0), NULL, + NULL, NULL, yyvsp[-2], NULL, yyvsp[0], NULL, NULL); } + break; +case 253: +{ yyval = make_node (nod_ref_upd_del, (int) e_ref_upd_del_count, yyvsp[0], NULL);} + break; +case 254: +{ yyval = make_node (nod_ref_upd_del, (int) e_ref_upd_del_count, NULL, yyvsp[0]);} + break; +case 255: +{ yyval = make_node (nod_ref_upd_del, (int) e_ref_upd_del_count, yyvsp[0], yyvsp[-1]); } + break; +case 256: +{ yyval = make_node (nod_ref_upd_del, (int) e_ref_upd_del_count, yyvsp[-1], yyvsp[0]);} + break; +case 257: +{ yyval = NULL;} + break; +case 258: +{ yyval = yyvsp[0];} + break; +case 259: +{ yyval = yyvsp[0];} + break; +case 260: +{ yyval = make_flag_node (nod_ref_trig_action, + REF_ACTION_CASCADE, (int) e_ref_trig_action_count, NULL);} + break; +case 261: +{ yyval = make_flag_node (nod_ref_trig_action, + REF_ACTION_SET_DEFAULT, (int) e_ref_trig_action_count, NULL);} + break; +case 262: +{ yyval = make_flag_node (nod_ref_trig_action, + REF_ACTION_SET_NULL, (int) e_ref_trig_action_count, NULL);} + break; +case 263: +{ yyval = make_flag_node (nod_ref_trig_action, + REF_ACTION_NONE, (int) e_ref_trig_action_count, NULL);} + break; +case 264: +{ yyval = make_node (nod_def_procedure, + (int) e_prc_count, yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 265: +{ yyval = make_node (nod_redef_procedure, + (int) e_prc_count, yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 266: +{ yyval = make_node (nod_replace_procedure, + (int) e_prc_count, yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 267: +{ yyval = make_node (nod_mod_procedure, + (int) e_prc_count, yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 268: +{ yyval = make_list (yyvsp[-1]); } + break; +case 269: +{ yyval = NULL; } + break; +case 270: +{ yyval = yyvsp[0]; } + break; +case 271: +{ yyval = NULL; } + break; +case 273: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 274: +{ yyval = make_node (nod_def_field, (int) e_dfl_count, + yyvsp[-1], NULL, NULL, NULL, NULL, NULL, NULL); } + break; +case 275: +{ yyval = make_list (yyvsp[0]); } + break; +case 276: +{ yyval = NULL; } + break; +case 278: +{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } + break; +case 279: +{ yyval = yyvsp[-1]; } + break; +case 282: +{ yyval = make_node (nod_def_field, (int) e_dfl_count, + yyvsp[-2], yyvsp[0], NULL, NULL, NULL, NULL, NULL); } + break; +case 283: +{ yyval = NULL; } + break; +case 284: +{ yyval = NULL; } + break; +case 285: +{ yyval = yyvsp[0]; } + break; +case 286: +{ yyval = yyvsp[0]; } + break; +case 287: +{ yyval = make_node (nod_cursor, (int) e_cur_count, + yyvsp[-5], yyvsp[-1], NULL, NULL); } + break; +case 290: +{ yyval = yyvsp[-1]; } + break; +case 291: +{ yyval = make_node (nod_block, (int) e_blk_count, make_list (yyvsp[0]), NULL); } + break; +case 292: +{ yyval = make_node (nod_block, (int) e_blk_count, make_list (yyvsp[-1]), make_list (yyvsp[0])); } + break; +case 293: +{ yyval = make_node (nod_block, (int) e_blk_count, NULL, NULL);} + break; +case 295: +{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } + break; +case 311: +{ yyval = make_node (nod_return, (int) e_rtn_count, NULL); } + break; +case 312: +{ yyval = make_node (nod_exit, 0, NULL); } + break; +case 315: +{ yyval = make_node (nod_exception_stmt, (int) e_xcp_count, yyvsp[-1], NULL); } + break; +case 316: +{ yyval = make_node (nod_exception_stmt, (int) e_xcp_count, yyvsp[-2], yyvsp[-1]); } + break; +case 317: +{ yyval = make_node (nod_exception_stmt, (int) e_xcp_count, NULL, NULL); } + break; +case 318: +{ yyval = make_node (nod_exec_procedure, (int) e_exe_count, yyvsp[-3], + yyvsp[-2], yyvsp[-1]); } + break; +case 319: +{ yyval = make_node (nod_exec_sql, (int) e_exec_sql_count, yyvsp[-1]); } + break; +case 322: +{ yyval = make_node (nod_for_select, (int) e_flp_count, yyvsp[-5], + make_list (yyvsp[-3]), yyvsp[-2], yyvsp[0], yyvsp[-7]); } + break; +case 323: +{ yyval = make_node (nod_exec_into, (int) e_exec_into_count, yyvsp[-4], yyvsp[0], make_list (yyvsp[-2]), yyvsp[-8]); } + break; +case 324: +{ yyval = make_node (nod_exec_into, (int) e_exec_into_count, yyvsp[-3], 0, make_list (yyvsp[-1])); } + break; +case 325: +{ yyval = make_node (nod_if, (int) e_if_count, yyvsp[-5], yyvsp[-2], yyvsp[0]); } + break; +case 326: +{ yyval = make_node (nod_if, (int) e_if_count, yyvsp[-3], yyvsp[0], NULL); } + break; +case 327: +{ yyval = make_node (nod_post, (int) e_pst_count, yyvsp[-2], yyvsp[-1]); } + break; +case 328: +{ yyval = NULL; } + break; +case 329: +{ yyval = make_node (nod_for_select, (int) e_flp_count, yyvsp[-3], + make_list (yyvsp[-1]), NULL, NULL); } + break; +case 330: +{ yyval = make_node (nod_var_name, (int) e_vrn_count, + yyvsp[0]); } + break; +case 331: +{ yyval = make_list (yyvsp[0]); } + break; +case 332: +{ yyval = make_list (yyvsp[-1]); } + break; +case 333: +{ yyval = NULL; } + break; +case 334: +{ yyval = make_list (yyvsp[0]); } + break; +case 335: +{ yyval = make_list (yyvsp[-1]); } + break; +case 336: +{ yyval = NULL; } + break; +case 339: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 340: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 341: +{ yyval = make_node (nod_while, (int) e_while_count, yyvsp[-3], yyvsp[0], yyvsp[-6]); } + break; +case 342: +{ yyval = make_node (nod_label, (int) e_label_count, yyvsp[-1], NULL); } + break; +case 343: +{ yyval = NULL; } + break; +case 344: +{ yyval = make_node (nod_breakleave, (int) e_breakleave_count, NULL); } + break; +case 345: +{ yyval = make_node (nod_breakleave, (int) e_breakleave_count, NULL); } + break; +case 346: +{ yyval = make_node (nod_breakleave, (int) e_breakleave_count, + make_node (nod_label, (int) e_label_count, yyvsp[-1], NULL)); } + break; +case 347: +{ yyval = make_node (nod_cursor, (int) e_cur_count, yyvsp[0], NULL, NULL, NULL); } + break; +case 348: +{ yyval = NULL; } + break; +case 350: +{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } + break; +case 351: +{ yyval = make_node (nod_on_error, (int) e_err_count, + make_list (yyvsp[-2]), yyvsp[0]); } + break; +case 353: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 354: +{ yyval = make_node (nod_sqlcode, 1, yyvsp[0]); } + break; +case 355: +{ yyval = make_node (nod_gdscode, 1, yyvsp[0]); } + break; +case 356: +{ yyval = make_node (nod_exception, 1, yyvsp[0]); } + break; +case 357: +{ yyval = make_node (nod_default, 1, NULL); } + break; +case 361: +{ yyval = make_node (nod_cursor_open, (int) e_cur_stmt_count, yyvsp[0], NULL, NULL); } + break; +case 362: +{ yyval = make_node (nod_cursor_close, (int) e_cur_stmt_count, yyvsp[0], NULL, NULL); } + break; +case 363: +{ yyval = make_node (nod_cursor_fetch, (int) e_cur_stmt_count, yyvsp[-2], yyvsp[-3], make_list (yyvsp[0])); } + break; +case 364: +{ yyval = NULL; } + break; +case 365: +{ yyval = make_node (nod_exec_procedure, (int) e_exe_count, yyvsp[-1], + yyvsp[0], make_node (nod_all, (int) 0, NULL)); } + break; +case 366: +{ yyval = make_node (nod_def_view, (int) e_view_count, + yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 367: +{ yyval = make_node (nod_redef_view, (int) e_view_count, + yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 368: +{ yyval = make_node (nod_select, (int) e_select_count, yyvsp[0], NULL, NULL, NULL, NULL); } + break; +case 369: +{ yyval = make_node (nod_list, (int) 1, yyvsp[0]); } + break; +case 370: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 371: +{ yyval = make_flag_node (nod_list, NOD_UNION_ALL, 2, yyvsp[-3], yyvsp[0]); } + break; +case 372: +{ yyval = make_node (nod_select_expr, (int) e_sel_count, + NULL, yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], NULL, NULL, NULL); } + break; +case 373: +{ yyval = make_list (yyvsp[0]); } + break; +case 375: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 378: +{ yyval = make_node (nod_join, (int) e_join_count, + yyvsp[-5], yyvsp[-4], yyvsp[-2], yyvsp[0]); } + break; +case 379: +{ yyval = yyvsp[-1]; } + break; +case 380: +{ lex.beginning = lex_position(); } + break; +case 381: +{ yyval = (DSQL_NOD) MAKE_string(lex.beginning, + (lex_position() == lex.end) ? + lex_position()-lex.beginning : lex.last_token-lex.beginning);} + break; +case 382: +{ lex.beginning = lex.last_token; } + break; +case 383: +{ yyval = (DSQL_NOD) MAKE_string(lex.beginning, + lex_position()-lex.beginning); } + break; +case 384: +{ yyval = make_node (nod_def_constraint, (int) e_cnstr_count, + MAKE_string(NULL_STRING, 0), NULL, NULL, NULL, + NULL, NULL, NULL, NULL, NULL); } + break; +case 385: +{ yyval = 0; } + break; +case 386: +{ yyval = make_node (nod_def_trigger, (int) e_trg_count, + yyvsp[-8], yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-1], yyvsp[0], NULL); } + break; +case 387: +{ yyval = make_node (nod_replace_trigger, (int) e_trg_count, + yyvsp[-8], yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-1], yyvsp[0], NULL); } + break; +case 388: +{ yyval = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } + break; +case 389: +{ yyval = MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG); } + break; +case 390: +{ yyval = NULL; } + break; +case 391: +{ yyval = MAKE_trigger_type (yyvsp[-1], yyvsp[0]); } + break; +case 392: +{ yyval = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } + break; +case 393: +{ yyval = MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG); } + break; +case 394: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 0, 0), CONSTANT_SLONG); } + break; +case 395: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 0, 0), CONSTANT_SLONG); } + break; +case 396: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 0, 0), CONSTANT_SLONG); } + break; +case 397: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 2, 0), CONSTANT_SLONG); } + break; +case 398: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 3, 0), CONSTANT_SLONG); } + break; +case 399: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 1, 0), CONSTANT_SLONG); } + break; +case 400: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 3, 0), CONSTANT_SLONG); } + break; +case 401: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 1, 0), CONSTANT_SLONG); } + break; +case 402: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 2, 0), CONSTANT_SLONG); } + break; +case 403: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 2, 3), CONSTANT_SLONG); } + break; +case 404: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 3, 2), CONSTANT_SLONG); } + break; +case 405: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 1, 3), CONSTANT_SLONG); } + break; +case 406: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 3, 1), CONSTANT_SLONG); } + break; +case 407: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 1, 2), CONSTANT_SLONG); } + break; +case 408: +{ yyval = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 2, 1), CONSTANT_SLONG); } + break; +case 409: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG); } + break; +case 410: +{ yyval = NULL; } + break; +case 411: +{ yyval = make_node (nod_list, (int) e_trg_act_count, yyvsp[-1], yyvsp[0]); } + break; +case 412: +{ yyval = yyvsp[0]; } + break; +case 413: +{ yyval = make_node (nod_mod_exception, (int) e_xcp_count, + yyvsp[-1], yyvsp[0]); } + break; +case 414: +{ yyval = make_node (nod_mod_relation, (int) e_alt_count, + yyvsp[-1], make_list (yyvsp[0])); } + break; +case 415: +{ yyval = yyvsp[0]; } + break; +case 416: +{ yyval = yyvsp[0]; } + break; +case 417: +{ yyval = make_node (nod_mod_database, (int) e_adb_count, + make_list (yyvsp[0])); } + break; +case 418: +{ yyval = make_node (nod_mod_domain, (int) e_alt_count, + yyvsp[-1], make_list (yyvsp[0])); } + break; +case 419: +{ yyval = make_node (nod_mod_index, + (int) e_mod_idx_count, yyvsp[0]); } + break; +case 420: +{ yyval = yyvsp[0]; } + break; +case 421: +{ yyval = make_node (nod_def_constraint, + (int) e_cnstr_count, MAKE_string(NULL_STRING, 0), NULL, + NULL, NULL, yyvsp[-2], NULL, yyvsp[0], NULL, NULL); } + break; +case 423: +{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } + break; +case 424: +{ yyval = make_node (nod_def_default, (int) e_dft_count, + yyvsp[-1], yyvsp[0]); } + break; +case 425: +{ yyval = yyvsp[0]; } + break; +case 426: +{ yyval = yyvsp[0]; } + break; +case 427: +{yyval = make_node (nod_del_default, (int) 0, NULL); } + break; +case 428: +{ yyval = make_node (nod_delete_rel_constraint, (int) 1, NULL); } + break; +case 429: +{ yyval = yyvsp[0]; } + break; +case 430: +{ yyval = make_node (nod_mod_domain_type, 2, yyvsp[-1]); } + break; +case 432: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 433: +{ yyval = make_node (nod_del_field, 2, yyvsp[-1], yyvsp[0]); } + break; +case 434: +{ yyval = make_node (nod_delete_rel_constraint, (int) 1, yyvsp[0]);} + break; +case 435: +{ yyval = yyvsp[0]; } + break; +case 436: +{ yyval = yyvsp[0]; } + break; +case 437: +{ yyval = make_node (nod_mod_field_pos, 2, yyvsp[-2], + MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG)); } + break; +case 438: +{ yyval = make_node (nod_mod_field_name, 2, yyvsp[-2], yyvsp[0]); } + break; +case 439: +{ yyval = make_node (nod_mod_field_type, 3, yyvsp[-3], yyvsp[0], yyvsp[-1]); } + break; +case 440: +{ yyval = make_node (nod_field_name, (int) e_fln_count, + NULL, yyvsp[0]); } + break; +case 468: +{ yyval = NULL; } + break; +case 469: +{ yyval = NULL; } + break; +case 470: +{ yyval = NULL; } + break; +case 471: +{ yyval = make_node (nod_def_domain, (int) e_dom_count, + yyvsp[-1], NULL, NULL, NULL, NULL); } + break; +case 472: +{ lex.g_field_name = yyvsp[0]; + lex.g_field = make_field (yyvsp[0]); + yyval = (DSQL_NOD) lex.g_field; } + break; +case 473: +{ yyval = make_node (nod_restrict, 0, NULL); } + break; +case 474: +{ yyval = make_node (nod_cascade, 0, NULL); } + break; +case 475: +{ yyval = make_node (nod_restrict, 0, NULL); } + break; +case 476: +{ yyval = make_node (nod_idx_active, 1, yyvsp[-1]); } + break; +case 477: +{ yyval = make_node (nod_idx_inactive, 1, yyvsp[-1]); } + break; +case 478: +{ lex.log_defined = FALSE; + lex.cache_defined = FALSE; + yyval = NULL; } + break; +case 480: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } + break; +case 481: +{ yyval = yyvsp[0]; } + break; +case 482: +{ yyval = make_node (nod_drop_log, (int) 0, NULL); } + break; +case 483: +{ yyval = yyvsp[0]; } + break; +case 484: +{ yyval = yyvsp[0]; } + break; +case 485: +{ yyval = make_node (nod_difference_file, (int) 1, yyvsp[0]); } + break; +case 486: +{ yyval = make_node (nod_drop_difference, (int) 0, NULL); } + break; +case 487: +{ yyval = make_node (nod_begin_backup, (int) 0, NULL); } + break; +case 488: +{ yyval = make_node (nod_end_backup, (int) 0, NULL); } + break; +case 490: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 491: +{ yyval = make_node (nod_mod_trigger, (int) e_trg_count, + yyvsp[-6], NULL, yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-1], yyvsp[0], NULL); } + break; +case 493: +{ yyval = NULL; } + break; +case 495: +{ yyval = NULL; } + break; +case 496: +{ yyval = yyvsp[0]; } + break; +case 497: +{ yyval = make_node (nod_del_exception, 1, yyvsp[0]); } + break; +case 498: +{ yyval = make_node (nod_del_index, (int) 1, yyvsp[0]); } + break; +case 499: +{ yyval = make_node (nod_del_procedure, (int) 1, yyvsp[0]); } + break; +case 500: +{ yyval = make_node (nod_del_relation, (int) 1, yyvsp[0]); } + break; +case 501: +{ yyval = make_node (nod_del_trigger, (int) 1, yyvsp[0]); } + break; +case 502: +{ yyval = make_node (nod_del_view, (int) 1, yyvsp[0]); } + break; +case 503: +{ yyval = make_node (nod_del_filter, (int) 1, yyvsp[0]); } + break; +case 504: +{ yyval = make_node (nod_del_domain, (int) 1, yyvsp[0]); } + break; +case 505: +{ yyval = make_node (nod_del_udf, (int) 1, yyvsp[0]); } + break; +case 506: +{ yyval = make_node (nod_del_shadow, (int) 1, yyvsp[0]); } + break; +case 507: +{ yyval = make_node (nod_del_role, (int) 1, yyvsp[0]); } + break; +case 508: +{ yyval = make_node (nod_del_generator, (int) 1, yyvsp[0]); } + break; +case 513: +{ lex.g_field->fld_ranges = make_list (yyvsp[-1]); + lex.g_field->fld_dimensions = lex.g_field->fld_ranges->nod_count / 2; + lex.g_field->fld_element_dtype = lex.g_field->fld_dtype; + yyval = yyvsp[-3]; } + break; +case 514: +{ lex.g_field->fld_ranges = make_list (yyvsp[-2]); + lex.g_field->fld_dimensions = lex.g_field->fld_ranges->nod_count / 2; + lex.g_field->fld_element_dtype = lex.g_field->fld_dtype; + yyval = yyvsp[-4]; } + break; +case 516: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 517: +{ if ((SLONG) yyvsp[0] < 1) + yyval = make_node (nod_list, (int) 2, + MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); + else + yyval = make_node (nod_list, (int) 2, + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG) ); } + break; +case 518: +{ yyval = make_node (nod_list, (int) 2, + MAKE_constant ((dsql_str*) yyvsp[-2], CONSTANT_SLONG), + MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG)); } + break; +case 524: +{ + if (client_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_dialect_datatype_unsupport, + isc_arg_number, client_dialect, + isc_arg_string, "BIGINT", + 0); + if (db_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, + isc_arg_number, db_dialect, + isc_arg_string, "BIGINT", + 0); + lex.g_field->fld_dtype = dtype_int64; + lex.g_field->fld_length = sizeof (SINT64); + } + break; +case 525: +{ + lex.g_field->fld_dtype = dtype_long; + lex.g_field->fld_length = sizeof (SLONG); + } + break; +case 526: +{ + lex.g_field->fld_dtype = dtype_short; + lex.g_field->fld_length = sizeof (SSHORT); + } + break; +case 527: +{ + *stmt_ambiguous = TRUE; + if (client_dialect <= SQL_DIALECT_V5) + { + /* Post warning saying that DATE is equivalent to TIMESTAMP */ + ERRD_post_warning (isc_sqlwarn, isc_arg_number, (SLONG) 301, + isc_arg_warning, isc_dtype_renamed, 0); + lex.g_field->fld_dtype = dtype_timestamp; + lex.g_field->fld_length = sizeof (GDS_TIMESTAMP); + } + else if (client_dialect == SQL_DIALECT_V6_TRANSITION) + yyabandon (-104, isc_transitional_date); + else + { + lex.g_field->fld_dtype = dtype_sql_date; + lex.g_field->fld_length = sizeof (ULONG); + } + } + break; +case 528: +{ + if (client_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_dialect_datatype_unsupport, + isc_arg_number, client_dialect, + isc_arg_string, "TIME", + 0); + if (db_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, + isc_arg_number, db_dialect, + isc_arg_string, "TIME", + 0); + lex.g_field->fld_dtype = dtype_sql_time; + lex.g_field->fld_length = sizeof (SLONG); + } + break; +case 529: +{ + lex.g_field->fld_dtype = dtype_timestamp; + lex.g_field->fld_length = sizeof (GDS_TIMESTAMP); + } + break; +case 532: +{ + lex.g_field->fld_dtype = dtype_blob; + } + break; +case 533: +{ + lex.g_field->fld_dtype = dtype_blob; + lex.g_field->fld_seg_length = (USHORT)(ULONG) yyvsp[-1]; + lex.g_field->fld_sub_type = 0; + } + break; +case 534: +{ + lex.g_field->fld_dtype = dtype_blob; + lex.g_field->fld_seg_length = (USHORT)(ULONG) yyvsp[-3]; + lex.g_field->fld_sub_type = (USHORT)(ULONG) yyvsp[-1]; + } + break; +case 535: +{ + lex.g_field->fld_dtype = dtype_blob; + lex.g_field->fld_seg_length = 80; + lex.g_field->fld_sub_type = (USHORT)(ULONG) yyvsp[-1]; + } + break; +case 536: +{ + lex.g_field->fld_seg_length = (USHORT)(ULONG) yyvsp[0]; + } + break; +case 537: +{ + lex.g_field->fld_seg_length = (USHORT) 80; + } + break; +case 538: +{ + lex.g_field->fld_sub_type = (USHORT)(ULONG) yyvsp[0]; + } + break; +case 539: +{ + lex.g_field->fld_sub_type_name = yyvsp[0]; + } + break; +case 540: +{ + lex.g_field->fld_sub_type = (USHORT) 0; + } + break; +case 541: +{ + lex.g_field->fld_character_set = yyvsp[0]; + } + break; +case 543: +{ + lex.g_field->fld_dtype = dtype_text; + lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-1]; + lex.g_field->fld_flags |= FLD_national; + } + break; +case 544: +{ + lex.g_field->fld_dtype = dtype_text; + lex.g_field->fld_character_length = 1; + lex.g_field->fld_flags |= FLD_national; + } + break; +case 545: +{ + lex.g_field->fld_dtype = dtype_varying; + lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-1]; + lex.g_field->fld_flags |= FLD_national; + } + break; +case 546: +{ + lex.g_field->fld_dtype = dtype_text; + lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-1]; + } + break; +case 547: +{ + lex.g_field->fld_dtype = dtype_text; + lex.g_field->fld_character_length = 1; + } + break; +case 548: +{ + lex.g_field->fld_dtype = dtype_varying; + lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-1]; + } + break; +case 557: +{ + lex.g_field->fld_sub_type = dsc_num_type_numeric; + } + break; +case 558: +{ + lex.g_field->fld_sub_type = dsc_num_type_decimal; + if (lex.g_field->fld_dtype == dtype_short) + { + lex.g_field->fld_dtype = dtype_long; + lex.g_field->fld_length = sizeof (SLONG); + }; + } + break; +case 559: +{ + lex.g_field->fld_dtype = dtype_long; + lex.g_field->fld_length = sizeof (SLONG); + lex.g_field->fld_precision = 9; + } + break; +case 560: +{ + if ( ((SLONG) yyvsp[-1] < 1) || ((SLONG) yyvsp[-1] > 18) ) + yyabandon (-842, isc_precision_err); + /* Precision most be between 1 and 18. */ + if ((SLONG) yyvsp[-1] > 9) + { + if ( ( (client_dialect <= SQL_DIALECT_V5) && + (db_dialect > SQL_DIALECT_V5) ) || + ( (client_dialect > SQL_DIALECT_V5) && + (db_dialect <= SQL_DIALECT_V5) ) ) + ERRD_post (isc_sqlerr, + isc_arg_number, (SLONG) -817, + isc_arg_gds, + isc_ddl_not_allowed_by_db_sql_dial, + isc_arg_number, (SLONG) db_dialect, + 0); + if (client_dialect <= SQL_DIALECT_V5) + { + lex.g_field->fld_dtype = dtype_double; + lex.g_field->fld_length = sizeof (double); + } + else + { + if (client_dialect == SQL_DIALECT_V6_TRANSITION) + { + ERRD_post_warning ( + isc_dsql_warn_precision_ambiguous, + isc_arg_end ); + ERRD_post_warning ( + isc_dsql_warn_precision_ambiguous1, + isc_arg_end ); + ERRD_post_warning ( + isc_dsql_warn_precision_ambiguous2, + isc_arg_end ); + + } + lex.g_field->fld_dtype = dtype_int64; + lex.g_field->fld_length = sizeof (SINT64); + } + } + else + if ((SLONG) yyvsp[-1] < 5) + { + lex.g_field->fld_dtype = dtype_short; + lex.g_field->fld_length = sizeof (SSHORT); + } + else + { + lex.g_field->fld_dtype = dtype_long; + lex.g_field->fld_length = sizeof (SLONG); + } + lex.g_field->fld_precision = (USHORT)(ULONG) yyvsp[-1]; + } + break; +case 561: +{ + if ( ((SLONG) yyvsp[-3] < 1) || ((SLONG) yyvsp[-3] > 18) ) + yyabandon (-842, isc_precision_err); + /* Precision should be between 1 and 18 */ + if (((SLONG) yyvsp[-1] > (SLONG) yyvsp[-3]) || ((SLONG) yyvsp[-1] < 0)) + yyabandon (-842, isc_scale_nogt); + /* Scale must be between 0 and precision */ + if ((SLONG) yyvsp[-3] > 9) + { + if ( ( (client_dialect <= SQL_DIALECT_V5) && + (db_dialect > SQL_DIALECT_V5) ) || + ( (client_dialect > SQL_DIALECT_V5) && + (db_dialect <= SQL_DIALECT_V5) ) ) + ERRD_post (isc_sqlerr, + isc_arg_number, (SLONG) -817, + isc_arg_gds, + isc_ddl_not_allowed_by_db_sql_dial, + isc_arg_number, (SLONG) db_dialect, + 0); + if (client_dialect <= SQL_DIALECT_V5) + { + lex.g_field->fld_dtype = dtype_double; + lex.g_field->fld_length = sizeof (double); + } + else + { + if (client_dialect == SQL_DIALECT_V6_TRANSITION) + { + ERRD_post_warning ( + isc_dsql_warn_precision_ambiguous, + isc_arg_end ); + ERRD_post_warning ( + isc_dsql_warn_precision_ambiguous1, + isc_arg_end ); + ERRD_post_warning ( + isc_dsql_warn_precision_ambiguous2, + isc_arg_end ); + } + /* client_dialect >= SQL_DIALECT_V6 */ + lex.g_field->fld_dtype = dtype_int64; + lex.g_field->fld_length = sizeof (SINT64); + } + } + else + { + if ((SLONG) yyvsp[-3] < 5) + { + lex.g_field->fld_dtype = dtype_short; + lex.g_field->fld_length = sizeof (SSHORT); + } + else + { + lex.g_field->fld_dtype = dtype_long; + lex.g_field->fld_length = sizeof (SLONG); + } + } + lex.g_field->fld_precision = (USHORT)(ULONG) yyvsp[-3]; + lex.g_field->fld_scale = - (SSHORT)(SLONG) yyvsp[-1]; + } + break; +case 564: +{ + if ((SLONG) yyvsp[0] > 7) + { + lex.g_field->fld_dtype = dtype_double; + lex.g_field->fld_length = sizeof (double); + } + else + { + lex.g_field->fld_dtype = dtype_real; + lex.g_field->fld_length = sizeof (float); + } + } + break; +case 565: +{ + lex.g_field->fld_dtype = dtype_double; + lex.g_field->fld_length = sizeof (double); + } + break; +case 566: +{ + lex.g_field->fld_dtype = dtype_real; + lex.g_field->fld_length = sizeof (float); + } + break; +case 567: +{ + lex.g_field->fld_dtype = dtype_double; + lex.g_field->fld_length = sizeof (double); + } + break; +case 568: +{ yyval = yyvsp[-1]; } + break; +case 569: +{ yyval = 0; } + break; +case 573: +{ + yyval = make_node (nod_set_generator2,e_gen_id_count,yyvsp[-2], + MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG)); + } + break; +case 574: +{ + yyval = make_node (nod_set_generator2,e_gen_id_count,yyvsp[-2], + MAKE_constant((dsql_str*)yyvsp[0], CONSTANT_SINT64)); + } + break; +case 575: +{ + yyval = make_node (nod_set_generator2, (int) e_gen_id_count, yyvsp[-3], + make_node(nod_negate, 1, + MAKE_constant((dsql_str*)yyvsp[0], CONSTANT_SINT64))); + } + break; +case 579: +{ yyval = make_node (nod_user_savepoint, 1, yyvsp[0]); } + break; +case 580: +{ yyval = make_node (nod_release_savepoint, 2, yyvsp[-1], yyvsp[0]); } + break; +case 581: +{ yyval = make_node (nod_flag, 0, NULL); } + break; +case 582: +{ yyval = 0; } + break; +case 583: +{ yyval = make_node (nod_undo_savepoint, 1, yyvsp[0]); } + break; +case 586: +{ yyval = make_node (nod_commit, 1, yyvsp[0]); } + break; +case 587: +{ yyval = make_node (nod_rollback, 0, NULL); } + break; +case 590: +{ yyval = make_node (nod_commit_retain, 0, NULL); } + break; +case 591: +{ yyval = NULL; } + break; +case 593: +{ yyval = NULL; } + break; +case 594: +{yyval = make_node (nod_trans, 1, make_list (yyvsp[0])); } + break; +case 596: +{ yyval = NULL; } + break; +case 598: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } + break; +case 603: +{ yyval = make_flag_node (nod_access, NOD_READ_ONLY, (int) 0, NULL); } + break; +case 604: +{ yyval = make_flag_node (nod_access, NOD_READ_WRITE, (int) 0, NULL); } + break; +case 605: +{ yyval = make_flag_node (nod_wait, NOD_WAIT, (int) 0, NULL); } + break; +case 606: +{ yyval = make_flag_node (nod_wait, NOD_NO_WAIT, (int) 0, NULL); } + break; +case 607: +{ yyval = yyvsp[0];} + break; +case 609: +{ yyval = yyvsp[0];} + break; +case 610: +{ yyval = make_flag_node (nod_isolation, NOD_READ_COMMITTED, 1, yyvsp[0]); } + break; +case 611: +{ yyval = make_flag_node (nod_isolation, NOD_READ_COMMITTED, 1, yyvsp[0]); } + break; +case 612: +{ yyval = make_flag_node (nod_isolation, NOD_CONCURRENCY, 0, NULL); } + break; +case 613: +{ yyval = make_flag_node (nod_isolation, NOD_CONSISTENCY, 0, NULL); } + break; +case 614: +{ yyval = make_flag_node (nod_isolation, NOD_CONSISTENCY, 0, NULL); } + break; +case 615: +{ yyval = make_flag_node (nod_version, NOD_VERSION, 0, NULL); } + break; +case 616: +{ yyval = make_flag_node (nod_version, NOD_NO_VERSION, 0, NULL); } + break; +case 617: +{ yyval = 0; } + break; +case 618: +{ yyval = make_node (nod_reserve, 1, make_list (yyvsp[0])); } + break; +case 619: +{ yyval = (DSQL_NOD) NOD_SHARED; } + break; +case 620: +{ yyval = (DSQL_NOD) NOD_PROTECTED ; } + break; +case 621: +{ yyval = (DSQL_NOD) 0; } + break; +case 622: +{ yyval = (DSQL_NOD) NOD_READ; } + break; +case 623: +{ yyval = (DSQL_NOD) NOD_WRITE; } + break; +case 625: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 626: +{ yyval = make_node (nod_table_lock, (int) 2, make_list (yyvsp[-1]), yyvsp[0]); } + break; +case 627: +{ yyval = make_flag_node (nod_lock_mode, (SSHORT) ((SSHORT)(SLONG) yyvsp[-1] | (SSHORT)(SLONG) yyvsp[0]), (SSHORT) 0, NULL); } + break; +case 628: +{ yyval = 0; } + break; +case 630: +{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } + break; +case 631: +{yyval = make_node (nod_set_statistics, + (int)e_stat_count, yyvsp[0]); } + break; +case 632: +{ yyval = make_node (nod_select, (int) e_select_count, yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 633: +{ yyval = make_node (nod_list, 1, yyvsp[0]); } + break; +case 634: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 635: +{ yyval = make_flag_node (nod_list, NOD_UNION_ALL, 2, yyvsp[-3], yyvsp[0]); } + break; +case 636: +{ yyval = make_list (yyvsp[0]); } + break; +case 637: +{ yyval = 0; } + break; +case 639: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 640: +{ yyval = make_node (nod_order, (int) e_order_count, yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 641: +{ yyval = 0; } + break; +case 642: +{ yyval = make_node (nod_flag, 0, NULL); } + break; +case 643: +{ yyval = 0; } + break; +case 644: +{ yyval = make_node (nod_flag, 0, NULL); } + break; +case 645: +{ yyval = 0; } + break; +case 646: +{ yyval = yyvsp[-1]; } + break; +case 647: +{ yyval = 0; } + break; +case 648: +{ yyval = make_node (nod_rows, (int) e_rows_count, NULL, yyvsp[0]); } + break; +case 649: +{ yyval = make_node (nod_rows, (int) e_rows_count, + make_node (nod_subtract, 2, yyvsp[-2], + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)), + make_node (nod_add, 2, + make_node (nod_subtract, 2, yyvsp[0], yyvsp[-2]), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG))); } + break; +case 650: +{ yyval = NULL; } + break; +case 651: +{ yyval = make_node (nod_for_update, 1, yyvsp[0]); } + break; +case 652: +{ yyval = 0; } + break; +case 653: +{ yyval = yyvsp[0]; } + break; +case 654: +{ yyval = make_node (nod_flag, 0, NULL); } + break; +case 655: +{ yyval = make_node (nod_flag, 0, NULL); } + break; +case 656: +{ yyval = 0; } + break; +case 657: +{ yyval = make_node (nod_select_expr, (int) e_sel_count, + yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], NULL, NULL, NULL); } + break; +case 658: +{ yyval = make_node (nod_select_expr, (int) e_sel_count, + yyvsp[-9], yyvsp[-8], yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], NULL); } + break; +case 659: +{ lex.limit_clause = true; } + break; +case 660: +{ lex.limit_clause = false; } + break; +case 661: +{ lex.first_detection = true; } + break; +case 662: +{ lex.first_detection = false; } + break; +case 663: +{ yyval = make_node (nod_limit, (int) e_limit_count, yyvsp[-1], yyvsp[-2]); } + break; +case 664: +{ yyval = make_node (nod_limit, (int) e_limit_count, NULL, yyvsp[-1]); } + break; +case 665: +{ yyval = make_node (nod_limit, (int) e_limit_count, yyvsp[0], NULL); } + break; +case 666: +{ yyval = 0; } + break; +case 667: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[-1], CONSTANT_SLONG); } + break; +case 668: +{ yyval = yyvsp[-2]; } + break; +case 669: +{ yyval = yyvsp[-1]; } + break; +case 670: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG); } + break; +case 671: +{ yyval = yyvsp[-1]; } + break; +case 672: +{ yyval = yyvsp[0]; } + break; +case 673: +{ yyval = make_node (nod_flag, 0, NULL); } + break; +case 674: +{ yyval = 0; } + break; +case 675: +{ yyval = make_list (yyvsp[0]); } + break; +case 676: +{ yyval = 0; } + break; +case 678: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 680: +{ yyval = make_node (nod_alias, 2, yyvsp[-2], yyvsp[0]); } + break; +case 683: +{ yyval = make_list (yyvsp[0]); } + break; +case 685: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 689: +{ yyval = make_node(nod_derived_table, (int) e_derived_table_count, yyvsp[-4], yyvsp[-1], yyvsp[0]); } + break; +case 691: +{ yyval = NULL; } + break; +case 692: +{ yyval = make_list (yyvsp[-1]); } + break; +case 693: +{ yyval = NULL; } + break; +case 695: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 696: +{ yyval = make_node (nod_join, (int) e_join_count, yyvsp[-5], yyvsp[-4], yyvsp[-2], yyvsp[0]); } + break; +case 697: +{ yyval = yyvsp[-1]; } + break; +case 698: +{ yyval = make_node (nod_rel_proc_name, + (int) e_rpn_count, yyvsp[-3], yyvsp[0], yyvsp[-2]); } + break; +case 699: +{ yyval = make_node (nod_rel_proc_name, + (int) e_rpn_count, yyvsp[-1], NULL, yyvsp[0]); } + break; +case 700: +{ yyval = make_list (yyvsp[-1]); } + break; +case 701: +{ yyval = NULL; } + break; +case 703: +{ yyval = make_node (nod_relation_name, + (int) e_rln_count, yyvsp[-1], yyvsp[0]); } + break; +case 704: +{ yyval = make_node (nod_relation_name, + (int) e_rln_count, yyvsp[0], NULL); } + break; +case 705: +{ yyval = make_node (nod_join_inner, (int) 0, NULL); } + break; +case 706: +{ yyval = make_node (nod_join_left, (int) 0, NULL); } + break; +case 707: +{ yyval = make_node (nod_join_left, (int) 0, NULL); } + break; +case 708: +{ yyval = make_node (nod_join_right, (int) 0, NULL); } + break; +case 709: +{ yyval = make_node (nod_join_right, (int) 0, NULL); } + break; +case 710: +{ yyval = make_node (nod_join_full, (int) 0, NULL); } + break; +case 711: +{ yyval = make_node (nod_join_full, (int) 0, NULL); } + break; +case 712: +{ yyval = make_node (nod_join_inner, (int) 0, NULL); } + break; +case 713: +{ yyval = make_list (yyvsp[0]); } + break; +case 714: +{ yyval = 0; } + break; +case 716: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 718: +{ yyval = yyvsp[0]; } + break; +case 719: +{ yyval = 0; } + break; +case 720: +{ yyval = yyvsp[0]; } + break; +case 721: +{ yyval = 0; } + break; +case 722: +{ yyval = yyvsp[0]; } + break; +case 723: +{ yyval = 0; } + break; +case 724: +{ yyval = make_node (nod_plan_expr, 2, yyvsp[-3], make_list (yyvsp[-1])); } + break; +case 725: +{ yyval = 0; } + break; +case 726: +{ yyval = make_node (nod_merge, (int) 0, NULL); } + break; +case 727: +{ yyval = make_node (nod_merge, (int) 0, NULL); } + break; +case 728: +{ yyval = 0; } + break; +case 729: +{ yyval = 0; } + break; +case 731: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 732: +{ yyval = make_node (nod_plan_item, 2, make_list (yyvsp[-1]), yyvsp[0]); } + break; +case 735: +{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } + break; +case 736: +{ yyval = make_node (nod_natural, (int) 0, NULL); } + break; +case 737: +{ yyval = make_node (nod_index, 1, make_list (yyvsp[-1])); } + break; +case 738: +{ yyval = make_node (nod_index_order, 2, yyvsp[-1], yyvsp[0]); } + break; +case 740: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 741: +{ yyval = make_list (yyvsp[-1]); } + break; +case 742: +{ yyval = 0; } + break; +case 743: +{ yyval = make_node (nod_insert, (int) e_ins_count, + yyvsp[-5], make_list (yyvsp[-4]), make_list (yyvsp[-1]), NULL); } + break; +case 744: +{ yyval = make_node (nod_insert, (int) e_ins_count, yyvsp[-2], yyvsp[-1], NULL, yyvsp[0]); } + break; +case 747: +{ yyval = make_node (nod_delete, (int) e_del_count, yyvsp[-1], yyvsp[0], NULL); } + break; +case 748: +{ yyval = make_node (nod_delete, (int) e_del_count, yyvsp[-1], NULL, yyvsp[0]); } + break; +case 749: +{ yyval = make_node (nod_cursor, (int) e_cur_count, yyvsp[0], NULL, NULL, NULL); } + break; +case 752: +{ yyval = make_node (nod_update, (int) e_upd_count, + yyvsp[-3], make_list (yyvsp[-1]), yyvsp[0], NULL); } + break; +case 753: +{ yyval = make_node (nod_update, (int) e_upd_count, + yyvsp[-3], make_list (yyvsp[-1]), NULL, yyvsp[0]); } + break; +case 755: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 756: +{ yyval = make_node (nod_assign, 2, yyvsp[0], yyvsp[-2]); } + break; +case 760: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 761: +{ yyval = make_node (nod_get_segment, (int) e_blb_count, yyvsp[-4], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 762: +{ yyval = make_node (nod_put_segment, (int) e_blb_count, yyvsp[-4], yyvsp[-2], yyvsp[-1], yyvsp[0]); } + break; +case 763: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 764: +{ yyval = make_node (nod_list, 2, NULL, yyvsp[0]); } + break; +case 768: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG); } + break; +case 769: +{ yyval = yyvsp[0]; } + break; +case 771: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG); } + break; +case 774: +{ yyval = NULL; } + break; +case 775: +{ yyval = make_list (yyvsp[-1]); } + break; +case 777: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 779: +{ yyval = NULL; } + break; +case 780: +{ yyval = make_list (yyvsp[-1]); } + break; +case 782: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 784: +{ yyval = make_node (nod_field_name, (int) e_fln_count, + yyvsp[-2], yyvsp[0]); } + break; +case 785: +{ yyval = make_node (nod_field_name, (int) e_fln_count, + yyvsp[-2], NULL); } + break; +case 786: +{ yyval = make_node (nod_field_name, (int) e_fln_count, + NULL, yyvsp[0]); } + break; +case 788: +{ yyval = make_node (nod_field_name, (int) e_fln_count, + yyvsp[-2], yyvsp[0]); } + break; +case 790: +{ yyval = make_node (nod_not, 1, yyvsp[0]); } + break; +case 792: +{ yyval = make_node (nod_or, 2, yyvsp[-2], yyvsp[0]); } + break; +case 793: +{ yyval = make_node (nod_and, 2, yyvsp[-2], yyvsp[0]); } + break; +case 795: +{ yyval = make_node (nod_not, 1, yyvsp[0]); } + break; +case 796: +{ yyval = make_node (nod_or, 2, yyvsp[-2], yyvsp[0]); } + break; +case 797: +{ yyval = make_node (nod_and, 2, yyvsp[-2], yyvsp[0]); } + break; +case 798: +{ yyval = make_node (nod_or, 2, yyvsp[-2], yyvsp[0]); } + break; +case 799: +{ yyval = make_node (nod_and, 2, yyvsp[-2], yyvsp[0]); } + break; +case 801: +{ yyval = yyvsp[-1]; } + break; +case 802: +{ yyval = make_node (nod_not, 1, yyvsp[0]); } + break; +case 813: +{ yyval = make_node (nod_eql, 2, yyvsp[-2], yyvsp[0]); } + break; +case 814: +{ yyval = make_node (nod_lss, 2, yyvsp[-2], yyvsp[0]); } + break; +case 815: +{ yyval = make_node (nod_gtr, 2, yyvsp[-2], yyvsp[0]); } + break; +case 816: +{ yyval = make_node (nod_geq, 2, yyvsp[-2], yyvsp[0]); } + break; +case 817: +{ yyval = make_node (nod_leq, 2, yyvsp[-2], yyvsp[0]); } + break; +case 818: +{ yyval = make_node (nod_leq, 2, yyvsp[-2], yyvsp[0]); } + break; +case 819: +{ yyval = make_node (nod_geq, 2, yyvsp[-2], yyvsp[0]); } + break; +case 820: +{ yyval = make_node (nod_neq, 2, yyvsp[-2], yyvsp[0]); } + break; +case 821: +{ yyval = make_node (nod_eql_all, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 822: +{ yyval = make_node (nod_lss_all, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 823: +{ yyval = make_node (nod_gtr_all, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 824: +{ yyval = make_node (nod_geq_all, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 825: +{ yyval = make_node (nod_leq_all, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 826: +{ yyval = make_node (nod_leq_all, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 827: +{ yyval = make_node (nod_geq_all, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 828: +{ yyval = make_node (nod_neq_all, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 829: +{ yyval = make_node (nod_eql_any, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 830: +{ yyval = make_node (nod_lss_any, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 831: +{ yyval = make_node (nod_gtr_any, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 832: +{ yyval = make_node (nod_geq_any, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 833: +{ yyval = make_node (nod_leq_any, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 834: +{ yyval = make_node (nod_leq_any, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 835: +{ yyval = make_node (nod_geq_any, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 836: +{ yyval = make_node (nod_neq_any, 2, yyvsp[-5], yyvsp[-1]); } + break; +case 839: +{ yyval = make_node (nod_between, 3, yyvsp[-4], yyvsp[-2], yyvsp[0]); } + break; +case 840: +{ yyval = make_node (nod_not, 1, make_node (nod_between, + 3, yyvsp[-5], yyvsp[-2], yyvsp[0])); } + break; +case 841: +{ yyval = make_node (nod_like, 2, yyvsp[-2], yyvsp[0]); } + break; +case 842: +{ yyval = make_node (nod_not, 1, make_node (nod_like, 2, yyvsp[-3], yyvsp[0])); } + break; +case 843: +{ yyval = make_node (nod_like, 3, yyvsp[-4], yyvsp[-2], yyvsp[0]); } + break; +case 844: +{ yyval = make_node (nod_not, 1, make_node (nod_like, + 3, yyvsp[-5], yyvsp[-2], yyvsp[0])); } + break; +case 845: +{ yyval = make_node (nod_eql_any, 2, yyvsp[-2], yyvsp[0]); } + break; +case 846: +{ yyval = make_node (nod_not, 1, make_node (nod_eql_any, 2, yyvsp[-3], yyvsp[0])); } + break; +case 847: +{ yyval = make_node (nod_containing, 2, yyvsp[-2], yyvsp[0]); } + break; +case 848: +{ yyval = make_node (nod_not, 1, make_node (nod_containing, 2, yyvsp[-3], yyvsp[0])); } + break; +case 849: +{ yyval = make_node (nod_starting, 2, yyvsp[-2], yyvsp[0]); } + break; +case 850: +{ yyval = make_node (nod_not, 1, make_node (nod_starting, 2, yyvsp[-3], yyvsp[0])); } + break; +case 851: +{ yyval = make_node (nod_starting, 2, yyvsp[-3], yyvsp[0]); } + break; +case 852: +{ yyval = make_node (nod_not, 1, make_node (nod_starting, 2, yyvsp[-4], yyvsp[0])); } + break; +case 853: +{ yyval = make_node (nod_exists, 1, yyvsp[-1]); } + break; +case 854: +{ yyval = make_node (nod_singular, 1, yyvsp[-1]); } + break; +case 855: +{ yyval = make_node (nod_missing, 1, yyvsp[-2]); } + break; +case 856: +{ yyval = make_node (nod_not, 1, make_node (nod_missing, 1, yyvsp[-3])); } + break; +case 857: +{ yyval = make_node (nod_eql, 2, + make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); } + break; +case 858: +{ yyval = make_node (nod_eql, 2, + make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 2, CONSTANT_SLONG)); } + break; +case 859: +{ yyval = make_node (nod_eql, 2, + make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 3, CONSTANT_SLONG)); } + break; +case 860: +{ yyval = make_node (nod_eql, 2, + make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); } + break; +case 861: +{ yyval = make_node (nod_eql, 2, + make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 2, CONSTANT_SLONG)); } + break; +case 862: +{ yyval = make_node (nod_eql, 2, + make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 3, CONSTANT_SLONG)); } + break; +case 864: +{ yyval = make_list (yyvsp[-1]); } + break; +case 865: +{ yyval = yyvsp[-1]; } + break; +case 866: +{ yyval = make_node (nod_select_expr, (int) e_sel_count, + yyvsp[-9], yyvsp[-8], make_list (yyvsp[-7]), yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], NULL); } + break; +case 867: +{ yyval = make_node (nod_select_expr, (int) e_sel_count, + yyvsp[-9], yyvsp[-8], make_list (yyvsp[-7]), yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); } + break; +case 877: +{ yyval = make_node (nod_negate, 1, yyvsp[0]); } + break; +case 878: +{ yyval = yyvsp[0]; } + break; +case 879: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_node (nod_add2, 2, yyvsp[-2], yyvsp[0]); + else + yyval = make_node (nod_add, 2, yyvsp[-2], yyvsp[0]); + } + break; +case 880: +{ yyval = make_node (nod_concatenate, 2, yyvsp[-2], yyvsp[0]); } + break; +case 881: +{ yyval = make_node (nod_collate, (int) e_coll_count, (DSQL_NOD) yyvsp[0], yyvsp[-2]); } + break; +case 882: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_node (nod_subtract2, 2, yyvsp[-2], yyvsp[0]); + else + yyval = make_node (nod_subtract, 2, yyvsp[-2], yyvsp[0]); + } + break; +case 883: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_node (nod_multiply2, 2, yyvsp[-2], yyvsp[0]); + else + yyval = make_node (nod_multiply, 2, yyvsp[-2], yyvsp[0]); + } + break; +case 884: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_node (nod_divide2, 2, yyvsp[-2], yyvsp[0]); + else + yyval = make_node (nod_divide, 2, yyvsp[-2], yyvsp[0]); + } + break; +case 885: +{ yyval = yyvsp[-1]; } + break; +case 886: +{ yyval = yyvsp[-1]; } + break; +case 890: +{ yyval = make_node (nod_dbkey, 1, NULL); } + break; +case 891: +{ yyval = make_node (nod_dbkey, 1, yyvsp[-2]); } + break; +case 892: +{ + yyval = make_node (nod_dom_value, 0, NULL); + } + break; +case 893: +{ yyval = yyvsp[0]; } + break; +case 894: +{ + if (client_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_dialect_datatype_unsupport, + isc_arg_number, client_dialect, + isc_arg_string, "DATE", + 0); + if (db_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, + isc_arg_number, db_dialect, + isc_arg_string, "DATE", + 0); + yyval = make_node (nod_current_date, 0, NULL); + } + break; +case 895: +{ + if (client_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_dialect_datatype_unsupport, + isc_arg_number, client_dialect, + isc_arg_string, "TIME", + 0); + if (db_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, + isc_arg_number, db_dialect, + isc_arg_string, "TIME", + 0); + yyval = make_node (nod_current_time, 0, NULL); + } + break; +case 896: +{ yyval = make_node (nod_current_timestamp, 0, NULL); } + break; +case 897: +{ yyval = make_node (nod_array, (int) e_ary_count, yyvsp[-3], make_list (yyvsp[-1])); } + break; +case 899: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 901: +{ yyval = make_node (nod_negate, 1, yyvsp[0]); } + break; +case 902: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_STRING); } + break; +case 903: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SLONG); } + break; +case 904: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_DOUBLE); } + break; +case 905: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SINT64); } + break; +case 906: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_SINT64); } + break; +case 908: +{ yyval = MAKE_str_constant ((dsql_str*) yyvsp[0], lex.att_charset); } + break; +case 909: +{ + if (client_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_dialect_datatype_unsupport, + isc_arg_number, client_dialect, + isc_arg_string, "DATE", + 0); + if (db_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, + isc_arg_number, db_dialect, + isc_arg_string, "DATE", + 0); + yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_DATE); + } + break; +case 910: +{ + if (client_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_dialect_datatype_unsupport, + isc_arg_number, client_dialect, + isc_arg_string, "TIME", + 0); + if (db_dialect < SQL_DIALECT_V6_TRANSITION) + ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, + isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, + isc_arg_number, db_dialect, + isc_arg_string, "TIME", + 0); + yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_TIME); + } + break; +case 911: +{ yyval = MAKE_constant ((dsql_str*) yyvsp[0], CONSTANT_TIMESTAMP); } + break; +case 912: +{ yyval = make_parameter (); } + break; +case 913: +{ yyval = make_node (nod_user_name, 0, NULL); } + break; +case 914: +{ yyval = make_node (nod_user_name, 0, NULL); } + break; +case 915: +{ yyval = make_node (nod_current_role, 0, NULL); } + break; +case 916: +{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_connection_id, CONSTANT_SLONG)); } + break; +case 917: +{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_transaction_id, CONSTANT_SLONG)); } + break; +case 918: +{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_gdscode, CONSTANT_SLONG)); } + break; +case 919: +{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_sqlcode, CONSTANT_SLONG)); } + break; +case 920: +{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, + MAKE_constant ((dsql_str*) internal_rows_affected, CONSTANT_SLONG)); } + break; +case 921: +{ yyval = yyvsp[0]; } + break; +case 922: +{ ((dsql_str*) yyvsp[0])->str_charset = (TEXT *) yyvsp[-1]; + yyval = yyvsp[0]; } + break; +case 924: +{ yyval = (DSQL_NOD) - (SLONG) yyvsp[0]; } + break; +case 925: +{ if ((SLONG) yyvsp[0] > SHRT_POS_MAX) + yyabandon (-842, isc_expec_short); + /* Short integer expected */ + yyval = yyvsp[0];} + break; +case 926: +{ if ((SLONG) yyvsp[0] > SHRT_NEG_MAX) + yyabandon (-842, isc_expec_short); + /* Short integer expected */ + yyval = yyvsp[0];} + break; +case 927: +{ if ((SLONG) yyvsp[0] == 0) + yyabandon (-842, isc_expec_positive); + /* Positive number expected */ + yyval = yyvsp[0];} + break; +case 928: +{ if ((SLONG) yyvsp[0] > SHRT_UNSIGNED_MAX) + yyabandon (-842, isc_expec_ushort); + /* Unsigned short integer expected */ + yyval = yyvsp[0];} + break; +case 930: +{ yyval = (DSQL_NOD) - (SLONG) yyvsp[0]; } + break; +case 931: +{ yyval = yyvsp[0];} + break; +case 936: +{ yyval = make_node (nod_agg_count, 0, NULL); } + break; +case 937: +{ yyval = make_node (nod_agg_count, 1, yyvsp[-1]); } + break; +case 938: +{ yyval = make_flag_node (nod_agg_count, + NOD_AGG_DISTINCT, 1, yyvsp[-1]); } + break; +case 939: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_node (nod_agg_total2, 1, yyvsp[-1]); + else + yyval = make_node (nod_agg_total, 1, yyvsp[-1]); + } + break; +case 940: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_flag_node (nod_agg_total2, + NOD_AGG_DISTINCT, 1, yyvsp[-1]); + else + yyval = make_flag_node (nod_agg_total, + NOD_AGG_DISTINCT, 1, yyvsp[-1]); + } + break; +case 941: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_node (nod_agg_average2, 1, yyvsp[-1]); + else + yyval = make_node (nod_agg_average, 1, yyvsp[-1]); + } + break; +case 942: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_flag_node (nod_agg_average2, + NOD_AGG_DISTINCT, 1, yyvsp[-1]); + else + yyval = make_flag_node (nod_agg_average, + NOD_AGG_DISTINCT, 1, yyvsp[-1]); + } + break; +case 943: +{ yyval = make_node (nod_agg_min, 1, yyvsp[-1]); } + break; +case 944: +{ yyval = make_node (nod_agg_min, 1, yyvsp[-1]); } + break; +case 945: +{ yyval = make_node (nod_agg_max, 1, yyvsp[-1]); } + break; +case 946: +{ yyval = make_node (nod_agg_max, 1, yyvsp[-1]); } + break; +case 947: +{ + if (client_dialect >= SQL_DIALECT_V6_TRANSITION) + yyval = make_node (nod_gen_id2, 2, yyvsp[-3], yyvsp[-1]); + else + yyval = make_node (nod_gen_id, 2, yyvsp[-3], yyvsp[-1]); + } + break; +case 949: +{ yyval = make_node (nod_extract, (int) e_extract_count, yyvsp[-3], yyvsp[-1]); } + break; +case 951: +{ yyval = make_node (nod_upcase, 1, yyvsp[-1]); } + break; +case 952: +{ yyval = make_node (nod_substr, (int) e_substr_count, yyvsp[-4], + make_node (nod_subtract, 2, yyvsp[-2], + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)), yyvsp[-1]); } + break; +case 953: +{ yyval = yyvsp[0]; } + break; +case 954: +{ yyval = MAKE_constant ((dsql_str*) SHRT_POS_MAX, CONSTANT_SLONG); } + break; +case 955: +{ yyval = make_node (nod_udf, 2, yyvsp[-3], yyvsp[-1]); } + break; +case 956: +{ yyval = make_node (nod_udf, 1, yyvsp[-2]); } + break; +case 957: +{ yyval = make_node (nod_cast, (int) e_cast_count, yyvsp[-1], yyvsp[-3]); } + break; +case 960: +{ yyval = make_node (nod_searched_case, 2, + make_node (nod_list, 2, make_node (nod_eql, 2, yyvsp[-3], yyvsp[-1]), + make_node (nod_null, 0, NULL)), yyvsp[-3]); } + break; +case 961: +{ yyval = make_node (nod_coalesce, 2, yyvsp[-3], yyvsp[-1]); } + break; +case 964: +{ yyval = make_node (nod_simple_case, 3, yyvsp[-2], make_list(yyvsp[-1]), make_node (nod_null, 0, NULL)); } + break; +case 965: +{ yyval = make_node (nod_simple_case, 3, yyvsp[-4], make_list(yyvsp[-3]), yyvsp[-1]); } + break; +case 966: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 967: +{ yyval = make_node (nod_list, 2, yyvsp[-4], make_node (nod_list, 2, yyvsp[-2], yyvsp[0])); } + break; +case 968: +{ yyval = make_node (nod_searched_case, 2, make_list(yyvsp[-1]), make_node (nod_null, 0, NULL)); } + break; +case 969: +{ yyval = make_node (nod_searched_case, 2, make_list(yyvsp[-3]), yyvsp[-1]); } + break; +case 970: +{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } + break; +case 971: +{ yyval = make_node (nod_list, 2, yyvsp[-4], make_node (nod_list, 2, yyvsp[-2], yyvsp[0])); } + break; +case 975: +{ yyval = MAKE_constant ((dsql_str*)blr_extract_year, CONSTANT_SLONG); } + break; +case 976: +{ yyval = MAKE_constant ((dsql_str*)blr_extract_month, CONSTANT_SLONG); } + break; +case 977: +{ yyval = MAKE_constant ((dsql_str*)blr_extract_day, CONSTANT_SLONG); } + break; +case 978: +{ yyval = MAKE_constant ((dsql_str*)blr_extract_hour, CONSTANT_SLONG); } + break; +case 979: +{ yyval = MAKE_constant ((dsql_str*)blr_extract_minute, CONSTANT_SLONG); } + break; +case 980: +{ yyval = MAKE_constant ((dsql_str*)blr_extract_second, CONSTANT_SLONG); } + break; +case 981: +{ yyval = MAKE_constant ((dsql_str*)blr_extract_weekday, CONSTANT_SLONG); } + break; +case 982: +{ yyval = MAKE_constant ((dsql_str*)blr_extract_yearday, CONSTANT_SLONG); } + break; +case 985: +{ yyval = make_node (nod_null, 0, NULL); } + break; +} + + + + yyvsp -= yylen; + DSQL_DSQL_yyssp -= yylen; +#if YYLSP_NEEDED + yylsp -= yylen; +#endif + +#if YYDEBUG + if (lex.dsql_debug) + { + short *DSQL_DSQL_yyssp1 = DSQL_yyss - 1; + YYFPRINTF (stderr, "state stack now"); + while (DSQL_DSQL_yyssp1 != DSQL_DSQL_yyssp) + YYFPRINTF (stderr, " %d", *++DSQL_DSQL_yyssp1); + YYFPRINTF (stderr, "\n"); + } +#endif + + *++yyvsp = yyval; +#if YYLSP_NEEDED + *++yylsp = yyloc; +#endif + + /* Now `shift' the result of the reduction. Determine what state + that goes to, based on the state we popped back to and the rule + number reduced by. */ + + yyn = yyr1[yyn]; + + yystate = yypgoto[yyn - YYNTBASE] + *DSQL_DSQL_yyssp; + if (yystate >= 0 && yystate <= YYLAST && yycheck[yystate] == *DSQL_DSQL_yyssp) + yystate = yytable[yystate]; + else + yystate = yydefgoto[yyn - YYNTBASE]; + + goto yynewstate; + + +/*------------------------------------. +| yyerrlab -- here on detecting error | +`------------------------------------*/ +yyerrlab: + /* If not already recovering from an error, report this error. */ + if (!yyerrstatus) + { + ++yynerrs; + +#ifdef YYERROR_VERBOSE + yyn = yypact[yystate]; + + if (yyn > YYFLAG && yyn < YYLAST) + { + YYSIZE_T yysize = 0; + char *yymsg; + int yyx, yycount; + + yycount = 0; + /* Start YYX at -YYN if negative to avoid negative indexes in + YYCHECK. */ + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); yyx++) + if (yycheck[yyx + yyn] == yyx) + yysize += yystrlen (yytname[yyx]) + 15, yycount++; + yysize += yystrlen ("parse error, unexpected ") + 1; + yysize += yystrlen (yytname[YYTRANSLATE (DSQL_yychar)]); + yymsg = (char *) YYSTACK_ALLOC (yysize); + if (yymsg != 0) + { + char *yyp = yystpcpy (yymsg, "parse error, unexpected "); + yyp = yystpcpy (yyp, yytname[YYTRANSLATE (DSQL_yychar)]); + + if (yycount < 5) + { + yycount = 0; + for (yyx = yyn < 0 ? -yyn : 0; + yyx < (int) (sizeof (yytname) / sizeof (char *)); + yyx++) + if (yycheck[yyx + yyn] == yyx) + { + const char *yyq = ! yycount ? ", expecting " : " or "; + yyp = yystpcpy (yyp, yyq); + yyp = yystpcpy (yyp, yytname[yyx]); + yycount++; + } + } + yyerror (yymsg); + YYSTACK_FREE (yymsg); + } + else + yyerror ("parse error; also virtual memory exhausted"); + } + else +#endif /* defined (YYERROR_VERBOSE) */ + yyerror ("parse error"); + } + goto yyerrlab1; + + +/*--------------------------------------------------. +| yyerrlab1 -- error raised explicitly by an action | +`--------------------------------------------------*/ +yyerrlab1: + if (yyerrstatus == 3) + { + /* If just tried and failed to reuse lookahead token after an + error, discard it. */ + + /* return failure if at end of input */ + if (DSQL_yychar == YYEOF) + YYABORT; + YYDPRINTF ((stderr, "Discarding token %d (%s).\n", + DSQL_yychar, yytname[DSQL_yychar1])); + DSQL_yychar = YYEMPTY; + } + + /* Else will try to reuse lookahead token after shifting the error + token. */ + + yyerrstatus = 3; /* Each real token shifted decrements this */ + + goto yyerrhandle; + + +/*-------------------------------------------------------------------. +| yyerrdefault -- current state does not do anything special for the | +| error token. | +`-------------------------------------------------------------------*/ +yyerrdefault: +#if 0 + /* This is wrong; only states that explicitly want error tokens + should shift them. */ + + /* If its default is to accept any token, ok. Otherwise pop it. */ + yyn = yydefact[yystate]; + if (yyn) + goto yydefault; +#endif + + +/*---------------------------------------------------------------. +| yyerrpop -- pop the current state because it cannot handle the | +| error token | +`---------------------------------------------------------------*/ +yyerrpop: + if (DSQL_DSQL_yyssp == DSQL_yyss) + YYABORT; + yyvsp--; + yystate = *--DSQL_DSQL_yyssp; +#if YYLSP_NEEDED + yylsp--; +#endif + +#if YYDEBUG + if (lex.dsql_debug) + { + short *DSQL_DSQL_yyssp1 = DSQL_yyss - 1; + YYFPRINTF (stderr, "Error: state stack now"); + while (DSQL_DSQL_yyssp1 != DSQL_DSQL_yyssp) + YYFPRINTF (stderr, " %d", *++DSQL_DSQL_yyssp1); + YYFPRINTF (stderr, "\n"); + } +#endif + +/*--------------. +| yyerrhandle. | +`--------------*/ +yyerrhandle: + yyn = yypact[yystate]; + if (yyn == YYFLAG) + goto yyerrdefault; + + yyn += YYTERROR; + if (yyn < 0 || yyn > YYLAST || yycheck[yyn] != YYTERROR) + goto yyerrdefault; + + yyn = yytable[yyn]; + if (yyn < 0) + { + if (yyn == YYFLAG) + goto yyerrpop; + yyn = -yyn; + goto yyreduce; + } + else if (yyn == 0) + goto yyerrpop; + + if (yyn == YYFINAL) + YYACCEPT; + + YYDPRINTF ((stderr, "Shifting error token, ")); + + *++yyvsp = yylval; +#if YYLSP_NEEDED + *++yylsp = yylloc; +#endif + + yystate = yyn; + goto yynewstate; + + +/*-------------------------------------. +| yyacceptlab -- YYACCEPT comes here. | +`-------------------------------------*/ +yyacceptlab: + yyresult = 0; + goto yyreturn; + +/*-----------------------------------. +| yyabortlab -- YYABORT comes here. | +`-----------------------------------*/ +yyabortlab: + yyresult = 1; + goto yyreturn; + +/*---------------------------------------------. +| yyoverflowab -- parser overflow comes here. | +`---------------------------------------------*/ +yyoverflowlab: + yyerror ("parser stack overflow"); + yyresult = 2; + /* Fall through. */ + +yyreturn: +#ifndef yyoverflow + if (DSQL_yyss != DSQL_yyssa) + YYSTACK_FREE (DSQL_yyss); +#endif + return yyresult; +} -short *DSQL_DSQL_yyssp; -static YYSTYPE *yyvsp; -static YYSTYPE yyval; -static YYSTYPE yylval; -static short DSQL_yyss[YYSTACKSIZE]; -static YYSTYPE yyvs[YYSTACKSIZE]; -#define yystacksize YYSTACKSIZE /* @@ -5186,7 +7097,7 @@ void LEX_dsql_init (void) symbol->sym_type = SYM_keyword; symbol->sym_keyword = token->tok_ident; symbol->sym_version = token->tok_version; - STR str_ = FB_NEW_RPT(*DSQL_permanent_pool, symbol->sym_length) str; + dsql_str* str_ = FB_NEW_RPT(*DSQL_permanent_pool, symbol->sym_length) dsql_str; str_->str_length = symbol->sym_length; strncpy((char*)str_->str_data, (char*)symbol->sym_string, symbol->sym_length); symbol->sym_object = (void *) str_; @@ -5196,7 +7107,7 @@ void LEX_dsql_init (void) void LEX_string ( - TEXT *string, + TEXT* string, USHORT length, SSHORT character_set) { @@ -5263,7 +7174,7 @@ static void check_log_file_attrs (void) } -static TEXT *lex_position (void) +static TEXT* lex_position (void) { /************************************** * @@ -5297,20 +7208,20 @@ static bool long_int(DSQL_NOD string, * *************************************/ - for (const char* p = ((STR) string)->str_data; classes [*p] & CHR_DIGIT; p++) + for (const char* p = ((dsql_str*) string)->str_data; classes[*p] & CHR_DIGIT; p++) { - if (!(classes [*p] & CHR_DIGIT)) { + if (!(classes[*p] & CHR_DIGIT)) { return false; } } - *long_value = atol ((char *)((STR) string)->str_data); + *long_value = atol ((char *)((dsql_str*) string)->str_data); return true; } #endif -static DSQL_FLD make_field (DSQL_NOD field_name) +static dsql_fld* make_field (DSQL_NOD field_name) { /************************************** * @@ -5322,27 +7233,25 @@ static DSQL_FLD make_field (DSQL_NOD field_name) * Make a field block of given name. * **************************************/ - DSQL_FLD field; - STR string; - TSQL tdsql; - - tdsql = GET_THREAD_DATA; + TSQL tdsql = GET_THREAD_DATA; if (field_name == NULL) { - field = FB_NEW_RPT(*tdsql->tsql_default, sizeof (INTERNAL_FIELD_NAME)) dsql_fld; + dsql_fld* field = + FB_NEW_RPT(*tdsql->tsql_default, sizeof (INTERNAL_FIELD_NAME)) dsql_fld; strcpy (field->fld_name, (TEXT*) INTERNAL_FIELD_NAME); return field; } - string = (STR) field_name->nod_arg [1]; - field = FB_NEW_RPT(*tdsql->tsql_default, strlen ((SCHAR*) string->str_data)) dsql_fld; + const dsql_str* string = (dsql_str*) field_name->nod_arg[1]; + dsql_fld* field = + FB_NEW_RPT(*tdsql->tsql_default, strlen ((SCHAR*) string->str_data)) dsql_fld; strcpy (field->fld_name, (TEXT*) string->str_data); return field; } -static FIL make_file (void) +static dsql_fil* make_file (void) { /************************************** * @@ -5354,12 +7263,9 @@ static FIL make_file (void) * Make a file block * **************************************/ - FIL temp_file; - TSQL tdsql; - - tdsql = GET_THREAD_DATA; + TSQL tdsql = GET_THREAD_DATA; - temp_file = FB_NEW(*tdsql->tsql_default) fil; + dsql_fil* temp_file = FB_NEW(*tdsql->tsql_default) dsql_fil; return temp_file; } @@ -5377,28 +7283,24 @@ static DSQL_NOD make_list (DSQL_NOD node) * Collapse nested list nodes into single list. * **************************************/ - DSQL_NOD *ptr; - DLLS stack, temp; - USHORT l; - DSQL_NOD old; - TSQL tdsql; - - tdsql = GET_THREAD_DATA; + TSQL tdsql = GET_THREAD_DATA; if (!node) return node; - stack = 0; + dsql_lls* stack = 0; stack_nodes (node, &stack); - for (l = 0, temp = stack; temp; temp = temp->lls_next) + USHORT l = 0; + {for (const dsql_lls* temp = stack; temp; temp = temp->lls_next) l++; + } - old = node; + dsql_nod* old = node; node = FB_NEW_RPT(*tdsql->tsql_default, l) dsql_nod; node->nod_count = l; node->nod_type = nod_list; node->nod_flags = old->nod_flags; - ptr = node->nod_arg + node->nod_count; + dsql_nod** ptr = node->nod_arg + node->nod_count; while (stack) *--ptr = (DSQL_NOD) LLS_POP (&stack); @@ -5420,12 +7322,9 @@ static DSQL_NOD make_parameter (void) * Any change should also be made to function below * **************************************/ - DSQL_NOD node; - TSQL tdsql; + TSQL tdsql = GET_THREAD_DATA; - tdsql = GET_THREAD_DATA; - - node = FB_NEW_RPT(*tdsql->tsql_default, 1) dsql_nod; + dsql_nod* node = FB_NEW_RPT(*tdsql->tsql_default, 1) dsql_nod; node->nod_type = nod_parameter; node->nod_line = (USHORT) lex.lines_bk; node->nod_column = (USHORT) (lex.last_token_bk - lex.line_start_bk + 1); @@ -5451,18 +7350,15 @@ static DSQL_NOD make_node (NOD_TYPE type, * Any change should also be made to function below * **************************************/ - DSQL_NOD node, *p; - va_list ptr; - TSQL tdsql; + TSQL tdsql = GET_THREAD_DATA; - tdsql = GET_THREAD_DATA; - - node = FB_NEW_RPT(*tdsql->tsql_default, count) dsql_nod; + dsql_nod* node = FB_NEW_RPT(*tdsql->tsql_default, count) dsql_nod; node->nod_type = type; node->nod_line = (USHORT) lex.lines_bk; node->nod_column = (USHORT) (lex.last_token_bk - lex.line_start_bk + 1); node->nod_count = count; - p = node->nod_arg; + dsql_nod** p = node->nod_arg; + va_list ptr; VA_START (ptr, count); while (--count >= 0) @@ -5487,19 +7383,16 @@ static DSQL_NOD make_flag_node (NOD_TYPE type, * Make a node of given type. Set flag field * **************************************/ - DSQL_NOD node, *p; - va_list ptr; - TSQL tdsql; + TSQL tdsql = GET_THREAD_DATA; - tdsql = GET_THREAD_DATA; - - node = FB_NEW_RPT(*tdsql->tsql_default, count) dsql_nod; + dsql_nod* node = FB_NEW_RPT(*tdsql->tsql_default, count) dsql_nod; node->nod_type = type; node->nod_flags = flag; node->nod_line = (USHORT) lex.lines_bk; node->nod_column = (USHORT) (lex.last_token_bk - lex.line_start_bk + 1); node->nod_count = count; - p = node->nod_arg; + dsql_nod** p = node->nod_arg; + va_list ptr; VA_START (ptr, count); while (--count >= 0) @@ -5547,13 +7440,13 @@ static bool short_int(DSQL_NOD string, * *************************************/ - if (((STR) string)->str_length > 5) { + if (((dsql_str*) string)->str_length > 5) { return false; } - for (char* p = ((STR) string)->str_data; classes [*p] & CHR_DIGIT; p++) + for (char* p = ((dsql_str*) string)->str_data; classes[*p] & CHR_DIGIT; p++) { - if (!(classes [*p] & CHR_DIGIT)) { + if (!(classes[*p] & CHR_DIGIT)) { return false; } } @@ -5562,12 +7455,12 @@ static bool short_int(DSQL_NOD string, * than 32767... */ SCHAR buf[10]; - buf [0] = ((STR) string)->str_data[0]; - buf [1] = ((STR) string)->str_data[1]; - buf [2] = ((STR) string)->str_data[2]; - buf [3] = ((STR) string)->str_data[3]; - buf [4] = ((STR) string)->str_data[4]; - buf [5] = '\0'; + buf[0] = ((dsql_str*) string)->str_data[0]; + buf[1] = ((dsql_str*) string)->str_data[1]; + buf[2] = ((dsql_str*) string)->str_data[2]; + buf[3] = ((dsql_str*) string)->str_data[3]; + buf[4] = ((dsql_str*) string)->str_data[4]; + buf[5] = '\0'; *long_value = atoi (buf); @@ -5590,7 +7483,7 @@ static bool short_int(DSQL_NOD string, #endif static void stack_nodes (DSQL_NOD node, - DLLS *stack) + dsql_lls** stack) { /************************************** * @@ -5602,9 +7495,6 @@ static void stack_nodes (DSQL_NOD node, * Assist in turning a tree of misc nodes into a clean list. * **************************************/ - DSQL_NOD *ptr, *end; - DSQL_NOD curr_node, next_node, start_chain, end_chain, save_link; - if (node->nod_type != nod_list) { LLS_PUSH (node, stack); @@ -5619,30 +7509,30 @@ static void stack_nodes (DSQL_NOD node, non-list nodes in the process. The purpose of this is to avoid massive recursion of this function. */ - start_chain = node; - end_chain = NULL; - curr_node = node; - next_node = node->nod_arg[0]; + dsql_nod* start_chain = node; + dsql_nod* end_chain = NULL; + dsql_nod* curr_node = node; + dsql_nod* next_node = node->nod_arg[0]; while ( curr_node->nod_count == 2 && curr_node->nod_arg[0]->nod_type == nod_list && curr_node->nod_arg[1]->nod_type != nod_list && next_node->nod_arg[0]->nod_type == nod_list && next_node->nod_arg[1]->nod_type != nod_list) - { + { /* pattern was found so reverse the links and go to next node */ - save_link = next_node->nod_arg[0]; + dsql_nod* save_link = next_node->nod_arg[0]; next_node->nod_arg[0] = curr_node; curr_node = next_node; next_node = save_link; end_chain = curr_node; - } + } /* see if any chain was found */ - if ( end_chain) - { + if (end_chain) + { /* first, handle the rest of the nodes */ /* note that next_node still points to the first non-pattern node */ @@ -5653,19 +7543,20 @@ static void stack_nodes (DSQL_NOD node, curr_node = end_chain; while (true) - { + { LLS_PUSH( curr_node->nod_arg[1], stack); if ( curr_node == start_chain) break; - save_link = curr_node->nod_arg[0]; + dsql_nod* save_link = curr_node->nod_arg[0]; curr_node->nod_arg[0] = next_node; next_node = curr_node; curr_node = save_link; - } - return; } + return; + } - for (ptr = node->nod_arg, end = ptr + node->nod_count; ptr < end; ptr++) + dsql_nod** ptr = node->nod_arg; + for (const dsql_nod* const* const end = ptr + node->nod_count; ptr < end; ptr++) stack_nodes (*ptr, stack); } @@ -5673,9 +7564,10 @@ inline static int yylex ( USHORT client_dialect, USHORT db_dialect, USHORT parser_version, - BOOLEAN *stmt_ambiguous) + BOOLEAN* stmt_ambiguous) { - int temp = lex.yylex(client_dialect, db_dialect, parser_version, stmt_ambiguous); + const int temp = + lex.yylex(client_dialect, db_dialect, parser_version, stmt_ambiguous); lex.prev_prev_keyword = lex.prev_keyword; lex.prev_keyword = temp; return temp; @@ -5685,7 +7577,7 @@ int LexerState::yylex ( USHORT client_dialect, USHORT db_dialect, USHORT parser_version, - BOOLEAN *stmt_ambiguous) + BOOLEAN* stmt_ambiguous) { /************************************** * @@ -5706,8 +7598,6 @@ int LexerState::yylex ( SSHORT c; USHORT buffer_len; - STR delimited_id_str; - /* Find end of white space and skip comments */ for (;;) @@ -5763,27 +7653,27 @@ int LexerState::yylex ( continue; } - tok_class = classes [c]; + tok_class = classes[c]; if (!(tok_class & CHR_WHITE)) break; - } + } /* Depending on tok_class of token, parse token */ last_token = ptr - 1; if (tok_class & CHR_INTRODUCER) - { + { /* The Introducer (_) is skipped, all other idents are copied * to become the name of the character set */ p = string; - for (; ptr < end && classes [*ptr] & CHR_IDENT; ptr++) + for (; ptr < end && classes[*ptr] & CHR_IDENT; ptr++) { - if (ptr >= end) - return -1; - check_copy_incr(p, UPPER7(*ptr), string); + if (ptr >= end) + return -1; + check_copy_incr(p, UPPER7(*ptr), string); } check_bound(p, string); @@ -5795,79 +7685,79 @@ int LexerState::yylex ( yylval = (DSQL_NOD) (MAKE_string(string, p - string))->str_data; return INTRODUCER; - } + } /* parse a quoted string, being sure to look for double quotes */ if (tok_class & CHR_QUOTE) - { + { buffer = string; buffer_len = sizeof (string); buffer_end = buffer + buffer_len - 1; for (p = buffer; ; p++) { - if (ptr >= end) + if (ptr >= end) { - if (buffer != string) - gds__free (buffer); - return -1; + if (buffer != string) + gds__free (buffer); + return -1; } - /* *ptr is quote - if next != quote we're at the end */ - if ((*ptr == c) && ((++ptr == end) || (*ptr != c))) - break; + /* *ptr is quote - if next != quote we're at the end */ + if ((*ptr == c) && ((++ptr == end) || (*ptr != c))) + break; if (p > buffer_end) { - new_buffer = (char*)gds__alloc (2 * buffer_len); + new_buffer = (char*)gds__alloc (2 * buffer_len); /* FREE: at outer block */ - if (!new_buffer) /* NOMEM: */ - { - if (buffer != string) - gds__free (buffer); - return -1; - } + if (!new_buffer) /* NOMEM: */ + { + if (buffer != string) + gds__free (buffer); + return -1; + } memcpy (new_buffer, buffer, buffer_len); - if (buffer != string) - gds__free (buffer); - buffer = new_buffer; - p = buffer + buffer_len; - buffer_len = 2 * buffer_len; - buffer_end = buffer + buffer_len - 1; + if (buffer != string) + gds__free (buffer); + buffer = new_buffer; + p = buffer + buffer_len; + buffer_len = 2 * buffer_len; + buffer_end = buffer + buffer_len - 1; } - *p = *ptr++; + *p = *ptr++; } if (c == '"') { - *stmt_ambiguous = TRUE; /* string delimited by double quotes could be + *stmt_ambiguous = TRUE; /* string delimited by double quotes could be ** either a string constant or a SQL delimited ** identifier, therefore marks the SQL ** statement as ambiguous */ - if (client_dialect == SQL_DIALECT_V6_TRANSITION) + if (client_dialect == SQL_DIALECT_V6_TRANSITION) { - if (buffer != string) - gds__free (buffer); - yyabandon (-104, isc_invalid_string_constant); + if (buffer != string) + gds__free (buffer); + yyabandon (-104, isc_invalid_string_constant); } - else if (client_dialect >= SQL_DIALECT_V6) + else if (client_dialect >= SQL_DIALECT_V6) { - if ((p - buffer) >= MAX_TOKEN_LEN) - { - if (buffer != string) - gds__free (buffer); - yyabandon (-104, isc_token_too_long); - } - yylval = (DSQL_NOD) MAKE_string(buffer, p - buffer); - delimited_id_str = (STR) yylval; - delimited_id_str->str_flags |= STR_delimited_id; - if (buffer != string) - gds__free (buffer); - return SYMBOL; + if ((p - buffer) >= MAX_TOKEN_LEN) + { + if (buffer != string) + gds__free (buffer); + yyabandon (-104, isc_token_too_long); + } + yylval = (DSQL_NOD) MAKE_string(buffer, p - buffer); + dsql_str* delimited_id_str = (dsql_str*) yylval; + delimited_id_str->str_flags |= STR_delimited_id; + if (buffer != string) + gds__free (buffer); + return SYMBOL; } } yylval = (DSQL_NOD) MAKE_string(buffer, p - buffer); if (buffer != string) gds__free (buffer); return STRING; - } + } /* * Check for a numeric constant, which starts either with a digit or with @@ -5898,7 +7788,7 @@ int LexerState::yylex ( fb_assert(ptr <= end); if ((tok_class & CHR_DIGIT) || - ((c == '.') && (ptr < end) && (classes [*ptr] & CHR_DIGIT))) + ((c == '.') && (ptr < end) && (classes[*ptr] & CHR_DIGIT))) { /* The following variables are used to recognize kinds of numbers. */ @@ -5914,11 +7804,11 @@ int LexerState::yylex ( for (--ptr ; ptr < end ; ptr++) { c = *ptr; - if (have_exp_digit && (! (classes [c] & CHR_DIGIT))) + if (have_exp_digit && (! (classes[c] & CHR_DIGIT))) /* First non-digit after exponent and digit terminates the token. */ break; - else if (have_exp_sign && (! (classes [c] & CHR_DIGIT))) + else if (have_exp_sign && (! (classes[c] & CHR_DIGIT))) { /* only digits can be accepted after "1E-" */ have_error = true; @@ -5929,7 +7819,7 @@ int LexerState::yylex ( /* We've seen e or E, but nothing beyond that. */ if ( ('-' == c) || ('+' == c) ) have_exp_sign = true; - else if ( classes [c] & CHR_DIGIT ) + else if ( classes[c] & CHR_DIGIT ) /* We have a digit: we haven't seen a sign yet, but it's too late now. */ have_exp_digit = have_exp_sign = true; @@ -5950,7 +7840,7 @@ int LexerState::yylex ( break; } } - else if (classes [c] & CHR_DIGIT) + else if (classes[c] & CHR_DIGIT) { /* Before computing the next value, make sure there will be no overflow. */ @@ -5958,12 +7848,14 @@ int LexerState::yylex ( have_digit = true; if (number >= limit_by_10) + { /* possibility of an overflow */ if ((number > limit_by_10) || (c > '8')) { have_error = true; break; } + } number = number * 10 + (c - '0'); } else if ( (('E' == c) || ('e' == c)) && have_digit ) @@ -5981,62 +7873,61 @@ int LexerState::yylex ( fb_assert(have_digit); if (have_exp_digit) - { + { yylval = (DSQL_NOD) MAKE_string(last_token, ptr - last_token); last_token_bk = last_token; line_start_bk = line_start; lines_bk = lines; return FLOAT_NUMBER; - } + } else if (!have_exp) - { + { /* We should return some kind (scaled-) integer type except perhaps in dialect 1. */ if (!have_decimal && (number <= MAX_SLONG)) { - yylval = (DSQL_NOD) (ULONG) number; - return NUMBER; + yylval = (DSQL_NOD) (ULONG) number; + return NUMBER; } else { - /* We have either a decimal point with no exponent - or a string of digits whose value exceeds MAX_SLONG: - the returned type depends on the client dialect, - so warn of the difference if the client dialect is - SQL_DIALECT_V6_TRANSITION. - */ + /* We have either a decimal point with no exponent + or a string of digits whose value exceeds MAX_SLONG: + the returned type depends on the client dialect, + so warn of the difference if the client dialect is + SQL_DIALECT_V6_TRANSITION. + */ - if (SQL_DIALECT_V6_TRANSITION == client_dialect) + if (SQL_DIALECT_V6_TRANSITION == client_dialect) { - /* Issue a warning about the ambiguity of the numeric - * numeric literal. There are multiple calls because - * the message text exceeds the 119-character limit - * of our message database. - */ - ERRD_post_warning( isc_dsql_warning_number_ambiguous, + /* Issue a warning about the ambiguity of the numeric + * numeric literal. There are multiple calls because + * the message text exceeds the 119-character limit + * of our message database. + */ + ERRD_post_warning( isc_dsql_warning_number_ambiguous, isc_arg_string, - ERR_string( last_token, - ptr - last_token ), + ERR_string( last_token, ptr - last_token ), isc_arg_end ); - ERRD_post_warning( isc_dsql_warning_number_ambiguous1, + ERRD_post_warning( isc_dsql_warning_number_ambiguous1, isc_arg_end ); } - yylval = (DSQL_NOD) MAKE_string(last_token, ptr - last_token); + yylval = (DSQL_NOD) MAKE_string(last_token, ptr - last_token); - last_token_bk = last_token; - line_start_bk = line_start; - lines_bk = lines; + last_token_bk = last_token; + line_start_bk = line_start; + lines_bk = lines; - if (client_dialect < SQL_DIALECT_V6_TRANSITION) - return FLOAT_NUMBER; - else if (have_decimal) - return SCALEDINT; - else - return NUMBER64BIT; + if (client_dialect < SQL_DIALECT_V6_TRANSITION) + return FLOAT_NUMBER; + else if (have_decimal) + return SCALEDINT; + else + return NUMBER64BIT; } } /* else if (!have_exp) */ } /* if (!have_error) */ @@ -6059,7 +7950,7 @@ int LexerState::yylex ( { p = string; check_copy_incr(p, UPPER (c), string); - for (; ptr < end && classes [*ptr] & CHR_IDENT; ptr++) + for (; ptr < end && classes[*ptr] & CHR_IDENT; ptr++) { if (ptr >= end) return -1; @@ -6111,7 +8002,9 @@ int LexerState::yylex ( * 3. We detect FIRST if we are explicitly asked for (such as in NULLS FIRST/LAST clause) * 4. In all other cases we return them as SYMBOL */ - if ((sym->sym_keyword == FIRST && !first_detection) || sym->sym_keyword == SKIP) { + if ((sym->sym_keyword == FIRST && !first_detection) || + sym->sym_keyword == SKIP) + { if (prev_keyword == SELECT || limit_clause) { LexerState savedState = lex; int nextToken = yylex(client_dialect,db_dialect,parser_version,stmt_ambiguous); @@ -6130,7 +8023,8 @@ int LexerState::yylex ( return sym->sym_keyword; } } /* else fall down and return token as SYMBOL */ - } else { + } + else { yylval = (DSQL_NOD) sym->sym_object; last_token_bk = last_token; line_start_bk = line_start; @@ -6219,7 +8113,8 @@ int LexerState::yylex ( } return nextToken; } - } else { + } + else { /* Restore status quo. */ lex = savedState; } @@ -6231,8 +8126,9 @@ int LexerState::yylex ( } -static void yyerror ( - TEXT *error_string) +// The argument passed to this function is ignored. Therefore, messages like +// "syntax error" and "yacc stack overflow" are never seen. +static void yyerror(const TEXT* error_string) { /************************************** * @@ -6247,17 +8143,17 @@ static void yyerror ( if (DSQL_yychar < 1) ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_command_end_err, /* Unexpected end of command */ - 0); + isc_arg_gds, isc_command_end_err, /* Unexpected end of command */ + 0); else { ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_dsql_token_unk_err, - isc_arg_number, (SLONG) lex.lines, - isc_arg_number, (SLONG) (lex.last_token - lex.line_start + 1), /*CVC: +1*/ + isc_arg_gds, isc_dsql_token_unk_err, + isc_arg_number, (SLONG) lex.lines, + isc_arg_number, (SLONG) (lex.last_token - lex.line_start + 1), /*CVC: +1*/ /* Token unknown - line %d, char %d */ - isc_arg_gds, isc_random, - isc_arg_cstring, (int) (lex.ptr - lex.last_token), lex.last_token, 0); + isc_arg_gds, isc_random, + isc_arg_cstring, (int) (lex.ptr - lex.last_token), lex.last_token, 0); } } @@ -6279,2914 +8175,4 @@ static void yyabandon (SSHORT sql_code, ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) sql_code, isc_arg_gds, error_symbol, 0); } -#define YYABORT goto yyabort -#define YYREJECT goto yyabort -#define YYACCEPT goto yyaccept -#define YYERROR goto yyerrlab -int -dsql_yyparse(USHORT client_dialect, USHORT db_dialect, USHORT parser_version, BOOLEAN *stmt_ambiguous) -{ - register int yym, yyn, yystate; -#if YYDEBUG - register char *yys; - ; - if (yys = getenv("YYDEBUG")) - { - yyn = *yys; - if (yyn >= '0' && yyn <= '9') - lex.dsql_debug = yyn - '0'; - } -#endif - - yynerrs = 0; - DSQL_yyerrflag = 0; - DSQL_yychar = (-1); - - DSQL_DSQL_yyssp = DSQL_yyss; - yyvsp = yyvs; - *DSQL_DSQL_yyssp = yystate = 0; - -yyloop: - if (yyn = yydefred[yystate]) goto yyreduce; - if (DSQL_yychar < 0) - { - if ((DSQL_yychar = yylex(client_dialect, db_dialect, parser_version, stmt_ambiguous)) < 0) DSQL_yychar = 0; -#if YYDEBUG - if (lex.dsql_debug) - { - yys = 0; - if (DSQL_yychar <= YYMAXTOKEN) yys = yyname[DSQL_yychar]; - if (!yys) yys = "illegal-symbol"; - printf("%sdebug: state %d, reading %d (%s)\n", - YYPREFIX, yystate, DSQL_yychar, yys); - } -#endif - } - if ((yyn = yysindex[yystate]) && (yyn += DSQL_yychar) >= 0 && - yyn <= YYTABLESIZE && yycheck[yyn] == DSQL_yychar) - { -#if YYDEBUG - if (lex.dsql_debug) - printf("%sdebug: state %d, shifting to state %d\n", - YYPREFIX, yystate, yytable[yyn]); -#endif - if (DSQL_DSQL_yyssp >= DSQL_yyss + yystacksize - 1) - { - goto yyoverflow; - } - *++DSQL_DSQL_yyssp = yystate = yytable[yyn]; - *++yyvsp = yylval; - DSQL_yychar = (-1); - if (DSQL_yyerrflag > 0) --DSQL_yyerrflag; - goto yyloop; - } - if ((yyn = yyrindex[yystate]) && (yyn += DSQL_yychar) >= 0 && - yyn <= YYTABLESIZE && yycheck[yyn] == DSQL_yychar) - { - yyn = yytable[yyn]; - goto yyreduce; - } - if (DSQL_yyerrflag) goto yyinrecovery; -#ifdef lint - goto yynewerror; -#endif -yynewerror: - yyerror("syntax error"); -#ifdef lint - goto yyerrlab; -#endif -yyerrlab: - ++yynerrs; -yyinrecovery: - if (DSQL_yyerrflag < 3) - { - DSQL_yyerrflag = 3; - for (;;) - { - if ((yyn = yysindex[*DSQL_DSQL_yyssp]) && (yyn += YYERRCODE) >= 0 && - yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE) - { -#if YYDEBUG - if (lex.dsql_debug) - printf("%sdebug: state %d, error recovery shifting\ - to state %d\n", YYPREFIX, *DSQL_DSQL_yyssp, yytable[yyn]); -#endif - if (DSQL_DSQL_yyssp >= DSQL_yyss + yystacksize - 1) - { - goto yyoverflow; - } - *++DSQL_DSQL_yyssp = yystate = yytable[yyn]; - *++yyvsp = yylval; - goto yyloop; - } - else - { -#if YYDEBUG - if (lex.dsql_debug) - printf("%sdebug: error recovery discarding state %d\n", - YYPREFIX, *DSQL_DSQL_yyssp); -#endif - if (DSQL_DSQL_yyssp <= DSQL_yyss) goto yyabort; - --DSQL_DSQL_yyssp; - --yyvsp; - } - } - } - else - { - if (DSQL_yychar == 0) goto yyabort; -#if YYDEBUG - if (lex.dsql_debug) - { - yys = 0; - if (DSQL_yychar <= YYMAXTOKEN) yys = yyname[DSQL_yychar]; - if (!yys) yys = "illegal-symbol"; - printf("%sdebug: state %d, error recovery discards token %d (%s)\n", - YYPREFIX, yystate, DSQL_yychar, yys); - } -#endif - DSQL_yychar = (-1); - goto yyloop; - } -yyreduce: -#if YYDEBUG - if (lex.dsql_debug) - printf("%sdebug: state %d, reducing by rule %d (%s)\n", - YYPREFIX, yystate, yyn, yyrule[yyn]); -#endif - yym = yylen[yyn]; - yyval = yyvsp[1-yym]; - switch (yyn) - { -case 1: -{ DSQL_parse = yyvsp[0]; } -break; -case 2: -{ DSQL_parse = yyvsp[-1]; } -break; -case 21: -{ prepare_console_debug ((int) yyvsp[0], &lex.dsql_debug); - yyval = make_node (nod_null, (int) 0, NULL); } -break; -case 22: -{ yyval = make_node (nod_grant, (int) e_grant_count, - yyvsp[-5], yyvsp[-3], make_list(yyvsp[-1]), yyvsp[0]); } -break; -case 23: -{ yyval = make_node (nod_grant, (int) e_grant_count, - yyvsp[-6], yyvsp[-3], make_list(yyvsp[-1]), yyvsp[0]); } -break; -case 24: -{ yyval = make_node (nod_grant, (int) e_grant_count, - yyvsp[-4], yyvsp[-2], make_list(yyvsp[0]), NULL); } -break; -case 25: -{ yyval = make_node (nod_grant, (int) e_grant_count, - yyvsp[-5], yyvsp[-2], make_list(yyvsp[0]), NULL); } -break; -case 26: -{ yyval = make_node (nod_grant, (int) e_grant_count, - make_list(yyvsp[-3]), make_list(yyvsp[-1]), NULL, yyvsp[0]); } -break; -case 28: -{ yyval = yyvsp[0]; } -break; -case 29: -{ yyval = make_node (nod_all, (int) 0, NULL); } -break; -case 30: -{ yyval = make_node (nod_all, (int) 0, NULL); } -break; -case 31: -{ yyval = make_list (yyvsp[0]); } -break; -case 33: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 34: -{ yyval = make_list (make_node (nod_execute, (int) 0, NULL)); } -break; -case 35: -{ yyval = make_node (nod_select, (int) 0, NULL); } -break; -case 36: -{ yyval = make_node (nod_insert, (int) 0, NULL); } -break; -case 37: -{ yyval = make_node (nod_delete, (int) 0, NULL); } -break; -case 38: -{ yyval = make_node (nod_update, (int) 1, yyvsp[0]); } -break; -case 39: -{ yyval = make_node (nod_references, (int) 1, yyvsp[0]); } -break; -case 40: -{ yyval = make_node (nod_grant, (int) 0, NULL); } -break; -case 41: -{ yyval = 0; } -break; -case 42: -{ yyval = make_node (nod_grant_admin, (int) 0, NULL); } -break; -case 43: -{ yyval = 0; } -break; -case 44: -{ yyval = make_node (nod_procedure_name, (int) 1, yyvsp[0]); } -break; -case 45: -{ yyval = make_node (nod_revoke, - (int) e_grant_count, yyvsp[-4], yyvsp[-2], - make_list(yyvsp[0]), yyvsp[-5]); } -break; -case 46: -{ yyval = make_node (nod_revoke, - (int) e_grant_count, yyvsp[-5], yyvsp[-2], - make_list(yyvsp[0]), yyvsp[-6]); } -break; -case 47: -{ yyval = make_node (nod_revoke, - (int) e_grant_count, yyvsp[-4], yyvsp[-2], - make_list(yyvsp[0]), NULL); } -break; -case 48: -{ yyval = make_node (nod_revoke, - (int) e_grant_count, yyvsp[-5], yyvsp[-2], - make_list(yyvsp[0]), NULL); } -break; -case 49: -{ yyval = make_node (nod_revoke, - (int) e_grant_count, yyvsp[-4], yyvsp[-2], - make_list(yyvsp[0]), NULL); } -break; -case 50: -{ yyval = make_node (nod_revoke, - (int) e_grant_count, yyvsp[-5], yyvsp[-2], - make_list(yyvsp[0]), NULL); } -break; -case 51: -{ yyval = make_node (nod_revoke, - (int) e_grant_count, make_list(yyvsp[-2]), make_list(yyvsp[0]), - NULL, NULL); } -break; -case 52: -{ yyval = make_node (nod_grant, (int) 0, NULL); } -break; -case 54: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 55: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 56: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 57: -{ yyval = make_node (nod_proc_obj, (int) 1, yyvsp[0]); } -break; -case 58: -{ yyval = make_node (nod_trig_obj, (int) 1, yyvsp[0]); } -break; -case 59: -{ yyval = make_node (nod_view_obj, (int) 1, yyvsp[0]); } -break; -case 60: -{ yyval = make_node (nod_role_name, (int) 1, yyvsp[0]); } -break; -case 62: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 63: -{ yyval = make_node (nod_user_name, (int) 1, yyvsp[0]); } -break; -case 64: -{ yyval = make_node (nod_user_name, (int) 2, yyvsp[0], NULL); } -break; -case 65: -{ yyval = make_node (nod_user_group, (int) 1, yyvsp[0]); } -break; -case 67: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 68: -{ yyval = make_node (nod_role_name, (int) 1, yyvsp[0]); } -break; -case 70: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 71: -{ yyval = make_node (nod_user_name, (int) 1, yyvsp[0]); } -break; -case 72: -{ yyval = make_node (nod_user_name, (int) 1, yyvsp[0]); } -break; -case 73: -{ yyval = yyvsp[0];} -break; -case 74: -{ yyval = yyvsp[0]; } -break; -case 75: -{ yyval = yyvsp[0]; } -break; -case 76: -{ yyval = make_node (nod_def_udf, (int) e_udf_count, - yyvsp[-7], yyvsp[-2], yyvsp[0], make_list (yyvsp[-6]), yyvsp[-4]); } -break; -case 78: -{ lex.g_field->fld_dtype = dtype_blob; } -break; -case 79: -{ - lex.g_field->fld_dtype = dtype_cstring; - lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-2]; } -break; -case 80: -{ yyval = NULL; } -break; -case 82: -{ yyval = yyvsp[-1]; } -break; -case 84: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 85: -{ yyval = make_node (nod_udf_param, (int) e_udf_param_count, - yyvsp[-1], NULL); } -break; -case 86: -{ yyval = make_node (nod_udf_param, (int) e_udf_param_count, - yyvsp[-3], MAKE_constant ((STR) FUN_descriptor, CONSTANT_SLONG)); } -break; -case 88: -{ yyval = yyvsp[-1]; } -break; -case 89: -{ yyval = make_node (nod_udf_return_value, (int) 2, yyvsp[-1], - MAKE_constant ((STR) FUN_reference, CONSTANT_SLONG));} -break; -case 90: -{ yyval = make_node (nod_udf_return_value, (int) 2, yyvsp[-2], - MAKE_constant ((STR) (-1 * FUN_reference), CONSTANT_SLONG));} -break; -case 91: -{ yyval = make_node (nod_udf_return_value, (int) 2, yyvsp[-3], - MAKE_constant ((STR) FUN_value, CONSTANT_SLONG));} -break; -case 92: -{ yyval = make_node (nod_udf_return_value, (int) 2, yyvsp[-3], - MAKE_constant ((STR) FUN_descriptor, CONSTANT_SLONG));} -break; -case 93: -{ yyval = make_node (nod_udf_return_value, (int) 2, - NULL, MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG));} -break; -case 94: -{ yyval = make_node (nod_def_filter, (int) e_filter_count, - yyvsp[-8], yyvsp[-6], yyvsp[-4], yyvsp[-2], yyvsp[0]); } -break; -case 95: -{ yyval = yyvsp[0]; } -break; -case 96: -{ yyval = make_node (nod_def_exception, (int) e_xcp_count, - yyvsp[-1], yyvsp[0]); } -break; -case 97: -{ yyval = make_node (nod_def_index, (int) e_idx_count, - yyvsp[-6], yyvsp[-5], yyvsp[-3], yyvsp[-1], yyvsp[0]); } -break; -case 98: -{ yyval = yyvsp[0]; } -break; -case 99: -{ yyval = yyvsp[0]; } -break; -case 100: -{ yyval = yyvsp[0]; } -break; -case 101: -{ yyval = yyvsp[0]; } -break; -case 102: -{ yyval = yyvsp[0]; } -break; -case 103: -{ yyval = yyvsp[0]; } -break; -case 104: -{ yyval = yyvsp[0]; } -break; -case 105: -{ yyval = yyvsp[0]; } -break; -case 106: -{ yyval = yyvsp[0]; } -break; -case 107: -{ yyval = yyvsp[0]; } -break; -case 108: -{ yyval = yyvsp[0]; } -break; -case 109: -{ yyval = yyvsp[0]; } -break; -case 110: -{ yyval = yyvsp[0]; } -break; -case 111: -{ yyval = yyvsp[0]; } -break; -case 112: -{ yyval = yyvsp[0]; } -break; -case 113: -{ yyval = yyvsp[0]; } -break; -case 114: -{ yyval = make_node (nod_unique, 0, NULL); } -break; -case 115: -{ yyval = NULL; } -break; -case 116: -{ yyval = make_list (yyvsp[0]); } -break; -case 118: -{ yyval = make_node (nod_def_computed, 2, yyvsp[-2], yyvsp[-1]); } -break; -case 119: -{ yyval = make_node (nod_def_shadow, (int) e_shadow_count, - yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], make_list (yyvsp[0])); } -break; -case 120: -{ yyval = MAKE_constant ((STR) 1, CONSTANT_SLONG); } -break; -case 121: -{ yyval = MAKE_constant ((STR) 0, CONSTANT_SLONG); } -break; -case 122: -{ yyval = MAKE_constant ((STR) 0, CONSTANT_SLONG); } -break; -case 123: -{ yyval = MAKE_constant ((STR) 0, CONSTANT_SLONG); } -break; -case 124: -{ yyval = MAKE_constant ((STR) 1, CONSTANT_SLONG); } -break; -case 125: -{ yyval = (DSQL_NOD) 0;} -break; -case 126: -{ yyval = yyvsp[-1]; } -break; -case 127: -{ yyval = NULL; } -break; -case 130: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } -break; -case 131: -{ yyval = make_node (nod_def_domain, (int) e_dom_count, - yyvsp[-7], yyvsp[-3], yyvsp[-2], make_list (yyvsp[-1]), yyvsp[0]); } -break; -case 132: -{ yyval = NULL; } -break; -case 133: -{ yyval = NULL; } -break; -case 134: -{ yyval = yyvsp[0]; } -break; -case 135: -{ yyval = NULL; } -break; -case 136: -{ yyval = NULL; } -break; -case 139: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } -break; -case 140: -{ yyval = make_node (nod_rel_constraint, (int) 2, NULL, yyvsp[0]);} -break; -case 143: -{ yyval = make_node (nod_null, (int) 0, NULL); } -break; -case 144: -{ yyval = make_node (nod_def_constraint, - (int) e_cnstr_count, MAKE_string(NULL_STRING, 0), NULL, - NULL, NULL, yyvsp[-2], NULL, yyvsp[0], NULL, NULL); } -break; -case 145: -{ yyval = make_node (nod_def_generator, - (int) e_gen_count, yyvsp[0]); } -break; -case 146: -{ yyval = make_node (nod_def_role, - (int) 1, yyvsp[0]); } -break; -case 147: -{ yyval = make_node (nod_def_database, (int) e_cdb_count, - yyvsp[-2], make_list(yyvsp[-1]), make_list (yyvsp[0]));} -break; -case 150: -{ lex.log_defined = FALSE; - lex.cache_defined = FALSE; - yyval = (DSQL_NOD) yyvsp[0]; } -break; -case 151: -{yyval = NULL;} -break; -case 154: -{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } -break; -case 155: -{ yyval = make_node (nod_page_size, 1, yyvsp[0]);} -break; -case 156: -{ yyval = make_node (nod_file_length, 1, yyvsp[-1]);} -break; -case 157: -{ yyval = make_node (nod_user_name, 1, yyvsp[0]);} -break; -case 158: -{ yyval = make_node (nod_password, 1, yyvsp[0]);} -break; -case 159: -{ yyval = make_node (nod_lc_ctype, 1, yyvsp[0]);} -break; -case 160: -{yyval = NULL;} -break; -case 163: -{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } -break; -case 167: -{ yyval = make_node (nod_dfl_charset, 1, yyvsp[0]);} -break; -case 168: -{ yyval = make_node (nod_difference_file, 1, yyvsp[0]); } -break; -case 169: -{ yyval = make_node (nod_group_commit_wait, 1, yyvsp[0]);} -break; -case 170: -{ yyval = make_node (nod_check_point_len, 1, yyvsp[0]);} -break; -case 171: -{ yyval = make_node (nod_num_log_buffers, 1, yyvsp[0]);} -break; -case 172: -{ yyval = make_node (nod_log_buffer_size, 1, yyvsp[0]);} -break; -case 173: -{ if (lex.log_defined) - yyabandon (-260, isc_log_redef); /* Log redefined */ - lex.log_defined = TRUE; - yyval = yyvsp[0]; } -break; -case 174: -{ if (lex.log_defined) - yyabandon (-260, isc_log_redef); - lex.log_defined = TRUE; - yyval = yyvsp[0]; } -break; -case 175: -{ lex.g_file->fil_flags |= LOG_serial | LOG_overflow; - if (lex.g_file->fil_partitions) - yyabandon (-261, isc_partition_not_supp); - /* Partitions not supported in series of log file specification */ - yyval = make_node (nod_list, 2, yyvsp[-3], yyvsp[0]); } -break; -case 176: -{ lex.g_file->fil_flags |= LOG_serial; - if (lex.g_file->fil_partitions) - yyabandon (-261, isc_partition_not_supp); - yyval = yyvsp[0]; } -break; -case 177: -{ lex.g_file = make_file(); - lex.g_file->fil_flags = LOG_serial | LOG_default; - yyval = make_node (nod_log_file_desc, (int) 1, - (DSQL_NOD) lex.g_file);} -break; -case 178: -{ lex.g_file->fil_name = (STR) yyvsp[-1]; - yyval = (DSQL_NOD) make_node (nod_file_desc, (int) 1, - (DSQL_NOD) lex.g_file); } -break; -case 180: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 181: -{ - check_log_file_attrs(); - yyval = (DSQL_NOD) make_node (nod_log_file_desc, (int) 1, - (DSQL_NOD) lex.g_file); } -break; -case 182: -{ lex.g_file = make_file(); - lex.g_file->fil_name = (STR) yyvsp[0]; } -break; -case 185: -{ lex.g_file->fil_length = (SLONG) yyvsp[0]; } -break; -case 186: -{ lex.g_file = make_file ();} -break; -case 191: -{ lex.g_file->fil_start = (SLONG) yyvsp[0];} -break; -case 192: -{ lex.g_file->fil_length = (SLONG) yyvsp[-1];} -break; -case 199: -{ yyval = make_node (nod_def_relation, - (int) e_drl_count, yyvsp[-4], make_list (yyvsp[-1]), yyvsp[-3]); } -break; -case 200: -{ yyval = make_node (nod_redef_relation, - (int) e_drl_count, yyvsp[-4], make_list (yyvsp[-1]), yyvsp[-3]); } -break; -case 201: -{ yyval = yyvsp[0]; } -break; -case 202: -{ yyval = yyvsp[0]; } -break; -case 203: -{ yyval = NULL; } -break; -case 205: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 208: -{ yyval = make_node (nod_def_field, (int) e_dfl_count, - yyvsp[-5], yyvsp[-3], yyvsp[-2], make_list (yyvsp[-1]), yyvsp[0], yyvsp[-4], NULL); } -break; -case 209: -{ yyval = make_node (nod_def_field, (int) e_dfl_count, - yyvsp[-2], NULL, NULL, NULL, NULL, NULL, yyvsp[0]); } -break; -case 210: -{ yyval = make_node (nod_def_field, (int) e_dfl_count, - yyvsp[-1], NULL, NULL, NULL, NULL, NULL, yyvsp[0]); } -break; -case 211: -{ - lex.g_field->fld_flags |= FLD_computed; - yyval = make_node (nod_def_computed, 2, yyvsp[-2], yyvsp[-1]); } -break; -case 214: -{ yyval = NULL; } -break; -case 215: -{ yyval = make_node (nod_def_domain, (int) e_dom_count, - yyvsp[-1], NULL, NULL, NULL, NULL); } -break; -case 216: -{ yyval = yyvsp[0]; } -break; -case 217: -{ yyval = NULL; } -break; -case 218: -{ lex.g_field_name = yyvsp[0]; - lex.g_field = make_field (yyvsp[0]); - yyval = (DSQL_NOD) lex.g_field; } -break; -case 219: -{ lex.g_field = make_field (yyvsp[0]); - yyval = (DSQL_NOD) lex.g_field; } -break; -case 220: -{ yyval = yyvsp[-1]; } -break; -case 221: -{ lex.g_field = make_field (NULL); - yyval = (DSQL_NOD) lex.g_field; } -break; -case 222: -{ yyval = yyvsp[0]; } -break; -case 223: -{ yyval = NULL; } -break; -case 227: -{ yyval = yyvsp[0]; } -break; -case 228: -{ yyval = yyvsp[0]; } -break; -case 229: -{ yyval = yyvsp[0]; } -break; -case 230: -{ yyval = NULL; } -break; -case 233: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } -break; -case 234: -{ yyval = make_node (nod_rel_constraint, (int) 2, yyvsp[-1], yyvsp[0]);} -break; -case 235: -{ yyval = make_node (nod_null, (int) 1, NULL); } -break; -case 236: -{ yyval = make_node (nod_foreign, (int) e_for_count, - make_node (nod_list, (int) 1, lex.g_field_name), yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 238: -{ yyval = make_node (nod_unique, 2, NULL, yyvsp[0]); } -break; -case 239: -{ yyval = make_node (nod_primary, (int) e_pri_count, NULL, yyvsp[0]); } -break; -case 240: -{ yyval = make_node (nod_rel_constraint, (int) 2, yyvsp[-1], yyvsp[0]);} -break; -case 241: -{ yyval = yyvsp[0]; } -break; -case 242: -{ yyval = NULL ;} -break; -case 247: -{ yyval = make_node (nod_unique, 2, yyvsp[-1], yyvsp[0]); } -break; -case 248: -{ yyval = make_node (nod_primary, (int) e_pri_count, yyvsp[-1], yyvsp[0]); } -break; -case 249: -{ yyval = make_node (nod_foreign, (int) e_for_count, yyvsp[-5], yyvsp[-3], - yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 250: -{ yyval = make_node (nod_def_index, (int) e_idx_count, - NULL, yyvsp[-2], yyvsp[0], NULL, NULL); } -break; -case 251: -{ yyval = make_node (nod_def_index, (int) e_idx_count, - NULL, NULL, NULL, NULL, NULL); } -break; -case 252: -{ yyval = make_node (nod_def_constraint, - (int) e_cnstr_count, MAKE_string(NULL_STRING, 0), NULL, - NULL, NULL, yyvsp[-2], NULL, yyvsp[0], NULL, NULL); } -break; -case 253: -{ yyval = make_node (nod_ref_upd_del, (int) e_ref_upd_del_count, yyvsp[0], NULL);} -break; -case 254: -{ yyval = make_node (nod_ref_upd_del, (int) e_ref_upd_del_count, NULL, yyvsp[0]);} -break; -case 255: -{ yyval = make_node (nod_ref_upd_del, (int) e_ref_upd_del_count, yyvsp[0], yyvsp[-1]); } -break; -case 256: -{ yyval = make_node (nod_ref_upd_del, (int) e_ref_upd_del_count, yyvsp[-1], yyvsp[0]);} -break; -case 257: -{ yyval = NULL;} -break; -case 258: -{ yyval = yyvsp[0];} -break; -case 259: -{ yyval = yyvsp[0];} -break; -case 260: -{ yyval = make_flag_node (nod_ref_trig_action, - REF_ACTION_CASCADE, (int) e_ref_trig_action_count, NULL);} -break; -case 261: -{ yyval = make_flag_node (nod_ref_trig_action, - REF_ACTION_SET_DEFAULT, (int) e_ref_trig_action_count, NULL);} -break; -case 262: -{ yyval = make_flag_node (nod_ref_trig_action, - REF_ACTION_SET_NULL, (int) e_ref_trig_action_count, NULL);} -break; -case 263: -{ yyval = make_flag_node (nod_ref_trig_action, - REF_ACTION_NONE, (int) e_ref_trig_action_count, NULL);} -break; -case 264: -{ yyval = make_node (nod_def_procedure, - (int) e_prc_count, yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 265: -{ yyval = make_node (nod_redef_procedure, - (int) e_prc_count, yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 266: -{ yyval = make_node (nod_replace_procedure, - (int) e_prc_count, yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 267: -{ yyval = make_node (nod_mod_procedure, - (int) e_prc_count, yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 268: -{ yyval = make_list (yyvsp[-1]); } -break; -case 269: -{ yyval = NULL; } -break; -case 270: -{ yyval = yyvsp[0]; } -break; -case 271: -{ yyval = NULL; } -break; -case 273: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 274: -{ yyval = make_node (nod_def_field, (int) e_dfl_count, - yyvsp[-1], NULL, NULL, NULL, NULL, NULL, NULL); } -break; -case 275: -{ yyval = make_list (yyvsp[0]); } -break; -case 276: -{ yyval = NULL; } -break; -case 278: -{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } -break; -case 279: -{ yyval = yyvsp[-1]; } -break; -case 282: -{ yyval = make_node (nod_def_field, (int) e_dfl_count, - yyvsp[-2], yyvsp[0], NULL, NULL, NULL, NULL, NULL); } -break; -case 283: -{ yyval = NULL; } -break; -case 284: -{ yyval = NULL; } -break; -case 285: -{ yyval = yyvsp[0]; } -break; -case 286: -{ yyval = yyvsp[0]; } -break; -case 287: -{ yyval = make_node (nod_cursor, (int) e_cur_count, - yyvsp[-5], yyvsp[-1], NULL, NULL); } -break; -case 290: -{ yyval = yyvsp[-1]; } -break; -case 291: -{ yyval = make_node (nod_block, (int) e_blk_count, make_list (yyvsp[0]), NULL); } -break; -case 292: -{ yyval = make_node (nod_block, (int) e_blk_count, make_list (yyvsp[-1]), make_list (yyvsp[0])); } -break; -case 293: -{ yyval = make_node (nod_block, (int) e_blk_count, NULL, NULL);} -break; -case 295: -{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } -break; -case 311: -{ yyval = make_node (nod_return, (int) e_rtn_count, NULL); } -break; -case 312: -{ yyval = make_node (nod_exit, 0, NULL); } -break; -case 315: -{ yyval = make_node (nod_exception_stmt, (int) e_xcp_count, yyvsp[-1], NULL); } -break; -case 316: -{ yyval = make_node (nod_exception_stmt, (int) e_xcp_count, yyvsp[-2], yyvsp[-1]); } -break; -case 317: -{ yyval = make_node (nod_exception_stmt, (int) e_xcp_count, NULL, NULL); } -break; -case 318: -{ yyval = make_node (nod_exec_procedure, (int) e_exe_count, yyvsp[-3], - yyvsp[-2], yyvsp[-1]); } -break; -case 319: -{ yyval = make_node (nod_exec_sql, (int) e_exec_sql_count, yyvsp[-1]); } -break; -case 322: -{ yyval = make_node (nod_for_select, (int) e_flp_count, yyvsp[-5], - make_list (yyvsp[-3]), yyvsp[-2], yyvsp[0], yyvsp[-7]); } -break; -case 323: -{ yyval = make_node (nod_exec_into, (int) e_exec_into_count, yyvsp[-4], yyvsp[0], make_list (yyvsp[-2]), yyvsp[-8]); } -break; -case 324: -{ yyval = make_node (nod_exec_into, (int) e_exec_into_count, yyvsp[-3], 0, make_list (yyvsp[-1])); } -break; -case 325: -{ yyval = make_node (nod_if, (int) e_if_count, yyvsp[-5], yyvsp[-2], yyvsp[0]); } -break; -case 326: -{ yyval = make_node (nod_if, (int) e_if_count, yyvsp[-3], yyvsp[0], NULL); } -break; -case 327: -{ yyval = make_node (nod_post, (int) e_pst_count, yyvsp[-2], yyvsp[-1]); } -break; -case 328: -{ yyval = NULL; } -break; -case 329: -{ yyval = make_node (nod_for_select, (int) e_flp_count, yyvsp[-3], - make_list (yyvsp[-1]), NULL, NULL); } -break; -case 330: -{ yyval = make_node (nod_var_name, (int) e_vrn_count, - yyvsp[0]); } -break; -case 331: -{ yyval = make_list (yyvsp[0]); } -break; -case 332: -{ yyval = make_list (yyvsp[-1]); } -break; -case 333: -{ yyval = NULL; } -break; -case 334: -{ yyval = make_list (yyvsp[0]); } -break; -case 335: -{ yyval = make_list (yyvsp[-1]); } -break; -case 336: -{ yyval = NULL; } -break; -case 339: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 340: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 341: -{ yyval = make_node (nod_while, (int) e_while_count, yyvsp[-3], yyvsp[0], yyvsp[-6]); } -break; -case 342: -{ yyval = make_node (nod_label, (int) e_label_count, yyvsp[-1], NULL); } -break; -case 343: -{ yyval = NULL; } -break; -case 344: -{ yyval = make_node (nod_breakleave, (int) e_breakleave_count, NULL); } -break; -case 345: -{ yyval = make_node (nod_breakleave, (int) e_breakleave_count, NULL); } -break; -case 346: -{ yyval = make_node (nod_breakleave, (int) e_breakleave_count, - make_node (nod_label, (int) e_label_count, yyvsp[-1], NULL)); } -break; -case 347: -{ yyval = make_node (nod_cursor, (int) e_cur_count, yyvsp[0], NULL, NULL, NULL); } -break; -case 348: -{ yyval = NULL; } -break; -case 350: -{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } -break; -case 351: -{ yyval = make_node (nod_on_error, (int) e_err_count, - make_list (yyvsp[-2]), yyvsp[0]); } -break; -case 353: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 354: -{ yyval = make_node (nod_sqlcode, 1, yyvsp[0]); } -break; -case 355: -{ yyval = make_node (nod_gdscode, 1, yyvsp[0]); } -break; -case 356: -{ yyval = make_node (nod_exception, 1, yyvsp[0]); } -break; -case 357: -{ yyval = make_node (nod_default, 1, NULL); } -break; -case 361: -{ yyval = make_node (nod_cursor_open, (int) e_cur_stmt_count, yyvsp[0], NULL, NULL); } -break; -case 362: -{ yyval = make_node (nod_cursor_close, (int) e_cur_stmt_count, yyvsp[0], NULL, NULL); } -break; -case 363: -{ yyval = make_node (nod_cursor_fetch, (int) e_cur_stmt_count, yyvsp[-2], yyvsp[-3], make_list (yyvsp[0])); } -break; -case 364: -{ yyval = NULL; } -break; -case 365: -{ yyval = make_node (nod_exec_procedure, (int) e_exe_count, yyvsp[-1], - yyvsp[0], make_node (nod_all, (int) 0, NULL)); } -break; -case 366: -{ yyval = make_node (nod_def_view, (int) e_view_count, - yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 367: -{ yyval = make_node (nod_redef_view, (int) e_view_count, - yyvsp[-6], yyvsp[-5], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 368: -{ yyval = make_node (nod_select, (int) e_select_count, yyvsp[0], NULL, NULL, NULL, NULL); } -break; -case 369: -{ yyval = make_node (nod_list, (int) 1, yyvsp[0]); } -break; -case 370: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 371: -{ yyval = make_flag_node (nod_list, NOD_UNION_ALL, 2, yyvsp[-3], yyvsp[0]); } -break; -case 372: -{ yyval = make_node (nod_select_expr, (int) e_sel_count, - NULL, yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], NULL, NULL, NULL); } -break; -case 373: -{ yyval = make_list (yyvsp[0]); } -break; -case 375: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 378: -{ yyval = make_node (nod_join, (int) e_join_count, - yyvsp[-5], yyvsp[-4], yyvsp[-2], yyvsp[0]); } -break; -case 379: -{ yyval = yyvsp[-1]; } -break; -case 380: -{ lex.beginning = lex_position(); } -break; -case 381: -{ yyval = (DSQL_NOD) MAKE_string(lex.beginning, - (lex_position() == lex.end) ? - lex_position()-lex.beginning : lex.last_token-lex.beginning);} -break; -case 382: -{ lex.beginning = lex.last_token; } -break; -case 383: -{ yyval = (DSQL_NOD) MAKE_string(lex.beginning, - lex_position()-lex.beginning); } -break; -case 384: -{ yyval = make_node (nod_def_constraint, (int) e_cnstr_count, - MAKE_string(NULL_STRING, 0), NULL, NULL, NULL, - NULL, NULL, NULL, NULL, NULL); } -break; -case 385: -{ yyval = 0; } -break; -case 386: -{ yyval = make_node (nod_def_trigger, (int) e_trg_count, - yyvsp[-8], yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-1], yyvsp[0], NULL); } -break; -case 387: -{ yyval = make_node (nod_replace_trigger, (int) e_trg_count, - yyvsp[-8], yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-1], yyvsp[0], NULL); } -break; -case 388: -{ yyval = MAKE_constant ((STR) 0, CONSTANT_SLONG); } -break; -case 389: -{ yyval = MAKE_constant ((STR) 1, CONSTANT_SLONG); } -break; -case 390: -{ yyval = NULL; } -break; -case 391: -{ yyval = MAKE_trigger_type (yyvsp[-1], yyvsp[0]); } -break; -case 392: -{ yyval = MAKE_constant ((STR) 0, CONSTANT_SLONG); } -break; -case 393: -{ yyval = MAKE_constant ((STR) 1, CONSTANT_SLONG); } -break; -case 394: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (1, 0, 0), CONSTANT_SLONG); } -break; -case 395: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (2, 0, 0), CONSTANT_SLONG); } -break; -case 396: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (3, 0, 0), CONSTANT_SLONG); } -break; -case 397: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (1, 2, 0), CONSTANT_SLONG); } -break; -case 398: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (1, 3, 0), CONSTANT_SLONG); } -break; -case 399: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (2, 1, 0), CONSTANT_SLONG); } -break; -case 400: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (2, 3, 0), CONSTANT_SLONG); } -break; -case 401: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (3, 1, 0), CONSTANT_SLONG); } -break; -case 402: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (3, 2, 0), CONSTANT_SLONG); } -break; -case 403: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (1, 2, 3), CONSTANT_SLONG); } -break; -case 404: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (1, 3, 2), CONSTANT_SLONG); } -break; -case 405: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (2, 1, 3), CONSTANT_SLONG); } -break; -case 406: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (2, 3, 1), CONSTANT_SLONG); } -break; -case 407: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (3, 1, 2), CONSTANT_SLONG); } -break; -case 408: -{ yyval = MAKE_constant ((STR) trigger_type_suffix (3, 2, 1), CONSTANT_SLONG); } -break; -case 409: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG); } -break; -case 410: -{ yyval = NULL; } -break; -case 411: -{ yyval = make_node (nod_list, (int) e_trg_act_count, yyvsp[-1], yyvsp[0]); } -break; -case 412: -{ yyval = yyvsp[0]; } -break; -case 413: -{ yyval = make_node (nod_mod_exception, (int) e_xcp_count, - yyvsp[-1], yyvsp[0]); } -break; -case 414: -{ yyval = make_node (nod_mod_relation, (int) e_alt_count, - yyvsp[-1], make_list (yyvsp[0])); } -break; -case 415: -{ yyval = yyvsp[0]; } -break; -case 416: -{ yyval = yyvsp[0]; } -break; -case 417: -{ yyval = make_node (nod_mod_database, (int) e_adb_count, - make_list (yyvsp[0])); } -break; -case 418: -{ yyval = make_node (nod_mod_domain, (int) e_alt_count, - yyvsp[-1], make_list (yyvsp[0])); } -break; -case 419: -{ yyval = make_node (nod_mod_index, - (int) e_mod_idx_count, yyvsp[0]); } -break; -case 420: -{ yyval = yyvsp[0]; } -break; -case 421: -{ yyval = make_node (nod_def_constraint, - (int) e_cnstr_count, MAKE_string(NULL_STRING, 0), NULL, - NULL, NULL, yyvsp[-2], NULL, yyvsp[0], NULL, NULL); } -break; -case 423: -{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } -break; -case 424: -{ yyval = make_node (nod_def_default, (int) e_dft_count, - yyvsp[-1], yyvsp[0]); } -break; -case 425: -{ yyval = yyvsp[0]; } -break; -case 426: -{ yyval = yyvsp[0]; } -break; -case 427: -{yyval = make_node (nod_del_default, (int) 0, NULL); } -break; -case 428: -{ yyval = make_node (nod_delete_rel_constraint, (int) 1, NULL); } -break; -case 429: -{ yyval = yyvsp[0]; } -break; -case 430: -{ yyval = make_node (nod_mod_domain_type, 2, yyvsp[-1]); } -break; -case 432: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 433: -{ yyval = make_node (nod_del_field, 2, yyvsp[-1], yyvsp[0]); } -break; -case 434: -{ yyval = make_node (nod_delete_rel_constraint, (int) 1, yyvsp[0]);} -break; -case 435: -{ yyval = yyvsp[0]; } -break; -case 436: -{ yyval = yyvsp[0]; } -break; -case 437: -{ yyval = make_node (nod_mod_field_pos, 2, yyvsp[-2], - MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG)); } -break; -case 438: -{ yyval = make_node (nod_mod_field_name, 2, yyvsp[-2], yyvsp[0]); } -break; -case 439: -{ yyval = make_node (nod_mod_field_type, 3, yyvsp[-3], yyvsp[0], yyvsp[-1]); } -break; -case 440: -{ yyval = make_node (nod_field_name, (int) e_fln_count, - NULL, yyvsp[0]); } -break; -case 468: -{ yyval = NULL; } -break; -case 469: -{ yyval = NULL; } -break; -case 470: -{ yyval = NULL; } -break; -case 471: -{ yyval = make_node (nod_def_domain, (int) e_dom_count, - yyvsp[-1], NULL, NULL, NULL, NULL); } -break; -case 472: -{ lex.g_field_name = yyvsp[0]; - lex.g_field = make_field (yyvsp[0]); - yyval = (DSQL_NOD) lex.g_field; } -break; -case 473: -{ yyval = make_node (nod_restrict, 0, NULL); } -break; -case 474: -{ yyval = make_node (nod_cascade, 0, NULL); } -break; -case 475: -{ yyval = make_node (nod_restrict, 0, NULL); } -break; -case 476: -{ yyval = make_node (nod_idx_active, 1, yyvsp[-1]); } -break; -case 477: -{ yyval = make_node (nod_idx_inactive, 1, yyvsp[-1]); } -break; -case 478: -{ lex.log_defined = FALSE; - lex.cache_defined = FALSE; - yyval = NULL; } -break; -case 480: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } -break; -case 481: -{ yyval = yyvsp[0]; } -break; -case 482: -{ yyval = make_node (nod_drop_log, (int) 0, NULL); } -break; -case 483: -{ yyval = yyvsp[0]; } -break; -case 484: -{ yyval = yyvsp[0]; } -break; -case 485: -{ yyval = make_node (nod_difference_file, (int) 1, yyvsp[0]); } -break; -case 486: -{ yyval = make_node (nod_drop_difference, (int) 0, NULL); } -break; -case 487: -{ yyval = make_node (nod_begin_backup, (int) 0, NULL); } -break; -case 488: -{ yyval = make_node (nod_end_backup, (int) 0, NULL); } -break; -case 490: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 491: -{ yyval = make_node (nod_mod_trigger, (int) e_trg_count, - yyvsp[-6], NULL, yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-1], yyvsp[0], NULL); } -break; -case 493: -{ yyval = NULL; } -break; -case 495: -{ yyval = NULL; } -break; -case 496: -{ yyval = yyvsp[0]; } -break; -case 497: -{ yyval = make_node (nod_del_exception, 1, yyvsp[0]); } -break; -case 498: -{ yyval = make_node (nod_del_index, (int) 1, yyvsp[0]); } -break; -case 499: -{ yyval = make_node (nod_del_procedure, (int) 1, yyvsp[0]); } -break; -case 500: -{ yyval = make_node (nod_del_relation, (int) 1, yyvsp[0]); } -break; -case 501: -{ yyval = make_node (nod_del_trigger, (int) 1, yyvsp[0]); } -break; -case 502: -{ yyval = make_node (nod_del_view, (int) 1, yyvsp[0]); } -break; -case 503: -{ yyval = make_node (nod_del_filter, (int) 1, yyvsp[0]); } -break; -case 504: -{ yyval = make_node (nod_del_domain, (int) 1, yyvsp[0]); } -break; -case 505: -{ yyval = make_node (nod_del_udf, (int) 1, yyvsp[0]); } -break; -case 506: -{ yyval = make_node (nod_del_shadow, (int) 1, yyvsp[0]); } -break; -case 507: -{ yyval = make_node (nod_del_role, (int) 1, yyvsp[0]); } -break; -case 508: -{ yyval = make_node (nod_del_generator, (int) 1, yyvsp[0]); } -break; -case 513: -{ lex.g_field->fld_ranges = make_list (yyvsp[-1]); - lex.g_field->fld_dimensions = lex.g_field->fld_ranges->nod_count / 2; - lex.g_field->fld_element_dtype = lex.g_field->fld_dtype; - yyval = yyvsp[-3]; } -break; -case 514: -{ lex.g_field->fld_ranges = make_list (yyvsp[-2]); - lex.g_field->fld_dimensions = lex.g_field->fld_ranges->nod_count / 2; - lex.g_field->fld_element_dtype = lex.g_field->fld_dtype; - yyval = yyvsp[-4]; } -break; -case 516: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 517: -{ if ((SLONG) yyvsp[0] < 1) - yyval = make_node (nod_list, (int) 2, - MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG), - MAKE_constant ((STR) 1, CONSTANT_SLONG)); - else - yyval = make_node (nod_list, (int) 2, - MAKE_constant ((STR) 1, CONSTANT_SLONG), - MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG) ); } -break; -case 518: -{ yyval = make_node (nod_list, (int) 2, - MAKE_constant ((STR) yyvsp[-2], CONSTANT_SLONG), - MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG)); } -break; -case 524: -{ - if (client_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_dialect_datatype_unsupport, - isc_arg_number, client_dialect, - isc_arg_string, "BIGINT", - 0); - if (db_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, - isc_arg_number, db_dialect, - isc_arg_string, "BIGINT", - 0); - lex.g_field->fld_dtype = dtype_int64; - lex.g_field->fld_length = sizeof (SINT64); - } -break; -case 525: -{ - lex.g_field->fld_dtype = dtype_long; - lex.g_field->fld_length = sizeof (SLONG); - } -break; -case 526: -{ - lex.g_field->fld_dtype = dtype_short; - lex.g_field->fld_length = sizeof (SSHORT); - } -break; -case 527: -{ - *stmt_ambiguous = TRUE; - if (client_dialect <= SQL_DIALECT_V5) - { - /* Post warning saying that DATE is equivalent to TIMESTAMP */ - ERRD_post_warning (isc_sqlwarn, isc_arg_number, (SLONG) 301, - isc_arg_warning, isc_dtype_renamed, 0); - lex.g_field->fld_dtype = dtype_timestamp; - lex.g_field->fld_length = sizeof (GDS_TIMESTAMP); - } - else if (client_dialect == SQL_DIALECT_V6_TRANSITION) - yyabandon (-104, isc_transitional_date); - else - { - lex.g_field->fld_dtype = dtype_sql_date; - lex.g_field->fld_length = sizeof (ULONG); - } - } -break; -case 528: -{ - if (client_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_dialect_datatype_unsupport, - isc_arg_number, client_dialect, - isc_arg_string, "TIME", - 0); - if (db_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, - isc_arg_number, db_dialect, - isc_arg_string, "TIME", - 0); - lex.g_field->fld_dtype = dtype_sql_time; - lex.g_field->fld_length = sizeof (SLONG); - } -break; -case 529: -{ - lex.g_field->fld_dtype = dtype_timestamp; - lex.g_field->fld_length = sizeof (GDS_TIMESTAMP); - } -break; -case 532: -{ - lex.g_field->fld_dtype = dtype_blob; - } -break; -case 533: -{ - lex.g_field->fld_dtype = dtype_blob; - lex.g_field->fld_seg_length = (USHORT)(ULONG) yyvsp[-1]; - lex.g_field->fld_sub_type = 0; - } -break; -case 534: -{ - lex.g_field->fld_dtype = dtype_blob; - lex.g_field->fld_seg_length = (USHORT)(ULONG) yyvsp[-3]; - lex.g_field->fld_sub_type = (USHORT)(ULONG) yyvsp[-1]; - } -break; -case 535: -{ - lex.g_field->fld_dtype = dtype_blob; - lex.g_field->fld_seg_length = 80; - lex.g_field->fld_sub_type = (USHORT)(ULONG) yyvsp[-1]; - } -break; -case 536: -{ - lex.g_field->fld_seg_length = (USHORT)(ULONG) yyvsp[0]; - } -break; -case 537: -{ - lex.g_field->fld_seg_length = (USHORT) 80; - } -break; -case 538: -{ - lex.g_field->fld_sub_type = (USHORT)(ULONG) yyvsp[0]; - } -break; -case 539: -{ - lex.g_field->fld_sub_type_name = yyvsp[0]; - } -break; -case 540: -{ - lex.g_field->fld_sub_type = (USHORT) 0; - } -break; -case 541: -{ - lex.g_field->fld_character_set = yyvsp[0]; - } -break; -case 543: -{ - lex.g_field->fld_dtype = dtype_text; - lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-1]; - lex.g_field->fld_flags |= FLD_national; - } -break; -case 544: -{ - lex.g_field->fld_dtype = dtype_text; - lex.g_field->fld_character_length = 1; - lex.g_field->fld_flags |= FLD_national; - } -break; -case 545: -{ - lex.g_field->fld_dtype = dtype_varying; - lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-1]; - lex.g_field->fld_flags |= FLD_national; - } -break; -case 546: -{ - lex.g_field->fld_dtype = dtype_text; - lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-1]; - } -break; -case 547: -{ - lex.g_field->fld_dtype = dtype_text; - lex.g_field->fld_character_length = 1; - } -break; -case 548: -{ - lex.g_field->fld_dtype = dtype_varying; - lex.g_field->fld_character_length = (USHORT)(ULONG) yyvsp[-1]; - } -break; -case 557: -{ - lex.g_field->fld_sub_type = dsc_num_type_numeric; - } -break; -case 558: -{ - lex.g_field->fld_sub_type = dsc_num_type_decimal; - if (lex.g_field->fld_dtype == dtype_short) - { - lex.g_field->fld_dtype = dtype_long; - lex.g_field->fld_length = sizeof (SLONG); - }; - } -break; -case 559: -{ - lex.g_field->fld_dtype = dtype_long; - lex.g_field->fld_length = sizeof (SLONG); - lex.g_field->fld_precision = 9; - } -break; -case 560: -{ - if ( ((SLONG) yyvsp[-1] < 1) || ((SLONG) yyvsp[-1] > 18) ) - yyabandon (-842, isc_precision_err); - /* Precision most be between 1 and 18. */ - if ((SLONG) yyvsp[-1] > 9) - { - if ( ( (client_dialect <= SQL_DIALECT_V5) && - (db_dialect > SQL_DIALECT_V5) ) || - ( (client_dialect > SQL_DIALECT_V5) && - (db_dialect <= SQL_DIALECT_V5) ) ) - ERRD_post (isc_sqlerr, - isc_arg_number, (SLONG) -817, - isc_arg_gds, - isc_ddl_not_allowed_by_db_sql_dial, - isc_arg_number, (SLONG) db_dialect, - 0); - if (client_dialect <= SQL_DIALECT_V5) - { - lex.g_field->fld_dtype = dtype_double; - lex.g_field->fld_length = sizeof (double); - } - else - { - if (client_dialect == SQL_DIALECT_V6_TRANSITION) - { - ERRD_post_warning ( - isc_dsql_warn_precision_ambiguous, - isc_arg_end ); - ERRD_post_warning ( - isc_dsql_warn_precision_ambiguous1, - isc_arg_end ); - ERRD_post_warning ( - isc_dsql_warn_precision_ambiguous2, - isc_arg_end ); - - } - lex.g_field->fld_dtype = dtype_int64; - lex.g_field->fld_length = sizeof (SINT64); - } - } - else - if ((SLONG) yyvsp[-1] < 5) - { - lex.g_field->fld_dtype = dtype_short; - lex.g_field->fld_length = sizeof (SSHORT); - } - else - { - lex.g_field->fld_dtype = dtype_long; - lex.g_field->fld_length = sizeof (SLONG); - } - lex.g_field->fld_precision = (USHORT)(ULONG) yyvsp[-1]; - } -break; -case 561: -{ - if ( ((SLONG) yyvsp[-3] < 1) || ((SLONG) yyvsp[-3] > 18) ) - yyabandon (-842, isc_precision_err); - /* Precision should be between 1 and 18 */ - if (((SLONG) yyvsp[-1] > (SLONG) yyvsp[-3]) || ((SLONG) yyvsp[-1] < 0)) - yyabandon (-842, isc_scale_nogt); - /* Scale must be between 0 and precision */ - if ((SLONG) yyvsp[-3] > 9) - { - if ( ( (client_dialect <= SQL_DIALECT_V5) && - (db_dialect > SQL_DIALECT_V5) ) || - ( (client_dialect > SQL_DIALECT_V5) && - (db_dialect <= SQL_DIALECT_V5) ) ) - ERRD_post (isc_sqlerr, - isc_arg_number, (SLONG) -817, - isc_arg_gds, - isc_ddl_not_allowed_by_db_sql_dial, - isc_arg_number, (SLONG) db_dialect, - 0); - if (client_dialect <= SQL_DIALECT_V5) - { - lex.g_field->fld_dtype = dtype_double; - lex.g_field->fld_length = sizeof (double); - } - else - { - if (client_dialect == SQL_DIALECT_V6_TRANSITION) - { - ERRD_post_warning ( - isc_dsql_warn_precision_ambiguous, - isc_arg_end ); - ERRD_post_warning ( - isc_dsql_warn_precision_ambiguous1, - isc_arg_end ); - ERRD_post_warning ( - isc_dsql_warn_precision_ambiguous2, - isc_arg_end ); - } - /* client_dialect >= SQL_DIALECT_V6 */ - lex.g_field->fld_dtype = dtype_int64; - lex.g_field->fld_length = sizeof (SINT64); - } - } - else - { - if ((SLONG) yyvsp[-3] < 5) - { - lex.g_field->fld_dtype = dtype_short; - lex.g_field->fld_length = sizeof (SSHORT); - } - else - { - lex.g_field->fld_dtype = dtype_long; - lex.g_field->fld_length = sizeof (SLONG); - } - } - lex.g_field->fld_precision = (USHORT)(ULONG) yyvsp[-3]; - lex.g_field->fld_scale = - (SSHORT)(SLONG) yyvsp[-1]; - } -break; -case 564: -{ - if ((SLONG) yyvsp[0] > 7) - { - lex.g_field->fld_dtype = dtype_double; - lex.g_field->fld_length = sizeof (double); - } - else - { - lex.g_field->fld_dtype = dtype_real; - lex.g_field->fld_length = sizeof (float); - } - } -break; -case 565: -{ - lex.g_field->fld_dtype = dtype_double; - lex.g_field->fld_length = sizeof (double); - } -break; -case 566: -{ - lex.g_field->fld_dtype = dtype_real; - lex.g_field->fld_length = sizeof (float); - } -break; -case 567: -{ - lex.g_field->fld_dtype = dtype_double; - lex.g_field->fld_length = sizeof (double); - } -break; -case 568: -{ yyval = yyvsp[-1]; } -break; -case 569: -{ yyval = 0; } -break; -case 573: -{ - yyval = make_node (nod_set_generator2,e_gen_id_count,yyvsp[-2], - MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG)); - } -break; -case 574: -{ - yyval = make_node (nod_set_generator2,e_gen_id_count,yyvsp[-2], - MAKE_constant((STR)yyvsp[0], CONSTANT_SINT64)); - } -break; -case 575: -{ - yyval = make_node (nod_set_generator2, (int) e_gen_id_count, yyvsp[-3], - make_node(nod_negate, 1, - MAKE_constant((STR)yyvsp[0], CONSTANT_SINT64))); - } -break; -case 579: -{ yyval = make_node (nod_user_savepoint, 1, yyvsp[0]); } -break; -case 580: -{ yyval = make_node (nod_release_savepoint, 2, yyvsp[-1], yyvsp[0]); } -break; -case 581: -{ yyval = make_node (nod_flag, 0, NULL); } -break; -case 582: -{ yyval = 0; } -break; -case 583: -{ yyval = make_node (nod_undo_savepoint, 1, yyvsp[0]); } -break; -case 586: -{ yyval = make_node (nod_commit, 1, yyvsp[0]); } -break; -case 587: -{ yyval = make_node (nod_rollback, 0, NULL); } -break; -case 590: -{ yyval = make_node (nod_commit_retain, 0, NULL); } -break; -case 591: -{ yyval = NULL; } -break; -case 593: -{ yyval = NULL; } -break; -case 594: -{yyval = make_node (nod_trans, 1, make_list (yyvsp[0])); } -break; -case 596: -{ yyval = NULL; } -break; -case 598: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-1], yyvsp[0]); } -break; -case 603: -{ yyval = make_flag_node (nod_access, NOD_READ_ONLY, (int) 0, NULL); } -break; -case 604: -{ yyval = make_flag_node (nod_access, NOD_READ_WRITE, (int) 0, NULL); } -break; -case 605: -{ yyval = make_flag_node (nod_wait, NOD_WAIT, (int) 0, NULL); } -break; -case 606: -{ yyval = make_flag_node (nod_wait, NOD_NO_WAIT, (int) 0, NULL); } -break; -case 607: -{ yyval = yyvsp[0];} -break; -case 609: -{ yyval = yyvsp[0];} -break; -case 610: -{ yyval = make_flag_node (nod_isolation, NOD_READ_COMMITTED, 1, yyvsp[0]); } -break; -case 611: -{ yyval = make_flag_node (nod_isolation, NOD_READ_COMMITTED, 1, yyvsp[0]); } -break; -case 612: -{ yyval = make_flag_node (nod_isolation, NOD_CONCURRENCY, 0, NULL); } -break; -case 613: -{ yyval = make_flag_node (nod_isolation, NOD_CONSISTENCY, 0, NULL); } -break; -case 614: -{ yyval = make_flag_node (nod_isolation, NOD_CONSISTENCY, 0, NULL); } -break; -case 615: -{ yyval = make_flag_node (nod_version, NOD_VERSION, 0, NULL); } -break; -case 616: -{ yyval = make_flag_node (nod_version, NOD_NO_VERSION, 0, NULL); } -break; -case 617: -{ yyval = 0; } -break; -case 618: -{ yyval = make_node (nod_reserve, 1, make_list (yyvsp[0])); } -break; -case 619: -{ yyval = (DSQL_NOD) NOD_SHARED; } -break; -case 620: -{ yyval = (DSQL_NOD) NOD_PROTECTED ; } -break; -case 621: -{ yyval = (DSQL_NOD) 0; } -break; -case 622: -{ yyval = (DSQL_NOD) NOD_READ; } -break; -case 623: -{ yyval = (DSQL_NOD) NOD_WRITE; } -break; -case 625: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 626: -{ yyval = make_node (nod_table_lock, (int) 2, make_list (yyvsp[-1]), yyvsp[0]); } -break; -case 627: -{ yyval = make_flag_node (nod_lock_mode, (SSHORT) ((SSHORT)(SLONG) yyvsp[-1] | (SSHORT)(SLONG) yyvsp[0]), (SSHORT) 0, NULL); } -break; -case 628: -{ yyval = 0; } -break; -case 630: -{ yyval = make_node (nod_list, (int) 2, yyvsp[-2], yyvsp[0]); } -break; -case 631: -{yyval = make_node (nod_set_statistics, - (int)e_stat_count, yyvsp[0]); } -break; -case 632: -{ yyval = make_node (nod_select, (int) e_select_count, yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 633: -{ yyval = make_node (nod_list, 1, yyvsp[0]); } -break; -case 634: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 635: -{ yyval = make_flag_node (nod_list, NOD_UNION_ALL, 2, yyvsp[-3], yyvsp[0]); } -break; -case 636: -{ yyval = make_list (yyvsp[0]); } -break; -case 637: -{ yyval = 0; } -break; -case 639: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 640: -{ yyval = make_node (nod_order, (int) e_order_count, yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 641: -{ yyval = 0; } -break; -case 642: -{ yyval = make_node (nod_flag, 0, NULL); } -break; -case 643: -{ yyval = 0; } -break; -case 644: -{ yyval = make_node (nod_flag, 0, NULL); } -break; -case 645: -{ yyval = 0; } -break; -case 646: -{ yyval = yyvsp[-1]; } -break; -case 647: -{ yyval = 0; } -break; -case 648: -{ yyval = make_node (nod_rows, (int) e_rows_count, NULL, yyvsp[0]); } -break; -case 649: -{ yyval = make_node (nod_rows, (int) e_rows_count, - make_node (nod_subtract, 2, yyvsp[-2], - MAKE_constant ((STR) 1, CONSTANT_SLONG)), - make_node (nod_add, 2, - make_node (nod_subtract, 2, yyvsp[0], yyvsp[-2]), - MAKE_constant ((STR) 1, CONSTANT_SLONG))); } -break; -case 650: -{ yyval = NULL; } -break; -case 651: -{ yyval = make_node (nod_for_update, 1, yyvsp[0]); } -break; -case 652: -{ yyval = 0; } -break; -case 653: -{ yyval = yyvsp[0]; } -break; -case 654: -{ yyval = make_node (nod_flag, 0, NULL); } -break; -case 655: -{ yyval = make_node (nod_flag, 0, NULL); } -break; -case 656: -{ yyval = 0; } -break; -case 657: -{ yyval = make_node (nod_select_expr, (int) e_sel_count, - yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], NULL, NULL, NULL); } -break; -case 658: -{ yyval = make_node (nod_select_expr, (int) e_sel_count, - yyvsp[-9], yyvsp[-8], yyvsp[-7], yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], NULL); } -break; -case 659: -{ lex.limit_clause = true; } -break; -case 660: -{ lex.limit_clause = false; } -break; -case 661: -{ lex.first_detection = true; } -break; -case 662: -{ lex.first_detection = false; } -break; -case 663: -{ yyval = make_node (nod_limit, (int) e_limit_count, yyvsp[-1], yyvsp[-2]); } -break; -case 664: -{ yyval = make_node (nod_limit, (int) e_limit_count, NULL, yyvsp[-1]); } -break; -case 665: -{ yyval = make_node (nod_limit, (int) e_limit_count, yyvsp[0], NULL); } -break; -case 666: -{ yyval = 0; } -break; -case 667: -{ yyval = MAKE_constant ((STR) yyvsp[-1], CONSTANT_SLONG); } -break; -case 668: -{ yyval = yyvsp[-2]; } -break; -case 669: -{ yyval = yyvsp[-1]; } -break; -case 670: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG); } -break; -case 671: -{ yyval = yyvsp[-1]; } -break; -case 672: -{ yyval = yyvsp[0]; } -break; -case 673: -{ yyval = make_node (nod_flag, 0, NULL); } -break; -case 674: -{ yyval = 0; } -break; -case 675: -{ yyval = make_list (yyvsp[0]); } -break; -case 676: -{ yyval = 0; } -break; -case 678: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 680: -{ yyval = make_node (nod_alias, 2, yyvsp[-2], yyvsp[0]); } -break; -case 683: -{ yyval = make_list (yyvsp[0]); } -break; -case 685: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 689: -{ yyval = make_node(nod_derived_table, (int) e_derived_table_count, yyvsp[-4], yyvsp[-1], yyvsp[0]); } -break; -case 691: -{ yyval = NULL; } -break; -case 692: -{ yyval = make_list (yyvsp[-1]); } -break; -case 693: -{ yyval = NULL; } -break; -case 695: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 696: -{ yyval = make_node (nod_join, (int) e_join_count, yyvsp[-5], yyvsp[-4], yyvsp[-2], yyvsp[0]); } -break; -case 697: -{ yyval = yyvsp[-1]; } -break; -case 698: -{ yyval = make_node (nod_rel_proc_name, - (int) e_rpn_count, yyvsp[-3], yyvsp[0], yyvsp[-2]); } -break; -case 699: -{ yyval = make_node (nod_rel_proc_name, - (int) e_rpn_count, yyvsp[-1], NULL, yyvsp[0]); } -break; -case 700: -{ yyval = make_list (yyvsp[-1]); } -break; -case 701: -{ yyval = NULL; } -break; -case 703: -{ yyval = make_node (nod_relation_name, - (int) e_rln_count, yyvsp[-1], yyvsp[0]); } -break; -case 704: -{ yyval = make_node (nod_relation_name, - (int) e_rln_count, yyvsp[0], NULL); } -break; -case 705: -{ yyval = make_node (nod_join_inner, (int) 0, NULL); } -break; -case 706: -{ yyval = make_node (nod_join_left, (int) 0, NULL); } -break; -case 707: -{ yyval = make_node (nod_join_left, (int) 0, NULL); } -break; -case 708: -{ yyval = make_node (nod_join_right, (int) 0, NULL); } -break; -case 709: -{ yyval = make_node (nod_join_right, (int) 0, NULL); } -break; -case 710: -{ yyval = make_node (nod_join_full, (int) 0, NULL); } -break; -case 711: -{ yyval = make_node (nod_join_full, (int) 0, NULL); } -break; -case 712: -{ yyval = make_node (nod_join_inner, (int) 0, NULL); } -break; -case 713: -{ yyval = make_list (yyvsp[0]); } -break; -case 714: -{ yyval = 0; } -break; -case 716: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 718: -{ yyval = yyvsp[0]; } -break; -case 719: -{ yyval = 0; } -break; -case 720: -{ yyval = yyvsp[0]; } -break; -case 721: -{ yyval = 0; } -break; -case 722: -{ yyval = yyvsp[0]; } -break; -case 723: -{ yyval = 0; } -break; -case 724: -{ yyval = make_node (nod_plan_expr, 2, yyvsp[-3], make_list (yyvsp[-1])); } -break; -case 725: -{ yyval = 0; } -break; -case 726: -{ yyval = make_node (nod_merge, (int) 0, NULL); } -break; -case 727: -{ yyval = make_node (nod_merge, (int) 0, NULL); } -break; -case 728: -{ yyval = 0; } -break; -case 729: -{ yyval = 0; } -break; -case 731: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 732: -{ yyval = make_node (nod_plan_item, 2, make_list (yyvsp[-1]), yyvsp[0]); } -break; -case 735: -{ yyval = make_node (nod_list, 2, yyvsp[-1], yyvsp[0]); } -break; -case 736: -{ yyval = make_node (nod_natural, (int) 0, NULL); } -break; -case 737: -{ yyval = make_node (nod_index, 1, make_list (yyvsp[-1])); } -break; -case 738: -{ yyval = make_node (nod_index_order, 2, yyvsp[-1], yyvsp[0]); } -break; -case 740: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 741: -{ yyval = make_list (yyvsp[-1]); } -break; -case 742: -{ yyval = 0; } -break; -case 743: -{ yyval = make_node (nod_insert, (int) e_ins_count, - yyvsp[-5], make_list (yyvsp[-4]), make_list (yyvsp[-1]), NULL); } -break; -case 744: -{ yyval = make_node (nod_insert, (int) e_ins_count, yyvsp[-2], yyvsp[-1], NULL, yyvsp[0]); } -break; -case 747: -{ yyval = make_node (nod_delete, (int) e_del_count, yyvsp[-1], yyvsp[0], NULL); } -break; -case 748: -{ yyval = make_node (nod_delete, (int) e_del_count, yyvsp[-1], NULL, yyvsp[0]); } -break; -case 749: -{ yyval = make_node (nod_cursor, (int) e_cur_count, yyvsp[0], NULL, NULL, NULL); } -break; -case 752: -{ yyval = make_node (nod_update, (int) e_upd_count, - yyvsp[-3], make_list (yyvsp[-1]), yyvsp[0], NULL); } -break; -case 753: -{ yyval = make_node (nod_update, (int) e_upd_count, - yyvsp[-3], make_list (yyvsp[-1]), NULL, yyvsp[0]); } -break; -case 755: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 756: -{ yyval = make_node (nod_assign, 2, yyvsp[0], yyvsp[-2]); } -break; -case 760: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 761: -{ yyval = make_node (nod_get_segment, (int) e_blb_count, yyvsp[-4], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 762: -{ yyval = make_node (nod_put_segment, (int) e_blb_count, yyvsp[-4], yyvsp[-2], yyvsp[-1], yyvsp[0]); } -break; -case 763: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 764: -{ yyval = make_node (nod_list, 2, NULL, yyvsp[0]); } -break; -case 768: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG); } -break; -case 769: -{ yyval = yyvsp[0]; } -break; -case 771: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG); } -break; -case 774: -{ yyval = NULL; } -break; -case 775: -{ yyval = make_list (yyvsp[-1]); } -break; -case 777: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 779: -{ yyval = NULL; } -break; -case 780: -{ yyval = make_list (yyvsp[-1]); } -break; -case 782: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 784: -{ yyval = make_node (nod_field_name, (int) e_fln_count, - yyvsp[-2], yyvsp[0]); } -break; -case 785: -{ yyval = make_node (nod_field_name, (int) e_fln_count, - yyvsp[-2], NULL); } -break; -case 786: -{ yyval = make_node (nod_field_name, (int) e_fln_count, - NULL, yyvsp[0]); } -break; -case 788: -{ yyval = make_node (nod_field_name, (int) e_fln_count, - yyvsp[-2], yyvsp[0]); } -break; -case 790: -{ yyval = make_node (nod_not, 1, yyvsp[0]); } -break; -case 792: -{ yyval = make_node (nod_or, 2, yyvsp[-2], yyvsp[0]); } -break; -case 793: -{ yyval = make_node (nod_and, 2, yyvsp[-2], yyvsp[0]); } -break; -case 795: -{ yyval = make_node (nod_not, 1, yyvsp[0]); } -break; -case 796: -{ yyval = make_node (nod_or, 2, yyvsp[-2], yyvsp[0]); } -break; -case 797: -{ yyval = make_node (nod_and, 2, yyvsp[-2], yyvsp[0]); } -break; -case 798: -{ yyval = make_node (nod_or, 2, yyvsp[-2], yyvsp[0]); } -break; -case 799: -{ yyval = make_node (nod_and, 2, yyvsp[-2], yyvsp[0]); } -break; -case 801: -{ yyval = yyvsp[-1]; } -break; -case 802: -{ yyval = make_node (nod_not, 1, yyvsp[0]); } -break; -case 813: -{ yyval = make_node (nod_eql, 2, yyvsp[-2], yyvsp[0]); } -break; -case 814: -{ yyval = make_node (nod_lss, 2, yyvsp[-2], yyvsp[0]); } -break; -case 815: -{ yyval = make_node (nod_gtr, 2, yyvsp[-2], yyvsp[0]); } -break; -case 816: -{ yyval = make_node (nod_geq, 2, yyvsp[-2], yyvsp[0]); } -break; -case 817: -{ yyval = make_node (nod_leq, 2, yyvsp[-2], yyvsp[0]); } -break; -case 818: -{ yyval = make_node (nod_leq, 2, yyvsp[-2], yyvsp[0]); } -break; -case 819: -{ yyval = make_node (nod_geq, 2, yyvsp[-2], yyvsp[0]); } -break; -case 820: -{ yyval = make_node (nod_neq, 2, yyvsp[-2], yyvsp[0]); } -break; -case 821: -{ yyval = make_node (nod_eql_all, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 822: -{ yyval = make_node (nod_lss_all, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 823: -{ yyval = make_node (nod_gtr_all, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 824: -{ yyval = make_node (nod_geq_all, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 825: -{ yyval = make_node (nod_leq_all, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 826: -{ yyval = make_node (nod_leq_all, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 827: -{ yyval = make_node (nod_geq_all, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 828: -{ yyval = make_node (nod_neq_all, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 829: -{ yyval = make_node (nod_eql_any, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 830: -{ yyval = make_node (nod_lss_any, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 831: -{ yyval = make_node (nod_gtr_any, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 832: -{ yyval = make_node (nod_geq_any, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 833: -{ yyval = make_node (nod_leq_any, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 834: -{ yyval = make_node (nod_leq_any, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 835: -{ yyval = make_node (nod_geq_any, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 836: -{ yyval = make_node (nod_neq_any, 2, yyvsp[-5], yyvsp[-1]); } -break; -case 839: -{ yyval = make_node (nod_between, 3, yyvsp[-4], yyvsp[-2], yyvsp[0]); } -break; -case 840: -{ yyval = make_node (nod_not, 1, make_node (nod_between, - 3, yyvsp[-5], yyvsp[-2], yyvsp[0])); } -break; -case 841: -{ yyval = make_node (nod_like, 2, yyvsp[-2], yyvsp[0]); } -break; -case 842: -{ yyval = make_node (nod_not, 1, make_node (nod_like, 2, yyvsp[-3], yyvsp[0])); } -break; -case 843: -{ yyval = make_node (nod_like, 3, yyvsp[-4], yyvsp[-2], yyvsp[0]); } -break; -case 844: -{ yyval = make_node (nod_not, 1, make_node (nod_like, - 3, yyvsp[-5], yyvsp[-2], yyvsp[0])); } -break; -case 845: -{ yyval = make_node (nod_eql_any, 2, yyvsp[-2], yyvsp[0]); } -break; -case 846: -{ yyval = make_node (nod_not, 1, make_node (nod_eql_any, 2, yyvsp[-3], yyvsp[0])); } -break; -case 847: -{ yyval = make_node (nod_containing, 2, yyvsp[-2], yyvsp[0]); } -break; -case 848: -{ yyval = make_node (nod_not, 1, make_node (nod_containing, 2, yyvsp[-3], yyvsp[0])); } -break; -case 849: -{ yyval = make_node (nod_starting, 2, yyvsp[-2], yyvsp[0]); } -break; -case 850: -{ yyval = make_node (nod_not, 1, make_node (nod_starting, 2, yyvsp[-3], yyvsp[0])); } -break; -case 851: -{ yyval = make_node (nod_starting, 2, yyvsp[-3], yyvsp[0]); } -break; -case 852: -{ yyval = make_node (nod_not, 1, make_node (nod_starting, 2, yyvsp[-4], yyvsp[0])); } -break; -case 853: -{ yyval = make_node (nod_exists, 1, yyvsp[-1]); } -break; -case 854: -{ yyval = make_node (nod_singular, 1, yyvsp[-1]); } -break; -case 855: -{ yyval = make_node (nod_missing, 1, yyvsp[-2]); } -break; -case 856: -{ yyval = make_node (nod_not, 1, make_node (nod_missing, 1, yyvsp[-3])); } -break; -case 857: -{ yyval = make_node (nod_eql, 2, - make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 1, CONSTANT_SLONG)); } -break; -case 858: -{ yyval = make_node (nod_eql, 2, - make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 2, CONSTANT_SLONG)); } -break; -case 859: -{ yyval = make_node (nod_eql, 2, - make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 3, CONSTANT_SLONG)); } -break; -case 860: -{ yyval = make_node (nod_eql, 2, - make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 1, CONSTANT_SLONG)); } -break; -case 861: -{ yyval = make_node (nod_eql, 2, - make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 2, CONSTANT_SLONG)); } -break; -case 862: -{ yyval = make_node (nod_eql, 2, - make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 3, CONSTANT_SLONG)); } -break; -case 864: -{ yyval = make_list (yyvsp[-1]); } -break; -case 865: -{ yyval = yyvsp[-1]; } -break; -case 866: -{ yyval = make_node (nod_select_expr, (int) e_sel_count, - yyvsp[-9], yyvsp[-8], make_list (yyvsp[-7]), yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], NULL); } -break; -case 867: -{ yyval = make_node (nod_select_expr, (int) e_sel_count, - yyvsp[-9], yyvsp[-8], make_list (yyvsp[-7]), yyvsp[-6], yyvsp[-5], yyvsp[-4], yyvsp[-3], yyvsp[-2], yyvsp[-1], yyvsp[0], - MAKE_constant ((STR) 1, CONSTANT_SLONG)); } -break; -case 877: -{ yyval = make_node (nod_negate, 1, yyvsp[0]); } -break; -case 878: -{ yyval = yyvsp[0]; } -break; -case 879: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_node (nod_add2, 2, yyvsp[-2], yyvsp[0]); - else - yyval = make_node (nod_add, 2, yyvsp[-2], yyvsp[0]); - } -break; -case 880: -{ yyval = make_node (nod_concatenate, 2, yyvsp[-2], yyvsp[0]); } -break; -case 881: -{ yyval = make_node (nod_collate, (int) e_coll_count, (DSQL_NOD) yyvsp[0], yyvsp[-2]); } -break; -case 882: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_node (nod_subtract2, 2, yyvsp[-2], yyvsp[0]); - else - yyval = make_node (nod_subtract, 2, yyvsp[-2], yyvsp[0]); - } -break; -case 883: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_node (nod_multiply2, 2, yyvsp[-2], yyvsp[0]); - else - yyval = make_node (nod_multiply, 2, yyvsp[-2], yyvsp[0]); - } -break; -case 884: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_node (nod_divide2, 2, yyvsp[-2], yyvsp[0]); - else - yyval = make_node (nod_divide, 2, yyvsp[-2], yyvsp[0]); - } -break; -case 885: -{ yyval = yyvsp[-1]; } -break; -case 886: -{ yyval = yyvsp[-1]; } -break; -case 890: -{ yyval = make_node (nod_dbkey, 1, NULL); } -break; -case 891: -{ yyval = make_node (nod_dbkey, 1, yyvsp[-2]); } -break; -case 892: -{ - yyval = make_node (nod_dom_value, 0, NULL); - } -break; -case 893: -{ yyval = yyvsp[0]; } -break; -case 894: -{ - if (client_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_dialect_datatype_unsupport, - isc_arg_number, client_dialect, - isc_arg_string, "DATE", - 0); - if (db_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, - isc_arg_number, db_dialect, - isc_arg_string, "DATE", - 0); - yyval = make_node (nod_current_date, 0, NULL); - } -break; -case 895: -{ - if (client_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_dialect_datatype_unsupport, - isc_arg_number, client_dialect, - isc_arg_string, "TIME", - 0); - if (db_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, - isc_arg_number, db_dialect, - isc_arg_string, "TIME", - 0); - yyval = make_node (nod_current_time, 0, NULL); - } -break; -case 896: -{ yyval = make_node (nod_current_timestamp, 0, NULL); } -break; -case 897: -{ yyval = make_node (nod_array, (int) e_ary_count, yyvsp[-3], make_list (yyvsp[-1])); } -break; -case 899: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 901: -{ yyval = make_node (nod_negate, 1, yyvsp[0]); } -break; -case 902: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_STRING); } -break; -case 903: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_SLONG); } -break; -case 904: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_DOUBLE); } -break; -case 905: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_SINT64); } -break; -case 906: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_SINT64); } -break; -case 908: -{ yyval = MAKE_str_constant ((STR) yyvsp[0], lex.att_charset); } -break; -case 909: -{ - if (client_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_dialect_datatype_unsupport, - isc_arg_number, client_dialect, - isc_arg_string, "DATE", - 0); - if (db_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, - isc_arg_number, db_dialect, - isc_arg_string, "DATE", - 0); - yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_DATE); - } -break; -case 910: -{ - if (client_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_dialect_datatype_unsupport, - isc_arg_number, client_dialect, - isc_arg_string, "TIME", - 0); - if (db_dialect < SQL_DIALECT_V6_TRANSITION) - ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_sql_db_dialect_dtype_unsupport, - isc_arg_number, db_dialect, - isc_arg_string, "TIME", - 0); - yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_TIME); - } -break; -case 911: -{ yyval = MAKE_constant ((STR) yyvsp[0], CONSTANT_TIMESTAMP); } -break; -case 912: -{ yyval = make_parameter (); } -break; -case 913: -{ yyval = make_node (nod_user_name, 0, NULL); } -break; -case 914: -{ yyval = make_node (nod_user_name, 0, NULL); } -break; -case 915: -{ yyval = make_node (nod_current_role, 0, NULL); } -break; -case 916: -{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_connection_id, CONSTANT_SLONG)); } -break; -case 917: -{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_transaction_id, CONSTANT_SLONG)); } -break; -case 918: -{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_gdscode, CONSTANT_SLONG)); } -break; -case 919: -{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_sqlcode, CONSTANT_SLONG)); } -break; -case 920: -{ yyval = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_rows_affected, CONSTANT_SLONG)); } -break; -case 921: -{ yyval = yyvsp[0]; } -break; -case 922: -{ ((STR) yyvsp[0])->str_charset = (TEXT *) yyvsp[-1]; - yyval = yyvsp[0]; } -break; -case 924: -{ yyval = (DSQL_NOD) - (SLONG) yyvsp[0]; } -break; -case 925: -{ if ((SLONG) yyvsp[0] > SHRT_POS_MAX) - yyabandon (-842, isc_expec_short); - /* Short integer expected */ - yyval = yyvsp[0];} -break; -case 926: -{ if ((SLONG) yyvsp[0] > SHRT_NEG_MAX) - yyabandon (-842, isc_expec_short); - /* Short integer expected */ - yyval = yyvsp[0];} -break; -case 927: -{ if ((SLONG) yyvsp[0] == 0) - yyabandon (-842, isc_expec_positive); - /* Positive number expected */ - yyval = yyvsp[0];} -break; -case 928: -{ if ((SLONG) yyvsp[0] > SHRT_UNSIGNED_MAX) - yyabandon (-842, isc_expec_ushort); - /* Unsigned short integer expected */ - yyval = yyvsp[0];} -break; -case 930: -{ yyval = (DSQL_NOD) - (SLONG) yyvsp[0]; } -break; -case 931: -{ yyval = yyvsp[0];} -break; -case 936: -{ yyval = make_node (nod_agg_count, 0, NULL); } -break; -case 937: -{ yyval = make_node (nod_agg_count, 1, yyvsp[-1]); } -break; -case 938: -{ yyval = make_flag_node (nod_agg_count, - NOD_AGG_DISTINCT, 1, yyvsp[-1]); } -break; -case 939: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_node (nod_agg_total2, 1, yyvsp[-1]); - else - yyval = make_node (nod_agg_total, 1, yyvsp[-1]); - } -break; -case 940: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_flag_node (nod_agg_total2, - NOD_AGG_DISTINCT, 1, yyvsp[-1]); - else - yyval = make_flag_node (nod_agg_total, - NOD_AGG_DISTINCT, 1, yyvsp[-1]); - } -break; -case 941: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_node (nod_agg_average2, 1, yyvsp[-1]); - else - yyval = make_node (nod_agg_average, 1, yyvsp[-1]); - } -break; -case 942: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_flag_node (nod_agg_average2, - NOD_AGG_DISTINCT, 1, yyvsp[-1]); - else - yyval = make_flag_node (nod_agg_average, - NOD_AGG_DISTINCT, 1, yyvsp[-1]); - } -break; -case 943: -{ yyval = make_node (nod_agg_min, 1, yyvsp[-1]); } -break; -case 944: -{ yyval = make_node (nod_agg_min, 1, yyvsp[-1]); } -break; -case 945: -{ yyval = make_node (nod_agg_max, 1, yyvsp[-1]); } -break; -case 946: -{ yyval = make_node (nod_agg_max, 1, yyvsp[-1]); } -break; -case 947: -{ - if (client_dialect >= SQL_DIALECT_V6_TRANSITION) - yyval = make_node (nod_gen_id2, 2, yyvsp[-3], yyvsp[-1]); - else - yyval = make_node (nod_gen_id, 2, yyvsp[-3], yyvsp[-1]); - } -break; -case 949: -{ yyval = make_node (nod_extract, (int) e_extract_count, yyvsp[-3], yyvsp[-1]); } -break; -case 951: -{ yyval = make_node (nod_upcase, 1, yyvsp[-1]); } -break; -case 952: -{ yyval = make_node (nod_substr, (int) e_substr_count, yyvsp[-4], - make_node (nod_subtract, 2, yyvsp[-2], - MAKE_constant ((STR) 1, CONSTANT_SLONG)), yyvsp[-1]); } -break; -case 953: -{ yyval = yyvsp[0]; } -break; -case 954: -{ yyval = MAKE_constant ((STR) SHRT_POS_MAX, CONSTANT_SLONG); } -break; -case 955: -{ yyval = make_node (nod_udf, 2, yyvsp[-3], yyvsp[-1]); } -break; -case 956: -{ yyval = make_node (nod_udf, 1, yyvsp[-2]); } -break; -case 957: -{ yyval = make_node (nod_cast, (int) e_cast_count, yyvsp[-1], yyvsp[-3]); } -break; -case 960: -{ yyval = make_node (nod_searched_case, 2, - make_node (nod_list, 2, make_node (nod_eql, 2, yyvsp[-3], yyvsp[-1]), - make_node (nod_null, 0, NULL)), yyvsp[-3]); } -break; -case 961: -{ yyval = make_node (nod_coalesce, 2, yyvsp[-3], yyvsp[-1]); } -break; -case 964: -{ yyval = make_node (nod_simple_case, 3, yyvsp[-2], make_list(yyvsp[-1]), make_node (nod_null, 0, NULL)); } -break; -case 965: -{ yyval = make_node (nod_simple_case, 3, yyvsp[-4], make_list(yyvsp[-3]), yyvsp[-1]); } -break; -case 966: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 967: -{ yyval = make_node (nod_list, 2, yyvsp[-4], make_node (nod_list, 2, yyvsp[-2], yyvsp[0])); } -break; -case 968: -{ yyval = make_node (nod_searched_case, 2, make_list(yyvsp[-1]), make_node (nod_null, 0, NULL)); } -break; -case 969: -{ yyval = make_node (nod_searched_case, 2, make_list(yyvsp[-3]), yyvsp[-1]); } -break; -case 970: -{ yyval = make_node (nod_list, 2, yyvsp[-2], yyvsp[0]); } -break; -case 971: -{ yyval = make_node (nod_list, 2, yyvsp[-4], make_node (nod_list, 2, yyvsp[-2], yyvsp[0])); } -break; -case 975: -{ yyval = MAKE_constant ((STR)blr_extract_year, CONSTANT_SLONG); } -break; -case 976: -{ yyval = MAKE_constant ((STR)blr_extract_month, CONSTANT_SLONG); } -break; -case 977: -{ yyval = MAKE_constant ((STR)blr_extract_day, CONSTANT_SLONG); } -break; -case 978: -{ yyval = MAKE_constant ((STR)blr_extract_hour, CONSTANT_SLONG); } -break; -case 979: -{ yyval = MAKE_constant ((STR)blr_extract_minute, CONSTANT_SLONG); } -break; -case 980: -{ yyval = MAKE_constant ((STR)blr_extract_second, CONSTANT_SLONG); } -break; -case 981: -{ yyval = MAKE_constant ((STR)blr_extract_weekday, CONSTANT_SLONG); } -break; -case 982: -{ yyval = MAKE_constant ((STR)blr_extract_yearday, CONSTANT_SLONG); } -break; -case 985: -{ yyval = make_node (nod_null, 0, NULL); } -break; - } - DSQL_DSQL_yyssp -= yym; - yystate = *DSQL_DSQL_yyssp; - yyvsp -= yym; - yym = yylhs[yyn]; - if (yystate == 0 && yym == 0) - { -#if YYDEBUG - if (lex.dsql_debug) - printf("%sdebug: after reduction, shifting from state 0 to\ - state %d\n", YYPREFIX, YYFINAL); -#endif - yystate = YYFINAL; - *++DSQL_DSQL_yyssp = YYFINAL; - *++yyvsp = yyval; - if (DSQL_yychar < 0) - { - if ((DSQL_yychar = yylex(client_dialect, db_dialect, parser_version, stmt_ambiguous)) < 0) DSQL_yychar = 0; -#if YYDEBUG - if (lex.dsql_debug) - { - yys = 0; - if (DSQL_yychar <= YYMAXTOKEN) yys = yyname[DSQL_yychar]; - if (!yys) yys = "illegal-symbol"; - printf("%sdebug: state %d, reading %d (%s)\n", - YYPREFIX, YYFINAL, DSQL_yychar, yys); - } -#endif - } - if (DSQL_yychar == 0) goto yyaccept; - goto yyloop; - } - if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 && - yyn <= YYTABLESIZE && yycheck[yyn] == yystate) - yystate = yytable[yyn]; - else - yystate = yydgoto[yym]; -#if YYDEBUG - if (lex.dsql_debug) - printf("%sdebug: after reduction, shifting from state %d \ -to state %d\n", YYPREFIX, *DSQL_DSQL_yyssp, yystate); -#endif - if (DSQL_DSQL_yyssp >= DSQL_yyss + yystacksize - 1) - { - goto yyoverflow; - } - *++DSQL_DSQL_yyssp = yystate; - *++yyvsp = yyval; - goto yyloop; -yyoverflow: - yyerror("yacc stack overflow"); -yyabort: - return (1); -yyaccept: - return (0); -} diff --git a/src/dsql/parse.y b/src/dsql/parse.y index 28930257cb..a3062c80d7 100644 --- a/src/dsql/parse.y +++ b/src/dsql/parse.y @@ -101,7 +101,7 @@ #include "../wal/wal.h" #include "../jrd/err_proto.h" -static void yyerror (TEXT *); +static void yyerror(const TEXT*); /* since UNIX isn't standard, we have to define stuff which is in (which isn't available @@ -127,8 +127,8 @@ const int DEF_CACHE_BUFFERS = 1000; #define YYDEBUG 1 #endif -static const char INTERNAL_FIELD_NAME [] = "DSQL internal"; /* NTX: placeholder */ -static const char NULL_STRING [] = ""; +static const char INTERNAL_FIELD_NAME[] = "DSQL internal"; /* NTX: placeholder */ +static const char NULL_STRING[] = ""; inline SLONG trigger_type_suffix(const int slot1, const int slot2, const int slot3) { @@ -136,9 +136,9 @@ inline SLONG trigger_type_suffix(const int slot1, const int slot2, const int slo } -DSQL_NOD DSQL_parse; +dsql_nod* DSQL_parse; -static void yyerror (TEXT *); +//static void yyerror(const TEXT*); redeclaration. #define YYPARSE_PARAM_TYPE #define YYPARSE_PARAM USHORT client_dialect, USHORT db_dialect, USHORT parser_version, BOOLEAN *stmt_ambiguous @@ -151,8 +151,8 @@ static TEXT *lex_position (void); #ifdef NOT_USED_OR_REPLACED static bool long_int(DSQL_NOD, SLONG *); #endif -static DSQL_FLD make_field (DSQL_NOD); -static FIL make_file (void); +static dsql_fld* make_field (DSQL_NOD); +static dsql_fil* make_file (void); static DSQL_NOD make_list (DSQL_NOD); static DSQL_NOD make_node (NOD_TYPE, int, ...); static DSQL_NOD make_parameter (void); @@ -161,8 +161,8 @@ static void prepare_console_debug (int, int *); #ifdef NOT_USED_OR_REPLACED static bool short_int(DSQL_NOD, SLONG *, SSHORT); #endif -static void stack_nodes (DSQL_NOD, DLLS *); -inline static int yylex (USHORT, USHORT, USHORT, BOOLEAN *); +static void stack_nodes (DSQL_NOD, dsql_lls**); +inline static int yylex (USHORT, USHORT, USHORT, BOOLEAN*); static void yyabandon (SSHORT, ISC_STATUS); static void check_log_file_attrs (void); @@ -180,8 +180,8 @@ inline void check_copy_incr(char*& to, const char ch, const char* const string) struct LexerState { /* This is, in fact, parser state. Not used in lexer itself */ - DSQL_FLD g_field; - FIL g_file; + dsql_fld* g_field; + dsql_fil* g_file; DSQL_NOD g_field_name; SSHORT log_defined, cache_defined; int dsql_debug; @@ -204,7 +204,7 @@ struct LexerState { USHORT client_dialect, USHORT db_dialect, USHORT parser_version, - BOOLEAN *stmt_ambiguous); + BOOLEAN* stmt_ambiguous); }; /* Get ready for thread-safety. Move this to BISON object pointer when we @@ -779,7 +779,7 @@ arg_desc : init_data_type udf_data_type $1, NULL); } | init_data_type udf_data_type BY KW_DESCRIPTOR { $$ = make_node (nod_udf_param, (int) e_udf_param_count, - $1, MAKE_constant ((STR) FUN_descriptor, CONSTANT_SLONG)); } + $1, MAKE_constant ((dsql_str*) FUN_descriptor, CONSTANT_SLONG)); } ; @@ -789,21 +789,21 @@ return_value1 : return_value ; return_value : init_data_type udf_data_type { $$ = make_node (nod_udf_return_value, (int) 2, $1, - MAKE_constant ((STR) FUN_reference, CONSTANT_SLONG));} + MAKE_constant ((dsql_str*) FUN_reference, CONSTANT_SLONG));} | init_data_type udf_data_type FREE_IT { $$ = make_node (nod_udf_return_value, (int) 2, $1, - MAKE_constant ((STR) (-1 * FUN_reference), CONSTANT_SLONG));} + MAKE_constant ((dsql_str*) (-1 * FUN_reference), CONSTANT_SLONG));} /* FUN_refrence with FREE_IT is -ve */ | init_data_type udf_data_type BY KW_VALUE { $$ = make_node (nod_udf_return_value, (int) 2, $1, - MAKE_constant ((STR) FUN_value, CONSTANT_SLONG));} + MAKE_constant ((dsql_str*) FUN_value, CONSTANT_SLONG));} /* CVC: Enable return by descriptor for the future.*/ | init_data_type udf_data_type BY KW_DESCRIPTOR { $$ = make_node (nod_udf_return_value, (int) 2, $1, - MAKE_constant ((STR) FUN_descriptor, CONSTANT_SLONG));} + MAKE_constant ((dsql_str*) FUN_descriptor, CONSTANT_SLONG));} | PARAMETER pos_short_integer { $$ = make_node (nod_udf_return_value, (int) 2, - NULL, MAKE_constant ((STR) $2, CONSTANT_SLONG));} + NULL, MAKE_constant ((dsql_str*) $2, CONSTANT_SLONG));} ; filter_decl_clause : symbol_filter_name INPUT_TYPE blob_subtype OUTPUT_TYPE blob_subtype @@ -903,17 +903,17 @@ shadow_clause : pos_short_integer manual_auto conditional sql_string ; manual_auto : MANUAL - { $$ = MAKE_constant ((STR) 1, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG); } | AUTO - { $$ = MAKE_constant ((STR) 0, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } | - { $$ = MAKE_constant ((STR) 0, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } ; conditional : - { $$ = MAKE_constant ((STR) 0, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } | CONDITIONAL - { $$ = MAKE_constant ((STR) 1, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG); } ; first_file_length : @@ -1113,7 +1113,7 @@ db_default_log_spec : LOGFILE ; db_file : file1 sql_string file_desc1 - { lex.g_file->fil_name = (STR) $2; + { lex.g_file->fil_name = (dsql_str*) $2; $$ = (DSQL_NOD) make_node (nod_file_desc, (int) 1, (DSQL_NOD) lex.g_file); } ; @@ -1126,7 +1126,7 @@ db_cache : CACHE sql_string cache_length */ /* Cache redefined */ /* lex.g_file = make_file(); lex.g_file->fil_length = (SLONG) $3; - lex.g_file->fil_name = (STR) $2; + lex.g_file->fil_name = (dsql_str*) $2; lex.cache_defined = TRUE; $$ = (DSQL_NOD) make_node (nod_cache_file_desc, (int) 1, (DSQL_NOD) lex.g_file); } @@ -1157,7 +1157,7 @@ logfile_desc : logfile_name logfile_attrs ; logfile_name : sql_string { lex.g_file = make_file(); - lex.g_file->fil_name = (STR) $1; } + lex.g_file->fil_name = (dsql_str*) $1; } ; logfile_attrs : | logfile_attrs logfile_attr @@ -1746,32 +1746,32 @@ fetch_seek_opt : | FIRST { $$ = make_node (nod_fetch_seek, 2, // corresponds to (blr_bof_forward, 0) - MAKE_constant ((STR) 3, CONSTANT_SLONG), - MAKE_constant ((STR) 0, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) 3, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG)); } | LAST { $$ = make_node (nod_fetch_seek, 2, // corresponds to (blr_eof_backward, 0) - MAKE_constant ((STR) 4, CONSTANT_SLONG), - MAKE_constant ((STR) 0, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) 4, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG)); } | PRIOR { $$ = make_node (nod_fetch_seek, 2, // corresponds to (blr_backward, 1) - MAKE_constant ((STR) 2, CONSTANT_SLONG), - MAKE_constant ((STR) 1, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) 2, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); } | NEXT { $$ = make_node (nod_fetch_seek, 2, // corresponds to (blr_forward, 1) - MAKE_constant ((STR) 1, CONSTANT_SLONG), - MAKE_constant ((STR) 1, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); } | ABSOLUTE value { $$ = make_node (nod_fetch_seek, 2, // corresponds to (blr_bof_forward, value) - MAKE_constant ((STR) 3, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) 3, CONSTANT_SLONG), $2); } | RELATIVE value { $$ = make_node (nod_fetch_seek, 2, // corresponds to (blr_forward, value) - MAKE_constant ((STR) 1, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG), $2); } ; */ @@ -1917,9 +1917,9 @@ replace_trigger_clause : symbol_trigger_name FOR simple_table_name ; trigger_active : ACTIVE - { $$ = MAKE_constant ((STR) 0, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } | INACTIVE - { $$ = MAKE_constant ((STR) 1, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG); } | { $$ = NULL; } ; @@ -1929,45 +1929,45 @@ trigger_type : trigger_type_prefix trigger_type_suffix ; trigger_type_prefix : BEFORE - { $$ = MAKE_constant ((STR) 0, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 0, CONSTANT_SLONG); } | AFTER - { $$ = MAKE_constant ((STR) 1, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG); } ; trigger_type_suffix : INSERT - { $$ = MAKE_constant ((STR) trigger_type_suffix (1, 0, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 0, 0), CONSTANT_SLONG); } | UPDATE - { $$ = MAKE_constant ((STR) trigger_type_suffix (2, 0, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 0, 0), CONSTANT_SLONG); } | KW_DELETE - { $$ = MAKE_constant ((STR) trigger_type_suffix (3, 0, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 0, 0), CONSTANT_SLONG); } | INSERT OR UPDATE - { $$ = MAKE_constant ((STR) trigger_type_suffix (1, 2, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 2, 0), CONSTANT_SLONG); } | INSERT OR KW_DELETE - { $$ = MAKE_constant ((STR) trigger_type_suffix (1, 3, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 3, 0), CONSTANT_SLONG); } | UPDATE OR INSERT - { $$ = MAKE_constant ((STR) trigger_type_suffix (2, 1, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 1, 0), CONSTANT_SLONG); } | UPDATE OR KW_DELETE - { $$ = MAKE_constant ((STR) trigger_type_suffix (2, 3, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 3, 0), CONSTANT_SLONG); } | KW_DELETE OR INSERT - { $$ = MAKE_constant ((STR) trigger_type_suffix (3, 1, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 1, 0), CONSTANT_SLONG); } | KW_DELETE OR UPDATE - { $$ = MAKE_constant ((STR) trigger_type_suffix (3, 2, 0), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 2, 0), CONSTANT_SLONG); } | INSERT OR UPDATE OR KW_DELETE - { $$ = MAKE_constant ((STR) trigger_type_suffix (1, 2, 3), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 2, 3), CONSTANT_SLONG); } | INSERT OR KW_DELETE OR UPDATE - { $$ = MAKE_constant ((STR) trigger_type_suffix (1, 3, 2), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (1, 3, 2), CONSTANT_SLONG); } | UPDATE OR INSERT OR KW_DELETE - { $$ = MAKE_constant ((STR) trigger_type_suffix (2, 1, 3), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 1, 3), CONSTANT_SLONG); } | UPDATE OR KW_DELETE OR INSERT - { $$ = MAKE_constant ((STR) trigger_type_suffix (2, 3, 1), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (2, 3, 1), CONSTANT_SLONG); } | KW_DELETE OR INSERT OR UPDATE - { $$ = MAKE_constant ((STR) trigger_type_suffix (3, 1, 2), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 1, 2), CONSTANT_SLONG); } | KW_DELETE OR UPDATE OR INSERT - { $$ = MAKE_constant ((STR) trigger_type_suffix (3, 2, 1), CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) trigger_type_suffix (3, 2, 1), CONSTANT_SLONG); } ; trigger_position : POSITION nonneg_short_integer - { $$ = MAKE_constant ((STR) $2, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) $2, CONSTANT_SLONG); } | { $$ = NULL; } ; @@ -2063,10 +2063,10 @@ alter_op : DROP simple_column_name drop_behaviour /* CVC: From SQL, field positions start at 1, not zero. Think in ORDER BY, for example. | col_opt simple_column_name POSITION nonneg_short_integer { $$ = make_node (nod_mod_field_pos, 2, $2, - MAKE_constant ((STR) $4, CONSTANT_SLONG)); } */ + MAKE_constant ((dsql_str*) $4, CONSTANT_SLONG)); } */ | col_opt simple_column_name POSITION pos_short_integer { $$ = make_node (nod_mod_field_pos, 2, $2, - MAKE_constant ((STR) $4, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) $4, CONSTANT_SLONG)); } | col_opt alter_column_name TO simple_column_name { $$ = make_node (nod_mod_field_name, 2, $2, $4); } | col_opt alter_col_name TYPE alter_data_type_or_domain end_trigger @@ -2272,16 +2272,16 @@ array_spec : array_range array_range : signed_long_integer { if ((SLONG) $1 < 1) $$ = make_node (nod_list, (int) 2, - MAKE_constant ((STR) $1, CONSTANT_SLONG), - MAKE_constant ((STR) 1, CONSTANT_SLONG)); + MAKE_constant ((dsql_str*) $1, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); else $$ = make_node (nod_list, (int) 2, - MAKE_constant ((STR) 1, CONSTANT_SLONG), - MAKE_constant ((STR) $1, CONSTANT_SLONG) ); } + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) $1, CONSTANT_SLONG) ); } | signed_long_integer ':' signed_long_integer { $$ = make_node (nod_list, (int) 2, - MAKE_constant ((STR) $1, CONSTANT_SLONG), - MAKE_constant ((STR) $3, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) $1, CONSTANT_SLONG), + MAKE_constant ((dsql_str*) $3, CONSTANT_SLONG)); } ; simple_type : non_charset_simple_type @@ -2676,18 +2676,18 @@ set : set_transaction set_generator : SET GENERATOR symbol_generator_name TO signed_long_integer { $$ = make_node (nod_set_generator2,e_gen_id_count,$3, - MAKE_constant ((STR) $5, CONSTANT_SLONG)); + MAKE_constant ((dsql_str*) $5, CONSTANT_SLONG)); } | SET GENERATOR symbol_generator_name TO NUMBER64BIT { $$ = make_node (nod_set_generator2,e_gen_id_count,$3, - MAKE_constant((STR)$5, CONSTANT_SINT64)); + MAKE_constant((dsql_str*)$5, CONSTANT_SINT64)); } | SET GENERATOR symbol_generator_name TO '-' NUMBER64BIT { $$ = make_node (nod_set_generator2, (int) e_gen_id_count, $3, make_node(nod_negate, 1, - MAKE_constant((STR)$6, CONSTANT_SINT64))); + MAKE_constant((dsql_str*)$6, CONSTANT_SINT64))); } ; @@ -2906,10 +2906,10 @@ rows_clause : ROWS value // equivalent to FIRST (upper_value - lower_value + 1) SKIP (lower_value - 1) { $$ = make_node (nod_rows, (int) e_rows_count, make_node (nod_subtract, 2, $2, - MAKE_constant ((STR) 1, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)), make_node (nod_add, 2, make_node (nod_subtract, 2, $4, $2), - MAKE_constant ((STR) 1, CONSTANT_SLONG))); } + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG))); } | { $$ = NULL; } ; @@ -2988,7 +2988,7 @@ limit_clause : first_clause skip_clause end_limit ; first_clause : FIRST long_integer begin_limit - { $$ = MAKE_constant ((STR) $2, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) $2, CONSTANT_SLONG); } | FIRST '(' value ')' begin_limit { $$ = $3; } | FIRST parameter begin_limit @@ -2996,7 +2996,7 @@ first_clause : FIRST long_integer begin_limit ; skip_clause : SKIP long_integer - { $$ = MAKE_constant ((STR) $2, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) $2, CONSTANT_SLONG); } | SKIP '(' end_limit value ')' { $$ = $4; } | SKIP parameter @@ -3295,7 +3295,7 @@ blob_subtype_value : blob_subtype ; blob_subtype : signed_short_integer - { $$ = MAKE_constant ((STR) $1, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) $1, CONSTANT_SLONG); } ; segment_clause : MAX_SEGMENT segment_length @@ -3304,7 +3304,7 @@ segment_clause : MAX_SEGMENT segment_length ; segment_length : unsigned_short_integer - { $$ = MAKE_constant ((STR) $1, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) $1, CONSTANT_SLONG); } | parameter ; @@ -3530,35 +3530,35 @@ null_predicate : value IS KW_NULL trigger_action_predicate : INSERTING { $$ = make_node (nod_eql, 2, make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 1, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); } | UPDATING { $$ = make_node (nod_eql, 2, make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 2, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 2, CONSTANT_SLONG)); } | DELETING { $$ = make_node (nod_eql, 2, make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 3, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 3, CONSTANT_SLONG)); } ; special_trigger_action_predicate : KW_INSERTING { $$ = make_node (nod_eql, 2, make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 1, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); } | KW_UPDATING { $$ = make_node (nod_eql, 2, make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 2, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 2, CONSTANT_SLONG)); } | KW_DELETING { $$ = make_node (nod_eql, 2, make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_trigger_action, CONSTANT_SLONG)), - MAKE_constant ((STR) 3, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_trigger_action, CONSTANT_SLONG)), + MAKE_constant ((dsql_str*) 3, CONSTANT_SLONG)); } ; /* set values */ @@ -3598,7 +3598,7 @@ column_singleton : SELECT limit_clause rows_clause { $$ = make_node (nod_select_expr, (int) e_sel_count, $2, $3, make_list ($4), $5, $6, $7, $8, $9, $10, $11, - MAKE_constant ((STR) 1, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)); } ; @@ -3719,20 +3719,20 @@ constant : u_constant ; u_numeric_constant : NUMERIC - { $$ = MAKE_constant ((STR) $1, CONSTANT_STRING); } + { $$ = MAKE_constant ((dsql_str*) $1, CONSTANT_STRING); } | NUMBER - { $$ = MAKE_constant ((STR) $1, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) $1, CONSTANT_SLONG); } | FLOAT_NUMBER - { $$ = MAKE_constant ((STR) $1, CONSTANT_DOUBLE); } + { $$ = MAKE_constant ((dsql_str*) $1, CONSTANT_DOUBLE); } | NUMBER64BIT - { $$ = MAKE_constant ((STR) $1, CONSTANT_SINT64); } + { $$ = MAKE_constant ((dsql_str*) $1, CONSTANT_SINT64); } | SCALEDINT - { $$ = MAKE_constant ((STR) $1, CONSTANT_SINT64); } + { $$ = MAKE_constant ((dsql_str*) $1, CONSTANT_SINT64); } ; u_constant : u_numeric_constant | sql_string - { $$ = MAKE_str_constant ((STR) $1, lex.att_charset); } + { $$ = MAKE_str_constant ((dsql_str*) $1, lex.att_charset); } | DATE STRING { if (client_dialect < SQL_DIALECT_V6_TRANSITION) @@ -3747,7 +3747,7 @@ u_constant : u_numeric_constant isc_arg_number, db_dialect, isc_arg_string, "DATE", 0); - $$ = MAKE_constant ((STR) $2, CONSTANT_DATE); + $$ = MAKE_constant ((dsql_str*) $2, CONSTANT_DATE); } | TIME STRING { @@ -3763,10 +3763,10 @@ u_constant : u_numeric_constant isc_arg_number, db_dialect, isc_arg_string, "TIME", 0); - $$ = MAKE_constant ((STR) $2, CONSTANT_TIME); + $$ = MAKE_constant ((dsql_str*) $2, CONSTANT_TIME); } | TIMESTAMP STRING - { $$ = MAKE_constant ((STR) $2, CONSTANT_TIMESTAMP); } + { $$ = MAKE_constant ((dsql_str*) $2, CONSTANT_TIMESTAMP); } ; parameter : '?' @@ -3785,25 +3785,25 @@ current_role : CURRENT_ROLE internal_info : CURRENT_CONNECTION { $$ = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_connection_id, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_connection_id, CONSTANT_SLONG)); } | CURRENT_TRANSACTION { $$ = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_transaction_id, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_transaction_id, CONSTANT_SLONG)); } | GDSCODE { $$ = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_gdscode, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_gdscode, CONSTANT_SLONG)); } | SQLCODE { $$ = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_sqlcode, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_sqlcode, CONSTANT_SLONG)); } | ROW_COUNT { $$ = make_node (nod_internal_info, (int) e_internal_info_count, - MAKE_constant ((STR) internal_rows_affected, CONSTANT_SLONG)); } + MAKE_constant ((dsql_str*) internal_rows_affected, CONSTANT_SLONG)); } ; sql_string : STRING /* string in current charset */ { $$ = $1; } | INTRODUCER STRING /* string in specific charset */ - { ((STR) $2)->str_charset = (TEXT *) $1; + { ((dsql_str*) $2)->str_charset = (TEXT *) $1; $$ = $2; } ; @@ -3935,13 +3935,13 @@ substring_function : SUBSTRING '(' value FROM value string_length_opt ')' compatible with the engine's implementation */ { $$ = make_node (nod_substr, (int) e_substr_count, $3, make_node (nod_subtract, 2, $5, - MAKE_constant ((STR) 1, CONSTANT_SLONG)), $6); } + MAKE_constant ((dsql_str*) 1, CONSTANT_SLONG)), $6); } ; string_length_opt : FOR value { $$ = $2; } | - { $$ = MAKE_constant ((STR) SHRT_POS_MAX, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*) SHRT_POS_MAX, CONSTANT_SLONG); } ; udf : symbol_UDF_name '(' value_list ')' @@ -4006,21 +4006,21 @@ case_result : rhs ; timestamp_part : YEAR - { $$ = MAKE_constant ((STR)blr_extract_year, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*)blr_extract_year, CONSTANT_SLONG); } | MONTH - { $$ = MAKE_constant ((STR)blr_extract_month, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*)blr_extract_month, CONSTANT_SLONG); } | DAY - { $$ = MAKE_constant ((STR)blr_extract_day, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*)blr_extract_day, CONSTANT_SLONG); } | HOUR - { $$ = MAKE_constant ((STR)blr_extract_hour, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*)blr_extract_hour, CONSTANT_SLONG); } | MINUTE - { $$ = MAKE_constant ((STR)blr_extract_minute, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*)blr_extract_minute, CONSTANT_SLONG); } | SECOND - { $$ = MAKE_constant ((STR)blr_extract_second, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*)blr_extract_second, CONSTANT_SLONG); } | WEEKDAY - { $$ = MAKE_constant ((STR)blr_extract_weekday, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*)blr_extract_weekday, CONSTANT_SLONG); } | YEARDAY - { $$ = MAKE_constant ((STR)blr_extract_yearday, CONSTANT_SLONG); } + { $$ = MAKE_constant ((dsql_str*)blr_extract_yearday, CONSTANT_SLONG); } ; all_noise : ALL @@ -4167,7 +4167,7 @@ void LEX_dsql_init (void) symbol->sym_type = SYM_keyword; symbol->sym_keyword = token->tok_ident; symbol->sym_version = token->tok_version; - STR str_ = FB_NEW_RPT(*DSQL_permanent_pool, symbol->sym_length) str; + dsql_str* str_ = FB_NEW_RPT(*DSQL_permanent_pool, symbol->sym_length) dsql_str; str_->str_length = symbol->sym_length; strncpy((char*)str_->str_data, (char*)symbol->sym_string, symbol->sym_length); symbol->sym_object = (void *) str_; @@ -4177,7 +4177,7 @@ void LEX_dsql_init (void) void LEX_string ( - TEXT *string, + TEXT* string, USHORT length, SSHORT character_set) { @@ -4244,7 +4244,7 @@ static void check_log_file_attrs (void) } -static TEXT *lex_position (void) +static TEXT* lex_position (void) { /************************************** * @@ -4278,20 +4278,20 @@ static bool long_int(DSQL_NOD string, * *************************************/ - for (const char* p = ((STR) string)->str_data; classes [*p] & CHR_DIGIT; p++) + for (const char* p = ((dsql_str*) string)->str_data; classes[*p] & CHR_DIGIT; p++) { - if (!(classes [*p] & CHR_DIGIT)) { + if (!(classes[*p] & CHR_DIGIT)) { return false; } } - *long_value = atol ((char *)((STR) string)->str_data); + *long_value = atol ((char *)((dsql_str*) string)->str_data); return true; } #endif -static DSQL_FLD make_field (DSQL_NOD field_name) +static dsql_fld* make_field (DSQL_NOD field_name) { /************************************** * @@ -4303,27 +4303,25 @@ static DSQL_FLD make_field (DSQL_NOD field_name) * Make a field block of given name. * **************************************/ - DSQL_FLD field; - STR string; - TSQL tdsql; - - tdsql = GET_THREAD_DATA; + TSQL tdsql = GET_THREAD_DATA; if (field_name == NULL) { - field = FB_NEW_RPT(*tdsql->tsql_default, sizeof (INTERNAL_FIELD_NAME)) dsql_fld; + dsql_fld* field = + FB_NEW_RPT(*tdsql->tsql_default, sizeof (INTERNAL_FIELD_NAME)) dsql_fld; strcpy (field->fld_name, (TEXT*) INTERNAL_FIELD_NAME); return field; } - string = (STR) field_name->nod_arg [1]; - field = FB_NEW_RPT(*tdsql->tsql_default, strlen ((SCHAR*) string->str_data)) dsql_fld; + const dsql_str* string = (dsql_str*) field_name->nod_arg[1]; + dsql_fld* field = + FB_NEW_RPT(*tdsql->tsql_default, strlen ((SCHAR*) string->str_data)) dsql_fld; strcpy (field->fld_name, (TEXT*) string->str_data); return field; } -static FIL make_file (void) +static dsql_fil* make_file (void) { /************************************** * @@ -4335,12 +4333,9 @@ static FIL make_file (void) * Make a file block * **************************************/ - FIL temp_file; - TSQL tdsql; - - tdsql = GET_THREAD_DATA; + TSQL tdsql = GET_THREAD_DATA; - temp_file = FB_NEW(*tdsql->tsql_default) fil; + dsql_fil* temp_file = FB_NEW(*tdsql->tsql_default) dsql_fil; return temp_file; } @@ -4358,28 +4353,24 @@ static DSQL_NOD make_list (DSQL_NOD node) * Collapse nested list nodes into single list. * **************************************/ - DSQL_NOD *ptr; - DLLS stack, temp; - USHORT l; - DSQL_NOD old; - TSQL tdsql; - - tdsql = GET_THREAD_DATA; + TSQL tdsql = GET_THREAD_DATA; if (!node) return node; - stack = 0; + dsql_lls* stack = 0; stack_nodes (node, &stack); - for (l = 0, temp = stack; temp; temp = temp->lls_next) + USHORT l = 0; + {for (const dsql_lls* temp = stack; temp; temp = temp->lls_next) l++; + } - old = node; + dsql_nod* old = node; node = FB_NEW_RPT(*tdsql->tsql_default, l) dsql_nod; node->nod_count = l; node->nod_type = nod_list; node->nod_flags = old->nod_flags; - ptr = node->nod_arg + node->nod_count; + dsql_nod** ptr = node->nod_arg + node->nod_count; while (stack) *--ptr = (DSQL_NOD) LLS_POP (&stack); @@ -4401,12 +4392,9 @@ static DSQL_NOD make_parameter (void) * Any change should also be made to function below * **************************************/ - DSQL_NOD node; - TSQL tdsql; + TSQL tdsql = GET_THREAD_DATA; - tdsql = GET_THREAD_DATA; - - node = FB_NEW_RPT(*tdsql->tsql_default, 1) dsql_nod; + dsql_nod* node = FB_NEW_RPT(*tdsql->tsql_default, 1) dsql_nod; node->nod_type = nod_parameter; node->nod_line = (USHORT) lex.lines_bk; node->nod_column = (USHORT) (lex.last_token_bk - lex.line_start_bk + 1); @@ -4432,18 +4420,15 @@ static DSQL_NOD make_node (NOD_TYPE type, * Any change should also be made to function below * **************************************/ - DSQL_NOD node, *p; - va_list ptr; - TSQL tdsql; + TSQL tdsql = GET_THREAD_DATA; - tdsql = GET_THREAD_DATA; - - node = FB_NEW_RPT(*tdsql->tsql_default, count) dsql_nod; + dsql_nod* node = FB_NEW_RPT(*tdsql->tsql_default, count) dsql_nod; node->nod_type = type; node->nod_line = (USHORT) lex.lines_bk; node->nod_column = (USHORT) (lex.last_token_bk - lex.line_start_bk + 1); node->nod_count = count; - p = node->nod_arg; + dsql_nod** p = node->nod_arg; + va_list ptr; VA_START (ptr, count); while (--count >= 0) @@ -4468,19 +4453,16 @@ static DSQL_NOD make_flag_node (NOD_TYPE type, * Make a node of given type. Set flag field * **************************************/ - DSQL_NOD node, *p; - va_list ptr; - TSQL tdsql; + TSQL tdsql = GET_THREAD_DATA; - tdsql = GET_THREAD_DATA; - - node = FB_NEW_RPT(*tdsql->tsql_default, count) dsql_nod; + dsql_nod* node = FB_NEW_RPT(*tdsql->tsql_default, count) dsql_nod; node->nod_type = type; node->nod_flags = flag; node->nod_line = (USHORT) lex.lines_bk; node->nod_column = (USHORT) (lex.last_token_bk - lex.line_start_bk + 1); node->nod_count = count; - p = node->nod_arg; + dsql_nod** p = node->nod_arg; + va_list ptr; VA_START (ptr, count); while (--count >= 0) @@ -4528,13 +4510,13 @@ static bool short_int(DSQL_NOD string, * *************************************/ - if (((STR) string)->str_length > 5) { + if (((dsql_str*) string)->str_length > 5) { return false; } - for (char* p = ((STR) string)->str_data; classes [*p] & CHR_DIGIT; p++) + for (char* p = ((dsql_str*) string)->str_data; classes[*p] & CHR_DIGIT; p++) { - if (!(classes [*p] & CHR_DIGIT)) { + if (!(classes[*p] & CHR_DIGIT)) { return false; } } @@ -4543,12 +4525,12 @@ static bool short_int(DSQL_NOD string, * than 32767... */ SCHAR buf[10]; - buf [0] = ((STR) string)->str_data[0]; - buf [1] = ((STR) string)->str_data[1]; - buf [2] = ((STR) string)->str_data[2]; - buf [3] = ((STR) string)->str_data[3]; - buf [4] = ((STR) string)->str_data[4]; - buf [5] = '\0'; + buf[0] = ((dsql_str*) string)->str_data[0]; + buf[1] = ((dsql_str*) string)->str_data[1]; + buf[2] = ((dsql_str*) string)->str_data[2]; + buf[3] = ((dsql_str*) string)->str_data[3]; + buf[4] = ((dsql_str*) string)->str_data[4]; + buf[5] = '\0'; *long_value = atoi (buf); @@ -4571,7 +4553,7 @@ static bool short_int(DSQL_NOD string, #endif static void stack_nodes (DSQL_NOD node, - DLLS *stack) + dsql_lls** stack) { /************************************** * @@ -4583,9 +4565,6 @@ static void stack_nodes (DSQL_NOD node, * Assist in turning a tree of misc nodes into a clean list. * **************************************/ - DSQL_NOD *ptr, *end; - DSQL_NOD curr_node, next_node, start_chain, end_chain, save_link; - if (node->nod_type != nod_list) { LLS_PUSH (node, stack); @@ -4600,30 +4579,30 @@ static void stack_nodes (DSQL_NOD node, non-list nodes in the process. The purpose of this is to avoid massive recursion of this function. */ - start_chain = node; - end_chain = NULL; - curr_node = node; - next_node = node->nod_arg[0]; + dsql_nod* start_chain = node; + dsql_nod* end_chain = NULL; + dsql_nod* curr_node = node; + dsql_nod* next_node = node->nod_arg[0]; while ( curr_node->nod_count == 2 && curr_node->nod_arg[0]->nod_type == nod_list && curr_node->nod_arg[1]->nod_type != nod_list && next_node->nod_arg[0]->nod_type == nod_list && next_node->nod_arg[1]->nod_type != nod_list) - { + { /* pattern was found so reverse the links and go to next node */ - save_link = next_node->nod_arg[0]; + dsql_nod* save_link = next_node->nod_arg[0]; next_node->nod_arg[0] = curr_node; curr_node = next_node; next_node = save_link; end_chain = curr_node; - } + } /* see if any chain was found */ - if ( end_chain) - { + if (end_chain) + { /* first, handle the rest of the nodes */ /* note that next_node still points to the first non-pattern node */ @@ -4634,19 +4613,20 @@ static void stack_nodes (DSQL_NOD node, curr_node = end_chain; while (true) - { + { LLS_PUSH( curr_node->nod_arg[1], stack); if ( curr_node == start_chain) break; - save_link = curr_node->nod_arg[0]; + dsql_nod* save_link = curr_node->nod_arg[0]; curr_node->nod_arg[0] = next_node; next_node = curr_node; curr_node = save_link; - } - return; } + return; + } - for (ptr = node->nod_arg, end = ptr + node->nod_count; ptr < end; ptr++) + dsql_nod** ptr = node->nod_arg; + for (const dsql_nod* const* const end = ptr + node->nod_count; ptr < end; ptr++) stack_nodes (*ptr, stack); } @@ -4654,9 +4634,10 @@ inline static int yylex ( USHORT client_dialect, USHORT db_dialect, USHORT parser_version, - BOOLEAN *stmt_ambiguous) + BOOLEAN* stmt_ambiguous) { - int temp = lex.yylex(client_dialect, db_dialect, parser_version, stmt_ambiguous); + const int temp = + lex.yylex(client_dialect, db_dialect, parser_version, stmt_ambiguous); lex.prev_prev_keyword = lex.prev_keyword; lex.prev_keyword = temp; return temp; @@ -4666,7 +4647,7 @@ int LexerState::yylex ( USHORT client_dialect, USHORT db_dialect, USHORT parser_version, - BOOLEAN *stmt_ambiguous) + BOOLEAN* stmt_ambiguous) { /************************************** * @@ -4687,8 +4668,6 @@ int LexerState::yylex ( SSHORT c; USHORT buffer_len; - STR delimited_id_str; - /* Find end of white space and skip comments */ for (;;) @@ -4744,27 +4723,27 @@ int LexerState::yylex ( continue; } - tok_class = classes [c]; + tok_class = classes[c]; if (!(tok_class & CHR_WHITE)) break; - } + } /* Depending on tok_class of token, parse token */ last_token = ptr - 1; if (tok_class & CHR_INTRODUCER) - { + { /* The Introducer (_) is skipped, all other idents are copied * to become the name of the character set */ p = string; - for (; ptr < end && classes [*ptr] & CHR_IDENT; ptr++) + for (; ptr < end && classes[*ptr] & CHR_IDENT; ptr++) { - if (ptr >= end) - return -1; - check_copy_incr(p, UPPER7(*ptr), string); + if (ptr >= end) + return -1; + check_copy_incr(p, UPPER7(*ptr), string); } check_bound(p, string); @@ -4776,79 +4755,79 @@ int LexerState::yylex ( yylval = (DSQL_NOD) (MAKE_string(string, p - string))->str_data; return INTRODUCER; - } + } /* parse a quoted string, being sure to look for double quotes */ if (tok_class & CHR_QUOTE) - { + { buffer = string; buffer_len = sizeof (string); buffer_end = buffer + buffer_len - 1; for (p = buffer; ; p++) { - if (ptr >= end) + if (ptr >= end) { - if (buffer != string) - gds__free (buffer); - return -1; + if (buffer != string) + gds__free (buffer); + return -1; } - /* *ptr is quote - if next != quote we're at the end */ - if ((*ptr == c) && ((++ptr == end) || (*ptr != c))) - break; + /* *ptr is quote - if next != quote we're at the end */ + if ((*ptr == c) && ((++ptr == end) || (*ptr != c))) + break; if (p > buffer_end) { - new_buffer = (char*)gds__alloc (2 * buffer_len); + new_buffer = (char*)gds__alloc (2 * buffer_len); /* FREE: at outer block */ - if (!new_buffer) /* NOMEM: */ - { - if (buffer != string) - gds__free (buffer); - return -1; - } + if (!new_buffer) /* NOMEM: */ + { + if (buffer != string) + gds__free (buffer); + return -1; + } memcpy (new_buffer, buffer, buffer_len); - if (buffer != string) - gds__free (buffer); - buffer = new_buffer; - p = buffer + buffer_len; - buffer_len = 2 * buffer_len; - buffer_end = buffer + buffer_len - 1; + if (buffer != string) + gds__free (buffer); + buffer = new_buffer; + p = buffer + buffer_len; + buffer_len = 2 * buffer_len; + buffer_end = buffer + buffer_len - 1; } - *p = *ptr++; + *p = *ptr++; } if (c == '"') { - *stmt_ambiguous = TRUE; /* string delimited by double quotes could be + *stmt_ambiguous = TRUE; /* string delimited by double quotes could be ** either a string constant or a SQL delimited ** identifier, therefore marks the SQL ** statement as ambiguous */ - if (client_dialect == SQL_DIALECT_V6_TRANSITION) + if (client_dialect == SQL_DIALECT_V6_TRANSITION) { - if (buffer != string) - gds__free (buffer); - yyabandon (-104, isc_invalid_string_constant); + if (buffer != string) + gds__free (buffer); + yyabandon (-104, isc_invalid_string_constant); } - else if (client_dialect >= SQL_DIALECT_V6) + else if (client_dialect >= SQL_DIALECT_V6) { - if ((p - buffer) >= MAX_TOKEN_LEN) - { - if (buffer != string) - gds__free (buffer); - yyabandon (-104, isc_token_too_long); - } - yylval = (DSQL_NOD) MAKE_string(buffer, p - buffer); - delimited_id_str = (STR) yylval; - delimited_id_str->str_flags |= STR_delimited_id; - if (buffer != string) - gds__free (buffer); - return SYMBOL; + if ((p - buffer) >= MAX_TOKEN_LEN) + { + if (buffer != string) + gds__free (buffer); + yyabandon (-104, isc_token_too_long); + } + yylval = (DSQL_NOD) MAKE_string(buffer, p - buffer); + dsql_str* delimited_id_str = (dsql_str*) yylval; + delimited_id_str->str_flags |= STR_delimited_id; + if (buffer != string) + gds__free (buffer); + return SYMBOL; } } yylval = (DSQL_NOD) MAKE_string(buffer, p - buffer); if (buffer != string) gds__free (buffer); return STRING; - } + } /* * Check for a numeric constant, which starts either with a digit or with @@ -4879,7 +4858,7 @@ int LexerState::yylex ( fb_assert(ptr <= end); if ((tok_class & CHR_DIGIT) || - ((c == '.') && (ptr < end) && (classes [*ptr] & CHR_DIGIT))) + ((c == '.') && (ptr < end) && (classes[*ptr] & CHR_DIGIT))) { /* The following variables are used to recognize kinds of numbers. */ @@ -4895,11 +4874,11 @@ int LexerState::yylex ( for (--ptr ; ptr < end ; ptr++) { c = *ptr; - if (have_exp_digit && (! (classes [c] & CHR_DIGIT))) + if (have_exp_digit && (! (classes[c] & CHR_DIGIT))) /* First non-digit after exponent and digit terminates the token. */ break; - else if (have_exp_sign && (! (classes [c] & CHR_DIGIT))) + else if (have_exp_sign && (! (classes[c] & CHR_DIGIT))) { /* only digits can be accepted after "1E-" */ have_error = true; @@ -4910,7 +4889,7 @@ int LexerState::yylex ( /* We've seen e or E, but nothing beyond that. */ if ( ('-' == c) || ('+' == c) ) have_exp_sign = true; - else if ( classes [c] & CHR_DIGIT ) + else if ( classes[c] & CHR_DIGIT ) /* We have a digit: we haven't seen a sign yet, but it's too late now. */ have_exp_digit = have_exp_sign = true; @@ -4931,7 +4910,7 @@ int LexerState::yylex ( break; } } - else if (classes [c] & CHR_DIGIT) + else if (classes[c] & CHR_DIGIT) { /* Before computing the next value, make sure there will be no overflow. */ @@ -4939,12 +4918,14 @@ int LexerState::yylex ( have_digit = true; if (number >= limit_by_10) + { /* possibility of an overflow */ if ((number > limit_by_10) || (c > '8')) { have_error = true; break; } + } number = number * 10 + (c - '0'); } else if ( (('E' == c) || ('e' == c)) && have_digit ) @@ -4962,62 +4943,61 @@ int LexerState::yylex ( fb_assert(have_digit); if (have_exp_digit) - { + { yylval = (DSQL_NOD) MAKE_string(last_token, ptr - last_token); last_token_bk = last_token; line_start_bk = line_start; lines_bk = lines; return FLOAT_NUMBER; - } + } else if (!have_exp) - { + { /* We should return some kind (scaled-) integer type except perhaps in dialect 1. */ if (!have_decimal && (number <= MAX_SLONG)) { - yylval = (DSQL_NOD) (ULONG) number; - return NUMBER; + yylval = (DSQL_NOD) (ULONG) number; + return NUMBER; } else { - /* We have either a decimal point with no exponent - or a string of digits whose value exceeds MAX_SLONG: - the returned type depends on the client dialect, - so warn of the difference if the client dialect is - SQL_DIALECT_V6_TRANSITION. - */ + /* We have either a decimal point with no exponent + or a string of digits whose value exceeds MAX_SLONG: + the returned type depends on the client dialect, + so warn of the difference if the client dialect is + SQL_DIALECT_V6_TRANSITION. + */ - if (SQL_DIALECT_V6_TRANSITION == client_dialect) + if (SQL_DIALECT_V6_TRANSITION == client_dialect) { - /* Issue a warning about the ambiguity of the numeric - * numeric literal. There are multiple calls because - * the message text exceeds the 119-character limit - * of our message database. - */ - ERRD_post_warning( isc_dsql_warning_number_ambiguous, + /* Issue a warning about the ambiguity of the numeric + * numeric literal. There are multiple calls because + * the message text exceeds the 119-character limit + * of our message database. + */ + ERRD_post_warning( isc_dsql_warning_number_ambiguous, isc_arg_string, - ERR_string( last_token, - ptr - last_token ), + ERR_string( last_token, ptr - last_token ), isc_arg_end ); - ERRD_post_warning( isc_dsql_warning_number_ambiguous1, + ERRD_post_warning( isc_dsql_warning_number_ambiguous1, isc_arg_end ); } - yylval = (DSQL_NOD) MAKE_string(last_token, ptr - last_token); + yylval = (DSQL_NOD) MAKE_string(last_token, ptr - last_token); - last_token_bk = last_token; - line_start_bk = line_start; - lines_bk = lines; + last_token_bk = last_token; + line_start_bk = line_start; + lines_bk = lines; - if (client_dialect < SQL_DIALECT_V6_TRANSITION) - return FLOAT_NUMBER; - else if (have_decimal) - return SCALEDINT; - else - return NUMBER64BIT; + if (client_dialect < SQL_DIALECT_V6_TRANSITION) + return FLOAT_NUMBER; + else if (have_decimal) + return SCALEDINT; + else + return NUMBER64BIT; } } /* else if (!have_exp) */ } /* if (!have_error) */ @@ -5040,7 +5020,7 @@ int LexerState::yylex ( { p = string; check_copy_incr(p, UPPER (c), string); - for (; ptr < end && classes [*ptr] & CHR_IDENT; ptr++) + for (; ptr < end && classes[*ptr] & CHR_IDENT; ptr++) { if (ptr >= end) return -1; @@ -5092,7 +5072,9 @@ int LexerState::yylex ( * 3. We detect FIRST if we are explicitly asked for (such as in NULLS FIRST/LAST clause) * 4. In all other cases we return them as SYMBOL */ - if ((sym->sym_keyword == FIRST && !first_detection) || sym->sym_keyword == SKIP) { + if ((sym->sym_keyword == FIRST && !first_detection) || + sym->sym_keyword == SKIP) + { if (prev_keyword == SELECT || limit_clause) { LexerState savedState = lex; int nextToken = yylex(client_dialect,db_dialect,parser_version,stmt_ambiguous); @@ -5111,7 +5093,8 @@ int LexerState::yylex ( return sym->sym_keyword; } } /* else fall down and return token as SYMBOL */ - } else { + } + else { yylval = (DSQL_NOD) sym->sym_object; last_token_bk = last_token; line_start_bk = line_start; @@ -5200,7 +5183,8 @@ int LexerState::yylex ( } return nextToken; } - } else { + } + else { /* Restore status quo. */ lex = savedState; } @@ -5212,8 +5196,9 @@ int LexerState::yylex ( } -static void yyerror ( - TEXT *error_string) +// The argument passed to this function is ignored. Therefore, messages like +// "syntax error" and "yacc stack overflow" are never seen. +static void yyerror(const TEXT* error_string) { /************************************** * @@ -5228,17 +5213,17 @@ static void yyerror ( if (yychar < 1) ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_command_end_err, /* Unexpected end of command */ - 0); + isc_arg_gds, isc_command_end_err, /* Unexpected end of command */ + 0); else { ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) -104, - isc_arg_gds, isc_dsql_token_unk_err, - isc_arg_number, (SLONG) lex.lines, - isc_arg_number, (SLONG) (lex.last_token - lex.line_start + 1), /*CVC: +1*/ + isc_arg_gds, isc_dsql_token_unk_err, + isc_arg_number, (SLONG) lex.lines, + isc_arg_number, (SLONG) (lex.last_token - lex.line_start + 1), /*CVC: +1*/ /* Token unknown - line %d, char %d */ - isc_arg_gds, isc_random, - isc_arg_cstring, (int) (lex.ptr - lex.last_token), lex.last_token, 0); + isc_arg_gds, isc_random, + isc_arg_cstring, (int) (lex.ptr - lex.last_token), lex.last_token, 0); } } @@ -5260,3 +5245,4 @@ static void yyabandon (SSHORT sql_code, ERRD_post (isc_sqlerr, isc_arg_number, (SLONG) sql_code, isc_arg_gds, error_symbol, 0); } + diff --git a/src/dsql/pass1.cpp b/src/dsql/pass1.cpp index 5ef6de78d3..de38b2eb9d 100644 --- a/src/dsql/pass1.cpp +++ b/src/dsql/pass1.cpp @@ -163,65 +163,69 @@ void DSQL_pretty(const dsql_nod*, int); static bool aggregate_found(const dsql_req*, const dsql_nod*); static bool aggregate_found2(const dsql_req*, const dsql_nod*, USHORT*, USHORT*, bool); -static DSQL_NOD ambiguity_check(DSQL_REQ, dsql_nod*, const str*, DLLS); -static void assign_fld_dtype_from_dsc(DSQL_FLD, const dsc*); -static DSQL_NOD compose(DSQL_NOD, DSQL_NOD, NOD_TYPE); -static void explode_asterisk(DSQL_REQ, DSQL_NOD, DSQL_NOD, DLLS*); -static DSQL_NOD explode_outputs(DSQL_REQ, DSQL_PRC); -static void field_error(const TEXT*, const TEXT*, DSQL_NOD); -static PAR find_dbkey(DSQL_REQ, DSQL_NOD); -static PAR find_record_version(DSQL_REQ, DSQL_NOD); -static bool invalid_reference(DSQL_CTX, DSQL_NOD, DSQL_NOD, bool, bool); -static bool node_match(DSQL_NOD, DSQL_NOD, bool); -static DSQL_NOD pass1_alias_list(DSQL_REQ, DSQL_NOD); -static DSQL_CTX pass1_alias(DSQL_REQ, DLLS, STR); -static STR pass1_alias_concat(const str*, const str*); -static DSQL_NOD pass1_any(DSQL_REQ, DSQL_NOD, NOD_TYPE); -static DSQL_REL pass1_base_table(DSQL_REQ, DSQL_REL, STR); -static void pass1_blob(DSQL_REQ, DSQL_NOD); -static DSQL_NOD pass1_coalesce(DSQL_REQ, DSQL_NOD, bool); -static DSQL_NOD pass1_collate(DSQL_REQ, DSQL_NOD, STR); -static DSQL_NOD pass1_constant(DSQL_REQ, DSQL_NOD); -static DSQL_CTX pass1_cursor_context(DSQL_REQ, DSQL_NOD, DSQL_NOD); -static DSQL_NOD pass1_cursor_name(const dsql_req*, const str*, bool); -static DSQL_NOD pass1_cursor_reference(DSQL_REQ, DSQL_NOD, DSQL_NOD); -static DSQL_NOD pass1_dbkey(DSQL_REQ, DSQL_NOD); -static DSQL_NOD pass1_delete(DSQL_REQ, DSQL_NOD); -static DSQL_NOD pass1_derived_table(DSQL_REQ, DSQL_NOD, bool); -static DSQL_NOD pass1_field(DSQL_REQ, DSQL_NOD, USHORT); +static dsql_nod* ambiguity_check(dsql_req*, dsql_nod*, const dsql_str*, + const dsql_lls*); +static void assign_fld_dtype_from_dsc(dsql_fld*, const dsc*); +static dsql_nod* compose(dsql_nod*, dsql_nod*, NOD_TYPE); +static void explode_asterisk(dsql_req*, dsql_nod*, dsql_nod*, dsql_lls**); +static dsql_nod* explode_outputs(dsql_req*, dsql_prc*); +static void field_error(const TEXT*, const TEXT*, const dsql_nod*); +static par* find_dbkey(dsql_req*, dsql_nod*); +static par* find_record_version(const dsql_req*, const dsql_nod*); +static bool invalid_reference(const dsql_ctx*, const dsql_nod*, + const dsql_nod*, bool, bool); +static bool node_match(const dsql_nod*, const dsql_nod*, bool); +static dsql_nod* pass1_alias_list(dsql_req*, dsql_nod*); +static dsql_ctx* pass1_alias(dsql_req*, dsql_lls*, dsql_str*); +static dsql_str* pass1_alias_concat(const dsql_str*, const dsql_str*); +static dsql_nod* pass1_any(dsql_req*, dsql_nod*, NOD_TYPE); +static dsql_rel* pass1_base_table(dsql_req*, dsql_rel*, dsql_str*); +static void pass1_blob(dsql_req*, dsql_nod*); +static dsql_nod* pass1_coalesce(dsql_req*, dsql_nod*, bool); +static dsql_nod* pass1_collate(dsql_req*, dsql_nod*, dsql_str*); +static dsql_nod* pass1_constant(dsql_req*, dsql_nod*); +static dsql_ctx* pass1_cursor_context(dsql_req*, dsql_nod*, dsql_nod*); +static dsql_nod* pass1_cursor_name(const dsql_req*, const dsql_str*, bool); +static dsql_nod* pass1_cursor_reference(dsql_req*, dsql_nod*, dsql_nod*); +static dsql_nod* pass1_dbkey(dsql_req*, dsql_nod*); +static dsql_nod* pass1_delete(dsql_req*, dsql_nod*); +static dsql_nod* pass1_derived_table(dsql_req*, dsql_nod*, bool); +static dsql_nod* pass1_field(dsql_req*, dsql_nod*, USHORT); static bool pass1_found_aggregate(const dsql_nod*, USHORT, USHORT, bool); static bool pass1_found_field(const dsql_nod*, USHORT, USHORT, bool*); -static DSQL_NOD pass1_group_by_list(DSQL_REQ, DSQL_NOD, DSQL_NOD); -static DSQL_NOD pass1_insert(DSQL_REQ, DSQL_NOD); -static DSQL_NOD pass1_join(DSQL_REQ, DSQL_NOD, bool); -static DSQL_NOD pass1_label(DSQL_REQ, DSQL_NOD); -static DSQL_NOD pass1_make_derived_field(DSQL_REQ, TSQL, DSQL_NOD); -static void pass1_put_args_on_stack(DSQL_REQ, DSQL_NOD, DLLS*, bool); -static DSQL_NOD pass1_relation(DSQL_REQ, DSQL_NOD); -static DSQL_NOD pass1_rse(DSQL_REQ, DSQL_NOD, DSQL_NOD, DSQL_NOD, DSQL_NOD); -static DSQL_NOD pass1_searched_case(DSQL_REQ, DSQL_NOD, bool); -static DSQL_NOD pass1_sel_list(DSQL_REQ, DSQL_NOD); -static DSQL_NOD pass1_simple_case(DSQL_REQ, DSQL_NOD, bool); -static DSQL_NOD pass1_sort(DSQL_REQ, DSQL_NOD, DSQL_NOD); -static DSQL_NOD pass1_udf(DSQL_REQ, DSQL_NOD, USHORT); -static void pass1_udf_args(DSQL_REQ, DSQL_NOD, UDF, USHORT, DLLS*, bool); -static DSQL_NOD pass1_union(DSQL_REQ, DSQL_NOD, DSQL_NOD, DSQL_NOD); -static void pass1_union_auto_cast(DSQL_NOD, const dsc&, SSHORT, +static dsql_nod* pass1_group_by_list(dsql_req*, dsql_nod*, dsql_nod*); +static dsql_nod* pass1_insert(dsql_req*, dsql_nod*); +static dsql_nod* pass1_join(dsql_req*, dsql_nod*, bool); +static dsql_nod* pass1_label(dsql_req*, dsql_nod*); +static dsql_nod* pass1_make_derived_field(dsql_req*, TSQL, dsql_nod*); +static void pass1_put_args_on_stack(dsql_req*, dsql_nod*, dsql_lls**, bool); +static dsql_nod* pass1_relation(dsql_req*, dsql_nod*); +static dsql_nod* pass1_rse(dsql_req*, dsql_nod*, dsql_nod*, dsql_nod*, dsql_nod*); +static dsql_nod* pass1_searched_case(dsql_req*, dsql_nod*, bool); +static dsql_nod* pass1_sel_list(dsql_req*, dsql_nod*); +static dsql_nod* pass1_simple_case(dsql_req*, dsql_nod*, bool); +static dsql_nod* pass1_sort(dsql_req*, dsql_nod*, dsql_nod*); +static dsql_nod* pass1_udf(dsql_req*, dsql_nod*, USHORT); +static void pass1_udf_args(dsql_req*, dsql_nod*, dsql_udf*, USHORT, dsql_lls**, + bool); +static dsql_nod* pass1_union(dsql_req*, dsql_nod*, dsql_nod*, dsql_nod*); +static void pass1_union_auto_cast(dsql_nod*, const dsc&, SSHORT, bool in_select_list = false); -static DSQL_NOD pass1_update(DSQL_REQ, DSQL_NOD); -static DSQL_NOD pass1_variable(DSQL_REQ, DSQL_NOD); -static DSQL_NOD post_map(DSQL_NOD, DSQL_CTX); -static DSQL_NOD remap_field(DSQL_REQ, DSQL_NOD, DSQL_CTX, USHORT); -static DSQL_NOD remap_fields(DSQL_REQ, DSQL_NOD, DSQL_CTX); -static void remap_streams_to_parent_context(DSQL_NOD, DSQL_CTX); -static DSQL_FLD resolve_context(DSQL_REQ, STR, STR, DSQL_CTX); -static bool set_parameter_type(DSQL_NOD, DSQL_NOD, bool); -static void set_parameters_name(DSQL_NOD, DSQL_NOD); -static void set_parameter_name(DSQL_NOD, DSQL_NOD, DSQL_REL); +static dsql_nod* pass1_update(dsql_req*, dsql_nod*); +static dsql_nod* pass1_variable(dsql_req*, dsql_nod*); +static dsql_nod* post_map(dsql_nod*, dsql_ctx*); +static dsql_nod* remap_field(dsql_req*, dsql_nod*, dsql_ctx*, USHORT); +static dsql_nod* remap_fields(dsql_req*, dsql_nod*, dsql_ctx*); +static void remap_streams_to_parent_context(dsql_nod*, dsql_ctx*); +static dsql_fld* resolve_context(dsql_req*, dsql_str*, dsql_str*, dsql_ctx*); +static bool set_parameter_type(dsql_nod*, dsql_nod*, bool); +static void set_parameters_name(dsql_nod*, dsql_nod*); +static void set_parameter_name(dsql_nod*, dsql_nod*, dsql_rel*); static TEXT* pass_exact_name(TEXT*); -static DSQL_NOD pass1_savepoint(DSQL_REQ, DSQL_NOD); +static dsql_nod* pass1_savepoint(dsql_req*, dsql_nod*); -STR temp_collation_name = NULL; +// CVC: more global variables??? +dsql_str* temp_collation_name = NULL; const char* DB_KEY_STRING = "DB_KEY"; // NTX: pseudo field name const int MAX_MEMBER_LIST = 1500; // Maximum members in "IN" list. @@ -250,28 +254,28 @@ enum field_match_val { @param relation_node **/ -DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) +dsql_ctx* PASS1_make_context(dsql_req* request, dsql_nod* relation_node) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(relation_node, dsql_type_nod); TSQL tdsql = GET_THREAD_DATA; - DSQL_REL relation = NULL; - DSQL_PRC procedure = NULL; + dsql_rel* relation = NULL; + dsql_prc* procedure = NULL; /* figure out whether this is a relation or a procedure and give an error if it is neither */ - STR relation_name; + dsql_str* relation_name; if (relation_node->nod_type == nod_rel_proc_name) { - relation_name = (STR) relation_node->nod_arg[e_rpn_name]; + relation_name = (dsql_str*) relation_node->nod_arg[e_rpn_name]; } else if (relation_node->nod_type == nod_derived_table) { - relation_name = (STR) relation_node->nod_arg[e_derived_table_alias]; + relation_name = (dsql_str*) relation_node->nod_arg[e_derived_table_alias]; } else { - relation_name = (STR) relation_node->nod_arg[e_rln_name]; + relation_name = (dsql_str*) relation_node->nod_arg[e_rln_name]; } // CVC: Let's skim the context, too. @@ -287,9 +291,10 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) else if ((relation_node->nod_type == nod_rel_proc_name) && relation_node->nod_arg[e_rpn_inputs]) { - if (!(procedure = METD_get_procedure(request, relation_name))) + procedure = METD_get_procedure(request, relation_name); + if (!procedure) { - TEXT linecol [64]; + TEXT linecol[64]; sprintf (linecol, "At line %d, column %d.", (int) relation_node->nod_line, (int) relation_node->nod_column); ERRD_post( gds_sqlerr, @@ -308,14 +313,14 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) } else { - if (!(relation = METD_get_relation(request, relation_name)) && - (relation_node->nod_type == nod_rel_proc_name)) + relation = METD_get_relation(request, relation_name); + if (!relation && (relation_node->nod_type == nod_rel_proc_name)) { procedure = METD_get_procedure(request, relation_name); } if (!relation && !procedure) { - TEXT linecol [64]; + TEXT linecol[64]; sprintf (linecol, "At line %d, column %d.", (int) relation_node->nod_line, (int) relation_node->nod_column); ERRD_post( gds_sqlerr, @@ -334,7 +339,7 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) } if (procedure && !procedure->prc_out_count) { - TEXT linecol [64]; + TEXT linecol[64]; sprintf (linecol, "At line %d, column %d.", (int) relation_node->nod_line, (int) relation_node->nod_column); ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 84, @@ -346,7 +351,7 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) } // Set up context block. - DSQL_CTX context = FB_NEW(*tdsql->tsql_default) dsql_ctx; + dsql_ctx* context = FB_NEW(*tdsql->tsql_default) dsql_ctx; context->ctx_relation = relation; context->ctx_procedure = procedure; context->ctx_request = request; @@ -358,16 +363,16 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) } // find the context alias name, if it exists. - STR string; + dsql_str* string; if (relation_node->nod_type == nod_rel_proc_name) { - string = (STR) relation_node->nod_arg[e_rpn_alias]; + string = (dsql_str*) relation_node->nod_arg[e_rpn_alias]; } else if (relation_node->nod_type == nod_derived_table) { - string = (STR) relation_node->nod_arg[e_derived_table_alias]; + string = (dsql_str*) relation_node->nod_arg[e_derived_table_alias]; context->ctx_rse = relation_node->nod_arg[e_derived_table_rse]; } else { - string = (STR) relation_node->nod_arg[e_rln_alias]; + string = (dsql_str*) relation_node->nod_arg[e_rln_alias]; } DEV_BLKCHK(string, dsql_type_str); @@ -386,15 +391,15 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) // check to make sure the context is not already used at this same // query level (if there are no subqueries, this checks that the // alias is not used twice in the request). - for (DLLS stack = request->req_context; stack; stack = stack->lls_next) + for (dsql_lls* stack = request->req_context; stack; stack = stack->lls_next) { - DSQL_CTX conflict = (DSQL_CTX) stack->lls_object; + const dsql_ctx* conflict = (dsql_ctx*) stack->lls_object; if (conflict->ctx_scope_level != context->ctx_scope_level) { continue; } - TEXT* conflict_name; + const TEXT* conflict_name; ISC_STATUS error_code; if (conflict->ctx_alias) { conflict_name = conflict->ctx_alias; @@ -415,10 +420,11 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) continue; } - if (!strcmp(conflict_name, context->ctx_alias)) + if (!strcmp(conflict_name, context->ctx_alias)) { ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 204, gds_arg_gds, error_code, gds_arg_string, conflict_name, 0); + } } } @@ -446,13 +452,11 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) if (count) { - DSQL_FLD field; - DSQL_NOD* input; // Initialize this stack variable, and make it look like a node std::auto_ptr desc_node(FB_NEW_RPT(*tdsql->tsql_default, 0) dsql_nod); - for (input = context->ctx_proc_inputs->nod_arg, - field = procedure->prc_inputs; + dsql_nod* const* input = context->ctx_proc_inputs->nod_arg; + for (dsql_fld* field = procedure->prc_inputs; field; input++, field = field->fld_next) { DEV_BLKCHK(field, dsql_type_fld); @@ -487,11 +491,11 @@ DSQL_CTX PASS1_make_context(DSQL_REQ request, DSQL_NOD relation_node) @param proc_flag **/ -DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) +dsql_nod* PASS1_node(dsql_req* request, dsql_nod* input, bool proc_flag) { - DSQL_NOD node, temp, *ptr, *end, *ptr2, rse, sub1, sub2, sub3; - DLLS base; - DSQL_FLD field; + dsql_nod* node; + dsql_lls* base; + dsql_fld* field; DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -500,6 +504,8 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) return NULL; } + dsql_nod* sub1; + /* Dispatch on node type. Fall thru on easy ones */ switch (input->nod_type) { @@ -516,7 +522,7 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) node->nod_arg[e_cast_source] = sub1 = PASS1_node(request, input->nod_arg[e_cast_source], proc_flag); node->nod_arg[e_cast_target] = input->nod_arg[e_cast_target]; - field = (DSQL_FLD) node->nod_arg[e_cast_target]; + field = (dsql_fld*) node->nod_arg[e_cast_target]; DEV_BLKCHK(field, dsql_type_fld); DDL_resolve_intl_type(request, field, NULL); MAKE_desc_from_field(&node->nod_desc, field); @@ -547,11 +553,11 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) return node; case nod_collate: - temp_collation_name = (STR) input->nod_arg[e_coll_target]; + temp_collation_name = (dsql_str*) input->nod_arg[e_coll_target]; sub1 = PASS1_node(request, input->nod_arg[e_coll_source], proc_flag); temp_collation_name = NULL; node = - pass1_collate(request, sub1, (STR) input->nod_arg[e_coll_target]); + pass1_collate(request, sub1, (dsql_str*) input->nod_arg[e_coll_target]); return node; case nod_extract: @@ -605,21 +611,23 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) return pass1_derived_table(request, input, proc_flag); case nod_select_expr: + { if (proc_flag) ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 206, gds_arg_gds, gds_dsql_subselect_err, 0); base = request->req_context; node = MAKE_node(nod_via, e_via_count); - node->nod_arg[e_via_rse] = rse = - PASS1_rse(request, input, input->nod_arg[e_sel_order], + dsql_nod* rse = PASS1_rse(request, input, input->nod_arg[e_sel_order], input->nod_arg[e_sel_rows], NULL); + node->nod_arg[e_via_rse] = rse; node->nod_arg[e_via_value_1] = rse->nod_arg[e_rse_items]->nod_arg[0]; node->nod_arg[e_via_value_2] = MAKE_node(nod_null, (int) 0); // Finish off by cleaning up contexts while (request->req_context != base) LLS_POP(&request->req_context); return node; + } case nod_exists: case nod_singular: @@ -651,7 +659,7 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) case nod_variable: node = MAKE_node (input->nod_type, e_var_count); - node->nod_arg [0] = input->nod_arg [0]; + node->nod_arg[0] = input->nod_arg[0]; node->nod_desc = input->nod_desc; return node; @@ -675,7 +683,7 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) node = MAKE_node(input->nod_type, e_par_count); node->nod_count = 0; node->nod_arg[e_par_parameter] = - (DSQL_NOD) MAKE_parameter(request->req_send, + (dsql_nod*) MAKE_parameter(request->req_send, true, true, /* Pass 0 here to restore older parameter ordering behavior */ @@ -703,16 +711,19 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) case nod_geq_all: case nod_lss_all: case nod_leq_all: - sub2 = input->nod_arg[1]; + { + dsql_nod* sub2 = input->nod_arg[1]; if (sub2->nod_type == nod_list) { USHORT list_item_count = 0; node = NULL; - for (ptr = sub2->nod_arg, end = ptr + sub2->nod_count; + dsql_nod** ptr = sub2->nod_arg; + for (const dsql_nod* const* const end = ptr + sub2->nod_count; ptr < end && list_item_count < MAX_MEMBER_LIST; - list_item_count++, ptr++) { + list_item_count++, ptr++) + { DEV_BLKCHK(*ptr, dsql_type_nod); - temp = MAKE_node(input->nod_type, 2); + dsql_nod* temp = MAKE_node(input->nod_type, 2); temp->nod_arg[0] = input->nod_arg[0]; temp->nod_arg[1] = *ptr; node = compose(node, temp, nod_or); @@ -735,10 +746,11 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) base = request->req_context; node = MAKE_node(input->nod_type, 2); node->nod_arg[0] = PASS1_node(request, input->nod_arg[0], false); - node->nod_arg[1] = temp = MAKE_node(nod_via, e_via_count); - temp->nod_arg[e_via_rse] = rse = - PASS1_rse(request, sub2, sub2->nod_arg[e_sel_order], + dsql_nod* temp = MAKE_node(nod_via, e_via_count); + node->nod_arg[1] = temp; + dsql_nod* rse = PASS1_rse(request, sub2, sub2->nod_arg[e_sel_order], sub2->nod_arg[e_sel_rows], NULL); + temp->nod_arg[e_via_rse] = rse; temp->nod_arg[e_via_value_1] = rse->nod_arg[e_rse_items]->nod_arg[0]; temp->nod_arg[e_via_value_2] = MAKE_node(nod_null, (int) 0); @@ -780,6 +792,7 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) } } break; + } case nod_agg_count: case nod_agg_min: @@ -835,7 +848,7 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) case nod_internal_info: { - internal_info_id id = + const internal_info_id id = *reinterpret_cast(input->nod_arg[0]->nod_desc.dsc_address); USHORT req_mask = InternalInfo::getMask(id); if (req_mask && !(request->req_flags & req_mask)) @@ -855,16 +868,21 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) /* Node is simply to be rebuilt -- just recurse merrily */ node = MAKE_node(input->nod_type, input->nod_count); - ptr2 = node->nod_arg; + const dsql_nod** ptr2 = const_cast(node->nod_arg); - for (ptr = input->nod_arg, end = ptr + input->nod_count; ptr < end; ptr++) { + dsql_nod** ptr = input->nod_arg; + for (const dsql_nod* const* const end = ptr + input->nod_count; + ptr < end; ptr++) + { DEV_BLKCHK(*ptr, dsql_type_nod); *ptr2++ = PASS1_node(request, *ptr, proc_flag); DEV_BLKCHK(*(ptr2 - 1), dsql_type_nod); } // Try to match parameters against things of known data type. - sub3 = NULL; + dsql_nod* sub2 = NULL; + dsql_nod* sub3 = NULL; + switch (node->nod_type) { case nod_between: sub3 = node->nod_arg[2]; @@ -947,14 +965,14 @@ DSQL_NOD PASS1_node(DSQL_REQ request, DSQL_NOD input, bool proc_flag) @param update_lock **/ -DSQL_NOD PASS1_rse(DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, DSQL_NOD rows, DSQL_NOD update_lock) +dsql_nod* PASS1_rse(dsql_req* request, dsql_nod* input, dsql_nod* order, dsql_nod* rows, dsql_nod* update_lock) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); DEV_BLKCHK(order, dsql_type_nod); request->req_scope_level++; - DSQL_NOD node = pass1_rse(request, input, order, rows, update_lock); + dsql_nod* node = pass1_rse(request, input, order, rows, update_lock); request->req_scope_level--; return node; @@ -973,14 +991,9 @@ DSQL_NOD PASS1_rse(DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, DSQL_NOD ro @param proc_flag **/ -DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) +dsql_nod* PASS1_statement(dsql_req* request, dsql_nod* input, bool proc_flag) { - DSQL_NOD node, *ptr, *end, *ptr2, *end2, into_in, into_out, - cursor, temp, parameters, variables; - DLLS base; - DSQL_FLD field, field2; - STR name; - USHORT count; + dsql_nod* node; DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -993,7 +1006,7 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) #endif - base = request->req_context; + dsql_lls* base = request->req_context; /* Dispatch on node type. Fall thru on easy ones */ @@ -1053,27 +1066,33 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) case nod_redef_procedure: case nod_mod_procedure: case nod_replace_procedure: + { request->req_type = REQ_DDL; request->req_flags |= REQ_procedure; - if (variables = input->nod_arg[e_prc_dcls]) { + dsql_nod* variables = input->nod_arg[e_prc_dcls]; + if (variables) { // insure that variable names do not duplicate parameter names - for (ptr = variables->nod_arg, end = ptr + variables->nod_count; + const dsql_nod* const* ptr = variables->nod_arg; + for (const dsql_nod* const* const end = ptr + variables->nod_count; ptr < end; ptr++) { if ((*ptr)->nod_type == nod_def_field) { - field = (DSQL_FLD) (*ptr)->nod_arg[e_dfl_field]; + const dsql_fld* field = (dsql_fld*) (*ptr)->nod_arg[e_dfl_field]; DEV_BLKCHK(field, dsql_type_fld); - if (parameters = input->nod_arg[e_prc_inputs]) { + dsql_nod* parameters = input->nod_arg[e_prc_inputs]; + if (parameters) { - for (ptr2 = parameters->nod_arg, end2 = + const dsql_nod* const* ptr2 = parameters->nod_arg; + for (const dsql_nod* const* const end2 = ptr2 + parameters->nod_count; ptr2 < end2; ptr2++) { - field2 = (DSQL_FLD) (*ptr2)->nod_arg[e_dfl_field]; + const dsql_fld* field2 = + (dsql_fld*) (*ptr2)->nod_arg[e_dfl_field]; DEV_BLKCHK(field2, dsql_type_fld); if (!strcmp(field->fld_name, field2->fld_name)) ERRD_post(gds_sqlerr, gds_arg_number, @@ -1085,10 +1104,12 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) if (parameters = input->nod_arg[e_prc_outputs]) { - for (ptr2 = parameters->nod_arg, end2 = + const dsql_nod* const* ptr2 = parameters->nod_arg; + for (const dsql_nod* const* const end2 = ptr2 + parameters->nod_count; ptr2 < end2; ptr2++) { - field2 = (DSQL_FLD) (*ptr2)->nod_arg[e_dfl_field]; + const dsql_fld* field2 = + (dsql_fld*) (*ptr2)->nod_arg[e_dfl_field]; DEV_BLKCHK(field2, dsql_type_fld); if (!strcmp(field->fld_name, field2->fld_name)) ERRD_post(gds_sqlerr, gds_arg_number, @@ -1101,6 +1122,7 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) } } return input; + } case nod_assign: node = MAKE_node(input->nod_type, input->nod_count); @@ -1121,8 +1143,10 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) break; case nod_exec_procedure: + { + const dsql_str* name = NULL; if (!proc_flag) { - name = (STR) input->nod_arg[e_exe_procedure]; + name = (dsql_str*) input->nod_arg[e_exe_procedure]; DEV_BLKCHK(name, dsql_type_str); if (!(request->req_procedure = METD_get_procedure(request, name))) ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 204, @@ -1133,29 +1157,27 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) } node = MAKE_node(input->nod_type, input->nod_count); node->nod_arg[e_exe_procedure] = input->nod_arg[e_exe_procedure]; - node->nod_arg[e_exe_inputs] = PASS1_node(request, - input->nod_arg[e_exe_inputs], - proc_flag); - if (temp = input->nod_arg[e_exe_outputs]) - node->nod_arg[e_exe_outputs] = - (temp->nod_type == nod_all) ? explode_outputs(request, - request-> - req_procedure) : + node->nod_arg[e_exe_inputs] = + PASS1_node(request, input->nod_arg[e_exe_inputs], proc_flag); + dsql_nod* temp = input->nod_arg[e_exe_outputs]; + if (temp) + node->nod_arg[e_exe_outputs] = (temp->nod_type == nod_all) ? + explode_outputs(request, request->req_procedure) : PASS1_node(request, temp, proc_flag); if (!proc_flag) { + USHORT count = 0; if (node->nod_arg[e_exe_inputs]) count = node->nod_arg[e_exe_inputs]->nod_count; - else - count = 0; if (count != request->req_procedure->prc_in_count) ERRD_post(gds_prcmismat, gds_arg_string, name->str_data, 0); if (count) { // Initialize this stack variable, and make it look like a node std::auto_ptr desc_node(FB_NEW_RPT(*getDefaultMemoryPool(), 0) dsql_nod); - for (ptr = node->nod_arg[e_exe_inputs]->nod_arg, - field = request->req_procedure->prc_inputs; - field; ptr++, field = field->fld_next) { + dsql_nod** ptr = node->nod_arg[e_exe_inputs]->nod_arg; + for (const dsql_fld* field = request->req_procedure->prc_inputs; + field; ptr++, field = field->fld_next) + { DEV_BLKCHK(field, dsql_type_fld); DEV_BLKCHK(*ptr, dsql_type_nod); // MAKE_desc_from_field(&desc_node.nod_desc, field); @@ -1166,28 +1188,31 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) } } break; + } case nod_for_select: { node = MAKE_node(input->nod_type, input->nod_count); node->nod_flags = input->nod_flags; - cursor = node->nod_arg[e_flp_cursor] = input->nod_arg[e_flp_cursor]; + dsql_nod* cursor = node->nod_arg[e_flp_cursor] = input->nod_arg[e_flp_cursor]; if (cursor) { - pass1_cursor_name(request, (STR) cursor->nod_arg[e_cur_name], false); + pass1_cursor_name(request, (dsql_str*) cursor->nod_arg[e_cur_name], false); cursor->nod_arg[e_cur_rse] = node; - cursor->nod_arg[e_cur_number] = (DSQL_NOD) (IPTR) request->req_cursor_number++; + cursor->nod_arg[e_cur_number] = (dsql_nod*) (IPTR) request->req_cursor_number++; LLS_PUSH(cursor, &request->req_cursors); } node->nod_arg[e_flp_select] = PASS1_statement(request, input->nod_arg[e_flp_select], proc_flag); - into_in = input->nod_arg[e_flp_into]; - node->nod_arg[e_flp_into] = into_out = - MAKE_node(into_in->nod_type, into_in->nod_count); - ptr2 = into_out->nod_arg; - for (ptr = into_in->nod_arg, end = ptr + into_in->nod_count; - ptr < end; ptr++) { + dsql_nod* into_in = input->nod_arg[e_flp_into]; + dsql_nod* into_out = MAKE_node(into_in->nod_type, into_in->nod_count); + node->nod_arg[e_flp_into] = into_out; + const dsql_nod** ptr2 = const_cast(into_out->nod_arg); + dsql_nod** ptr = into_in->nod_arg; + for (const dsql_nod* const* const end = ptr + into_in->nod_count; + ptr < end; ptr++) + { DEV_BLKCHK(*ptr, dsql_type_nod); *ptr2++ = PASS1_node(request, *ptr, proc_flag); DEV_BLKCHK(*(ptr2 - 1), dsql_type_nod); @@ -1212,8 +1237,8 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) if (input->nod_flags & NOD_SINGLETON_SELECT) { node = pass1_savepoint(request, node); } - } break; + } case nod_get_segment: case nod_put_segment: @@ -1269,9 +1294,11 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) } case nod_list: + { node = MAKE_node(input->nod_type, input->nod_count); - ptr2 = node->nod_arg; - for (ptr = input->nod_arg, end = ptr + input->nod_count; + const dsql_nod** ptr2 = const_cast(node->nod_arg); + dsql_nod* const* ptr = input->nod_arg; + for (const dsql_nod* const* const end = ptr + input->nod_count; ptr < end; ptr++) { DEV_BLKCHK(*ptr, dsql_type_nod); if ((*ptr)->nod_type == nod_assign) @@ -1283,6 +1310,7 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) if (input->nod_type == nod_block && input->nod_arg[e_blk_errs]) request->req_error_handlers--; return node; + } case nod_on_error: node = MAKE_node(input->nod_type, input->nod_count); @@ -1355,6 +1383,7 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) return input; case nod_select: + { node = PASS1_rse(request, input->nod_arg[e_select_expr], input->nod_arg[e_select_order], input->nod_arg[e_select_rows], input->nod_arg[e_select_lock]); @@ -1369,13 +1398,16 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) ** list. In these cases all of stored procedure is executed under ** savepoint for open cursor. */ - if (((temp = node->nod_arg[e_rse_streams]) - && (temp->nod_type == nod_union) - && temp->nod_arg[e_rse_reduced]) || + const dsql_nod* temp = node->nod_arg[e_rse_streams]; + if ((temp && (temp->nod_type == nod_union) + && temp->nod_arg[e_rse_reduced]) || node->nod_arg[e_rse_sort] || node->nod_arg[e_rse_reduced]) + { request->req_flags &= ~REQ_no_batch; + } break; + } case nod_trans: request->req_type = REQ_START_TRANS; @@ -1462,9 +1494,9 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) case nod_cursor: { // make sure the cursor doesn't exist - pass1_cursor_name(request, (STR) input->nod_arg[e_cur_name], false); + pass1_cursor_name(request, (dsql_str*) input->nod_arg[e_cur_name], false); // temporarily hide unnecessary contexts and process our RSE - DLLS base_context = request->req_context; + dsql_lls* base_context = request->req_context; request->req_context = NULL; input->nod_arg[e_cur_rse] = PASS1_rse(request, input->nod_arg[e_cur_rse], @@ -1474,7 +1506,7 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) LLS_POP(&request->req_context); request->req_context = base_context; // assign number and store in the request stack - input->nod_arg[e_cur_number] = (DSQL_NOD) (IPTR) request->req_cursor_number++; + input->nod_arg[e_cur_number] = (dsql_nod*) (IPTR) request->req_cursor_number++; LLS_PUSH(input, &request->req_cursors); } return input; @@ -1484,7 +1516,7 @@ DSQL_NOD PASS1_statement(DSQL_REQ request, DSQL_NOD input, bool proc_flag) case nod_cursor_fetch: // resolve the cursor input->nod_arg[e_cur_stmt_id] = - pass1_cursor_name(request, (STR) input->nod_arg[e_cur_stmt_id], true); + pass1_cursor_name(request, (dsql_str*) input->nod_arg[e_cur_stmt_id], true); // process a seek node, if exists if (input->nod_arg[e_cur_stmt_seek]) input->nod_arg[e_cur_stmt_seek] = @@ -1621,7 +1653,7 @@ static bool aggregate_found2(const dsql_req* request, const dsql_nod* node, case nod_field: { const dsql_ctx* lcontext = - reinterpret_cast(node->nod_arg[e_fld_context]); + reinterpret_cast(node->nod_arg[e_fld_context]); if (*deepest_level < lcontext->ctx_scope_level) { *deepest_level = lcontext->ctx_scope_level; } @@ -1646,12 +1678,12 @@ static bool aggregate_found2(const dsql_req* request, const dsql_nod* node, case nod_map: { - DSQL_CTX lcontext = reinterpret_cast(node->nod_arg[e_map_context]); + dsql_ctx* lcontext = reinterpret_cast(node->nod_arg[e_map_context]); if (lcontext->ctx_scope_level == request->req_scope_level) { return true; } else { - DSQL_MAP lmap = reinterpret_cast(node->nod_arg[e_map_map]); + dsql_map* lmap = reinterpret_cast(node->nod_arg[e_map_map]); aggregate = aggregate_found2(request, lmap->map_node, current_level, deepest_level, ignore_sub_selects); return aggregate; @@ -1780,7 +1812,7 @@ static bool aggregate_found2(const dsql_req* request, const dsql_nod* node, case nod_relation: { - const dsql_ctx* lrelation_context = reinterpret_cast(node->nod_arg[e_rel_context]); + const dsql_ctx* lrelation_context = reinterpret_cast(node->nod_arg[e_rel_context]); // Check if relation is a procedure if (lrelation_context->ctx_procedure) { // If input parameters exists check if a aggregate is buried inside @@ -1814,8 +1846,8 @@ static bool aggregate_found2(const dsql_req* request, const dsql_nod* node, @param ambiguous_contexts **/ -static DSQL_NOD ambiguity_check(DSQL_REQ request, dsql_nod* node, - const str* name, DLLS ambiguous_contexts) +static dsql_nod* ambiguity_check(dsql_req* request, dsql_nod* node, + const dsql_str* name, const dsql_lls* ambiguous_contexts) { // If there are no relations or only 1 there's no ambiguity, thus return. if (!ambiguous_contexts || (ambiguous_contexts && !ambiguous_contexts->lls_next)) { @@ -1829,12 +1861,12 @@ static DSQL_NOD ambiguity_check(DSQL_REQ request, dsql_nod* node, TEXT* b = buffer; TEXT* p = 0; - for (DLLS stack = ambiguous_contexts; stack; stack = stack->lls_next) + for (const dsql_lls* stack = ambiguous_contexts; stack; stack = stack->lls_next) { - DSQL_CTX context = (DSQL_CTX) stack->lls_object; + const dsql_ctx* context = (dsql_ctx*) stack->lls_object; DEV_BLKCHK(context, dsql_type_ctx); - DSQL_REL relation = context->ctx_relation; - DSQL_PRC procedure = context->ctx_procedure; + const dsql_rel* relation = context->ctx_relation; + const dsql_prc* procedure = context->ctx_procedure; if (strlen(b) > (sizeof(buffer) - 50)) { // Buffer full break; @@ -1906,14 +1938,14 @@ static DSQL_NOD ambiguity_check(DSQL_REQ request, dsql_nod* node, assign_fld_dtype_from_dsc @brief Set a field's descriptor from a DSC - (If DSQL_FLD is ever redefined this can be removed) + (If dsql_fld* is ever redefined this can be removed) @param field @param nod_desc **/ -static void assign_fld_dtype_from_dsc( DSQL_FLD field, const dsc* nod_desc) +static void assign_fld_dtype_from_dsc( dsql_fld* field, const dsc* nod_desc) { DEV_BLKCHK(field, dsql_type_fld); @@ -1943,7 +1975,7 @@ static void assign_fld_dtype_from_dsc( DSQL_FLD field, const dsc* nod_desc) @param operator_ **/ -static DSQL_NOD compose( DSQL_NOD expr1, DSQL_NOD expr2, NOD_TYPE dsql_operator) +static dsql_nod* compose( dsql_nod* expr1, dsql_nod* expr2, NOD_TYPE dsql_operator) { DEV_BLKCHK(expr1, dsql_type_nod); DEV_BLKCHK(expr2, dsql_type_nod); @@ -1954,7 +1986,7 @@ static DSQL_NOD compose( DSQL_NOD expr1, DSQL_NOD expr2, NOD_TYPE dsql_operator) if (!expr2) return expr1; - DSQL_NOD node = MAKE_node(dsql_operator, 2); + dsql_nod* node = MAKE_node(dsql_operator, 2); node->nod_arg[0] = expr1; node->nod_arg[1] = expr2; @@ -1975,8 +2007,8 @@ static DSQL_NOD compose( DSQL_NOD expr1, DSQL_NOD expr2, NOD_TYPE dsql_operator) @param stack **/ -static void explode_asterisk(DSQL_REQ request, DSQL_NOD node, DSQL_NOD aggregate, - DLLS* stack) +static void explode_asterisk(dsql_req* request, dsql_nod* node, dsql_nod* aggregate, + dsql_lls** stack) { DEV_BLKCHK(node, dsql_type_nod); DEV_BLKCHK(aggregate, dsql_type_nod); @@ -1987,11 +2019,13 @@ static void explode_asterisk(DSQL_REQ request, DSQL_NOD node, DSQL_NOD aggregate } else if (node->nod_type == nod_derived_table) { // AB: Derived table support - DSQL_NOD sub_items = node->nod_arg[e_derived_table_rse]->nod_arg[e_rse_items]; - DSQL_NOD* ptr = sub_items->nod_arg; - for (DSQL_NOD* end = ptr + sub_items->nod_count; ptr < end; ++ptr) { + dsql_nod* sub_items = node->nod_arg[e_derived_table_rse]->nod_arg[e_rse_items]; + dsql_nod** ptr = sub_items->nod_arg; + for (const dsql_nod* const* const end = ptr + sub_items->nod_count; + ptr < end; ++ptr) + { // Create a new alias else mappings would be mangled. - DSQL_NOD select_item = *ptr; + dsql_nod* select_item = *ptr; // select-item should always be a derived field! if (select_item->nod_type != nod_derived_field) { // Internal dsql error: alias type expected by exploding. @@ -2001,21 +2035,21 @@ static void explode_asterisk(DSQL_REQ request, DSQL_NOD node, DSQL_NOD aggregate ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 104, gds_arg_gds, gds_dsql_command_err, 0); } - DSQL_NOD derived_field = MAKE_node(nod_derived_field, e_derived_field_count); + dsql_nod* derived_field = MAKE_node(nod_derived_field, e_derived_field_count); derived_field->nod_arg[e_derived_field_value] = select_item->nod_arg[e_derived_field_value]; derived_field->nod_arg[e_derived_field_name] = select_item->nod_arg[e_derived_field_name]; - derived_field->nod_arg[e_derived_field_scope] = (DSQL_NOD)(ULONG) request->req_scope_level; + derived_field->nod_arg[e_derived_field_scope] = (dsql_nod*)(ULONG) request->req_scope_level; derived_field->nod_desc = select_item->nod_desc; LLS_PUSH(derived_field, stack); } } else { - DSQL_CTX context = (DSQL_CTX) node->nod_arg[e_rel_context]; + dsql_ctx* context = (dsql_ctx*) node->nod_arg[e_rel_context]; DEV_BLKCHK(context, dsql_type_ctx); - DSQL_PRC procedure; - DSQL_FLD field; - DSQL_REL relation = context->ctx_relation; - if (relation) + dsql_prc* procedure; + dsql_fld* field; + dsql_rel* relation = context->ctx_relation; + if (relation) { for (field = relation->rel_fields; field; field = field->fld_next) { DEV_BLKCHK(field, dsql_type_fld); node = MAKE_field(context, field, 0); @@ -2030,9 +2064,12 @@ static void explode_asterisk(DSQL_REQ request, DSQL_NOD node, DSQL_NOD aggregate } LLS_PUSH(MAKE_field(context, field, 0), stack); } - else if (procedure = context->ctx_procedure) + } + else if (procedure = context->ctx_procedure) { for (field = procedure->prc_outputs; field; - field = field->fld_next) {DEV_BLKCHK(field, dsql_type_fld); + field = field->fld_next) + { + DEV_BLKCHK(field, dsql_type_fld); node = MAKE_field(context, field, 0); if (aggregate) { if (invalid_reference(NULL, node, @@ -2045,6 +2082,7 @@ static void explode_asterisk(DSQL_REQ request, DSQL_NOD node, DSQL_NOD aggregate } LLS_PUSH(MAKE_field(context, field, 0), stack); } + } } } @@ -2060,24 +2098,24 @@ static void explode_asterisk(DSQL_REQ request, DSQL_NOD node, DSQL_NOD aggregate @param procedure **/ -static DSQL_NOD explode_outputs( DSQL_REQ request, DSQL_PRC procedure) +static dsql_nod* explode_outputs( dsql_req* request, dsql_prc* procedure) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(procedure, dsql_type_prc); const SSHORT count = procedure->prc_out_count; - DSQL_NOD node = MAKE_node(nod_list, count); - DSQL_NOD* ptr = node->nod_arg; - for (DSQL_FLD field = procedure->prc_outputs; field; + dsql_nod* node = MAKE_node(nod_list, count); + dsql_nod** ptr = node->nod_arg; + for (const dsql_fld* field = procedure->prc_outputs; field; field = field->fld_next, ptr++) { DEV_BLKCHK(field, dsql_type_fld); DEV_BLKCHK(*ptr, dsql_type_nod); - DSQL_NOD p_node = MAKE_node(nod_parameter, e_par_count); + dsql_nod* p_node = MAKE_node(nod_parameter, e_par_count); *ptr = p_node; p_node->nod_count = 0; - PAR parameter = MAKE_parameter(request->req_receive, true, true, 0); - p_node->nod_arg[e_par_parameter] = (DSQL_NOD) parameter; + par* parameter = MAKE_parameter(request->req_receive, true, true, 0); + p_node->nod_arg[e_par_parameter] = (dsql_nod*) parameter; MAKE_desc_from_field(¶meter->par_desc, field); parameter->par_name = parameter->par_alias = field->fld_name; parameter->par_rel_name = procedure->prc_name; @@ -2101,9 +2139,9 @@ static DSQL_NOD explode_outputs( DSQL_REQ request, DSQL_PRC procedure) **/ static void field_error(const TEXT* qualifier_name, const TEXT* field_name, - DSQL_NOD flawed_node) + const dsql_nod* flawed_node) { - TEXT field_string [64], linecol [64]; + TEXT field_string[64], linecol[64]; if (qualifier_name) { sprintf(field_string, "%.31s.%.31s", qualifier_name, @@ -2144,23 +2182,23 @@ static void field_error(const TEXT* qualifier_name, const TEXT* field_name, @param relation_name **/ -static PAR find_dbkey( DSQL_REQ request, DSQL_NOD relation_name) +static par* find_dbkey( dsql_req* request, dsql_nod* relation_name) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(relation_name, dsql_type_nod); - DSQL_MSG message = request->req_receive; - PAR candidate = NULL; - STR rel_name = (STR) relation_name->nod_arg[e_rln_name]; + dsql_msg* message = request->req_receive; + par* candidate = NULL; + dsql_str* rel_name = (dsql_str*) relation_name->nod_arg[e_rln_name]; DEV_BLKCHK(rel_name, dsql_type_str); - for (PAR parameter = message->msg_parameters; parameter; + for (par* parameter = message->msg_parameters; parameter; parameter = parameter->par_next) { DEV_BLKCHK(parameter, dsql_type_par); - DSQL_CTX context = parameter->par_dbkey_ctx; + dsql_ctx* context = parameter->par_dbkey_ctx; if (context) { DEV_BLKCHK(context, dsql_type_ctx); - DSQL_REL relation = context->ctx_relation; + dsql_rel* relation = context->ctx_relation; if (!strcmp(reinterpret_cast(rel_name->str_data), relation->rel_name)) { @@ -2186,24 +2224,24 @@ static PAR find_dbkey( DSQL_REQ request, DSQL_NOD relation_name) @param relation_name **/ -static PAR find_record_version( DSQL_REQ request, DSQL_NOD relation_name) +static par* find_record_version(const dsql_req* request, const dsql_nod* relation_name) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(relation_name, dsql_type_nod); - DSQL_MSG message = request->req_receive; - PAR candidate = NULL; - STR rel_name = (STR) relation_name->nod_arg[e_rln_name]; + const dsql_msg* message = request->req_receive; + par* candidate = NULL; + const dsql_str* rel_name = (dsql_str*) relation_name->nod_arg[e_rln_name]; DEV_BLKCHK(rel_name, dsql_type_str); - for (PAR parameter = message->msg_parameters; parameter; + for (par* parameter = message->msg_parameters; parameter; parameter = parameter->par_next) { DEV_BLKCHK(parameter, dsql_type_par); - DSQL_CTX context = parameter->par_rec_version_ctx; + const dsql_ctx* context = parameter->par_rec_version_ctx; if (context) { DEV_BLKCHK(context, dsql_type_ctx); - DSQL_REL relation = context->ctx_relation; - if (!strcmp(reinterpret_cast(rel_name->str_data), + const dsql_rel* relation = context->ctx_relation; + if (!strcmp(reinterpret_cast(rel_name->str_data), relation->rel_name)) { if (candidate) @@ -2240,8 +2278,8 @@ static PAR find_record_version( DSQL_REQ request, DSQL_NOD relation_name) @param inside_map **/ -static bool invalid_reference(DSQL_CTX context, DSQL_NOD node, - DSQL_NOD list, bool inside_own_map, +static bool invalid_reference(const dsql_ctx* context, const dsql_nod* node, + const dsql_nod* list, bool inside_own_map, bool inside_higher_map) { DEV_BLKCHK(node, dsql_type_nod); @@ -2252,12 +2290,14 @@ static bool invalid_reference(DSQL_CTX context, DSQL_NOD node, } bool invalid = false; - DSQL_NOD *ptr, *end; if (list) { // Check if this node (with ignoring of CASTs) appear also // in the list of group by. If yes then it's allowed - for (ptr = list->nod_arg, end = ptr + list->nod_count; ptr < end; ptr++) { + const dsql_nod* const* ptr = list->nod_arg; + for (const dsql_nod* const* const end = ptr + list->nod_count; + ptr < end; ptr++) + { if (node_match(node, *ptr, true)) { return false; } @@ -2271,8 +2311,8 @@ static bool invalid_reference(DSQL_CTX context, DSQL_NOD node, case nod_map: { - DSQL_CTX lcontext = reinterpret_cast(node->nod_arg[e_map_context]); - DSQL_MAP lmap = reinterpret_cast(node->nod_arg[e_map_map]); + const dsql_ctx* lcontext = reinterpret_cast(node->nod_arg[e_map_context]); + const dsql_map* lmap = reinterpret_cast(node->nod_arg[e_map_map]); if (lcontext->ctx_scope_level == context->ctx_scope_level) { invalid |= invalid_reference(context, lmap->map_node, list, true, false); } @@ -2285,7 +2325,7 @@ static bool invalid_reference(DSQL_CTX context, DSQL_NOD node, case nod_field: { - DSQL_CTX lcontext = reinterpret_cast(node->nod_arg[e_fld_context]); + const dsql_ctx* lcontext = reinterpret_cast(node->nod_arg[e_fld_context]); // Wouldn't it be better to call a error from this // point where return is TRUE. Then we could give @@ -2353,10 +2393,16 @@ static bool invalid_reference(DSQL_CTX context, DSQL_NOD node, case nod_via: case nod_exists: case nod_singular: - for (ptr = node->nod_arg, end = ptr + node->nod_count; ptr < end; ptr++) { - invalid |= invalid_reference(context, *ptr, list, inside_own_map, inside_higher_map); + { + const dsql_nod* const* ptr = node->nod_arg; + for (const dsql_nod* const* const end = ptr + node->nod_count; + ptr < end; ptr++) + { + invalid |= invalid_reference(context, *ptr, list, + inside_own_map, inside_higher_map); + } + break; } - break; case nod_order: invalid |= invalid_reference(context, node->nod_arg[e_order_field], list, @@ -2416,10 +2462,15 @@ static bool invalid_reference(DSQL_CTX context, DSQL_NOD node, case nod_join_right: case nod_join_full: case nod_list: - for (ptr = node->nod_arg, end = ptr + node->nod_count; ptr < end; ptr++) { - invalid |= invalid_reference(context, *ptr, list, inside_own_map, inside_higher_map); - } + { + const dsql_nod* const* ptr = node->nod_arg; + for (const dsql_nod* const* const end = ptr + node->nod_count; + ptr < end; ptr++) + { + invalid |= invalid_reference(context, *ptr, list, inside_own_map, inside_higher_map); + } break; + } case nod_alias: invalid |= invalid_reference(context, node->nod_arg[e_alias_value], @@ -2442,7 +2493,7 @@ static bool invalid_reference(DSQL_CTX context, DSQL_NOD node, case nod_relation: { - DSQL_CTX lrelation_context = reinterpret_cast(node->nod_arg[e_rel_context]); + const dsql_ctx* lrelation_context = reinterpret_cast(node->nod_arg[e_rel_context]); // Check if relation is a procedure if (lrelation_context->ctx_procedure) { // If input parameters exists check if the parameters are valid @@ -2495,7 +2546,8 @@ static bool invalid_reference(DSQL_CTX context, DSQL_NOD node, @param ignore_map_cast **/ -static bool node_match( DSQL_NOD node1, DSQL_NOD node2, bool ignore_map_cast) +static bool node_match(const dsql_nod* node1, const dsql_nod* node2, + bool ignore_map_cast) { DEV_BLKCHK(node1, dsql_type_nod); DEV_BLKCHK(node2, dsql_type_nod); @@ -2523,10 +2575,10 @@ static bool node_match( DSQL_NOD node1, DSQL_NOD node2, bool ignore_map_cast) } if (ignore_map_cast && node1->nod_type == nod_map) { - DSQL_MAP map1 = (DSQL_MAP)node1->nod_arg[e_map_map]; + const dsql_map* map1 = (dsql_map*)node1->nod_arg[e_map_map]; DEV_BLKCHK(map1, dsql_type_map); if (node2->nod_type == nod_map) { - DSQL_MAP map2 = (DSQL_MAP)node2->nod_arg[e_map_map]; + const dsql_map* map2 = (dsql_map*)node2->nod_arg[e_map_map]; DEV_BLKCHK(map2, dsql_type_map); if (node1->nod_arg[e_map_context] != node2->nod_arg[e_map_context]) { return false; @@ -2632,8 +2684,8 @@ static bool node_match( DSQL_NOD node1, DSQL_NOD node2, bool ignore_map_cast) } if (node1->nod_type == nod_map) { - DSQL_MAP map1 = (DSQL_MAP)node1->nod_arg[e_map_map]; - DSQL_MAP map2 = (DSQL_MAP)node2->nod_arg[e_map_map]; + const dsql_map* map1 = (dsql_map*)node1->nod_arg[e_map_map]; + const dsql_map* map2 = (dsql_map*)node2->nod_arg[e_map_map]; DEV_BLKCHK(map1, dsql_type_map); DEV_BLKCHK(map2, dsql_type_map); return node_match(map1->map_node, map2->map_node, ignore_map_cast); @@ -2672,8 +2724,8 @@ static bool node_match( DSQL_NOD node1, DSQL_NOD node2, bool ignore_map_cast) if (node1->nod_type != node2->nod_type) { return false; } - VAR var1 = reinterpret_cast(node1->nod_arg[e_var_variable]); - VAR var2 = reinterpret_cast(node2->nod_arg[e_var_variable]); + const var* var1 = reinterpret_cast(node1->nod_arg[e_var_variable]); + const var* var2 = reinterpret_cast(node2->nod_arg[e_var_variable]); DEV_BLKCHK(var1, dsql_type_var); DEV_BLKCHK(var2, dsql_type_var); if ((strcmp(var1->var_name, var2->var_name)) || @@ -2687,10 +2739,12 @@ static bool node_match( DSQL_NOD node1, DSQL_NOD node2, bool ignore_map_cast) return true; } - DSQL_NOD* ptr1 = node1->nod_arg; - DSQL_NOD* ptr2 = node2->nod_arg; + const dsql_nod* const* ptr1 = node1->nod_arg; + const dsql_nod* const* ptr2 = node2->nod_arg; - for (DSQL_NOD* end = ptr1 + node1->nod_count; ptr1 < end; ptr1++, ptr2++) { + for (const dsql_nod* const* const end = ptr1 + node1->nod_count; + ptr1 < end; ptr1++, ptr2++) + { if (!node_match(*ptr1, *ptr2, ignore_map_cast)) { return false; } @@ -2712,20 +2766,20 @@ static bool node_match( DSQL_NOD node1, DSQL_NOD node2, bool ignore_map_cast) @param ntype **/ -static DSQL_NOD pass1_any( DSQL_REQ request, DSQL_NOD input, NOD_TYPE ntype) +static dsql_nod* pass1_any( dsql_req* request, dsql_nod* input, NOD_TYPE ntype) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - DSQL_NOD select = input->nod_arg[1]; - DLLS base = request->req_context; + dsql_nod* select = input->nod_arg[1]; + dsql_lls* base = request->req_context; - DSQL_NOD node = MAKE_node(ntype, 1); - DSQL_NOD temp = MAKE_node(input->nod_type, 2); + dsql_nod* node = MAKE_node(ntype, 1); + dsql_nod* temp = MAKE_node(input->nod_type, 2); // Build first the node from our base-context so that the right context is // used while parsing the nodes temp->nod_arg[0] = PASS1_node(request, input->nod_arg[0], false); - DSQL_NOD rse = + dsql_nod* rse = PASS1_rse(request, select, select->nod_arg[e_sel_order], select->nod_arg[e_sel_rows], NULL); node->nod_arg[0] = rse; @@ -2748,7 +2802,7 @@ static DSQL_NOD pass1_any( DSQL_REQ request, DSQL_NOD input, NOD_TYPE ntype) (rse->nod_arg[e_rse_streams]->nod_arg[0]) && (rse->nod_arg[e_rse_streams]->nod_arg[0]->nod_type == nod_aggregate)) { - DSQL_NOD aggregate = rse->nod_arg[e_rse_streams]->nod_arg[0]; + dsql_nod* aggregate = rse->nod_arg[e_rse_streams]->nod_arg[0]; request->req_scope_level++; if (!pass1_found_aggregate(rse->nod_arg[e_rse_items], request->req_scope_level, FIELD_MATCH_TYPE_EQUAL, true)) { @@ -2761,7 +2815,7 @@ static DSQL_NOD pass1_any( DSQL_REQ request, DSQL_NOD input, NOD_TYPE ntype) else { // If the item in the select-list is a aggregate then this value // was not parsed completly. - DSQL_CTX parent_context = (DSQL_CTX) aggregate->nod_arg[e_agg_context]; + dsql_ctx* parent_context = (dsql_ctx*) aggregate->nod_arg[e_agg_context]; temp->nod_arg[1] = remap_field(request, temp->nod_arg[1], parent_context , request->req_scope_level); } @@ -2790,7 +2844,7 @@ static DSQL_NOD pass1_any( DSQL_REQ request, DSQL_NOD input, NOD_TYPE ntype) @param input **/ -static void pass1_blob( DSQL_REQ request, DSQL_NOD input) +static void pass1_blob( dsql_req* request, dsql_nod* input) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -2799,7 +2853,7 @@ static void pass1_blob( DSQL_REQ request, DSQL_NOD input) PASS1_make_context(request, input->nod_arg[e_blb_relation]); - DSQL_NOD field = pass1_field(request, input->nod_arg[e_blb_field], 0); + dsql_nod* field = pass1_field(request, input->nod_arg[e_blb_field], 0); if (field->nod_desc.dsc_dtype != dtype_blob) ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 206, gds_arg_gds, gds_dsql_blob_err, 0); @@ -2808,7 +2862,7 @@ static void pass1_blob( DSQL_REQ request, DSQL_NOD input) (input->nod_type == nod_get_segment) ? REQ_GET_SEGMENT : REQ_PUT_SEGMENT; - BLB blob = FB_NEW(*tdsql->tsql_default) blb; + dsql_blb* blob = FB_NEW(*tdsql->tsql_default) dsql_blb; request->req_blob = blob; blob->blb_field = field; blob->blb_open_in_msg = request->req_send; @@ -2817,12 +2871,12 @@ static void pass1_blob( DSQL_REQ request, DSQL_NOD input) /* Create a parameter for the blob segment */ - PAR parameter = MAKE_parameter(blob->blb_segment_msg, true, true, 0); + par* parameter = MAKE_parameter(blob->blb_segment_msg, true, true, 0); blob->blb_segment = parameter; parameter->par_desc.dsc_dtype = dtype_text; parameter->par_desc.dsc_ttype = ttype_binary; parameter->par_desc.dsc_length = - ((DSQL_FLD) field->nod_arg[e_fld_field])->fld_seg_length; + ((dsql_fld*) field->nod_arg[e_fld_field])->fld_seg_length; DEV_BLKCHK(field->nod_arg[e_fld_field], dsql_type_fld); /* The Null indicator is used to pass back the segment length, @@ -2841,7 +2895,7 @@ static void pass1_blob( DSQL_REQ request, DSQL_NOD input) parameter->par_desc.dsc_dtype = dtype_quad; parameter->par_desc.dsc_scale = 0; - DSQL_NOD list = input->nod_arg[e_blb_filter]; + dsql_nod* list = input->nod_arg[e_blb_filter]; if (list) { if (list->nod_arg[0]) { blob->blb_from = PASS1_node(request, list->nod_arg[0], false); @@ -2851,10 +2905,10 @@ static void pass1_blob( DSQL_REQ request, DSQL_NOD input) } } if (!blob->blb_from) { - blob->blb_from = MAKE_constant((STR) 0, CONSTANT_SLONG); + blob->blb_from = MAKE_constant((dsql_str*) 0, CONSTANT_SLONG); } if (!blob->blb_to) { - blob->blb_to = MAKE_constant((STR) 0, CONSTANT_SLONG); + blob->blb_to = MAKE_constant((dsql_str*) 0, CONSTANT_SLONG); } for (parameter = blob->blb_open_in_msg->msg_parameters; parameter; @@ -2886,33 +2940,33 @@ static void pass1_blob( DSQL_REQ request, DSQL_NOD input) @param proc_flag **/ -static DSQL_NOD pass1_coalesce( DSQL_REQ request, DSQL_NOD input, bool proc_flag) +static dsql_nod* pass1_coalesce( dsql_req* request, dsql_nod* input, bool proc_flag) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); DEV_BLKCHK(input->nod_arg[0], dsql_type_nod); - DSQL_NOD node = MAKE_node(nod_coalesce, 2); + dsql_nod* node = MAKE_node(nod_coalesce, 2); // Pass list of arguments 2..n on stack and make a list from it - DLLS stack = NULL; - pass1_put_args_on_stack(request, input->nod_arg [0], &stack, proc_flag); - pass1_put_args_on_stack(request, input->nod_arg [1], &stack, proc_flag); + dsql_lls* stack = NULL; + pass1_put_args_on_stack(request, input->nod_arg[0], &stack, proc_flag); + pass1_put_args_on_stack(request, input->nod_arg[1], &stack, proc_flag); node->nod_arg[0] = MAKE_list(stack); // Parse the items again for the return values. // We can't copy else we get an 'context in use error' with sub-selects. stack = NULL; - pass1_put_args_on_stack(request, input->nod_arg [0], &stack, proc_flag); - pass1_put_args_on_stack(request, input->nod_arg [1], &stack, proc_flag); + pass1_put_args_on_stack(request, input->nod_arg[0], &stack, proc_flag); + pass1_put_args_on_stack(request, input->nod_arg[1], &stack, proc_flag); node->nod_arg[1] = MAKE_list(stack); // Set descriptor for output node MAKE_desc(&node->nod_desc, node); // Set parameter-types if parameters are there - DSQL_NOD* ptr = node->nod_arg[0]->nod_arg; - DSQL_NOD* end = ptr + node->nod_arg[0]->nod_count; + dsql_nod** ptr = node->nod_arg[0]->nod_arg; + const dsql_nod* const* end = ptr + node->nod_arg[0]->nod_count; for (; ptr < end; ptr++) { set_parameter_type(*ptr, node, false); } @@ -2940,7 +2994,7 @@ static DSQL_NOD pass1_coalesce( DSQL_REQ request, DSQL_NOD input, bool proc_flag @param collation **/ -static DSQL_NOD pass1_collate( DSQL_REQ request, DSQL_NOD sub1, STR collation) +static dsql_nod* pass1_collate( dsql_req* request, dsql_nod* sub1, dsql_str* collation) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(sub1, dsql_type_nod); @@ -2948,10 +3002,10 @@ static DSQL_NOD pass1_collate( DSQL_REQ request, DSQL_NOD sub1, STR collation) TSQL tdsql = GET_THREAD_DATA; - DSQL_NOD node = MAKE_node(nod_cast, e_cast_count); - DSQL_FLD field = FB_NEW_RPT(*tdsql->tsql_default, 1) dsql_fld; + dsql_nod* node = MAKE_node(nod_cast, e_cast_count); + dsql_fld* field = FB_NEW_RPT(*tdsql->tsql_default, 1) dsql_fld; field->fld_name[0] = 0; - node->nod_arg[e_cast_target] = (DSQL_NOD) field; + node->nod_arg[e_cast_target] = (dsql_nod*) field; node->nod_arg[e_cast_source] = sub1; MAKE_desc(&sub1->nod_desc, sub1); if (sub1->nod_desc.dsc_dtype <= dtype_any_text) { @@ -2983,7 +3037,7 @@ static DSQL_NOD pass1_collate( DSQL_REQ request, DSQL_NOD sub1, STR collation) @param constant **/ -static DSQL_NOD pass1_constant( DSQL_REQ request, DSQL_NOD constant) +static dsql_nod* pass1_constant( dsql_req* request, dsql_nod* constant) { DEV_BLKCHK(request, dsql_type_req); @@ -2993,7 +3047,7 @@ static DSQL_NOD pass1_constant( DSQL_REQ request, DSQL_NOD constant) return constant; } - STR string = (STR) constant->nod_arg[0]; + dsql_str* string = (dsql_str*) constant->nod_arg[0]; DEV_BLKCHK(string, dsql_type_str); if (!string || !string->str_charset) { return constant; @@ -3043,27 +3097,25 @@ static DSQL_NOD pass1_constant( DSQL_REQ request, DSQL_NOD constant) @param relation_name **/ -static DSQL_CTX pass1_cursor_context( DSQL_REQ request, DSQL_NOD cursor, DSQL_NOD relation_name) +static dsql_ctx* pass1_cursor_context( dsql_req* request, dsql_nod* cursor, dsql_nod* relation_name) { - DSQL_NOD temp, *ptr, *end; - DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(cursor, dsql_type_nod); DEV_BLKCHK(relation_name, dsql_type_nod); - STR rname = (STR) relation_name->nod_arg[e_rln_name]; + const dsql_str* rname = (dsql_str*) relation_name->nod_arg[e_rln_name]; DEV_BLKCHK(rname, dsql_type_str); - const str* string = (STR) cursor->nod_arg[e_cur_name]; + const dsql_str* string = (dsql_str*) cursor->nod_arg[e_cur_name]; DEV_BLKCHK(string, dsql_type_str); - DSQL_CTX context = NULL; + dsql_ctx* context = NULL; // this function must throw an error if no cursor was found - DSQL_NOD node = pass1_cursor_name(request, string, true); + dsql_nod* node = pass1_cursor_name(request, string, true); fb_assert(node); - temp = node->nod_arg[e_cur_rse]; + dsql_nod* temp = node->nod_arg[e_cur_rse]; if (temp->nod_type == nod_for_select) temp = temp->nod_arg[e_flp_select]; else @@ -3075,18 +3127,19 @@ static DSQL_CTX pass1_cursor_context( DSQL_REQ request, DSQL_NOD cursor, DSQL_NO 0); temp = temp->nod_arg[e_rse_streams]; - for (ptr = temp->nod_arg, end = ptr + temp->nod_count; + dsql_nod** ptr = temp->nod_arg; + for (const dsql_nod* const* const end = ptr + temp->nod_count; ptr < end; ptr++) { DEV_BLKCHK(*ptr, dsql_type_nod); - DSQL_NOD r_node = *ptr; + dsql_nod* r_node = *ptr; if (r_node->nod_type == nod_relation) { - DSQL_CTX candidate = (DSQL_CTX) r_node->nod_arg[e_rel_context]; + dsql_ctx* candidate = (dsql_ctx*) r_node->nod_arg[e_rel_context]; DEV_BLKCHK(candidate, dsql_type_ctx); - DSQL_REL relation = candidate->ctx_relation; + const dsql_rel* relation = candidate->ctx_relation; DEV_BLKCHK(rname, dsql_type_str); if (!strcmp - (reinterpret_cast < const char *>(rname->str_data), + (reinterpret_cast(rname->str_data), relation->rel_name)) { if (context) @@ -3125,15 +3178,15 @@ static DSQL_CTX pass1_cursor_context( DSQL_REQ request, DSQL_NOD cursor, DSQL_NO @param string **/ -static DSQL_NOD pass1_cursor_name(const dsql_req* request, const str* string, +static dsql_nod* pass1_cursor_name(const dsql_req* request, const dsql_str* string, bool existance_flag) { DEV_BLKCHK(string, dsql_type_str); dsql_nod* cursor = NULL; - for (DLLS itr = request->req_cursors; itr; itr = itr->lls_next) { - cursor = (DSQL_NOD) itr->lls_object; - const str* cname = (STR) cursor->nod_arg[e_cur_name]; + for (dsql_lls* itr = request->req_cursors; itr; itr = itr->lls_next) { + cursor = (dsql_nod*) itr->lls_object; + const dsql_str* cname = (dsql_str*) cursor->nod_arg[e_cur_name]; if (!strcmp(string->str_data, cname->str_data)) break; cursor = NULL; @@ -3163,8 +3216,8 @@ static DSQL_NOD pass1_cursor_name(const dsql_req* request, const str* string, @param relation_name **/ -static DSQL_NOD pass1_cursor_reference( DSQL_REQ request, DSQL_NOD cursor, - DSQL_NOD relation_name) +static dsql_nod* pass1_cursor_reference( dsql_req* request, dsql_nod* cursor, + dsql_nod* relation_name) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(cursor, dsql_type_nod); @@ -3172,7 +3225,7 @@ static DSQL_NOD pass1_cursor_reference( DSQL_REQ request, DSQL_NOD cursor, /* Lookup parent request */ - const str* string = (STR) cursor->nod_arg[e_cur_name]; + const dsql_str* string = (dsql_str*) cursor->nod_arg[e_cur_name]; DEV_BLKCHK(string, dsql_type_str); const dsql_sym* symbol = @@ -3189,13 +3242,13 @@ static DSQL_NOD pass1_cursor_reference( DSQL_REQ request, DSQL_NOD cursor, gds_arg_string, "is not defined", 0); - DSQL_REQ parent = (DSQL_REQ) symbol->sym_object; + dsql_req* parent = (dsql_req*) symbol->sym_object; /* Verify that the cursor is appropriate and updatable */ - PAR rv_source = find_record_version(parent, relation_name); + par* rv_source = find_record_version(parent, relation_name); - PAR source; + par* source; if (parent->req_type != REQ_SELECT_UPD || !(source = find_dbkey(parent, relation_name)) || (!rv_source && !(request->req_dbb->dbb_flags & DBB_v3))) @@ -3213,21 +3266,21 @@ static DSQL_NOD pass1_cursor_reference( DSQL_REQ request, DSQL_NOD cursor, /* Build record selection expression */ - DSQL_NOD rse = MAKE_node(nod_rse, e_rse_count); - DSQL_NOD temp = MAKE_node(nod_list, 1); + dsql_nod* rse = MAKE_node(nod_rse, e_rse_count); + dsql_nod* temp = MAKE_node(nod_list, 1); rse->nod_arg[e_rse_streams] = temp; - DSQL_NOD relation_node = pass1_relation(request, relation_name); + dsql_nod* relation_node = pass1_relation(request, relation_name); temp->nod_arg[0] = relation_node; - DSQL_NOD node = MAKE_node(nod_eql, 2); + dsql_nod* node = MAKE_node(nod_eql, 2); rse->nod_arg[e_rse_boolean] = node; node->nod_arg[0] = temp = MAKE_node(nod_dbkey, 1); temp->nod_arg[0] = relation_node; node->nod_arg[1] = temp = MAKE_node(nod_parameter, e_par_count); temp->nod_count = 0; - PAR parameter = request->req_dbkey = + par* parameter = request->req_dbkey = MAKE_parameter(request->req_send, false, false, 0); - temp->nod_arg[e_par_parameter] = (DSQL_NOD) parameter; + temp->nod_arg[e_par_parameter] = (dsql_nod*) parameter; parameter->par_desc = source->par_desc; /* record version will be set only for V4 - for the parent select cursor */ @@ -3239,7 +3292,7 @@ static DSQL_NOD pass1_cursor_reference( DSQL_REQ request, DSQL_NOD cursor, temp->nod_count = 0; parameter = request->req_rec_version = MAKE_parameter(request->req_send, false, false, 0); - temp->nod_arg[e_par_parameter] = (DSQL_NOD) parameter; + temp->nod_arg[e_par_parameter] = (dsql_nod*) parameter; parameter->par_desc = rv_source->par_desc; rse->nod_arg[e_rse_boolean] = @@ -3261,27 +3314,28 @@ static DSQL_NOD pass1_cursor_reference( DSQL_REQ request, DSQL_NOD cursor, @param input **/ -static DSQL_NOD pass1_dbkey( DSQL_REQ request, DSQL_NOD input) +static dsql_nod* pass1_dbkey( dsql_req* request, dsql_nod* input) { - DSQL_NOD node, rel_node; - DLLS stack; - DSQL_CTX context; + dsql_nod* node; + dsql_nod* rel_node; + dsql_lls* stack; + dsql_ctx* context; DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - STR qualifier = (STR) input->nod_arg[0]; + dsql_str* qualifier = (dsql_str*) input->nod_arg[0]; if (!qualifier) { DEV_BLKCHK(qualifier, dsql_type_str); /* No qualifier, if only one context then use, else error */ if ((stack = request->req_context) && !stack->lls_next) { - context = (DSQL_CTX) stack->lls_object; + context = (dsql_ctx*) stack->lls_object; DEV_BLKCHK(context, dsql_type_ctx); node = MAKE_node(nod_dbkey, 1); rel_node = MAKE_node(nod_relation, e_rel_count); - rel_node->nod_arg[0] = (DSQL_NOD) context; + rel_node->nod_arg[0] = (dsql_nod*) context; node->nod_arg[0] = rel_node; return node; } @@ -3289,7 +3343,7 @@ static DSQL_NOD pass1_dbkey( DSQL_REQ request, DSQL_NOD input) else { for (stack = request->req_context; stack; stack = stack->lls_next) { - context = (DSQL_CTX) stack->lls_object; + context = (dsql_ctx*) stack->lls_object; DEV_BLKCHK(context, dsql_type_ctx); if ((!(context->ctx_relation) || strcmp(reinterpret_cast(qualifier->str_data), @@ -3302,7 +3356,7 @@ static DSQL_NOD pass1_dbkey( DSQL_REQ request, DSQL_NOD input) } node = MAKE_node(nod_dbkey, 1); rel_node = MAKE_node(nod_relation, e_rel_count); - rel_node->nod_arg[0] = (DSQL_NOD) context; + rel_node->nod_arg[0] = (dsql_nod*) context; node->nod_arg[0] = rel_node; return node; } @@ -3328,26 +3382,27 @@ static DSQL_NOD pass1_dbkey( DSQL_REQ request, DSQL_NOD input) @param input **/ -static DSQL_NOD pass1_delete( DSQL_REQ request, DSQL_NOD input) +static dsql_nod* pass1_delete( dsql_req* request, dsql_nod* input) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - DSQL_NOD cursor = input->nod_arg[e_del_cursor]; - DSQL_NOD relation = input->nod_arg[e_del_relation]; + dsql_nod* cursor = input->nod_arg[e_del_cursor]; + dsql_nod* relation = input->nod_arg[e_del_relation]; if (cursor && (request->req_flags & REQ_procedure)) { - DSQL_NOD anode = MAKE_node(nod_erase_current, e_erc_count); + dsql_nod* anode = MAKE_node(nod_erase_current, e_erc_count); anode->nod_arg[e_erc_context] = - (DSQL_NOD) pass1_cursor_context(request, cursor, relation); + (dsql_nod*) pass1_cursor_context(request, cursor, relation); return anode; } request->req_type = (cursor) ? REQ_DELETE_CURSOR : REQ_DELETE; - DSQL_NOD node = MAKE_node(nod_erase, e_era_count); + dsql_nod* node = MAKE_node(nod_erase, e_era_count); /* Generate record selection expression */ - DSQL_NOD rse, temp; + dsql_nod* rse; + dsql_nod* temp; if (cursor) rse = pass1_cursor_reference(request, cursor, relation); else { @@ -3378,25 +3433,25 @@ static DSQL_NOD pass1_delete( DSQL_REQ request, DSQL_NOD input) @param input **/ -static DSQL_NOD pass1_derived_table(DSQL_REQ request, DSQL_NOD input, bool proc_flag) +static dsql_nod* pass1_derived_table(dsql_req* request, dsql_nod* input, bool proc_flag) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); TSQL tdsql = GET_THREAD_DATA; - DSQL_NOD node = MAKE_node (nod_derived_table, e_derived_table_count); - STR alias = (STR) input->nod_arg[e_derived_table_alias]; - node->nod_arg[e_derived_table_alias] = (DSQL_NOD) alias; + dsql_nod* node = MAKE_node (nod_derived_table, e_derived_table_count); + dsql_str* alias = (dsql_str*) input->nod_arg[e_derived_table_alias]; + node->nod_arg[e_derived_table_alias] = (dsql_nod*) alias; node->nod_arg[e_derived_table_column_alias] = input->nod_arg[e_derived_table_column_alias]; // Create the context now, because we need to know it for the tables inside. - DSQL_CTX context = PASS1_make_context(request, node); + dsql_ctx* context = PASS1_make_context(request, node); // Save some values to restore after rse process. - DLLS req_base = request->req_context; - DLLS req_union_base = request->req_union_context; - STR req_alias_relation_prefix = request->req_alias_relation_prefix; + dsql_lls* req_base = request->req_context; + dsql_lls* req_union_base = request->req_union_context; + dsql_str* req_alias_relation_prefix = request->req_alias_relation_prefix; request->req_context = NULL; request->req_union_context = NULL; @@ -3404,7 +3459,7 @@ static DSQL_NOD pass1_derived_table(DSQL_REQ request, DSQL_NOD input, bool proc_ // Call PASS1_statement (for nod_select) which will call internally PASS1_rse. // nod_select can contain ORDER BY information. - DSQL_NOD rse = + dsql_nod* rse = PASS1_statement(request, input->nod_arg[e_derived_table_rse], proc_flag); context->ctx_rse = node->nod_arg[e_derived_table_rse] = rse; @@ -3431,7 +3486,7 @@ static DSQL_NOD pass1_derived_table(DSQL_REQ request, DSQL_NOD input, bool proc_ if (node->nod_arg[e_derived_table_column_alias] && node->nod_arg[e_derived_table_column_alias]->nod_count) { - DSQL_NOD list = node->nod_arg[e_derived_table_column_alias]; + dsql_nod* list = node->nod_arg[e_derived_table_column_alias]; // Have both lists the same number of items? if (list->nod_count != rse->nod_arg[e_rse_items]->nod_count) { @@ -3471,12 +3526,12 @@ static DSQL_NOD pass1_derived_table(DSQL_REQ request, DSQL_NOD input, bool proc_ // Generate derived fields and assign alias-name to it. for (int count = 0; count < list->nod_count; count++) { - DSQL_NOD select_item = rse->nod_arg[e_rse_items]->nod_arg[count]; + dsql_nod* select_item = rse->nod_arg[e_rse_items]->nod_arg[count]; // Make new derived field node - DSQL_NOD derived_field = MAKE_node(nod_derived_field, e_derived_field_count); + dsql_nod* derived_field = MAKE_node(nod_derived_field, e_derived_field_count); derived_field->nod_arg[e_derived_field_value] = select_item; derived_field->nod_arg[e_derived_field_name] = list->nod_arg[count]; - derived_field->nod_arg[e_derived_field_scope] = (DSQL_NOD)(ULONG) request->req_scope_level; + derived_field->nod_arg[e_derived_field_scope] = (dsql_nod*)(ULONG) request->req_scope_level; derived_field->nod_desc = select_item->nod_desc; rse->nod_arg[e_rse_items]->nod_arg[count] = derived_field; @@ -3493,7 +3548,7 @@ static DSQL_NOD pass1_derived_table(DSQL_REQ request, DSQL_NOD input, bool proc_ // Check if all root select-items have an derived field else show a message. for (count = 0; count < rse->nod_arg[e_rse_items]->nod_count; count++) { - DSQL_NOD select_item = rse->nod_arg[e_rse_items]->nod_arg[count]; + dsql_nod* select_item = rse->nod_arg[e_rse_items]->nod_arg[count]; if (select_item->nod_type != nod_derived_field) { // No columnname specified for column number %d // @@ -3510,12 +3565,12 @@ static DSQL_NOD pass1_derived_table(DSQL_REQ request, DSQL_NOD input, bool proc_ // Check for ambiguous columnnames inside this derived table. for (count = 0; count < rse->nod_arg[e_rse_items]->nod_count; count++) { - DSQL_NOD select_item1 = rse->nod_arg[e_rse_items]->nod_arg[count]; + dsql_nod* select_item1 = rse->nod_arg[e_rse_items]->nod_arg[count]; for (int count2 = (count + 1); count2 < rse->nod_arg[e_rse_items]->nod_count; count2++) { - DSQL_NOD select_item2 = rse->nod_arg[e_rse_items]->nod_arg[count2]; - STR name1 = (STR) select_item1->nod_arg[e_derived_field_name]; - STR name2 = (STR) select_item2->nod_arg[e_derived_field_name]; + dsql_nod* select_item2 = rse->nod_arg[e_rse_items]->nod_arg[count2]; + dsql_str* name1 = (dsql_str*) select_item1->nod_arg[e_derived_field_name]; + dsql_str* name2 = (dsql_str*) select_item2->nod_arg[e_derived_field_name]; if (!strcmp(reinterpret_cast(name1->str_data), reinterpret_cast(name2->str_data))) { @@ -3567,7 +3622,7 @@ static DSQL_NOD pass1_derived_table(DSQL_REQ request, DSQL_NOD input, bool proc_ @param list **/ -static DSQL_NOD pass1_field( DSQL_REQ request, DSQL_NOD input, USHORT list) +static dsql_nod* pass1_field( dsql_req* request, dsql_nod* input, USHORT list) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -3575,13 +3630,13 @@ static DSQL_NOD pass1_field( DSQL_REQ request, DSQL_NOD input, USHORT list) // CVC: This shameful hack added to allow CHECK constraint implementation via triggers // to be able to work. bool is_check_constraint = false; - DSQL_NOD ddl_node = request->req_ddl_node; + dsql_nod* ddl_node = request->req_ddl_node; if (ddl_node && ddl_node->nod_type == nod_def_constraint) { is_check_constraint = true; } // handle an array element. - DSQL_NOD indices; + dsql_nod* indices; if (input->nod_type == nod_array) { indices = input->nod_arg[e_ary_indices]; input = input->nod_arg[e_ary_array]; @@ -3590,14 +3645,15 @@ static DSQL_NOD pass1_field( DSQL_REQ request, DSQL_NOD input, USHORT list) indices = NULL; } - STR name, qualifier; + dsql_str* name; + dsql_str* qualifier; if (input->nod_count == 1) { - name = (STR) input->nod_arg[0]; + name = (dsql_str*) input->nod_arg[0]; qualifier = NULL; } else { - name = (STR) input->nod_arg[1]; - qualifier = (STR) input->nod_arg[0]; + name = (dsql_str*) input->nod_arg[1]; + qualifier = (dsql_str*) input->nod_arg[0]; } DEV_BLKCHK(name, dsql_type_str); DEV_BLKCHK(qualifier, dsql_type_str); @@ -3640,19 +3696,19 @@ static DSQL_NOD pass1_field( DSQL_REQ request, DSQL_NOD input, USHORT list) /* Try to resolve field against various contexts; if there is an alias, check only against the first matching */ - DLLS ambiguous_ctx_stack = NULL; - DSQL_NOD node = 0; // This var must be initialized. + dsql_lls* ambiguous_ctx_stack = NULL; + dsql_nod* node = 0; // This var must be initialized. - for (DLLS stack = request->req_context; stack; stack = stack->lls_next) + for (dsql_lls* stack = request->req_context; stack; stack = stack->lls_next) { // resolve_context() checks the type of the - // given context, so the cast to DSQL_CTX is safe. + // given context, so the cast to dsql_ctx* is safe. - DSQL_CTX context = reinterpret_cast(stack->lls_object); + dsql_ctx* context = reinterpret_cast(stack->lls_object); - DSQL_FLD field; + dsql_fld* field; if (request->req_alias_relation_prefix && qualifier) { - STR req_qualifier = pass1_alias_concat(request->req_alias_relation_prefix, qualifier); + dsql_str* req_qualifier = pass1_alias_concat(request->req_alias_relation_prefix, qualifier); field = resolve_context(request, name, req_qualifier, context); delete req_qualifier; } @@ -3670,7 +3726,7 @@ static DSQL_NOD pass1_field( DSQL_REQ request, DSQL_NOD input, USHORT list) if (!name) { if (list) { node = MAKE_node(nod_relation, e_rel_count); - node->nod_arg[e_rel_context] = reinterpret_cast(stack->lls_object); + node->nod_arg[e_rel_context] = reinterpret_cast(stack->lls_object); return node; } else { @@ -3761,13 +3817,13 @@ static DSQL_NOD pass1_field( DSQL_REQ request, DSQL_NOD input, USHORT list) // Because every select item has an alias we can just walk // through the list and return the correct node when found. - DSQL_NOD* ptr = context->ctx_rse->nod_arg[e_rse_items]->nod_arg; - DSQL_NOD* end = ptr + context->ctx_rse->nod_arg[e_rse_items]->nod_count; + dsql_nod** ptr = context->ctx_rse->nod_arg[e_rse_items]->nod_arg; + dsql_nod** end = ptr + context->ctx_rse->nod_arg[e_rse_items]->nod_count; for (; ptr < end; ptr++) { - DSQL_NOD node_select_item = *ptr; + dsql_nod* node_select_item = *ptr; // select-item should always be a alias! if (node_select_item->nod_type == nod_derived_field) { - STR string = (STR) node_select_item->nod_arg[e_derived_field_name]; + dsql_str* string = (dsql_str*) node_select_item->nod_arg[e_derived_field_name]; if (!strcmp(reinterpret_cast(name->str_data), reinterpret_cast(string->str_data))) { @@ -3865,7 +3921,7 @@ static bool pass1_found_aggregate(const dsql_nod* node, USHORT check_scope_level case nod_udf: /* If arguments are given to the UDF then there's a node list */ if (node->nod_count == 2) { - found |= pass1_found_aggregate(node->nod_arg [1], + found |= pass1_found_aggregate(node->nod_arg[1], check_scope_level, match_type, current_scope_level_equal); } break; @@ -4005,7 +4061,7 @@ static bool pass1_found_aggregate(const dsql_nod* node, USHORT check_scope_level case nod_map: { const dsql_map* map = - reinterpret_cast (node->nod_arg[e_map_map]); + reinterpret_cast(node->nod_arg[e_map_map]); found |= pass1_found_aggregate(map->map_node, check_scope_level, match_type, current_scope_level_equal); break; @@ -4054,14 +4110,15 @@ static bool pass1_found_field(const dsql_nod* node, USHORT check_scope_level, { DEV_BLKCHK(node, dsql_type_nod); - if (node == NULL) return false; + if (node == NULL) + return false; bool found = false; switch (node->nod_type) { case nod_field: { - DSQL_CTX field_context = (DSQL_CTX) node->nod_arg[e_fld_context]; + const dsql_ctx* field_context = (dsql_ctx*) node->nod_arg[e_fld_context]; DEV_BLKCHK(field_context, dsql_type_ctx); *field = true; switch (match_type) { @@ -4092,7 +4149,7 @@ static bool pass1_found_field(const dsql_nod* node, USHORT check_scope_level, case nod_udf: /* If arguments are given to the UDF then there's a node list */ if (node->nod_count == 2) { - found |= pass1_found_field(node->nod_arg [1], check_scope_level, + found |= pass1_found_field(node->nod_arg[1], check_scope_level, match_type, field); } break; @@ -4203,7 +4260,7 @@ static bool pass1_found_field(const dsql_nod* node, USHORT check_scope_level, case nod_map: { const dsql_map* map = - reinterpret_cast (node->nod_arg[e_map_map]); + reinterpret_cast (node->nod_arg[e_map_map]); found |= pass1_found_field(map->map_node, check_scope_level, match_type, field); break; @@ -4243,7 +4300,7 @@ static bool pass1_found_field(const dsql_nod* node, USHORT check_scope_level, @param select_list **/ -static DSQL_NOD pass1_group_by_list(DSQL_REQ request, DSQL_NOD input, DSQL_NOD select_list) +static dsql_nod* pass1_group_by_list(dsql_req* request, dsql_nod* input, dsql_nod* select_list) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -4254,15 +4311,15 @@ static DSQL_NOD pass1_group_by_list(DSQL_REQ request, DSQL_NOD input, DSQL_NOD s // If it's a position pick it from the select list. // If none of both then just stack up the node. - DLLS stack = NULL; - DSQL_NOD* ptr = input->nod_arg; - for (DSQL_NOD* end = ptr + input->nod_count; ptr < end; ptr++) { + dsql_lls* stack = NULL; + dsql_nod** ptr = input->nod_arg; + for (dsql_nod** end = ptr + input->nod_count; ptr < end; ptr++) { DEV_BLKCHK(*ptr, dsql_type_nod); - DSQL_NOD sub = (*ptr); + dsql_nod* sub = (*ptr); if (sub->nod_type == nod_field_name) { // check for field or relation node - DSQL_NOD frnode = pass1_field(request, sub, 1); + dsql_nod* frnode = pass1_field(request, sub, 1); // AB: nod_derived_field added because that's a virtual field. if (frnode->nod_type == nod_field || frnode->nod_type == nod_derived_field) { LLS_PUSH(frnode, &stack); @@ -4286,7 +4343,7 @@ static DSQL_NOD pass1_group_by_list(DSQL_REQ request, DSQL_NOD input, DSQL_NOD s LLS_PUSH(PASS1_node(request, *ptr, false), &stack); } // Finally make the complete list. - DSQL_NOD node = MAKE_list(stack); + dsql_nod* node = MAKE_list(stack); return node; } @@ -4302,21 +4359,23 @@ static DSQL_NOD pass1_group_by_list(DSQL_REQ request, DSQL_NOD input, DSQL_NOD s @param input **/ -static DSQL_NOD pass1_insert( DSQL_REQ request, DSQL_NOD input) +static dsql_nod* pass1_insert( dsql_req* request, dsql_nod* input) { - DSQL_NOD *ptr, *ptr2, *end; - DLLS stack; + dsql_nod** ptr; + dsql_nod** ptr2; + dsql_nod** end; + dsql_lls* stack; DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); request->req_type = REQ_INSERT; - DSQL_NOD node = MAKE_node(nod_store, e_sto_count); + dsql_nod* node = MAKE_node(nod_store, e_sto_count); /* Process SELECT expression, if present */ - DSQL_NOD values; - DSQL_NOD rse = input->nod_arg[e_ins_select]; + dsql_nod* values; + dsql_nod* rse = input->nod_arg[e_ins_select]; if (rse) { node->nod_arg[e_sto_rse] = rse = PASS1_rse(request, rse, rse->nod_arg[e_sel_order], @@ -4328,36 +4387,36 @@ static DSQL_NOD pass1_insert( DSQL_REQ request, DSQL_NOD input) /* Process relation */ - DSQL_NOD temp = pass1_relation(request, input->nod_arg[e_ins_relation]); + dsql_nod* temp = pass1_relation(request, input->nod_arg[e_ins_relation]); node->nod_arg[e_sto_relation] = temp; - DSQL_CTX context = (DSQL_CTX) temp->nod_arg[0]; + dsql_ctx* context = (dsql_ctx*) temp->nod_arg[0]; DEV_BLKCHK(context, dsql_type_ctx); - DSQL_REL relation = context->ctx_relation; + dsql_rel* relation = context->ctx_relation; /* If there isn't a field list, generate one */ - DSQL_NOD fields = input->nod_arg[e_ins_fields]; + dsql_nod* fields = input->nod_arg[e_ins_fields]; if (fields) { fields = PASS1_node(request, fields, false); /* begin IBO hack */ for (ptr = fields->nod_arg, end = ptr + fields->nod_count; ptr < end; ptr++) { - DSQL_CTX tmp_ctx = 0; + dsql_ctx* tmp_ctx = 0; DEV_BLKCHK (*ptr, dsql_type_nod); temp = *ptr; if (temp->nod_type == nod_field && - (tmp_ctx = (DSQL_CTX) temp->nod_arg[e_fld_context]) != 0 && + (tmp_ctx = (dsql_ctx*) temp->nod_arg[e_fld_context]) != 0 && tmp_ctx->ctx_relation && strcmp (tmp_ctx->ctx_relation->rel_name, relation->rel_name)) { - DSQL_REL bad_rel = tmp_ctx->ctx_relation; - DSQL_FLD bad_fld = (DSQL_FLD) temp->nod_arg[e_fld_field]; + dsql_rel* bad_rel = tmp_ctx->ctx_relation; + dsql_fld* bad_fld = (dsql_fld*) temp->nod_arg[e_fld_field]; // At this time, "fields" has been replaced by the processed list in - // the same variable, so we refer again to input->nod_arg [e_ins_fields]. + // the same variable, so we refer again to input->nod_arg[e_ins_fields]. field_error (bad_rel ? (TEXT*) bad_rel->rel_name : NULL, bad_fld ? (TEXT*) bad_fld->fld_name : NULL, - input->nod_arg [e_ins_fields]->nod_arg[ptr - fields->nod_arg]); + input->nod_arg[e_ins_fields]->nod_arg[ptr - fields->nod_arg]); } } /* end IBO hack */ @@ -4365,7 +4424,7 @@ static DSQL_NOD pass1_insert( DSQL_REQ request, DSQL_NOD input) else { /* CVC: Ann Harrison requested to skip COMPUTED fields in INSERT w/o field list. */ stack = NULL; - for (DSQL_FLD field = relation->rel_fields; field; field = field->fld_next) { + for (dsql_fld* field = relation->rel_fields; field; field = field->fld_next) { if (field->fld_flags & FLD_computed) { continue; } @@ -4418,12 +4477,12 @@ static DSQL_NOD pass1_insert( DSQL_REQ request, DSQL_NOD input) @param proc_flag **/ -static DSQL_NOD pass1_join(DSQL_REQ request, DSQL_NOD input, bool proc_flag) +static dsql_nod* pass1_join(dsql_req* request, dsql_nod* input, bool proc_flag) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - DSQL_NOD node = MAKE_node(input->nod_type, input->nod_count); + dsql_nod* node = MAKE_node(input->nod_type, input->nod_count); // First process type. node->nod_arg[e_join_type] = PASS1_node(request, input->nod_arg[e_join_type], proc_flag); @@ -4482,12 +4541,12 @@ static DSQL_NOD pass1_join(DSQL_REQ request, DSQL_NOD input, bool proc_flag) @param input **/ -static DSQL_NOD pass1_label(DSQL_REQ request, DSQL_NOD input) +static dsql_nod* pass1_label(dsql_req* request, dsql_nod* input) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - DSQL_NOD label = NULL; + dsql_nod* label = NULL; USHORT number = 0, position = 0; // retrieve a label @@ -4511,15 +4570,15 @@ static DSQL_NOD pass1_label(DSQL_REQ request, DSQL_NOD input) // look for a label, if specified - STR string = NULL; + dsql_str* string = NULL; if (label) { fb_assert(label->nod_type == nod_label); - string = (STR) label->nod_arg[e_label_name]; + string = (dsql_str*) label->nod_arg[e_label_name]; TEXT* label_string = (TEXT*) string->str_data; int index = request->req_loop_level; - for (DLLS stack = request->req_labels; stack; stack = stack->lls_next) { - STR obj = (STR) stack->lls_object; + for (dsql_lls* stack = request->req_labels; stack; stack = stack->lls_next) { + dsql_str* obj = (dsql_str*) stack->lls_object; if (obj) { TEXT* obj_string = (TEXT*) obj->str_data; if (!strcmp(label_string, obj_string)) { @@ -4571,7 +4630,7 @@ static DSQL_NOD pass1_label(DSQL_REQ request, DSQL_NOD input) label = MAKE_node(nod_label, e_label_count); // this label is unnamed, i.e. its nod_arg[e_label_name] is NULL } - label->nod_arg[e_label_number] = (DSQL_NOD) (IPTR) number; + label->nod_arg[e_label_number] = (dsql_nod*) (IPTR) number; return label; } @@ -4589,26 +4648,26 @@ static DSQL_NOD pass1_label(DSQL_REQ request, DSQL_NOD input) @param field **/ -static DSQL_NOD pass1_make_derived_field(DSQL_REQ request, TSQL tdsql, DSQL_NOD select_item) +static dsql_nod* pass1_make_derived_field(dsql_req* request, TSQL tdsql, dsql_nod* select_item) { DEV_BLKCHK(select_item, dsql_type_nod); switch (select_item->nod_type) { case nod_field : { - DSQL_FLD field = (DSQL_FLD) select_item->nod_arg[e_fld_field]; + dsql_fld* field = (dsql_fld*) select_item->nod_arg[e_fld_field]; DEV_BLKCHK(field, dsql_type_fld); // Copy fieldname to a new string. - STR alias = FB_NEW_RPT(*tdsql->tsql_default, strlen(field->fld_name)) str; + dsql_str* alias = FB_NEW_RPT(*tdsql->tsql_default, strlen(field->fld_name)) dsql_str; strcpy(alias->str_data, field->fld_name); alias->str_length = strlen(field->fld_name); // Create a derived field and hook in. - DSQL_NOD derived_field = MAKE_node(nod_derived_field, e_derived_field_count); + dsql_nod* derived_field = MAKE_node(nod_derived_field, e_derived_field_count); derived_field->nod_arg[e_derived_field_value] = select_item; - derived_field->nod_arg[e_derived_field_name] = (DSQL_NOD) alias; - derived_field->nod_arg[e_derived_field_scope] = (DSQL_NOD)(ULONG) request->req_scope_level; + derived_field->nod_arg[e_derived_field_name] = (dsql_nod*) alias; + derived_field->nod_arg[e_derived_field_scope] = (dsql_nod*)(ULONG) request->req_scope_level; derived_field->nod_desc = select_item->nod_desc; return derived_field; } @@ -4617,16 +4676,16 @@ static DSQL_NOD pass1_make_derived_field(DSQL_REQ request, TSQL tdsql, DSQL_NOD case nod_alias: { // Copy aliasname to a new string. - STR alias_alias = (STR) select_item->nod_arg[e_alias_alias]; - STR alias = FB_NEW_RPT(*tdsql->tsql_default, strlen(alias_alias->str_data)) str; + dsql_str* alias_alias = (dsql_str*) select_item->nod_arg[e_alias_alias]; + dsql_str* alias = FB_NEW_RPT(*tdsql->tsql_default, strlen(alias_alias->str_data)) dsql_str; strcpy(alias->str_data, alias_alias->str_data); alias->str_length = strlen(alias_alias->str_data); // Create a derived field and ignore alias node. - DSQL_NOD derived_field = MAKE_node(nod_derived_field, e_derived_field_count); + dsql_nod* derived_field = MAKE_node(nod_derived_field, e_derived_field_count); derived_field->nod_arg[e_derived_field_value] = select_item->nod_arg[e_alias_value]; - derived_field->nod_arg[e_derived_field_name] = (DSQL_NOD) alias; - derived_field->nod_arg[e_derived_field_scope] = (DSQL_NOD)(ULONG) request->req_scope_level; + derived_field->nod_arg[e_derived_field_name] = (dsql_nod*) alias; + derived_field->nod_arg[e_derived_field_scope] = (dsql_nod*)(ULONG) request->req_scope_level; derived_field->nod_desc = select_item->nod_desc; return derived_field; } @@ -4634,14 +4693,14 @@ static DSQL_NOD pass1_make_derived_field(DSQL_REQ request, TSQL tdsql, DSQL_NOD case nod_map : { // Aggregate's have map on top. - DSQL_MAP map = (DSQL_MAP) select_item->nod_arg[e_map_map]; - DSQL_NOD derived_field = pass1_make_derived_field(request, tdsql, map->map_node); + dsql_map* map = (dsql_map*) select_item->nod_arg[e_map_map]; + dsql_nod* derived_field = pass1_make_derived_field(request, tdsql, map->map_node); // If we had succesfully made a derived field node change it // with orginal map. if (derived_field->nod_type == nod_derived_field) { derived_field->nod_arg[e_derived_field_value] = select_item; - derived_field->nod_arg[e_derived_field_scope] = (DSQL_NOD)(ULONG) request->req_scope_level; + derived_field->nod_arg[e_derived_field_scope] = (dsql_nod*)(ULONG) request->req_scope_level; derived_field->nod_desc = select_item->nod_desc; return derived_field; } @@ -4671,8 +4730,8 @@ static DSQL_NOD pass1_make_derived_field(DSQL_REQ request, TSQL tdsql, DSQL_NOD @param proc_flag **/ -static void pass1_put_args_on_stack( DSQL_REQ request, DSQL_NOD input, - DLLS* stack, bool proc_flag) +static void pass1_put_args_on_stack( dsql_req* request, dsql_nod* input, + dsql_lls** stack, bool proc_flag) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -4682,8 +4741,8 @@ static void pass1_put_args_on_stack( DSQL_REQ request, DSQL_NOD input, return; } - DSQL_NOD* ptr = input->nod_arg; - for (DSQL_NOD* end = ptr + input->nod_count; ptr < end; ptr++) { + dsql_nod** ptr = input->nod_arg; + for (dsql_nod** end = ptr + input->nod_count; ptr < end; ptr++) { pass1_put_args_on_stack(request, *ptr, stack, proc_flag); } } @@ -4701,14 +4760,14 @@ static void pass1_put_args_on_stack( DSQL_REQ request, DSQL_NOD input, @param input **/ -static DSQL_NOD pass1_relation( DSQL_REQ request, DSQL_NOD input) +static dsql_nod* pass1_relation( dsql_req* request, dsql_nod* input) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - DSQL_NOD node = MAKE_node(nod_relation, e_rel_count); + dsql_nod* node = MAKE_node(nod_relation, e_rel_count); - node->nod_arg[e_rel_context] = (DSQL_NOD) PASS1_make_context(request, input); + node->nod_arg[e_rel_context] = (dsql_nod*) PASS1_make_context(request, input); return node; } @@ -4731,30 +4790,30 @@ static DSQL_NOD pass1_relation( DSQL_REQ request, DSQL_NOD input) @param alias_list **/ -static DSQL_NOD pass1_alias_list(DSQL_REQ request, DSQL_NOD alias_list) +static dsql_nod* pass1_alias_list(dsql_req* request, dsql_nod* alias_list) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(alias_list, dsql_type_nod); - DSQL_NOD* arg = alias_list->nod_arg; - DSQL_NOD* end = arg + alias_list->nod_count; + dsql_nod** arg = alias_list->nod_arg; + dsql_nod** end = arg + alias_list->nod_count; - STR internal_qualifier; + dsql_str* internal_qualifier; if (request->req_alias_relation_prefix) { internal_qualifier = - pass1_alias_concat(request->req_alias_relation_prefix, (STR)* arg); + pass1_alias_concat(request->req_alias_relation_prefix, (dsql_str*) *arg); } else { - internal_qualifier = (STR) *arg; + internal_qualifier = (dsql_str*) *arg; } // check the first alias in the list with the relations // in the current context for a match. - DSQL_REL relation = 0; - DSQL_CTX context = pass1_alias(request, request->req_context, internal_qualifier); + dsql_rel* relation = 0; + dsql_ctx* context = pass1_alias(request, request->req_context, internal_qualifier); if (context) { if (alias_list->nod_count == 1) { - return (DSQL_NOD) context; + return (dsql_nod*) context; } relation = context->ctx_relation; } @@ -4764,14 +4823,14 @@ static DSQL_NOD pass1_alias_list(DSQL_REQ request, DSQL_NOD alias_list) // a base table having a matching table name or alias. if (!context) { - for (DLLS stack = request->req_context; stack; stack = stack->lls_next) { - context = (DSQL_CTX) stack->lls_object; + for (dsql_lls* stack = request->req_context; stack; stack = stack->lls_next) { + context = (dsql_ctx*) stack->lls_object; DEV_BLKCHK(context, dsql_type_ctx); if (context->ctx_scope_level == request->req_scope_level && context->ctx_relation) { if (relation = pass1_base_table(request, context->ctx_relation, - (STR) *arg)) { + (dsql_str*) *arg)) { break; } } @@ -4784,19 +4843,19 @@ static DSQL_NOD pass1_alias_list(DSQL_REQ request, DSQL_NOD alias_list) ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 104, gds_arg_gds, gds_dsql_command_err, gds_arg_gds, gds_dsql_no_relation_alias, - gds_arg_string, ((STR) *arg)->str_data, 0); + gds_arg_string, ((dsql_str*) *arg)->str_data, 0); } // Is this context a derived table. if (!context->ctx_relation && !context->ctx_procedure && context->ctx_rse) { - STR tmp_qualifier = (STR) *arg; + dsql_str* tmp_qualifier = (dsql_str*) *arg; arg++; - tmp_qualifier = pass1_alias_concat(tmp_qualifier, (STR) *arg); - DSQL_CTX dt_context = + tmp_qualifier = pass1_alias_concat(tmp_qualifier, (dsql_str*) *arg); + dsql_ctx* dt_context = pass1_alias(request, context->ctx_childs_derived_table, tmp_qualifier); if (!dt_context) { dt_context = - pass1_alias(request, context->ctx_childs_derived_table, (STR) *arg); + pass1_alias(request, context->ctx_childs_derived_table, (dsql_str*) *arg); } if (!dt_context) { @@ -4804,15 +4863,15 @@ static DSQL_NOD pass1_alias_list(DSQL_REQ request, DSQL_NOD alias_list) ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 104, gds_arg_gds, gds_dsql_command_err, gds_arg_gds, gds_dsql_no_relation_alias, - gds_arg_string, ((STR) *arg)->str_data, 0); + gds_arg_string, ((dsql_str*) *arg)->str_data, 0); } - return (DSQL_NOD) dt_context; + return (dsql_nod*) dt_context; } // find the base table using the specified alias list, skipping the first one // since we already matched it to the context. for (arg++; arg < end; arg++) { - if (!(relation = pass1_base_table(request, relation, (STR) *arg))) { + if (!(relation = pass1_base_table(request, relation, (dsql_str*) *arg))) { break; } } @@ -4822,12 +4881,12 @@ static DSQL_NOD pass1_alias_list(DSQL_REQ request, DSQL_NOD alias_list) ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 104, gds_arg_gds, gds_dsql_command_err, gds_arg_gds, gds_dsql_no_relation_alias, - gds_arg_string, ((STR) *arg)->str_data, 0); + gds_arg_string, ((dsql_str*) *arg)->str_data, 0); } // make up a dummy context to hold the resultant relation. TSQL tdsql = GET_THREAD_DATA; - DSQL_CTX new_context = FB_NEW(*tdsql->tsql_default) dsql_ctx; + dsql_ctx* new_context = FB_NEW(*tdsql->tsql_default) dsql_ctx; new_context->ctx_context = context->ctx_context; new_context->ctx_relation = relation; @@ -4837,23 +4896,23 @@ static DSQL_NOD pass1_alias_list(DSQL_REQ request, DSQL_NOD alias_list) USHORT alias_length = alias_list->nod_count; for (arg = alias_list->nod_arg; arg < end; arg++) { DEV_BLKCHK(*arg, dsql_type_str); - alias_length += static_cast < USHORT > (((STR) *arg)->str_length); + alias_length += static_cast < USHORT > (((dsql_str*) *arg)->str_length); } - STR alias = FB_NEW_RPT(*tdsql->tsql_default, alias_length) str; + dsql_str* alias = FB_NEW_RPT(*tdsql->tsql_default, alias_length) dsql_str; alias->str_length = alias_length; TEXT* p = new_context->ctx_alias = (TEXT*) alias->str_data; for (arg = alias_list->nod_arg; arg < end; arg++) { DEV_BLKCHK(*arg, dsql_type_str); - for (const TEXT* q = (TEXT*) ((STR) *arg)->str_data; *q;) + for (const TEXT* q = (TEXT*) ((dsql_str*) *arg)->str_data; *q;) *p++ = *q++; *p++ = ' '; } p[-1] = 0; - return (DSQL_NOD) new_context; + return (dsql_nod*) new_context; } @@ -4871,9 +4930,9 @@ static DSQL_NOD pass1_alias_list(DSQL_REQ request, DSQL_NOD alias_list) @param alias **/ -static DSQL_CTX pass1_alias(DSQL_REQ request, DLLS stack, STR alias) +static dsql_ctx* pass1_alias(dsql_req* request, dsql_lls* stack, dsql_str* alias) { - DSQL_CTX relation_context = NULL; + dsql_ctx* relation_context = NULL; DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(alias, dsql_type_str); @@ -4882,7 +4941,7 @@ static DSQL_CTX pass1_alias(DSQL_REQ request, DLLS stack, STR alias) // to find one that has a relation name or alias // name which matches the identifier passed. for (; stack; stack = stack->lls_next) { - DSQL_CTX context = (DSQL_CTX) stack->lls_object; + dsql_ctx* context = (dsql_ctx*) stack->lls_object; if (context->ctx_scope_level != request->req_scope_level) { continue; } @@ -4935,7 +4994,7 @@ static DSQL_CTX pass1_alias(DSQL_REQ request, DLLS stack, STR alias) @param input2 **/ -static str* pass1_alias_concat(const str* input1, const str* input2) +static dsql_str* pass1_alias_concat(const dsql_str* input1, const dsql_str* input2) { TSQL tdsql = GET_THREAD_DATA; @@ -4952,7 +5011,7 @@ static str* pass1_alias_concat(const str* input1, const str* input2) if (input2) { length += input2->str_length; } - STR output = FB_NEW_RPT(*tdsql->tsql_default, length) str; + dsql_str* output = FB_NEW_RPT(*tdsql->tsql_default, length) dsql_str; output->str_length = length; TEXT* ptr = output->str_data; if (input1) { @@ -4981,7 +5040,7 @@ static str* pass1_alias_concat(const str* input1, const str* input2) @param alias **/ -static DSQL_REL pass1_base_table( DSQL_REQ request, DSQL_REL relation, STR alias) +static dsql_rel* pass1_base_table( dsql_req* request, dsql_rel* relation, dsql_str* alias) { DEV_BLKCHK(request, dsql_type_req); @@ -5006,11 +5065,12 @@ static DSQL_REL pass1_base_table( DSQL_REQ request, DSQL_REL relation, STR alias @param request @param input @param order + @param rows @param update_lock **/ -static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, - DSQL_NOD rows, DSQL_NOD update_lock) +static dsql_nod* pass1_rse( dsql_req* request, dsql_nod* input, dsql_nod* order, + dsql_nod* rows, dsql_nod* update_lock) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -5018,7 +5078,7 @@ static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, TSQL tdsql = GET_THREAD_DATA; - DSQL_NOD aggregate = NULL; + dsql_nod* aggregate = NULL; /* Handle implicit union case first. Maybe it's not a union */ @@ -5036,17 +5096,17 @@ static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, /* Save the original base of the context stack and process relations */ - DSQL_CTX parent_context = NULL; - DSQL_NOD parent_rse = NULL; - DSQL_NOD target_rse = MAKE_node(nod_rse, e_rse_count); - DSQL_NOD rse = target_rse; + dsql_ctx* parent_context = NULL; + dsql_nod* parent_rse = NULL; + dsql_nod* target_rse = MAKE_node(nod_rse, e_rse_count); + dsql_nod* rse = target_rse; rse->nod_arg[e_rse_lock] = update_lock; - DSQL_NOD list = rse->nod_arg[e_rse_streams] = + dsql_nod* list = rse->nod_arg[e_rse_streams] = PASS1_node(request, input->nod_arg[e_sel_from], false); - DSQL_REL relation; + dsql_rel* relation; if (update_lock && (list->nod_count != 1 || list->nod_arg[0]->nod_type != nod_relation || - !(relation = ((DSQL_CTX)list->nod_arg[0]->nod_arg[e_rel_context])->ctx_relation) || + !(relation = ((dsql_ctx*)list->nod_arg[0]->nod_arg[e_rel_context])->ctx_relation) || (relation->rel_flags & REL_view) || (relation->rel_flags & REL_external) )) { ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 104, @@ -5054,7 +5114,7 @@ static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, gds_arg_gds, gds_random, gds_arg_string, "WITH LOCK", 0); } - DSQL_NOD node; + dsql_nod* node; /* Process LIMIT and/or ROWS, if any */ @@ -5072,12 +5132,12 @@ static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, const int skip_index = rows ? e_rows_skip : e_limit_skip; if (node->nod_arg[length_index]) { - DSQL_NOD sub = PASS1_node(request, node->nod_arg[length_index], false); + dsql_nod* sub = PASS1_node(request, node->nod_arg[length_index], false); rse->nod_arg[e_rse_first] = sub; set_parameter_type(sub, node, false); } if (node->nod_arg[skip_index]) { - DSQL_NOD sub = PASS1_node(request, node->nod_arg[skip_index], false); + dsql_nod* sub = PASS1_node(request, node->nod_arg[skip_index], false); rse->nod_arg[e_rse_skip] = sub; set_parameter_type(sub, node, false); } @@ -5106,8 +5166,9 @@ static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, } #endif - DLLS stack; - DSQL_NOD *ptr, *end; + dsql_lls* stack; + dsql_nod** ptr; + dsql_nod** end; /* Process select list, if any. If not, generate one */ @@ -5131,12 +5192,12 @@ static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, USHORT i = 0; for (ptr = list->nod_arg, end = ptr + list->nod_count; ptr < end; i++, ptr++) { node->nod_arg[i] = MAKE_node(nod_field_name, e_fln_count); - TEXT * temp = ((DSQL_CTX)(*ptr)->nod_arg[e_fld_context])->ctx_relation->rel_name; + TEXT * temp = ((dsql_ctx*)(*ptr)->nod_arg[e_fld_context])->ctx_relation->rel_name; node->nod_arg[i]->nod_arg[e_fln_context] = - (DSQL_NOD) MAKE_string(temp, strlen(temp)); - temp = ((DSQL_FLD)(*ptr)->nod_arg[e_fld_field])->fld_name; + (dsql_nod*) MAKE_string(temp, strlen(temp)); + temp = ((dsql_fld*)(*ptr)->nod_arg[e_fld_field])->fld_name; node->nod_arg[i]->nod_arg[e_fln_name] = - (DSQL_NOD) MAKE_string(temp, strlen(temp)); + (dsql_nod*) MAKE_string(temp, strlen(temp)); } input->nod_arg[e_sel_list] = node; */ @@ -5170,7 +5231,7 @@ static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, parent_context->ctx_context = request->req_context_number++; parent_context->ctx_scope_level = request->req_scope_level; aggregate = MAKE_node(nod_aggregate, e_agg_count); - aggregate->nod_arg[e_agg_context] = (DSQL_NOD) parent_context; + aggregate->nod_arg[e_agg_context] = (dsql_nod*) parent_context; aggregate->nod_arg[e_agg_rse] = rse; parent_rse = target_rse = MAKE_node(nod_rse, e_rse_count); parent_rse->nod_arg[e_rse_streams] = list = MAKE_node(nod_list, 1); @@ -5362,20 +5423,21 @@ static DSQL_NOD pass1_rse( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order, @param proc_flag **/ -static DSQL_NOD pass1_searched_case( DSQL_REQ request, DSQL_NOD input, bool proc_flag) +static dsql_nod* pass1_searched_case( dsql_req* request, dsql_nod* input, bool proc_flag) { - DSQL_NOD *ptr, *end; + dsql_nod** ptr; + dsql_nod** end; DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); DEV_BLKCHK(input->nod_arg[0], dsql_type_nod); - DSQL_NOD node = MAKE_node(nod_searched_case, 2); + dsql_nod* node = MAKE_node(nod_searched_case, 2); - DSQL_NOD list = input->nod_arg[0]; + dsql_nod* list = input->nod_arg[0]; /* build boolean-expression list */ - DLLS stack = NULL; + dsql_lls* stack = NULL; for (ptr = list->nod_arg, end = ptr + list->nod_count; ptr < end; ptr += 2) { pass1_put_args_on_stack(request, *ptr, &stack, proc_flag); } @@ -5416,7 +5478,7 @@ static DSQL_NOD pass1_searched_case( DSQL_REQ request, DSQL_NOD input, bool proc @param input **/ -static DSQL_NOD pass1_sel_list( DSQL_REQ request, DSQL_NOD input) +static dsql_nod* pass1_sel_list( dsql_req* request, dsql_nod* input) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -5427,15 +5489,15 @@ static DSQL_NOD pass1_sel_list( DSQL_REQ request, DSQL_NOD input) just stack up the node. */ - DLLS stack = NULL; - DSQL_NOD* ptr = input->nod_arg; - for (DSQL_NOD* end = ptr + input->nod_count; ptr < end; ptr++) { + dsql_lls* stack = NULL; + dsql_nod** ptr = input->nod_arg; + for (dsql_nod** end = ptr + input->nod_count; ptr < end; ptr++) { DEV_BLKCHK(*ptr, dsql_type_nod); if ((*ptr)->nod_type == nod_field_name) { /* check for field or relation node */ - DSQL_NOD frnode = pass1_field(request, *ptr, 1); + dsql_nod* frnode = pass1_field(request, *ptr, 1); // AB: nod_derived_field added because that's a virtual field. if (frnode->nod_type == nod_field || frnode->nod_type == nod_derived_field) { LLS_PUSH(frnode, &stack); @@ -5447,7 +5509,7 @@ static DSQL_NOD pass1_sel_list( DSQL_REQ request, DSQL_NOD input) else LLS_PUSH(PASS1_node(request, *ptr, false), &stack); } - DSQL_NOD node = MAKE_list(stack); + dsql_nod* node = MAKE_list(stack); return node; } @@ -5465,24 +5527,25 @@ static DSQL_NOD pass1_sel_list( DSQL_REQ request, DSQL_NOD input) @param proc_flag **/ -static DSQL_NOD pass1_simple_case( DSQL_REQ request, DSQL_NOD input, bool proc_flag) +static dsql_nod* pass1_simple_case( dsql_req* request, dsql_nod* input, bool proc_flag) { - DSQL_NOD *ptr, *end; + dsql_nod** ptr; + dsql_nod** end; DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - DEV_BLKCHK(input->nod_arg [0], dsql_type_nod); + DEV_BLKCHK(input->nod_arg[0], dsql_type_nod); - DSQL_NOD node = MAKE_node(nod_simple_case, 3); + dsql_nod* node = MAKE_node(nod_simple_case, 3); // build case_operand node node->nod_arg[e_simple_case_case_operand] = PASS1_node(request, input->nod_arg[0], proc_flag); - DSQL_NOD list = input->nod_arg[1]; + dsql_nod* list = input->nod_arg[1]; // build when_operand list - DLLS stack = NULL; + dsql_lls* stack = NULL; for (ptr = list->nod_arg, end = ptr + list->nod_count; ptr < end; ptr += 2) { pass1_put_args_on_stack(request, *ptr, &stack, proc_flag); } @@ -5496,14 +5559,14 @@ static DSQL_NOD pass1_simple_case( DSQL_REQ request, DSQL_NOD input, bool proc_f for (++ptr; ptr < end; ptr += 2) { pass1_put_args_on_stack(request, *ptr, &stack, proc_flag); } - pass1_put_args_on_stack(request, input->nod_arg [2], &stack, proc_flag); + pass1_put_args_on_stack(request, input->nod_arg[2], &stack, proc_flag); node->nod_arg[e_simple_case_results] = MAKE_list(stack); // build list for making describe information from // case_operand and when_operands this is used for // setting parameter describers if used in this case list = node->nod_arg[e_simple_case_when_operands]; - DSQL_NOD node1 = MAKE_node(nod_list, list->nod_count + 1); + dsql_nod* node1 = MAKE_node(nod_list, list->nod_count + 1); int i = 0; node1->nod_arg[i++] = node->nod_arg[e_simple_case_case_operand]; for (ptr = list->nod_arg, end = ptr + list->nod_count; ptr < end; ++ptr, ++i) @@ -5548,7 +5611,7 @@ static DSQL_NOD pass1_simple_case( DSQL_REQ request, DSQL_NOD input, bool proc_f @param s_list **/ -static DSQL_NOD pass1_sort( DSQL_REQ request, DSQL_NOD input, DSQL_NOD s_list) +static dsql_nod* pass1_sort( dsql_req* request, dsql_nod* input, dsql_nod* s_list) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -5562,29 +5625,29 @@ static DSQL_NOD pass1_sort( DSQL_REQ request, DSQL_NOD input, DSQL_NOD s_list) /* Node is simply to be rebuilt -- just recurse merrily */ - DSQL_NOD node = MAKE_node(input->nod_type, input->nod_count); - DSQL_NOD* ptr2 = node->nod_arg; + dsql_nod* node = MAKE_node(input->nod_type, input->nod_count); + dsql_nod** ptr2 = node->nod_arg; - DSQL_NOD* ptr = input->nod_arg; - for (DSQL_NOD* end = ptr + input->nod_count; ptr < end; ptr++) { + dsql_nod** ptr = input->nod_arg; + for (dsql_nod** end = ptr + input->nod_count; ptr < end; ptr++) { DEV_BLKCHK(*ptr, dsql_type_nod); - DSQL_NOD node1 = *ptr; + dsql_nod* node1 = *ptr; if (node1->nod_type != nod_order) { ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 104, gds_arg_gds, gds_dsql_command_err, gds_arg_gds, gds_order_by_err, 0); /* invalid ORDER BY clause */ } - DSQL_NOD node2 = MAKE_node(nod_order, e_order_count); + dsql_nod* node2 = MAKE_node(nod_order, e_order_count); node2->nod_arg[e_order_flag] = node1->nod_arg[e_order_flag]; /* asc/desc flag */ node2->nod_arg[e_order_nulls] = node1->nod_arg[e_order_nulls]; /* nulls first/last flag */ - STR collate = 0; + dsql_str* collate = 0; // get node of value to be ordered by node1 = node1->nod_arg[e_order_field]; if (node1->nod_type == nod_collate) { - collate = (STR) node1->nod_arg[e_coll_target]; + collate = (dsql_str*) node1->nod_arg[e_coll_target]; // substitute nod_collate with its argument (real value) node1 = node1->nod_arg[e_coll_source]; } @@ -5629,25 +5692,25 @@ static DSQL_NOD pass1_sort( DSQL_REQ request, DSQL_NOD input, DSQL_NOD s_list) @param proc_flag **/ -static DSQL_NOD pass1_udf( DSQL_REQ request, DSQL_NOD input, USHORT proc_flag) +static dsql_nod* pass1_udf( dsql_req* request, dsql_nod* input, USHORT proc_flag) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - STR name = (STR) input->nod_arg[0]; + const dsql_str* name = (dsql_str*) input->nod_arg[0]; DEV_BLKCHK(name, dsql_type_str); - UDF udf = METD_get_function(request, name); - if (!udf) + dsql_udf* userFunc = METD_get_function(request, name); + if (!userFunc) ERRD_post(gds_sqlerr, gds_arg_number, (SLONG) - 804, gds_arg_gds, gds_dsql_function_err, gds_arg_gds, gds_random, gds_arg_string, name->str_data, 0); - DSQL_NOD node = MAKE_node(nod_udf, input->nod_count); - node->nod_arg[0] = (DSQL_NOD) udf; + dsql_nod* node = MAKE_node(nod_udf, input->nod_count); + node->nod_arg[0] = (dsql_nod*) userFunc; if (input->nod_count == 2) { - DLLS stack = NULL; - pass1_udf_args(request, input->nod_arg[1], udf, 0, &stack, proc_flag); + dsql_lls* stack = NULL; + pass1_udf_args(request, input->nod_arg[1], userFunc, 0, &stack, proc_flag); node->nod_arg[1] = MAKE_list(stack); } @@ -5670,19 +5733,19 @@ static DSQL_NOD pass1_udf( DSQL_REQ request, DSQL_NOD input, USHORT proc_flag) @param proc_flag **/ -static void pass1_udf_args(DSQL_REQ request, DSQL_NOD input, UDF udf, USHORT arg_pos, - DLLS* stack, bool proc_flag) +static void pass1_udf_args(dsql_req* request, dsql_nod* input, + dsql_udf* userFunc, USHORT arg_pos, dsql_lls** stack, bool proc_flag) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - DEV_BLKCHK (udf, dsql_type_udf); + DEV_BLKCHK (userFunc, dsql_type_udf); if (input->nod_type != nod_list) { - DSQL_NOD temp = PASS1_node (request, input, proc_flag); - DSQL_NOD args = udf->udf_arguments; + dsql_nod* temp = PASS1_node (request, input, proc_flag); + dsql_nod* args = userFunc->udf_arguments; if (temp->nod_type == nod_parameter) { if (args && args->nod_count > arg_pos) { - set_parameter_type (temp, args->nod_arg [arg_pos], false); + set_parameter_type (temp, args->nod_arg[arg_pos], false); } else { ; @@ -5694,9 +5757,9 @@ static void pass1_udf_args(DSQL_REQ request, DSQL_NOD input, UDF udf, USHORT arg return; } - DSQL_NOD* ptr = input->nod_arg; - for (DSQL_NOD* end = ptr + input->nod_count; ptr < end; ptr++) - pass1_udf_args(request, *ptr, udf, arg_pos++, stack, proc_flag); + dsql_nod** ptr = input->nod_arg; + for (dsql_nod** end = ptr + input->nod_count; ptr < end; ptr++) + pass1_udf_args(request, *ptr, userFunc, arg_pos++, stack, proc_flag); } @@ -5716,9 +5779,10 @@ static void pass1_udf_args(DSQL_REQ request, DSQL_NOD input, UDF udf, USHORT arg @param rows **/ -static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_list, DSQL_NOD rows) +static dsql_nod* pass1_union( dsql_req* request, dsql_nod* input, dsql_nod* order_list, dsql_nod* rows) { - DSQL_NOD *ptr, *end; + dsql_nod** ptr; + dsql_nod** end; DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); @@ -5727,13 +5791,13 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li TSQL tdsql = GET_THREAD_DATA; // set up the rse node for the union. - DSQL_NOD union_rse = MAKE_node(nod_rse, e_rse_count); - DSQL_NOD union_node = union_rse->nod_arg[e_rse_streams] = + dsql_nod* union_rse = MAKE_node(nod_rse, e_rse_count); + dsql_nod* union_node = union_rse->nod_arg[e_rse_streams] = MAKE_node(nod_union, input->nod_count); // process all the sub-rse's. - DSQL_NOD* uptr = union_node->nod_arg; - DLLS base = request->req_context; + dsql_nod** uptr = union_node->nod_arg; + dsql_lls* base = request->req_context; for (ptr = input->nod_arg, end = ptr + input->nod_count; ptr < end; ++ptr, ++uptr) { @@ -5745,11 +5809,11 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li } // generate a context for the union itself. - DSQL_CTX union_context = FB_NEW(*tdsql->tsql_default) dsql_ctx; + dsql_ctx* union_context = FB_NEW(*tdsql->tsql_default) dsql_ctx; union_context->ctx_context = request->req_context_number++; // generate the list of fields to select. - DSQL_NOD items = union_node->nod_arg[0]->nod_arg[e_rse_items]; + dsql_nod* items = union_node->nod_arg[0]->nod_arg[e_rse_items]; // loop through the list nodes, checking to be sure that they have the // same number of items @@ -5769,7 +5833,7 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li // Comment below is belongs to the old code (way a union was handled). /* SQL II, section 9.3, pg 195 governs which data types - * are considered equivilant for a UNION + * are considered equivalent for a UNION * The following restriction is in some ways more restrictive * (cannot UNION CHAR with VARCHAR for instance) * (or cannot union CHAR of different lengths) @@ -5780,10 +5844,10 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li */ // loop through the list nodes and cast whenever possible. - DSQL_NOD tmp_list = MAKE_node(nod_list, union_node->nod_count); + dsql_nod* tmp_list = MAKE_node(nod_list, union_node->nod_count); for (int j = 0; j < items->nod_count; j++) { for (i = 0; i < union_node->nod_count; i++) { - DSQL_NOD nod1 = union_node->nod_arg[i]->nod_arg[e_rse_items]; + dsql_nod* nod1 = union_node->nod_arg[i]->nod_arg[e_rse_items]; MAKE_desc(&nod1->nod_arg[j]->nod_desc, nod1->nod_arg[j]); tmp_list->nod_arg[i] = nod1->nod_arg[j]; @@ -5808,18 +5872,18 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li // Create mappings for union. SSHORT count = 0; - DSQL_NOD union_items = MAKE_node(nod_list, items->nod_count); + dsql_nod* union_items = MAKE_node(nod_list, items->nod_count); uptr = items->nod_arg; for (ptr = union_items->nod_arg, end = ptr + union_items->nod_count; ptr < end; ptr++) { - DSQL_NOD map_node = MAKE_node(nod_map, e_map_count); + dsql_nod* map_node = MAKE_node(nod_map, e_map_count); *ptr = map_node; - map_node->nod_arg[e_map_context] = (DSQL_NOD) union_context; - DSQL_MAP map = FB_NEW(*tdsql->tsql_default) dsql_map; - map_node->nod_arg[e_map_map] = (DSQL_NOD) map; + map_node->nod_arg[e_map_context] = (dsql_nod*) union_context; + dsql_map* map = FB_NEW(*tdsql->tsql_default) dsql_map; + map_node->nod_arg[e_map_map] = (dsql_nod*) map; - // set up the DSQL_MAP between the sub-rses and the union context. + // set up the dsql_map* between the sub-rses and the union context. map->map_position = count++; map->map_node = *uptr++; map->map_next = union_context->ctx_map; @@ -5829,17 +5893,17 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li // Process ORDER clause, if any. if (order_list) { - DSQL_NOD sort = MAKE_node(nod_list, order_list->nod_count); + dsql_nod* sort = MAKE_node(nod_list, order_list->nod_count); uptr = sort->nod_arg; for (ptr = order_list->nod_arg, end = ptr + order_list->nod_count; ptr < end; ptr++, uptr++) { - DSQL_NOD order1 = *ptr; - STR collate = 0; - DSQL_NOD position = order1->nod_arg[e_order_field]; + dsql_nod* order1 = *ptr; + dsql_str* collate = 0; + dsql_nod* position = order1->nod_arg[e_order_field]; if (position->nod_type == nod_collate) { - collate = (STR) position->nod_arg[e_coll_target]; + collate = (dsql_str*) position->nod_arg[e_coll_target]; position = position->nod_arg[e_coll_source]; } @@ -5860,7 +5924,7 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li } // make a new order node pointing at the Nth item in the select list. - DSQL_NOD order2 = MAKE_node(nod_order, e_order_count); + dsql_nod* order2 = MAKE_node(nod_order, e_order_count); *uptr = order2; order2->nod_arg[e_order_field] = union_items->nod_arg[number - 1]; order2->nod_arg[e_order_flag] = order1->nod_arg[e_order_flag]; @@ -5879,12 +5943,12 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li rows->nod_desc.dsc_scale = request->req_client_dialect; if (rows->nod_arg[e_rows_length]) { - DSQL_NOD sub = PASS1_node(request, rows->nod_arg[e_rows_length], false); + dsql_nod* sub = PASS1_node(request, rows->nod_arg[e_rows_length], false); union_rse->nod_arg[e_rse_first] = sub; set_parameter_type(sub, rows, false); } if (rows->nod_arg[e_rows_skip]) { - DSQL_NOD sub = PASS1_node(request, rows->nod_arg[e_rows_skip], false); + dsql_nod* sub = PASS1_node(request, rows->nod_arg[e_rows_skip], false); union_rse->nod_arg[e_rse_skip] = sub; set_parameter_type(sub, rows, false); } @@ -5917,10 +5981,9 @@ static DSQL_NOD pass1_union( DSQL_REQ request, DSQL_NOD input, DSQL_NOD order_li @param in_select_list **/ -static void pass1_union_auto_cast(DSQL_NOD input, const dsc& desc, SSHORT position, +static void pass1_union_auto_cast(dsql_nod* input, const dsc& desc, SSHORT position, bool in_select_list) { - DSQL_NOD *ptr, *end; DEV_BLKCHK(input, dsql_type_nod); switch (input->nod_type) { @@ -5937,7 +6000,7 @@ static void pass1_union_auto_cast(DSQL_NOD input, const dsc& desc, SSHORT positi gds_arg_gds, gds_dsql_command_err, 0); } else { - DSQL_NOD select_item = input->nod_arg[position]; + dsql_nod* select_item = input->nod_arg[position]; if ((select_item->nod_desc.dsc_dtype != desc.dsc_dtype) || (select_item->nod_desc.dsc_length != desc.dsc_length) || (select_item->nod_desc.dsc_scale != desc.dsc_scale) || @@ -5946,7 +6009,7 @@ static void pass1_union_auto_cast(DSQL_NOD input, const dsc& desc, SSHORT positi // Because this select item has a different descriptor then // our finally descriptor CAST it. - DSQL_NOD cast_node = NULL; + dsql_nod* cast_node = NULL; // Pick a existing cast if available else make a new one. if ((select_item->nod_type == nod_alias) && @@ -5961,8 +6024,8 @@ static void pass1_union_auto_cast(DSQL_NOD input, const dsc& desc, SSHORT positi else { TSQL tdsql = GET_THREAD_DATA; cast_node = MAKE_node(nod_cast, e_cast_count); - DSQL_FLD afield = FB_NEW_RPT(*tdsql->tsql_default, 0) dsql_fld; - cast_node->nod_arg[e_cast_target] = (DSQL_NOD) afield; + dsql_fld* afield = FB_NEW_RPT(*tdsql->tsql_default, 0) dsql_fld; + cast_node->nod_arg[e_cast_target] = (dsql_nod*) afield; // We want to leave the ALIAS node on his place, because a UNION // uses the select_items from the first sub-rse to determine the // columnname. @@ -5974,7 +6037,7 @@ static void pass1_union_auto_cast(DSQL_NOD input, const dsc& desc, SSHORT positi } } - DSQL_FLD field = (DSQL_FLD) cast_node->nod_arg[e_cast_target]; + dsql_fld* field = (dsql_fld*) cast_node->nod_arg[e_cast_target]; // Copy the descriptor to a field, because the gen_cast // uses a dsql field type. field->fld_dtype = desc.dsc_dtype; @@ -6008,6 +6071,8 @@ static void pass1_union_auto_cast(DSQL_NOD input, const dsc& desc, SSHORT positi } } else { + dsql_nod** ptr; + dsql_nod** end; for (ptr = input->nod_arg, end = ptr + input->nod_count; ptr < end; ptr++) { pass1_union_auto_cast(*ptr, desc, position); } @@ -6016,14 +6081,14 @@ static void pass1_union_auto_cast(DSQL_NOD input, const dsc& desc, SSHORT positi case nod_rse: { - DSQL_NOD streams = input->nod_arg[e_rse_streams]; + dsql_nod* streams = input->nod_arg[e_rse_streams]; pass1_union_auto_cast(streams, desc, position); if (streams->nod_type == nod_union) { // We're now in a UNION under a UNION so don't change the existing mappings. // Only replace the node where the map points to, because they could be changed. - DSQL_NOD union_items = input->nod_arg[e_rse_items]; - DSQL_NOD sub_rse_items = streams->nod_arg[0]->nod_arg[e_rse_items]; - DSQL_MAP map = (DSQL_MAP) union_items->nod_arg[position]->nod_arg[e_map_map]; + dsql_nod* union_items = input->nod_arg[e_rse_items]; + dsql_nod* sub_rse_items = streams->nod_arg[0]->nod_arg[e_rse_items]; + dsql_map* map = (dsql_map*) union_items->nod_arg[position]->nod_arg[e_map_map]; map->map_node = sub_rse_items->nod_arg[position]; union_items->nod_arg[position]->nod_desc = desc; } @@ -6052,28 +6117,27 @@ static void pass1_union_auto_cast(DSQL_NOD input, const dsc& desc, SSHORT positi @param input **/ -static DSQL_NOD pass1_update( DSQL_REQ request, DSQL_NOD input) +static dsql_nod* pass1_update( dsql_req* request, dsql_nod* input) { - DSQL_NOD node; - DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(input, dsql_type_nod); - DSQL_NOD cursor = input->nod_arg[e_upd_cursor]; - DSQL_NOD relation = input->nod_arg[e_upd_relation]; + dsql_nod* cursor = input->nod_arg[e_upd_cursor]; + dsql_nod* relation = input->nod_arg[e_upd_relation]; if (cursor && (request->req_flags & REQ_procedure)) { - node = MAKE_node(nod_modify_current, e_mdc_count); - node->nod_arg[e_mdc_context] = - (DSQL_NOD) pass1_cursor_context(request, cursor, relation); - node->nod_arg[e_mdc_update] = PASS1_node(request, relation, false); - node->nod_arg[e_mdc_statement] = + dsql_nod* anode = MAKE_node(nod_modify_current, e_mdc_count); + anode->nod_arg[e_mdc_context] = + (dsql_nod*) pass1_cursor_context(request, cursor, relation); + anode->nod_arg[e_mdc_update] = PASS1_node(request, relation, false); + anode->nod_arg[e_mdc_statement] = PASS1_statement(request, input->nod_arg[e_upd_statement], false); LLS_POP(&request->req_context); - return node; + return anode; } request->req_type = (cursor) ? REQ_UPDATE_CURSOR : REQ_UPDATE; - node = MAKE_node(nod_modify, e_mod_count); + + dsql_nod* node = MAKE_node(nod_modify, e_mod_count); node->nod_arg[e_mod_update] = PASS1_node(request, relation, false); node->nod_arg[e_mod_statement] = PASS1_statement(request, input->nod_arg[e_upd_statement], false); @@ -6083,19 +6147,19 @@ static DSQL_NOD pass1_update( DSQL_REQ request, DSQL_NOD input) /* Generate record selection expression */ - DSQL_NOD rse; + dsql_nod* rse; if (cursor) rse = pass1_cursor_reference(request, cursor, relation); else { rse = MAKE_node(nod_rse, e_rse_count); - DSQL_NOD temp1 = MAKE_node(nod_list, 1); + dsql_nod* temp1 = MAKE_node(nod_list, 1); rse->nod_arg[e_rse_streams] = temp1; temp1->nod_arg[0] = node->nod_arg[e_mod_update]; if (temp1 = input->nod_arg[e_upd_boolean]) rse->nod_arg[e_rse_boolean] = PASS1_node(request, temp1, false); } - DSQL_NOD temp = rse->nod_arg[e_rse_streams]; + dsql_nod* temp = rse->nod_arg[e_rse_streams]; node->nod_arg[e_mod_source] = temp->nod_arg[0]; node->nod_arg[e_mod_rse] = rse; @@ -6115,11 +6179,14 @@ static DSQL_NOD pass1_update( DSQL_REQ request, DSQL_NOD input) @param input **/ -static DSQL_NOD pass1_variable( DSQL_REQ request, DSQL_NOD input) +static dsql_nod* pass1_variable( dsql_req* request, dsql_nod* input) { - DSQL_NOD procedure_node, var_nodes, var_node, *ptr, *end; - STR var_name = 0; - VAR var; + dsql_nod* procedure_node; + dsql_nod* var_nodes; + dsql_nod* var_node; + dsql_nod** ptr; + dsql_nod** end; + const dsql_str* var_name = 0; SSHORT position; DEV_BLKCHK(request, dsql_type_req); @@ -6132,10 +6199,10 @@ static DSQL_NOD pass1_variable( DSQL_REQ request, DSQL_NOD input) else field_error(0, 0, input); } - var_name = (STR) input->nod_arg[e_fln_name]; + var_name = (dsql_str*) input->nod_arg[e_fln_name]; } else - var_name = (STR) input->nod_arg[e_vrn_name]; + var_name = (dsql_str*) input->nod_arg[e_vrn_name]; DEV_BLKCHK(var_name, dsql_type_str); @@ -6149,11 +6216,11 @@ static DSQL_NOD pass1_variable( DSQL_REQ request, DSQL_NOD input) ptr + var_nodes->nod_count; ptr < end; ptr++, position++) { var_node = *ptr; - var = (VAR) var_node->nod_arg[e_var_variable]; - DEV_BLKCHK(var, dsql_type_var); + const var* variable = (var*) var_node->nod_arg[e_var_variable]; + DEV_BLKCHK(variable, dsql_type_var); if (!strcmp (reinterpret_cast(var_name->str_data), - var->var_name)) + variable->var_name)) { return var_node; } @@ -6163,11 +6230,11 @@ static DSQL_NOD pass1_variable( DSQL_REQ request, DSQL_NOD input) ptr + var_nodes->nod_count; ptr < end; ptr++, position++) { var_node = *ptr; - var = (VAR) var_node->nod_arg[e_var_variable]; - DEV_BLKCHK(var, dsql_type_var); + const var* variable = (var*) var_node->nod_arg[e_var_variable]; + DEV_BLKCHK(variable, dsql_type_var); if (!strcmp (reinterpret_cast(var_name->str_data), - var->var_name)) + variable->var_name)) { return var_node; } @@ -6186,11 +6253,11 @@ static DSQL_NOD pass1_variable( DSQL_REQ request, DSQL_NOD input) var_node = *ptr; if (var_node->nod_type == nod_variable) { - var = (VAR) var_node->nod_arg[e_var_variable]; - DEV_BLKCHK(var, dsql_type_var); + const var* variable = (var*) var_node->nod_arg[e_var_variable]; + DEV_BLKCHK(variable, dsql_type_var); if (!strcmp (reinterpret_cast(var_name->str_data), - var->var_name)) + variable->var_name)) { return var_node; } @@ -6223,7 +6290,7 @@ static DSQL_NOD pass1_variable( DSQL_REQ request, DSQL_NOD input) @param context **/ -static DSQL_NOD post_map( DSQL_NOD node, DSQL_CTX context) +static dsql_nod* post_map( dsql_nod* node, dsql_ctx* context) { DEV_BLKCHK(node, dsql_type_nod); DEV_BLKCHK(context, dsql_type_ctx); @@ -6233,7 +6300,7 @@ static DSQL_NOD post_map( DSQL_NOD node, DSQL_CTX context) /* Check to see if the item has already been posted */ int count = 0; - DSQL_MAP map; + dsql_map* map; for (map = context->ctx_map; map; map = map->map_next, ++count) if (node_match(node, map->map_node, false)) break; @@ -6246,10 +6313,10 @@ static DSQL_NOD post_map( DSQL_NOD node, DSQL_CTX context) map->map_node = node; } - DSQL_NOD new_node = MAKE_node(nod_map, e_map_count); + dsql_nod* new_node = MAKE_node(nod_map, e_map_count); new_node->nod_count = 0; - new_node->nod_arg[e_map_context] = (DSQL_NOD) context; - new_node->nod_arg[e_map_map] = (DSQL_NOD) map; + new_node->nod_arg[e_map_context] = (dsql_nod*) context; + new_node->nod_arg[e_map_map] = (dsql_nod*) map; new_node->nod_desc = node->nod_desc; return new_node; @@ -6273,11 +6340,13 @@ static DSQL_NOD post_map( DSQL_NOD node, DSQL_CTX context) @param current_level **/ -static DSQL_NOD remap_field(DSQL_REQ request, DSQL_NOD field, DSQL_CTX context, USHORT current_level) +static dsql_nod* remap_field(dsql_req* request, dsql_nod* field, dsql_ctx* context, USHORT current_level) { - DSQL_NOD *ptr, *end; - DSQL_CTX lcontext, lrelation_context; - DSQL_MAP lmap; + dsql_nod** ptr; + dsql_nod** end; + dsql_ctx* lcontext; + dsql_ctx* lrelation_context; + dsql_map* lmap; USHORT ldeepest_level, lcurrent_level; DEV_BLKCHK(request, dsql_type_req); @@ -6304,7 +6373,7 @@ static DSQL_NOD remap_field(DSQL_REQ request, DSQL_NOD field, DSQL_CTX context, } case nod_field: - lcontext = reinterpret_cast(field->nod_arg[e_fld_context]); + lcontext = reinterpret_cast(field->nod_arg[e_fld_context]); if (lcontext->ctx_scope_level == context->ctx_scope_level) { return post_map(field, context); } @@ -6313,8 +6382,8 @@ static DSQL_NOD remap_field(DSQL_REQ request, DSQL_NOD field, DSQL_CTX context, } case nod_map: - lcontext = reinterpret_cast(field->nod_arg[e_map_context]); - lmap = reinterpret_cast(field->nod_arg[e_map_map]); + lcontext = reinterpret_cast(field->nod_arg[e_map_context]); + lmap = reinterpret_cast(field->nod_arg[e_map_map]); lmap->map_node = remap_field(request, lmap->map_node, context, lcontext->ctx_scope_level); return field; @@ -6449,7 +6518,7 @@ static DSQL_NOD remap_field(DSQL_REQ request, DSQL_NOD field, DSQL_CTX context, return field; case nod_relation: - lrelation_context = reinterpret_cast(field->nod_arg[e_rel_context]); + lrelation_context = reinterpret_cast(field->nod_arg[e_rel_context]); // Check if relation is a procedure if (lrelation_context->ctx_procedure) { // If input parameters exists remap those @@ -6479,7 +6548,7 @@ static DSQL_NOD remap_field(DSQL_REQ request, DSQL_NOD field, DSQL_CTX context, @param context **/ -static DSQL_NOD remap_fields(DSQL_REQ request, DSQL_NOD fields, DSQL_CTX context) +static dsql_nod* remap_fields(dsql_req* request, dsql_nod* fields, dsql_ctx* context) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(fields, dsql_type_nod); @@ -6507,10 +6576,11 @@ static DSQL_NOD remap_fields(DSQL_REQ request, DSQL_NOD fields, DSQL_CTX context @param parent_context **/ -static void remap_streams_to_parent_context( DSQL_NOD input, DSQL_CTX parent_context) +static void remap_streams_to_parent_context( dsql_nod* input, dsql_ctx* parent_context) { - DSQL_CTX context; - DSQL_NOD *ptr, *end; + dsql_ctx* context; + dsql_nod** ptr; + dsql_nod** end; DEV_BLKCHK(input, dsql_type_nod); DEV_BLKCHK(parent_context, dsql_type_ctx); @@ -6523,7 +6593,7 @@ static void remap_streams_to_parent_context( DSQL_NOD input, DSQL_CTX parent_con break; case nod_relation: - context = (DSQL_CTX) input->nod_arg[e_rel_context]; + context = (dsql_ctx*) input->nod_arg[e_rel_context]; DEV_BLKCHK(context, dsql_type_ctx); context->ctx_parent = parent_context; break; @@ -6561,15 +6631,16 @@ static void remap_streams_to_parent_context( DSQL_NOD input, DSQL_CTX parent_con @param context **/ -static DSQL_FLD resolve_context( DSQL_REQ request, STR name, STR qualifier, DSQL_CTX context) +static dsql_fld* resolve_context( dsql_req* request, dsql_str* name, + dsql_str* qualifier, dsql_ctx* context) { DEV_BLKCHK(request, dsql_type_req); DEV_BLKCHK(name, dsql_type_str); DEV_BLKCHK(qualifier, dsql_type_str); DEV_BLKCHK(context, dsql_type_ctx); - DSQL_REL relation = context->ctx_relation; - DSQL_PRC procedure = context->ctx_procedure; + dsql_rel* relation = context->ctx_relation; + dsql_prc* procedure = context->ctx_procedure; if (!relation && !procedure) { return NULL; } @@ -6603,7 +6674,7 @@ static DSQL_FLD resolve_context( DSQL_REQ request, STR name, STR qualifier, DSQL /* Lookup field in relation or procedure */ - DSQL_FLD field; + dsql_fld* field; if (relation) { field = relation->rel_fields; } @@ -6627,7 +6698,7 @@ static DSQL_FLD resolve_context( DSQL_REQ request, STR name, STR qualifier, DSQL @param force_varchar **/ -static bool set_parameter_type(DSQL_NOD in_node, DSQL_NOD node, bool force_varchar) +static bool set_parameter_type(dsql_nod* in_node, dsql_nod* node, bool force_varchar) { DEV_BLKCHK(in_node, dsql_type_nod); DEV_BLKCHK(node, dsql_type_nod); @@ -6639,7 +6710,7 @@ static bool set_parameter_type(DSQL_NOD in_node, DSQL_NOD node, bool force_varch case nod_parameter: { MAKE_desc(&in_node->nod_desc, node); - PAR parameter = (PAR) in_node->nod_arg[e_par_parameter]; + par* parameter = (par*) in_node->nod_arg[e_par_parameter]; DEV_BLKCHK(parameter, dsql_type_par); parameter->par_desc = in_node->nod_desc; parameter->par_node = in_node; @@ -6693,7 +6764,8 @@ static bool set_parameter_type(DSQL_NOD in_node, DSQL_NOD node, bool force_varch case nod_rows: { bool result = false; - DSQL_NOD *ptr, *end; + dsql_nod** ptr; + dsql_nod** end; for (ptr = in_node->nod_arg, end = ptr + in_node->nod_count; ptr < end; ptr++) { result |= set_parameter_type(*ptr, node, force_varchar); } @@ -6717,17 +6789,17 @@ static bool set_parameter_type(DSQL_NOD in_node, DSQL_NOD node, bool force_varch @param rel_node **/ -static void set_parameters_name( DSQL_NOD list_node, DSQL_NOD rel_node) +static void set_parameters_name( dsql_nod* list_node, dsql_nod* rel_node) { DEV_BLKCHK(list_node, dsql_type_nod); DEV_BLKCHK(rel_node, dsql_type_nod); - DSQL_CTX context = (DSQL_CTX) rel_node->nod_arg[0]; + dsql_ctx* context = (dsql_ctx*) rel_node->nod_arg[0]; DEV_BLKCHK(context, dsql_type_ctx); - DSQL_REL relation = context->ctx_relation; + dsql_rel* relation = context->ctx_relation; - DSQL_NOD* ptr = list_node->nod_arg; - for (DSQL_NOD* end = ptr + list_node->nod_count; + dsql_nod** ptr = list_node->nod_arg; + for (dsql_nod** end = ptr + list_node->nod_count; ptr < end; ptr++) { DEV_BLKCHK(*ptr, dsql_type_nod); @@ -6760,12 +6832,13 @@ static void set_parameters_name( DSQL_NOD list_node, DSQL_NOD rel_node) @param relation **/ -static void set_parameter_name( DSQL_NOD par_node, DSQL_NOD fld_node, - DSQL_REL relation) +static void set_parameter_name( dsql_nod* par_node, dsql_nod* fld_node, + dsql_rel* relation) { - DSQL_NOD *ptr, *end; - PAR parameter; - DSQL_FLD field; + dsql_nod** ptr; + dsql_nod** end; + par* parameter; + dsql_fld* field; DEV_BLKCHK(par_node, dsql_type_nod); DEV_BLKCHK(fld_node, dsql_type_nod); @@ -6779,9 +6852,9 @@ static void set_parameter_name( DSQL_NOD par_node, DSQL_NOD fld_node, switch (par_node->nod_type) { case nod_parameter: - parameter = (PAR) par_node->nod_arg[e_par_parameter]; + parameter = (par*) par_node->nod_arg[e_par_parameter]; DEV_BLKCHK(parameter, dsql_type_par); - field = (DSQL_FLD) fld_node->nod_arg[e_fld_field]; + field = (dsql_fld*) fld_node->nod_arg[e_fld_field]; DEV_BLKCHK(field, dsql_type_fld); parameter->par_name = field->fld_name; parameter->par_rel_name = relation->rel_name; @@ -6854,9 +6927,9 @@ static TEXT* pass_exact_name (TEXT* str) @param node **/ -static DSQL_NOD pass1_savepoint(DSQL_REQ request, DSQL_NOD node) { +static dsql_nod* pass1_savepoint(dsql_req* request, dsql_nod* node) { if (request->req_error_handlers) { - DSQL_NOD temp = MAKE_node(nod_list, 3); + dsql_nod* temp = MAKE_node(nod_list, 3); temp->nod_arg[0] = MAKE_node(nod_start_savepoint, 0); temp->nod_arg[1] = node; temp->nod_arg[2] = MAKE_node(nod_end_savepoint, 0); diff --git a/src/dsql/user_dsql.cpp b/src/dsql/user_dsql.cpp index d2fcf7f50d..265ff406cb 100644 --- a/src/dsql/user_dsql.cpp +++ b/src/dsql/user_dsql.cpp @@ -1,6 +1,6 @@ /* * PROGRAM: Dynamic SQL runtime support - * MODULE: user_dsql.c + * MODULE: user_dsql.cpp * DESCRIPTION: Above the Y-valve entrypoints for DSQL * * diff --git a/src/dudley/extract.epp b/src/dudley/extract.epp index 97001097f8..01978825a0 100644 --- a/src/dudley/extract.epp +++ b/src/dudley/extract.epp @@ -1780,7 +1780,7 @@ static void print_blob(SLONG* blob_id, TEXT type) if (isc_open_blob2(status_vector, &DB, &gds_trans, &blob, (GDS_QUAD*) blob_id, (USHORT) (r - bpb), - reinterpret_cast(bpb))) + bpb)) { gds__print_status(status_vector); DDL_err(269, NULL, NULL, NULL, NULL, NULL); diff --git a/src/gpre/gpre.cpp b/src/gpre/gpre.cpp index 6903eb5ef7..b6203fb73a 100644 --- a/src/gpre/gpre.cpp +++ b/src/gpre/gpre.cpp @@ -20,7 +20,7 @@ // // All Rights Reserved. // Contributor(s): ______________________________________. -// $Id: gpre.cpp,v 1.44 2003-11-03 23:51:47 brodsom Exp $ +// $Id: gpre.cpp,v 1.45 2003-11-10 09:16:02 robocop Exp $ // Revision 1.2 2000/11/16 15:54:29 fsg // Added new switch -verbose to gpre that will dump // parsed lines to stderr @@ -94,7 +94,8 @@ static bool file_rename(TEXT*, const TEXT*, const TEXT*); static void finish_based(ACT); #endif static int get_char(IB_FILE*); -static bool get_switches(int, TEXT**, const in_sw_tab_t*, SW_TAB, TEXT**); +static bool get_switches(int, TEXT**, const in_sw_tab_t*, SW_TAB, + TEXT**); static TOK get_token(); static int nextchar(); static SLONG pass1(const TEXT*); @@ -108,7 +109,7 @@ static SSHORT skip_white(); /* Program wide globals */ IB_FILE *input_file, *trace_file; -TEXT* file_name; +const TEXT* file_name; TEXT* out_file_name; SLONG position, last_position, line_position, first_position, prior_line_position; @@ -341,7 +342,7 @@ int main(int argc, char* argv[]) // Call a subroutine to process the input line // - TEXT* filename_array[4] = { 0 }; + TEXT* filename_array[4] = { 0, 0, 0, 0 }; if (!get_switches(argc, argv, gpre_in_sw_table, sw_table, filename_array)) { CPR_exit(FINI_ERROR); @@ -350,8 +351,8 @@ int main(int argc, char* argv[]) file_name = filename_array[0]; out_file_name = filename_array[1]; - TEXT* db_filename = filename_array[2]; - TEXT* db_base_directory = filename_array[3]; + const TEXT* db_filename = filename_array[2]; + //TEXT* db_base_directory = filename_array[3]; if (!file_name) { ib_fprintf(ib_stderr, "gpre: no source file named.\n"); @@ -368,7 +369,8 @@ int main(int argc, char* argv[]) if (sw_language == lang_undef) for (ext_tab = dml_ext_table; sw_language = ext_tab->ext_language; - ext_tab++) { + ext_tab++) + { strcpy(spare_file_name, file_name); if (!(file_rename(spare_file_name, ext_tab->in, NULL))) break; @@ -381,7 +383,8 @@ int main(int argc, char* argv[]) if (sw_language == lang_undef) for (ext_tab = dml_ext_table; sw_language = ext_tab->ext_language; - ext_tab++) { + ext_tab++) + { strcpy(spare_file_name, file_name); if (file_rename(spare_file_name, ext_tab->in, NULL) && (input_file = ib_fopen(spare_file_name, FOPEN_READ_TYPE))) { @@ -1647,9 +1650,6 @@ static bool get_switches(int argc, SW_TAB sw_table, TEXT** file_array) { - TEXT *p, *q, *string; - const in_sw_tab_t* in_sw_table_iterator; - SW_TAB sw_table_iterator; USHORT in_sw; // @@ -1658,11 +1658,11 @@ static bool get_switches(int argc, // we try to open the file. // - sw_table_iterator = sw_table; + SW_TAB sw_table_iterator = sw_table; for (--argc; argc; argc--) { - string = *++argv; + TEXT* string = *++argv; if (*string != '?') { if (*string != '-') @@ -1689,11 +1689,12 @@ static bool get_switches(int argc, sw_table_iterator++; sw_table_iterator->sw_in_sw = IN_SW_GPRE_0; - for (in_sw_table_iterator = in_sw_table; + const TEXT* q; + for (const in_sw_tab_t* in_sw_table_iterator = in_sw_table; q = in_sw_table_iterator->in_sw_name; in_sw_table_iterator++) { - p = string + 1; + const TEXT* p = string + 1; /* handle orphaned hyphen case */ diff --git a/src/gpre/gpre.h b/src/gpre/gpre.h index 6c4ba0b76d..bde71cf92b 100644 --- a/src/gpre/gpre.h +++ b/src/gpre/gpre.h @@ -19,7 +19,7 @@ * * All Rights Reserved. * Contributor(s): ______________________________________. - * $Id: gpre.h,v 1.53 2003-11-03 23:51:47 brodsom Exp $ + * $Id: gpre.h,v 1.54 2003-11-10 09:16:03 robocop Exp $ * Revision 1.3 2000/11/27 09:26:13 fsg * Fixed bugs in gpre to handle PYXIS forms * and allow edit.e and fred.e to go through @@ -761,7 +761,7 @@ typedef struct dbb { FRBRD *dbb_transaction; /* default transaction */ rrl* dbb_rrls; /* temporary list of relation locks */ tpb* dbb_tpbs; /* real tpbs for this db */ - TEXT *dbb_filename; + const TEXT* dbb_filename; TEXT *dbb_runtime; TEXT *dbb_c_user; /* compiletime user name */ TEXT *dbb_c_password; /* compiletime password */ diff --git a/src/include/memory_routines.h b/src/include/memory_routines.h index 56daf9cf21..5d8411133a 100644 --- a/src/include/memory_routines.h +++ b/src/include/memory_routines.h @@ -26,14 +26,6 @@ #ifndef MEMORY_ROUTINES_H #define MEMORY_ROUTINES_H -/* SD: I didn't find a way to make external functions inline - except including their bodies into header. FIX ME, please */ -/* -inline short get_short(const char*); -inline long get_long(const char*); -inline short gather_short(char* &); -inline long gather_long(char* &); -*/ inline SSHORT get_short(const SCHAR* p) { @@ -52,7 +44,7 @@ inline SSHORT get_short(const SCHAR* p) #if defined(i386) || defined(I386) || defined(_M_IX86) || defined(VMS) // For IA32 (little-endian) this optimization is a _very_ large speed-up! - // According to CTO32L definition in common.h this trick work for VAX/VMS + // According to CTO32L definition in common.h this trick works for VAX/VMS return *reinterpret_cast(p); #else // Non-IA32 @@ -133,7 +125,7 @@ inline SLONG get_long(const UCHAR* p) #endif } -inline SSHORT gather_short(SCHAR* &p) +inline SSHORT gather_short(const SCHAR*& p) { /************************************** * @@ -151,8 +143,7 @@ inline SSHORT gather_short(SCHAR* &p) #if defined(i386) || defined(I386) || defined(_M_IX86) || defined(VMS) // For IA32 (little-endian) this optimization is a _very_ large speed-up! - SSHORT value; - value = *reinterpret_cast(p); + const SSHORT value = *reinterpret_cast(p); p += 2; return value; #else @@ -170,7 +161,7 @@ union { #endif // endianness } -inline SLONG gather_long(SCHAR* &p) +inline SLONG gather_long(const SCHAR*& p) { /************************************** * @@ -188,8 +179,7 @@ inline SLONG gather_long(SCHAR* &p) #if defined(i386) || defined(I386) || defined(_M_IX86) || defined(VMS) // For IA32 (little-endian) this optimization is a _very_ large speed-up! - SLONG value; - value = *reinterpret_cast(p); + const SLONG value = *reinterpret_cast(p); p += 4; return value; #else diff --git a/src/journal/rebuild.epp b/src/journal/rebuild.epp index 04d7ba3c7a..6c69af6c3e 100644 --- a/src/journal/rebuild.epp +++ b/src/journal/rebuild.epp @@ -1345,7 +1345,8 @@ static int error(const TEXT* filename, ISC_STATUS_ARRAY status_vector; ISC_STATUS* s = status_vector; *s++ = isc_arg_gds; - *s++ = isc_io_error, *s++ = isc_arg_string; + *s++ = isc_io_error; + *s++ = isc_arg_string; *s++ = (ISC_STATUS) string; *s++ = isc_arg_string; *s++ = (ISC_STATUS) filename; diff --git a/src/jrd/alt.cpp b/src/jrd/alt.cpp index ea2ae0fd7d..20ea1e3a24 100644 --- a/src/jrd/alt.cpp +++ b/src/jrd/alt.cpp @@ -425,15 +425,15 @@ ISC_STATUS API_ROUTINE gds__get_segment(ISC_STATUS * status_vector, } ISC_STATUS API_ROUTINE gds__get_slice(ISC_STATUS * status_vector, - FRBRD **db_handle, - FRBRD **tra_handle, - GDS_QUAD * array_id, + FRBRD** db_handle, + FRBRD** tra_handle, + GDS_QUAD* array_id, SSHORT sdl_length, - SCHAR * sdl, + SCHAR* sdl, SSHORT parameters_leng, - SLONG * parameters, + SLONG* parameters, SLONG slice_length, - void *slice, SLONG * return_length) + void* slice, SLONG* return_length) { return isc_get_slice(status_vector, db_handle, tra_handle, array_id, sdl_length, sdl, parameters_leng, parameters, @@ -482,15 +482,15 @@ ISC_STATUS API_ROUTINE gds__put_segment(ISC_STATUS* status_vector, return isc_put_segment(status_vector, blob_handle, segment_length, segment); } -ISC_STATUS API_ROUTINE gds__put_slice(ISC_STATUS * status_vector, - FRBRD **db_handle, - FRBRD **tra_handle, - GDS_QUAD * array_id, +ISC_STATUS API_ROUTINE gds__put_slice(ISC_STATUS* status_vector, + FRBRD** db_handle, + FRBRD** tra_handle, + GDS_QUAD* array_id, SSHORT sdl_length, - SCHAR * sdl, + SCHAR* sdl, SSHORT parameters_leng, - SLONG * parameters, - SLONG slice_length, void *slice) + SLONG* parameters, + SLONG slice_length, void* slice) { return isc_put_slice(status_vector, db_handle, tra_handle, array_id, sdl_length, sdl, parameters_leng, parameters, diff --git a/src/jrd/cmp.cpp b/src/jrd/cmp.cpp index 7c2eef3237..05ecb9a9ad 100644 --- a/src/jrd/cmp.cpp +++ b/src/jrd/cmp.cpp @@ -1368,7 +1368,7 @@ void CMP_get_desc(TDBB tdbb, CSB csb, JRD_NOD node, DSC * desc) rc_len += DSC_string_length (&desc2); else rc_len += DSC_convert_to_text_length(desc2.dsc_dtype); - // error() is a local routine in par.c, so we use plain ERR_post + // error() is a local routine in par.cpp, so we use plain ERR_post if (rc_len > MAX_FORMAT_SIZE) ERR_post(isc_imp_exc, isc_arg_gds, isc_blktoobig, 0); desc->dsc_length = static_cast(rc_len); @@ -2222,7 +2222,7 @@ static UCHAR* alloc_map(TDBB tdbb, CSB csb, USHORT stream) str* string = FB_NEW_RPT(*tdbb->tdbb_default, MAP_LENGTH) str; string->str_length = MAP_LENGTH; csb->csb_rpt[stream].csb_map = (UCHAR *) string->str_data; - fb_assert(stream <= MAX_STREAMS); + fb_assert(stream <= MAX_STREAMS); // CVC: MAX_UCHAR maybe? string->str_data[0] = (UCHAR) stream; return (UCHAR*) string->str_data; @@ -2614,6 +2614,7 @@ static JRD_NOD copy(TDBB tdbb, new_stream = csb->csb_n_stream++; fb_assert(new_stream <= MAX_STREAMS); node->nod_arg[e_agg_stream] = (JRD_NOD) (SLONG) new_stream; + // fb_assert(new_stream <= MAX_UCHAR); remap[stream] = (UCHAR) new_stream; CMP_csb_element(csb, new_stream); @@ -2817,7 +2818,7 @@ static JRD_NOD make_defaults(TDBB tdbb, CSB csb, USHORT stream, JRD_NOD statemen if (!(map = csb->csb_rpt[stream].csb_map)) { map = local_map; - fb_assert(stream <= MAX_STREAMS); + fb_assert(stream <= MAX_STREAMS); // CVC: MAX_UCHAR relevant, too? map[0] = (UCHAR) stream; map[1] = 1; map[2] = 2; @@ -2880,7 +2881,7 @@ static JRD_NOD make_validation(TDBB tdbb, CSB csb, USHORT stream) if (!(map = csb->csb_rpt[stream].csb_map)) { map = local_map; - fb_assert(stream <= MAX_STREAMS); + fb_assert(stream <= MAX_STREAMS); // CVC: MAX_UCHAR still relevant for the bitmap? map[0] = (UCHAR) stream; } @@ -3130,6 +3131,7 @@ static JRD_NOD pass1(TDBB tdbb, tail = &csb->csb_rpt[stream]; tail->csb_flags |= csb_modify; pass1_modify(tdbb, csb, node); + // fb_assert(node->nod_arg [e_mod_new_stream] <= MAX_USHORT); if ( (node->nod_arg[e_mod_validate] = make_validation(tdbb, csb, (USHORT)(ULONG) node-> nod_arg[e_mod_new_stream])) ) node->nod_count = diff --git a/src/jrd/ibase.h b/src/jrd/ibase.h index cf04247d5d..a21ccf2c7e 100644 --- a/src/jrd/ibase.h +++ b/src/jrd/ibase.h @@ -33,7 +33,7 @@ * */ /* -$Id: ibase.h,v 1.56 2003-11-08 16:36:07 brodsom Exp $ +$Id: ibase.h,v 1.57 2003-11-10 09:16:13 robocop Exp $ */ #ifndef JRD_IBASE_H @@ -366,13 +366,13 @@ ISC_STATUS ISC_EXPORT isc_attach_database(ISC_STATUS*, short, const char*); -ISC_STATUS ISC_EXPORT isc_array_get_slice(ISC_STATUS *, - isc_db_handle *, - isc_tr_handle *, - ISC_QUAD *, - ISC_ARRAY_DESC *, - void *, - ISC_LONG *); +ISC_STATUS ISC_EXPORT isc_array_get_slice(ISC_STATUS*, + isc_db_handle*, + isc_tr_handle*, + ISC_QUAD*, + const ISC_ARRAY_DESC*, + void*, + ISC_LONG*); ISC_STATUS ISC_EXPORT isc_array_lookup_bounds(ISC_STATUS*, isc_db_handle*, @@ -396,12 +396,12 @@ ISC_STATUS ISC_EXPORT isc_array_set_desc(ISC_STATUS *, const short*, ISC_ARRAY_DESC*); -ISC_STATUS ISC_EXPORT isc_array_put_slice(ISC_STATUS *, - isc_db_handle *, - isc_tr_handle *, - ISC_QUAD *, - ISC_ARRAY_DESC *, - void *, +ISC_STATUS ISC_EXPORT isc_array_put_slice(ISC_STATUS*, + isc_db_handle*, + isc_tr_handle*, + ISC_QUAD*, + const ISC_ARRAY_DESC*, + void*, ISC_LONG *); void ISC_EXPORT isc_blob_default_desc(ISC_BLOB_DESC *, diff --git a/src/jrd/jrd.cpp b/src/jrd/jrd.cpp index b833dbda2e..54b960d891 100644 --- a/src/jrd/jrd.cpp +++ b/src/jrd/jrd.cpp @@ -2704,7 +2704,7 @@ ISC_STATUS GDS_GET_SLICE(ISC_STATUS * user_status, reinterpret_cast(array_id), sdl, param_length, - reinterpret_cast(param), + reinterpret_cast(param), slice_length, slice); } catch (const std::exception&) @@ -2899,7 +2899,7 @@ ISC_STATUS GDS_PUT_SLICE(ISC_STATUS * user_status, reinterpret_cast(array_id), sdl, param_length, - reinterpret_cast(param), slice_length, slice); + reinterpret_cast(param), slice_length, slice); } catch (const std::exception&) { @@ -6539,8 +6539,10 @@ static void purge_attachment(TDBB tdbb, { if (dbb->dbb_attachments || (dbb->dbb_flags & DBB_being_opened)) { - /* There are still attachments so do a partial shutdown */ + // There are still attachments so do a partial shutdown + // Both CMP_release() and SCL_release() do advance the pointer + // before the deallocation. jrd_req* request; while ( (request = attachment->att_requests) ) { CMP_release(tdbb, request); diff --git a/src/jrd/utl.cpp b/src/jrd/utl.cpp index fd5e4ad0c1..6d2959ac16 100644 --- a/src/jrd/utl.cpp +++ b/src/jrd/utl.cpp @@ -1861,7 +1861,7 @@ BSTREAM* API_ROUTINE Bopen(GDS_QUAD* blob_id, else if (*mode == 'r' || *mode == 'R') { if (isc_open_blob2(status_vector, &database, &transaction, &blob, blob_id, bpb_length, - reinterpret_cast(bpb))) + bpb)) { return NULL; } @@ -2057,7 +2057,7 @@ static int dump( blob = NULL; if (isc_open_blob2(status_vector, &database, &transaction, &blob, blob_id, - bpb_length, reinterpret_cast(bpb))) { + bpb_length, bpb)) { isc_print_status(status_vector); return FALSE; } diff --git a/src/lock/driver.cpp b/src/lock/driver.cpp index 6e274c0998..1a51cee18d 100644 --- a/src/lock/driver.cpp +++ b/src/lock/driver.cpp @@ -1,6 +1,6 @@ /* * PROGRAM: JRD Lock Manager - * MODULE: driver.c + * MODULE: driver.cpp * DESCRIPTION: Stand alone test driver * * The contents of this file are subject to the Interbase Public diff --git a/src/misc/blrtable.cpp b/src/misc/blrtable.cpp index 8011ddc5bc..460c5347f7 100644 --- a/src/misc/blrtable.cpp +++ b/src/misc/blrtable.cpp @@ -1,6 +1,6 @@ /* * PROGRAM: JRD Access Method - * MODULE: blrtable.c + * MODULE: blrtable.cpp * DESCRIPTION: blr to internal conversion table generator * * The contents of this file are subject to the Interbase Public diff --git a/src/msgs/change_msgs.epp b/src/msgs/change_msgs.epp index df3c7854ba..89426eb426 100644 --- a/src/msgs/change_msgs.epp +++ b/src/msgs/change_msgs.epp @@ -1,6 +1,6 @@ /* * PROGRAM: Interbase Message file edit program - * MODULE: change_msgs.e + * MODULE: change_msgs.epp * DESCRIPTION: Allow limited change of messages in database * * The contents of this file are subject to the Interbase Public diff --git a/src/msgs/check_msgs.epp b/src/msgs/check_msgs.epp index f0c42d3cc5..e6ffa98f3e 100644 --- a/src/msgs/check_msgs.epp +++ b/src/msgs/check_msgs.epp @@ -1,6 +1,6 @@ /* * PROGRAM: Interbase Message Facility - * MODULE: check_messages.e + * MODULE: check_messages.epp * DESCRIPTION: Check whether any messages have been updated * * The contents of this file are subject to the Interbase Public diff --git a/src/msgs/enter_msgs.epp b/src/msgs/enter_msgs.epp index 092b592438..62b5553890 100644 --- a/src/msgs/enter_msgs.epp +++ b/src/msgs/enter_msgs.epp @@ -1,6 +1,6 @@ /* * PROGRAM: Interbase Message file entry program - * MODULE: enter_messages.e + * MODULE: enter_messages.epp * DESCRIPTION: Allow entry of messages to database * * The contents of this file are subject to the Interbase Public diff --git a/src/msgs/modify_msgs.epp b/src/msgs/modify_msgs.epp index 8a3b71cf31..6816731b0f 100644 --- a/src/msgs/modify_msgs.epp +++ b/src/msgs/modify_msgs.epp @@ -1,6 +1,6 @@ /* * PROGRAM: Interbase Message file modify for escape chars - * MODULE: modify_messages.e + * MODULE: modify_messages.epp * DESCRIPTION: Allow modification of messages with translatation of escape sequences * * The contents of this file are subject to the Interbase Public diff --git a/src/qli/exe.cpp b/src/qli/exe.cpp index 0503704a14..d8fa69323f 100644 --- a/src/qli/exe.cpp +++ b/src/qli/exe.cpp @@ -246,7 +246,7 @@ FRBRD *EXEC_open_blob( QLI_NOD node) ISC_STATUS_ARRAY status_vector; if (isc_open_blob2(status_vector, &dbb->dbb_handle, &dbb->dbb_transaction, &blob, (GDS_QUAD*) desc->dsc_address, bpb_length, - reinterpret_cast(bpb))) + bpb)) { ERRQ_database_error(dbb, status_vector); } @@ -696,7 +696,7 @@ static bool copy_blob( QLI_NOD value, PAR parameter) if (isc_open_blob2(status_vector, &from_dbb->dbb_handle, &from_dbb->dbb_transaction, &from_blob, (GDS_QUAD*) from_desc->dsc_address, bpb_length, - reinterpret_cast(bpb))) + bpb)) { ERRQ_database_error(from_dbb, status_vector); } diff --git a/src/qli/proc.epp b/src/qli/proc.epp index 04ef32a540..fd65794734 100644 --- a/src/qli/proc.epp +++ b/src/qli/proc.epp @@ -447,7 +447,7 @@ FRBRD *PRO_open_blob( DBB database, SLONG * blob_id) if (isc_open_blob2(status_vector, &database->dbb_handle, &database->dbb_proc_trans, &blob, (GDS_QUAD*) blob_id, - bpb_length, reinterpret_cast(bpb))) + bpb_length, bpb)) ERRQ_database_error(database, status_vector); return blob; diff --git a/src/remote/os/win32/srvr_w32.cpp b/src/remote/os/win32/srvr_w32.cpp index 7321af89fd..a4b8fb3c8f 100644 --- a/src/remote/os/win32/srvr_w32.cpp +++ b/src/remote/os/win32/srvr_w32.cpp @@ -258,7 +258,7 @@ int WINAPI WinMain(HINSTANCE hThisInst, // BRS There is a error in MinGW (3.1.0) headers // the parameter of StartServiceCtrlDispatcher is declared const in msvc headers // -#ifdef MINGW +#if defined(MINGW) if (!StartServiceCtrlDispatcher(const_cast(service_table))) { #else if (!StartServiceCtrlDispatcher(service_table)) { diff --git a/src/remote/xdr.cpp b/src/remote/xdr.cpp index 3fb7a679fd..af0c8955af 100644 --- a/src/remote/xdr.cpp +++ b/src/remote/xdr.cpp @@ -41,11 +41,11 @@ // It will return big strange value in case of invalid define #if defined(i386) || defined(I386) || defined(_M_IX86) #define SWAP_DOUBLE +#elif defined(sparc) || defined(PowerPC) +#undef SWAP_DOUBLE #else -#if !defined(sparc) && !defined(DARWIN) #error "Define SWAP_DOUBLE for your platform correctly !" #endif -#endif #ifdef VMS double MTH$CVT_D_G(), MTH$CVT_G_D(); diff --git a/src/utilities/common/cmd_util.cpp b/src/utilities/common/cmd_util.cpp index ee42f47b2e..d69bd50c39 100644 --- a/src/utilities/common/cmd_util.cpp +++ b/src/utilities/common/cmd_util.cpp @@ -1,6 +1,6 @@ /* * PROGRAM: Command line utilities - * MODULE: cmd_util.c + * MODULE: cmd_util.cpp * DESCRIPTION: Common functions * * The contents of this file are subject to the Interbase Public diff --git a/src/utilities/gstat/dba_full.epp b/src/utilities/gstat/dba_full.epp index aa9d6f1ac4..506eb1d67c 100644 --- a/src/utilities/gstat/dba_full.epp +++ b/src/utilities/gstat/dba_full.epp @@ -1,6 +1,6 @@ /* * PROGRAM: JRD Access Method - * MODULE: dba.e + * MODULE: dba_full.epp * DESCRIPTION: Database analysis tool * * The contents of this file are subject to the Interbase Public diff --git a/src/utilities/gstat/ppg.cpp b/src/utilities/gstat/ppg.cpp index 5263d4c9f9..07699c2959 100644 --- a/src/utilities/gstat/ppg.cpp +++ b/src/utilities/gstat/ppg.cpp @@ -1,6 +1,6 @@ /* * PROGRAM: JRD Access Method - * MODULE: ppg.c + * MODULE: ppg.cpp * DESCRIPTION: Database page print module * * The contents of this file are subject to the Interbase Public diff --git a/src/utilities/ibmgr/ibmgr.cpp b/src/utilities/ibmgr/ibmgr.cpp index 04533b9916..abc9c61ac6 100644 --- a/src/utilities/ibmgr/ibmgr.cpp +++ b/src/utilities/ibmgr/ibmgr.cpp @@ -1,7 +1,7 @@ /* * * PROGRAM: InterBase server manager - * MODULE: ibmgr.c + * MODULE: ibmgr.cpp * DESCRIPTION: Main routine and parser * * The contents of this file are subject to the Interbase Public @@ -23,7 +23,7 @@ * * 2002.10.29 Sean Leyne - Removed obsolete "Netware" port * - * $Id: ibmgr.cpp,v 1.8 2003-11-08 16:33:47 brodsom Exp $ + * $Id: ibmgr.cpp,v 1.9 2003-11-10 09:16:33 robocop Exp $ */ #include "firebird.h" diff --git a/src/utilities/install/services.cpp b/src/utilities/install/services.cpp index 317bbacdbb..ed3950e894 100644 --- a/src/utilities/install/services.cpp +++ b/src/utilities/install/services.cpp @@ -1,6 +1,6 @@ /* * PROGRAM: Windows NT service control panel installation program - * MODULE: services.c + * MODULE: services.cpp * DESCRIPTION: Functions which update the Windows service manager for IB * * The contents of this file are subject to the Interbase Public diff --git a/src/utilities/rebuild/rebuild.cpp b/src/utilities/rebuild/rebuild.cpp index e424182c61..614d6256ed 100644 --- a/src/utilities/rebuild/rebuild.cpp +++ b/src/utilities/rebuild/rebuild.cpp @@ -1,6 +1,6 @@ /* * PROGRAM: JRD Rebuild scrambled database - * MODULE: rebuild.c + * MODULE: rebuild.cpp * DESCRIPTION: Main routine for analyzing and rebuilding database * * The contents of this file are subject to the Interbase Public diff --git a/src/utilities/rebuild/rmet.epp b/src/utilities/rebuild/rmet.epp index 9b12bfdf51..ee35d0e6f7 100644 --- a/src/utilities/rebuild/rmet.epp +++ b/src/utilities/rebuild/rmet.epp @@ -1,6 +1,6 @@ /* * PROGRAM: JRD Rebuild scrambled database - * MODULE: rmet.e + * MODULE: rmet.epp * DESCRIPTION: Crawl around the guts of a database * * The contents of this file are subject to the Interbase Public diff --git a/src/utilities/rebuild/rstore.epp b/src/utilities/rebuild/rstore.epp index 0716c9ebe9..30ca292593 100644 --- a/src/utilities/rebuild/rstore.epp +++ b/src/utilities/rebuild/rstore.epp @@ -1,6 +1,6 @@ /* * PROGRAM: JRD Rebuild scrambled database - * MODULE: rstore.e + * MODULE: rstore.epp * DESCRIPTION: Store page headers for analysis * * The contents of this file are subject to the Interbase Public diff --git a/src/wal/walf.cpp b/src/wal/walf.cpp index 0f77cf0ba3..982c7a3945 100644 --- a/src/wal/walf.cpp +++ b/src/wal/walf.cpp @@ -1,6 +1,6 @@ /* * PROGRAM: JRD Write Ahead Log File utilitles - * MODULE: walf.c + * MODULE: walf.cpp * DESCRIPTION: Write Ahead Log File utilities * * The contents of this file are subject to the Interbase Public