init_firm() takes now a parameter, the old behavior is enfrced with NULL.
[libfirm] / testprograms / global_var_example.c
index 503f1ea..056b25b 100644 (file)
@@ -1,10 +1,10 @@
 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
-** All rights reserved.
-**
-** Authors: Goetz Lindenmaier
-**
-** testprogram.
-**
+* All rights reserved.
+*
+* Authors: Goetz Lindenmaier
+*
+* testprogram.
+*
 */
 
 # include <stdio.h>
  */
 
 /**
-***  This program shows how to build ir for global variables.
-***  It constructs the ir for the following pseudo-program:
-***
-***  int i;
-***
-***  main() {
-***    i = 2;
-***    return;
-***  }
+*  This program shows how to build ir for global variables.
+*  It constructs the ir for the following pseudo-program:
+*
+*  int i;
+*
+*  main() {
+*    i = 2;
+*    return;
+*  }
 **/
 
 int main(int argc, char **argv)
@@ -43,7 +43,7 @@ int main(int argc, char **argv)
   printf("\nCreating an IR graph: GLOBAL_VAR ...\n");
 
   /* init library */
-  init_firm ();
+  init_firm (NULL);
 
   /* make basic type information for primitive type int.
      In Sather primitive types are represented by a class.
@@ -57,7 +57,7 @@ int main(int argc, char **argv)
    * a large class containing all functions as methods in this file.
    * This class is automatically generated and can be obtained by get_glob_type().
    */
-#define METHODNAME "main"
+#define METHODNAME "GLOBAL_VAR_main"
 #define NRARGS 0
 #define NRES 0