Skip to content
Snippets Groups Projects
Commit c9d040b7 authored by Philippe Canal's avatar Philippe Canal
Browse files

fix cint7 dictionary generation of enum (broken yesterday)

git-svn-id: http://root.cern.ch/svn/root/trunk@29115 27541ba8-7e3a-0410-8455-c3a389f83636
parent f76add59
No related branches found
No related tags found
No related merge requests found
......@@ -2412,7 +2412,7 @@ extern "C" int G__search_tagname(const char* tagname, int type)
G__struct.name[i] = (char*) malloc((size_t)(len + 1));
strcpy(G__struct.name[i], atom_tagname);
G__struct.hash[i] = len;
G__struct.size[i] = (type=='e') ? 4 : 0; // For consistency with Reflex (Need for cintexcompat)
G__struct.size[i] = 0; // (type=='e') ? 4 : 0; // For consistency with Reflex (Need for cintexcompat)
G__struct.type[i] = type; // 'c' class, 'e' enum, 'n', namespace, 's' struct, 'u' union
G__struct.baseclass[i] = new G__inheritance();
G__struct.virtual_offset[i] = G__PVOID; // -1 means no virtual function
......
......@@ -243,7 +243,7 @@ void Cintex::Enable()
p = (G__RflxProperties*) tb->Properties().PropertyValue(pid).Address();
// If we have a properties, this type has been seen by CINT but possibly
// only has a forward declaration like operation.
if (p && p->filenum == -1 && ty.SizeOf()>0 && p->tagnum!=-1 && Cint::Internal::G__struct.size[p->tagnum]==0) {
if (p && p->filenum == -1 && ty.SizeOf()>0 && p->tagnum!=-1 && (Cint::Internal::G__struct.size[p->tagnum]==0 && Cint::Internal::G__struct.type[p->tagnum]!='e')) {
// Force the update
p = 0;
//fprintf(stderr,"The type %s has been only partially setup %d %d \n",ty.Name(Reflex::SCOPED).c_str(),ty.SizeOf(),Cint::Internal::G__struct.size[p->tagnum]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment