X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fconst_ent_example.c;h=49be4363265a64dee8d67cd66cc8a96c277d2ffd;hb=f34c10e30b6812a53efbb2634c04c3511c75344b;hp=928dbe928817232ad4f39a2ceded2852ab3332cf;hpb=13588bfa29b57530c70851264dd5ea05184b9486;p=libfirm diff --git a/testprograms/const_ent_example.c b/testprograms/const_ent_example.c index 928dbe928..49be43632 100644 --- a/testprograms/const_ent_example.c +++ b/testprograms/const_ent_example.c @@ -1,12 +1,17 @@ -/* Copyright (C) 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Author: Goetz Lindenmaier -* -* testprogram. -*/ - -#include +/* + * Project: libFIRM + * File name: testprograms/const_ent_example.c + * Purpose: Shows how to construct type information for constant entities. + * Author: 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 # include "irvrfy.h" @@ -14,26 +19,26 @@ # include "firm.h" /** -* This file constructs type information for constant entities. -* -* It constructs the information for a class type with a dispatch -* table. The class has a field a, and two methods f and g. The -* class is represented by a class type with two entities for the -* field a and the reference to the dispatch table. This reference -* is a constant entity. Ther dispatch table is also represented -* by a class type that contains the two methods. There is one entity -* of the dispatch table which is constant. -* -* Further the example shows the representation of a constant global -* array. -* -* class C { -* int a; -* void f(); -* void g(int); -* } -* int[4] arre = (7, 2, 13, 92); -**/ + * This file constructs type information for constant entities. + * + * It constructs the information for a class type with a dispatch + * table. The class has a field a, and two methods f and g. The + * class is represented by a class type with two entities for the + * field a and the reference to the dispatch table. This reference + * is a constant entity. Ther dispatch table is also represented + * by a class type that contains the two methods. There is one entity + * of the dispatch table which is constant. + * + * Further the example shows the representation of a constant global + * array. + * + * class C { + * int a; + * void f(); + * void g(int); + * } + * int[4] arre = (7, 2, 13, 92); + **/ int main(int argc, char **argv) {