2001-05-23 15:26:42 +02:00
|
|
|
/*
|
|
|
|
* PROGRAM: Dynamic SQL runtime support
|
|
|
|
* MODULE: pass1_proto.h
|
2003-09-29 14:43:14 +02:00
|
|
|
* DESCRIPTION: Prototype Header file for pass1.cpp
|
2001-05-23 15:26:42 +02:00
|
|
|
*
|
|
|
|
* The contents of this file are subject to the Interbase Public
|
|
|
|
* License Version 1.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy
|
|
|
|
* of the License at http://www.Inprise.com/IPL.html
|
|
|
|
*
|
|
|
|
* Software distributed under the License is distributed on an
|
|
|
|
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
|
|
|
|
* or implied. See the License for the specific language governing
|
|
|
|
* rights and limitations under the License.
|
|
|
|
*
|
|
|
|
* The Original Code was created by Inprise Corporation
|
|
|
|
* and its predecessors. Portions created by Inprise Corporation are
|
|
|
|
* Copyright (C) Inprise Corporation.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
* Contributor(s): ______________________________________.
|
|
|
|
*/
|
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#ifndef DSQL_PASS1_PROTO_H
|
|
|
|
#define DSQL_PASS1_PROTO_H
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2010-11-14 18:25:48 +01:00
|
|
|
namespace Jrd
|
|
|
|
{
|
|
|
|
class ValueExprNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
void PASS1_ambiguity_check(Jrd::DsqlCompilerScratch*, const Jrd::dsql_str*, const Jrd::DsqlContextStack&);
|
2009-10-21 02:42:38 +02:00
|
|
|
void PASS1_check_unique_fields_names(Jrd::StrArray& names, const Jrd::dsql_nod* fields);
|
2010-09-17 05:15:32 +02:00
|
|
|
Jrd::dsql_nod* PASS1_compose(Jrd::dsql_nod*, Jrd::dsql_nod*, UCHAR);
|
2010-12-23 19:42:06 +01:00
|
|
|
Jrd::dsql_nod* PASS1_cursor_name(Jrd::DsqlCompilerScratch*, const Firebird::MetaName&, USHORT, bool);
|
2010-11-14 18:25:48 +01:00
|
|
|
void PASS1_field_unknown(const TEXT*, const TEXT*, const Jrd::dsql_nod*);
|
2010-02-22 17:00:49 +01:00
|
|
|
Jrd::dsql_nod* PASS1_label(Jrd::DsqlCompilerScratch*, Jrd::dsql_nod*);
|
|
|
|
Jrd::dsql_nod* PASS1_label2(Jrd::DsqlCompilerScratch*, Jrd::dsql_nod*, Jrd::dsql_nod*);
|
2009-12-20 22:01:10 +01:00
|
|
|
Jrd::dsql_ctx* PASS1_make_context(Jrd::DsqlCompilerScratch* statement, const Jrd::dsql_nod* relation_node);
|
|
|
|
Jrd::dsql_nod* PASS1_node(Jrd::DsqlCompilerScratch*, Jrd::dsql_nod*);
|
2010-02-13 21:29:29 +01:00
|
|
|
bool PASS1_node_match(const Jrd::dsql_nod*, const Jrd::dsql_nod*, bool);
|
2009-12-20 22:01:10 +01:00
|
|
|
Jrd::dsql_nod* PASS1_node_psql(Jrd::DsqlCompilerScratch*, Jrd::dsql_nod*, bool);
|
2010-11-14 18:25:48 +01:00
|
|
|
Jrd::dsql_nod* PASS1_post_map(Jrd::DsqlCompilerScratch*, Jrd::ValueExprNode*, Jrd::dsql_ctx*,
|
|
|
|
Jrd::dsql_nod*, Jrd::dsql_nod*);
|
2010-02-13 21:29:29 +01:00
|
|
|
Jrd::dsql_nod* PASS1_post_map(Jrd::DsqlCompilerScratch*, Jrd::dsql_nod*, Jrd::dsql_ctx*,
|
|
|
|
Jrd::dsql_nod*, Jrd::dsql_nod*);
|
2009-12-20 22:01:10 +01:00
|
|
|
Jrd::dsql_nod* PASS1_rse(Jrd::DsqlCompilerScratch*, Jrd::dsql_nod*, Jrd::dsql_nod*);
|
2010-02-13 21:29:29 +01:00
|
|
|
bool PASS1_set_parameter_type(Jrd::DsqlCompilerScratch*, Jrd::dsql_nod*, Jrd::dsql_nod*, bool);
|
2009-12-20 22:01:10 +01:00
|
|
|
Jrd::dsql_nod* PASS1_statement(Jrd::DsqlCompilerScratch*, Jrd::dsql_nod*);
|
2001-05-23 15:26:42 +02:00
|
|
|
|
2003-09-26 12:50:59 +02:00
|
|
|
#endif // DSQL_PASS1_PROTO_H
|