]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/DEVEL/mathml_editor/textomml/main.cc
ocaml 3.09 transition
[helm.git] / helm / DEVEL / mathml_editor / textomml / main.cc
index 19a9621895a22d52a893d1b593d2dcd9232557ae..9da0f0993e52479e09b54cf226d0b6efb853b346 100644 (file)
@@ -24,8 +24,8 @@
  */
 
 #include <getopt.h>
-
 #include <fstream>
+#include <cassert>
 
 #include "dom.hh"
 #include "TPushParser.hh"
@@ -98,7 +98,7 @@ parseError(const char* option)
   printHelp();
 }
 
-void
+int
 main(int argc, char* argv[])
 {
   CLoggerConsole logger;
@@ -175,7 +175,7 @@ main(int argc, char* argv[])
 
   if (optind < argc)
     {
-      ifstream file(argv[optind]);
+      std::ifstream file(argv[optind]);
       if (!file)
        {
          std::cerr << "can't open input file `" << argv[optind] << "'" << std::endl;