~ubuntu-branches/ubuntu/wily/aspectc++/wily

« back to all changes in this revision

Viewing changes to Puma/src/parser/Parser.cc

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-06-15 10:17:02 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090615101702-qsr30iptwbxylmo2
Tags: 1.0pre4~svn.20090615-1
* New upstream release.
* don't ignore errors in the postrm script
* avoid spurious creation of empty dir ./usr/sbin/
* improve short descriptions of libpuma-doc and libpuma-dev
* bump Standards-Version to 3.8.1
* bump debhelper compat level to level 7 (latest in stable)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  semantic->configure (c);
36
36
}
37
37
 
38
 
CTranslationUnit *Parser::parse (Unit &unit, CProject &p, int pre_mode) {
 
38
CTranslationUnit *Parser::parse (Unit &unit, CProject &p, int pre_mode, std::ostream& os) {
39
39
  CTranslationUnit *tu = new CTranslationUnit (unit, p);
40
40
 
41
41
  // configure syntax and semantic object
45
45
  TokenStream stream;           // linearize tokens from several files
46
46
  stream.push (&unit); 
47
47
  p.unitManager ().init ();
48
 
  PreprocessorParser cpp (&p.err (), &p.unitManager (), &tu->local_units ());
 
48
  PreprocessorParser cpp (&p.err (), &p.unitManager (), &tu->local_units (), os);
49
49
  cpp.macroManager ()->init (unit.name ());
50
50
  cpp.stream (&stream);
51
51
  cpp.configure (p.config ());