|
|
|
@ -204,11 +204,11 @@ static void ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, l |
|
|
|
void |
|
|
|
void |
|
|
|
ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * typ, const char *ind_name, struct ECPGtype * ind_typ, const char *prefix, const char *ind_prefix) |
|
|
|
ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * typ, const char *ind_name, struct ECPGtype * ind_typ, const char *prefix, const char *ind_prefix) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (ind_typ == NULL) |
|
|
|
/* if (ind_typ == NULL)
|
|
|
|
{ |
|
|
|
{ |
|
|
|
ind_typ = &ecpg_no_indicator; |
|
|
|
ind_typ = &ecpg_no_indicator; |
|
|
|
ind_name = "no_indicator"; |
|
|
|
ind_name = "no_indicator"; |
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
switch (typ->typ) |
|
|
|
switch (typ->typ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -228,6 +228,8 @@ ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * typ, const char *in |
|
|
|
|
|
|
|
|
|
|
|
ECPGdump_a_simple(o, name, typ->u.element->typ, |
|
|
|
ECPGdump_a_simple(o, name, typ->u.element->typ, |
|
|
|
typ->u.element->size, typ->size, NULL, prefix); |
|
|
|
typ->u.element->size, typ->size, NULL, prefix); |
|
|
|
|
|
|
|
if (ind_typ != NULL) |
|
|
|
|
|
|
|
{ |
|
|
|
if (ind_typ->typ == ECPGt_NO_INDICATOR) |
|
|
|
if (ind_typ->typ == ECPGt_NO_INDICATOR) |
|
|
|
ECPGdump_a_simple(o, ind_name, ind_typ->typ, ind_typ->size, -1, NULL, ind_prefix); |
|
|
|
ECPGdump_a_simple(o, ind_name, ind_typ->typ, ind_typ->size, -1, NULL, ind_prefix); |
|
|
|
else |
|
|
|
else |
|
|
|
@ -241,6 +243,7 @@ ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * typ, const char *in |
|
|
|
ind_typ->u.element->size, ind_typ->size, NULL, prefix); |
|
|
|
ind_typ->u.element->size, ind_typ->size, NULL, prefix); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case ECPGt_struct: |
|
|
|
case ECPGt_struct: |
|
|
|
ECPGdump_a_struct(o, name, ind_name, 1, typ, ind_typ, NULL, prefix, ind_prefix); |
|
|
|
ECPGdump_a_struct(o, name, ind_name, 1, typ, ind_typ, NULL, prefix, ind_prefix); |
|
|
|
|