fixed bug: qualified type introduction within structure decl
This commit is contained in:
parent
d2fb022441
commit
55131b091f
|
@ -14,6 +14,7 @@
|
||||||
struct file_info finfo;
|
struct file_info finfo;
|
||||||
#include "nopp.h"
|
#include "nopp.h"
|
||||||
#include <inp_pkg.body>
|
#include <inp_pkg.body>
|
||||||
|
#include <alloc.h>
|
||||||
|
|
||||||
#include "dbsymtab.h"
|
#include "dbsymtab.h"
|
||||||
#ifndef NOPP
|
#ifndef NOPP
|
||||||
|
|
|
@ -290,7 +290,18 @@ completed(tp)
|
||||||
struct type *tp;
|
struct type *tp;
|
||||||
{
|
{
|
||||||
register struct type *atp = tp->tp_array;
|
register struct type *atp = tp->tp_array;
|
||||||
|
register struct type *etp = tp;
|
||||||
|
|
||||||
|
switch(etp->tp_fund) {
|
||||||
|
case STRUCT:
|
||||||
|
case UNION:
|
||||||
|
case ENUM:
|
||||||
|
while (etp = etp->next) {
|
||||||
|
if (! etp->tp_sdef) etp->tp_sdef = tp->tp_sdef;
|
||||||
|
etp->tp_size = tp->tp_size;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
while (atp) {
|
while (atp) {
|
||||||
if (atp->tp_nel >= 0) {
|
if (atp->tp_nel >= 0) {
|
||||||
atp->tp_size = atp->tp_nel * tp->tp_size;
|
atp->tp_size = atp->tp_nel * tp->tp_size;
|
||||||
|
|
Loading…
Reference in a new issue