]> cygwin.com Git - cygwin-apps/setup.git/blob - inilintmain.cc
2002-05-19 Robert Collins <rbtcollins@hotmail.com>
[cygwin-apps/setup.git] / inilintmain.cc
1 /*
2 * Copyright (c) 2002, Robert Collins.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * A copy of the GNU General Public License can be found at
10 * http://www.gnu.org/
11 *
12 * Written by Robert Collins <rbtcollins@hotmail.com>
13 *
14 */
15
16 #if 0
17 static const char *cvsid =
18 "\n%%% $Id$\n";
19 #endif
20
21 #include "getopt++/GetOption.h"
22 #include "String++.h"
23 #include <iostream>
24 #include <strstream>
25
26 extern int yylineno;
27
28 static ostrstream error_buf;
29 static int error_count = 0;
30
31 extern int
32 yyerror (String const &s)
33 {
34 ostrstream buf;
35 buf << "setup.ini line " << yylineno << ": ";
36 buf << s << endl;
37 cout << buf;
38 error_buf << buf;
39 error_count++;
40 /* TODO: is return 0 correct? */
41 return 0;
42 }
43
44 int
45 main (int argc, char **argv)
46 {
47 return 0;
48 }
This page took 0.032869 seconds and 5 git commands to generate.