X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Foo_program_example.c;h=ab3a4cc961cfdd832bad7ba99ea4f65c4dd42b52;hb=76572961989e62cef01b295c6c8af7460f6080dd;hp=73ae9c907978749b0a18997da4171776b4018691;hpb=8a828c064c24643f30d68b67808a62e8a7ae1d80;p=libfirm diff --git a/testprograms/oo_program_example.c b/testprograms/oo_program_example.c index 73ae9c907..ab3a4cc96 100644 --- a/testprograms/oo_program_example.c +++ b/testprograms/oo_program_example.c @@ -1,10 +1,14 @@ -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -* All rights reserved. -* -* Authors: Goetz Lindenmaier -* -* testprogram. -*/ +/* + * Project: libFIRM + * File name: testprograms/oo_program_example.c + * Purpose: A complex example. + * 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 @@ -55,7 +59,7 @@ main(void) int i; - init_firm (); + init_firm (NULL); set_opt_constant_folding(1); set_opt_cse(1); @@ -110,8 +114,8 @@ main(void) set_irp_main_irg(main_irg); /* Make the constants. They are independent of a block. */ - c2 = new_Const (mode_Is, tarval_from_long (mode_Is, 2)); - c5 = new_Const (mode_Is, tarval_from_long (mode_Is, 5)); + c2 = new_Const (mode_Is, new_tarval_from_long (2, mode_Is)); + c5 = new_Const (mode_Is, new_tarval_from_long (5, mode_Is)); /* There is only one block in main, it contains the allocation and the calls. */ /* Allocate the defined object and generate the type information. */