type* PointerTo (const type* T)
/* Return a type string that is "pointer to T". The type string is allocated
* on the heap and may be freed after use.
- */
+ */
{
/* Get the size of the type string including the terminator */
unsigned Size = TypeLen (T) + 1;
switch (UnqualifiedType (T[0])) {
case T_VOID:
- Error (ERR_ILLEGAL_SIZE);
+ Error ("Variable has unknown size");
return 1; /* Return something that makes sense */
case T_SCHAR:
FuncDesc* F;
switch (UnqualifiedType (T[0])) {
-
+
case T_SCHAR:
return CF_CHAR;
return CF_INT | CF_UNSIGNED;
default:
- Error (ERR_ILLEGAL_TYPE);
+ Error ("Illegal type");
return CF_INT;
}
}