stupid encoding error on i44pc47
[libfirm] / testprograms / call_str_example.c
index d275d07..604a1d7 100644 (file)
@@ -1,10 +1,14 @@
-/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
-* All rights reserved.
-*
-* Authors: Christian Schaefer, Goetz Lindenmaier
-*
-* testprogram.
-*/
+/*
+ * Project:     libFIRM
+ * File name:   testprograms/call_str_example.c
+ * Purpose:     Shows representation of constant string.
+ * 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 <string.h>
 # include <stdio.h>
 # include "firm.h"
 
 /**
-*  This file constructs the ir for the following pseudo-program:
-*
-*  void f(char *);
-*
-*  void CALL_STR_EXAMPLE_main () {
-      f("Hello World\n");
-*  }
-*
-*  This program shall demonstrate how to represent string constants.
-**/
+ *  This file constructs the ir for the following pseudo-program:
+ *
+ *  void f(char *);
+ *
+ *  void CALL_STR_EXAMPLE_main () {
     f("Hello World\n");
+ *  }
+ *
+ *  This program demonstrates how to represent string constants.
+ */
 
 int main(int argc, char **argv)
 {
@@ -51,7 +55,7 @@ int main(int argc, char **argv)
 
   /* Make a global entity that represents the constant String. */
   const_str = new_entity(get_glob_type(), new_id_from_str("constStr"), U8array);
-  set_entity_variability(const_str, constant);
+  set_entity_variability(const_str, variability_constant);
   for (i = 0; i < strlen(str); i++) {
     tarval *val = new_tarval_from_long(str[i], mode_Bu);
     ir_node *con =  new_Const(mode_Bu, val);