X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Finheritance_example.c;h=a2e1a2e59a4e719449a141c5eb52f6ceab3c2094;hb=67067849894a6b5e0f87253ede8539331e3bdc3d;hp=561ae165ce6a9599ba9ad58744596b4268fdc584;hpb=6ed168c29789db8edf25c87f2da9164c49a5512c;p=libfirm diff --git a/testprograms/inheritance_example.c b/testprograms/inheritance_example.c index 561ae165c..a2e1a2e59 100644 --- a/testprograms/inheritance_example.c +++ b/testprograms/inheritance_example.c @@ -1,9 +1,9 @@ /* Copyright (C) 2000 by Universitaet Karlsruhe -** All rights reserved. -** -** Author: Goetz Lindenmaier -** -** testprogram. +* All rights reserved. +* +* Author: Goetz Lindenmaier +* +* testprogram. */ # include @@ -14,27 +14,27 @@ # include "firm.h" /** -*** This file constructs type information for the following pseudo-program. -*** The procedure code is not constructed. -*** -*** interface I { -*** void m1 (void); -*** } -*** -*** class C implements I { -*** void m1 (void) {return}; -*** void m2 (int) {return 0}; -*** } -*** -*** class D { -*** int b; -*** } -*** -*** class E extends C, D { -*** void m2 (int) {return 1}; -*** int a; -*** } -*** +* This file constructs type information for the following pseudo-program. +* The procedure code is not constructed. +* +* interface I { +* void m1 (void); +* } +* +* class C implements I { +* void m1 (void) {return}; +* void m2 (int) {return 0}; +* } +* +* class D { +* int b; +* } +* +* class E extends C, D { +* void m2 (int) {return 1}; +* int a; +* } +* **/ int main(int argc, char **argv) @@ -45,10 +45,10 @@ int main(int argc, char **argv) type *intt; entity *i_m1e, *c_m1e, *c_m2e, *e_m2e, *d_be, *e_ae; /* e names entities */ - printf("\nCreating type information...\n"); + printf("\nCreating type information for INHERITANCE_EXAMPLE ...\n"); /** init library */ - init_firm (); + init_firm (NULL); /** make idents for all used identifiers in the program. */ ii = id_from_str("i", strlen("i"));