Give type data a null pointer.

Pointers to the void type descriptor looked just like null pointers and
that was terribly confusing. Avoid that confusion by pre-allocating a
small amount of data in order to reserve space for a null descriptor.
This commit is contained in:
Bill Currie 2011-02-23 08:04:09 +09:00
parent e68e6d0858
commit c585a17db9

View file

@ -146,6 +146,7 @@ InitData (void)
pr.near_data->grow = 0;
pr.type_data = new_defspace ();
defspace_new_loc (pr.type_data, 4); // reserve space for a null descriptor
pr.symtab = new_symtab (0, stab_global);
pr.symtab->space = pr.near_data;