X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Finheritance_example.c;h=104edf306c23c0c962535499f55636f0f25a174a;hb=f749cd4f6a4acea1670fa6d59b1dcb2c137586d9;hp=561ae165ce6a9599ba9ad58744596b4268fdc584;hpb=6ed168c29789db8edf25c87f2da9164c49a5512c;p=libfirm diff --git a/testprograms/inheritance_example.c b/testprograms/inheritance_example.c index 561ae165c..104edf306 100644 --- a/testprograms/inheritance_example.c +++ b/testprograms/inheritance_example.c @@ -1,10 +1,14 @@ -/* Copyright (C) 2000 by Universitaet Karlsruhe -** All rights reserved. -** -** Author: Goetz Lindenmaier -** -** testprogram. -*/ +/* + * Project: libFIRM + * File name: testprograms/inheritance_example.c + * Purpose: Shows type graph with inheritance. + * Author: Christian Schaefer, Goetz Lindenmaier + * Modified by: + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1999-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ # include # include @@ -14,27 +18,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 +49,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"));