~ubuntu-branches/ubuntu/jaunty/aspectc++/jaunty

« back to all changes in this revision

Viewing changes to Puma/examples/cparser/cparser.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-07-07 14:41:02 UTC
  • mfrom: (1.1.3 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080707144102-lzml7t07f3sl00r5
Tags: 1.0pre4~svn.20080711-1
* new upstream snapshot.
* include all upstream documentation. Clarifying emails regarding
  licensing has been included into debian/copyright.
* reformat description following recomendations of
  http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Description
  (Closes: #480316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
  CProject project (err, argc, argv);
77
77
  evalOptions (argc, argv);
78
78
 
 
79
  // language C mode
 
80
  project.config ().Add ("--lang-c");  
 
81
  project.configure (project.config ());
 
82
 
79
83
  Unit *unit = project.scanFile (argv[argc-1]);
80
84
  if (! unit) {
81
85
    cout << "Aborted: Unable to scan input file" << endl;
125
129
  if (fout) delete fout;
126
130
  /*DEBUG*/cout << "Statistics: +" << CTree::alloc << " -" << CTree::release << endl;
127
131
  /*DEBUG*/if (SEM_DECL_SPECS) cerr<<"WARNING: "<<SEM_DECL_SPECS<<" CSemDeclSpec(s) not deleted"<<endl;
128
 
  return 0;
 
132
  return err.severity () > sev_warning;
129
133
}