-/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.274 2004/02/16 07:41:54 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.275 2004/02/18 08:42:02 meskes Exp $ */
/* Copyright comment */
%{
%type <dtype_enum> descriptor_item desc_header_item
-%type <type> var_type single_vt_type
+%type <type> var_type
%type <action> action
;
single_var_declaration: storage_declaration
- single_vt_type
+ var_type
{
actual_type[struct_level].type_enum = $2.type_enum;
actual_type[struct_level].type_dimension = $2.type_dimension;
{
$$ = cat_str(5, actual_startline[struct_level], $1, $2.type_str, $4, make_str(";\n"));
}
- | single_vt_type
+ | var_type
{
actual_type[struct_level].type_enum = $1.type_enum;
actual_type[struct_level].type_dimension = $1.type_dimension;
| MONTH_P TO MONTH_P { $$ = make_str("month to month"); }
;
-single_vt_type: var_type
- | DOUBLE_P
- {
- $$.type_enum = ECPGt_double;
- $$.type_str = make_str("double");
- $$.type_dimension = make_str("-1");
- $$.type_index = make_str("-1");
- $$.type_sizeof = NULL;
- }
- ;
-
/*
* variable declaration inside exec sql declare block
*/
}
| SQL_BOOL { $$ = ECPGt_bool; }
| CHAR_P { $$ = ECPGt_char; }
+ | DOUBLE_P { $$ = ECPGt_double; }
;
opt_signed: SQL_SIGNED