|
1 | 1 | /*
|
2 | 2 | * functions needed for descriptor handling
|
3 | 3 | *
|
4 |
| - * $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/descriptor.c,v 1.25 2007/02/07 00:52:35 petere Exp $ |
| 4 | + * $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/descriptor.c,v 1.26 2007/12/21 14:33:20 meskes Exp $ |
5 | 5 | *
|
6 | 6 | * since descriptor might be either a string constant or a string var
|
7 | 7 | * we need to check for a constant if we expect a constant
|
|
15 | 15 | * assignment handling function (descriptor)
|
16 | 16 | */
|
17 | 17 |
|
18 |
| -struct assignment *assignments; |
| 18 | +static struct assignment *assignments; |
19 | 19 |
|
20 | 20 | void
|
21 | 21 | push_assignment(char *var, enum ECPGdtype value)
|
@@ -43,7 +43,7 @@ drop_assignments(void)
|
43 | 43 | }
|
44 | 44 |
|
45 | 45 | static void
|
46 |
| -ECPGnumeric_lvalue(FILE *f, char *name) |
| 46 | +ECPGnumeric_lvalue(char *name) |
47 | 47 | {
|
48 | 48 | const struct variable *v = find_variable(name);
|
49 | 49 |
|
@@ -156,7 +156,7 @@ output_get_descr_header(char *desc_name)
|
156 | 156 | for (results = assignments; results != NULL; results = results->next)
|
157 | 157 | {
|
158 | 158 | if (results->value == ECPGd_count)
|
159 |
| - ECPGnumeric_lvalue(yyout, results->variable); |
| 159 | + ECPGnumeric_lvalue(results->variable); |
160 | 160 | else
|
161 | 161 | mmerror(PARSE_ERROR, ET_WARNING, "unknown descriptor header item '%d'", results->value);
|
162 | 162 | }
|
@@ -205,7 +205,7 @@ output_set_descr_header(char *desc_name)
|
205 | 205 | for (results = assignments; results != NULL; results = results->next)
|
206 | 206 | {
|
207 | 207 | if (results->value == ECPGd_count)
|
208 |
| - ECPGnumeric_lvalue(yyout, results->variable); |
| 208 | + ECPGnumeric_lvalue(results->variable); |
209 | 209 | else
|
210 | 210 | mmerror(PARSE_ERROR, ET_WARNING, "unknown descriptor header item '%d'", results->value);
|
211 | 211 | }
|
@@ -317,7 +317,7 @@ struct variable *
|
317 | 317 | descriptor_variable(const char *name, int input)
|
318 | 318 | {
|
319 | 319 | static char descriptor_names[2][MAX_DESCRIPTOR_NAMELEN];
|
320 |
| - static const struct ECPGtype descriptor_type = {ECPGt_descriptor, NULL}; |
| 320 | + static const struct ECPGtype descriptor_type = {ECPGt_descriptor, NULL, NULL, {NULL}, 0}; |
321 | 321 | static const struct variable varspace[2] = {
|
322 | 322 | {descriptor_names[0], (struct ECPGtype *) & descriptor_type, 0, NULL},
|
323 | 323 | {descriptor_names[1], (struct ECPGtype *) & descriptor_type, 0, NULL}
|
|
0 commit comments