Add new-style declaration support for global declarations.
This commit is contained in:
@@ -3021,6 +3021,22 @@ SC_FUNC symbol *addvariable(const char *name,cell addr,int ident,int vclass,int
|
||||
return addvariable2(name,addr,ident,vclass,tag,dim,numdim,idxtag,0);
|
||||
}
|
||||
|
||||
SC_FUNC symbol *addvariable3(declinfo_t *decl,cell addr,int vclass,int slength)
|
||||
{
|
||||
typeinfo_t *type = &decl->type;
|
||||
return addvariable2(
|
||||
decl->name,
|
||||
addr,
|
||||
type->ident,
|
||||
vclass,
|
||||
type->tag,
|
||||
type->dim,
|
||||
type->numdim,
|
||||
type->idxtag,
|
||||
slength
|
||||
);
|
||||
}
|
||||
|
||||
SC_FUNC symbol *addvariable2(const char *name,cell addr,int ident,int vclass,int tag,
|
||||
int dim[],int numdim,int idxtag[],int slength)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user