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

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/src/Builder.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:
17
17
// MA  02111-1307  USA                                            
18
18
 
19
19
#include "Puma/Builder.h"
 
20
#include "Puma/CObjectInfo.h"
 
21
#include "Puma/CScopeInfo.h"
20
22
 
21
23
namespace Puma {
22
24
 
29
31
 
30
32
void Builder::destroy (CTree *t) {
31
33
  if (t) {
 
34
    if (t->SemObject() || t->SemScope()) {
 
35
      CObjectInfo* info = t->SemObject() ? t->SemObject()->Object() :
 
36
       (CObjectInfo*)t->SemScope()->Scope();
 
37
      if (info && info->Tree() == t)
 
38
        info->Tree(0);
 
39
    }
32
40
    for (int s = 0; s < t->Sons (); s++)
33
41
      destroy (t->Son (s));
34
42
    delete t;