]> cygwin.com Git - cygwin-apps/setup.git/blobdiff - inilintmain.cc
2002-05-03 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / inilintmain.cc
index ae4acf4d8cbb90a6270016529823cd77d9057ac4..5edd96ff2a5762b718be8e347edba84d81b7ab9a 100644 (file)
@@ -18,10 +18,28 @@ static const char *cvsid =
   "\n%%% $Id$\n";
 #endif
 
-#include "win32.h"
-#include <commctrl.h>
-
 #include "getopt++/GetOption.h"
+#include "String++.h"
+#include <iostream>
+#include <strstream>
+
+extern int yylineno;
+
+static ostrstream error_buf;
+static int error_count = 0;
+
+extern int
+yyerror (String const &s)
+{
+  ostrstream buf;
+  buf << "setup.ini line " << yylineno << ": ";
+  buf << s << endl;
+  cout << buf;
+  error_buf << buf; 
+  error_count++;
+  /* TODO: is return 0 correct? */
+  return 0;
+}
 
 int
 main (int argc, char **argv)
This page took 0.02426 seconds and 5 git commands to generate.