More docu added
[libfirm] / ir / common / firm.c
index 94fda9f..f97fe2e 100644 (file)
@@ -1,10 +1,12 @@
 /* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe
-** All rights reserved.
-**
-** Authors: Martin Trapp, Christian Schaefer
-**
+* All rights reserved.
+*
+* Authors: Martin Trapp, Christian Schaefer
+*
 */
 
+/* $Id$ */
+
 #ifdef HAVE_CONFIG_H
 # include <config.h>
 #endif
 # include "firm.h"
 # include "mangle.h"
 # include "xp_help.h"
-# include "irnode_t.h"
 # include "tv_t.h"
+/* init functions are not public */
+# include "tpop_t.h"
+# include "irnode_t.h"
+# include "irmode_t.h"
 
 void
 init_firm (void)
@@ -26,9 +31,12 @@ init_firm (void)
   xprintf_register ('v', tarval_print);
   /* register the character 'R' as variable for ir node outputs. */
   xprintf_register ('R', ir_node_print);
+
   /* initialize all ident stuff */
   id_init ();
-  /* create an obstack and put alle tarvals in a pdeq */
+  /* create the type kinds. */
+  init_tpop ();
+  /* create an obstack and put all tarvals in a pdeq */
   tarval_init_1 ();
   /* initialize all modes an ir node can consist of */
   init_mode ();
@@ -38,8 +46,8 @@ init_firm (void)
   init_mangle ();
   /* initalize all op codes an irnode can consist of */
   init_op ();
-  /* called once for each run of this library, empty at this moment!!! */
-  init_cons ();
+  /* called once for each run of this library, empty right now... @@@!!!
+     init_cons (); */
   /* Builds a construct allowing to access all information to be constructed
      later. */
   init_irprog ();