Originally Posted by
dwks
What happens if you use **pretypes_objfile instead of *pretypes_objfile[]?
Well actually that seems to cause further problems as certain things stop being
constant initializers:
Code:
static const struct mkf_type **pretypes_csource = {
&type_compiletx,
};
static const char *suffixes_csource[] = {
"c",
};
static const struct mkf_type type_csource = {
&type_objfile,
pretypes_csource,
sizeof(pretypes_csource) / sizeof(struct mkf_type *),
suffixes_csource,
sizeof(suffixes_csource) / sizeof(const char *),
0,
0,
0,
MKFF_CC,
0,
};
Gives the error:
Code:
type.c:37: warning: initialization from incompatible pointer type
type.c:44: error: initializer element is not constant
type.c:44: error: (near initialization for `type_csource.pre_types')
Which just seems wrong to me somehow...