Overview
Comment:got_comment: (char)c no longer compared to (int)EOF.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/merging-ode2odes-exe | trunk
Files: files | file ages | folders
SHA3-256: c00e886aeaba57f318d8cf3826a89f6a33324f9ee3d9376f387d646f45c96386
User & Date: geraint@users.sourceforge.net on 2001-03-09 02:59:26
Other Links: branch diff | manifest | tags
Context
2001-03-09
03:19:57
Renamed parser parser.exe (cvs ignores by default). check-in: 90917ba925 user: geraint@users.sourceforge.net tags: origin/merging-ode2odes-exe, trunk
02:59:26
got_comment: (char)c no longer compared to (int)EOF. check-in: c00e886aea user: geraint@users.sourceforge.net tags: origin/merging-ode2odes-exe, trunk
02:52:11
Fixed parser path. check-in: 8f895130d6 user: geraint@users.sourceforge.net tags: origin/merging-ode2odes-exe, trunk
Changes

Modified mttroot/mtt/cc/parse_m2cc.cc from [3b05b7d2a2] to [fde05ab4ba].

1
2



3
4
5
6
7
8
9
/* $Id$
 * $Log$



 * Revision 1.1  2000/10/31 04:29:50  geraint
 * Initial revision
 *
 */





>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
/* $Id$
 * $Log$
 * Revision 1.1  2000/12/28 09:46:05  peterg
 * put under RCS
 *
 * Revision 1.1  2000/10/31 04:29:50  geraint
 * Initial revision
 *
 */



197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
{
  /*
   * get remainder of line in case there are any commented keywords
   */
  char c;
  cout << " // ";
  cin >> c;
  while (c != '\n' && c != EOF)
    {
      cout << c;
      cin >> c;
    }
  cout << endl
       << indent () << ';' << endl
       << indent ();
}
  









|
<
|
|
<







200
201
202
203
204
205
206
207

208
209

210
211
212
213
214
215
216
{
  /*
   * get remainder of line in case there are any commented keywords
   */
  char c;
  cout << " // ";
  cin >> c;
  do {

    cout << c;
  } while (c != '\n' && cin >> c);

  cout << endl
       << indent () << ';' << endl
       << indent ();
}
  



MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]