]> ruin.nu Git - popboot.git/blobdiff - parser.y
Spelling fix in inittab
[popboot.git] / parser.y
index 1fec19db31f6f6704f3f1564e185c34ae6679542..ad68377a79770ad4c4403dd80e29bffc68d682d6 100644 (file)
--- a/parser.y
+++ b/parser.y
@@ -13,6 +13,7 @@
 
     using namespace std;
 
+    int yyparse(void);
     int yylex (void);
     void yyerror (char const *);
 
@@ -64,7 +65,7 @@ action        : id preconds '\n' exec effects '\n' {
 
                                //---------------------------------------------
                                // Debug test print :   
-                               cerr << "id:  " << *$1 << endl;
+/*                             cerr << "id:  " << *$1 << endl;
 
                                // Precondition flags:
                                cerr << "a: " << (*$2)["a"] << endl;
@@ -81,7 +82,7 @@ action        : id preconds '\n' exec effects '\n' {
                                cerr << "88: " << (*$5)[88].size() << endl;
 
                                cerr << endl;
-                               //----------------------------------------------
+*/                             //----------------------------------------------
                                            }
        ;
 
@@ -248,11 +249,14 @@ main (int argc, char** argv)
 
     yyparse();
 
-    cerr << (*runlevels)[2].size() << endl;
+/*    cerr << (*runlevels)[2].size() << endl;
     cerr << (*runlevels)[3].size() << endl;
     cerr << (*runlevels)[4].size() << endl;
     cerr << (*runlevels)[5].size() << endl;
-
+*/
     Planner p(*actions, init, (*runlevels)[atoi(argv[2])]);
     p.execute();
+
+    delete actions;
+       delete runlevels;
 }