added error message because of declaration problems
authoreck <none@none>
Thu, 13 Dec 1990 09:14:54 +0000 (09:14 +0000)
committereck <none@none>
Thu, 13 Dec 1990 09:14:54 +0000 (09:14 +0000)
lang/cem/cemcom.ansi/struct.c

index b7e5c00..5d8c50d 100644 (file)
@@ -180,6 +180,7 @@ declare_struct(fund, idf, tpp)
        register struct tag *tg;
 
 
+       if (*tpp) error("multiple types in declaration");
        if (!idf)
                idf = gen_idf();
        tgp = (fund == ENUM ? &idf->id_enum : &idf->id_struct);