~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/inc/Puma/CSemExpr.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
 
97
97
  // helper
98
98
  static bool isLvalue (CTree *);
 
99
  CTypeInfo* applyImplicitConv (CTree* expr, CTree* base, CTypeInfo* type);
99
100
  void overflow (CTree *, int, bool &) const;
100
101
  int scan_character (CTree *, LONG_LONG &) const;
101
102
  LONG_LONG next_character (const char *&) const;
144
145
public: // common helper, also for CSemVisitor
145
146
  static bool isPtrToObj (CTypeInfo *, unsigned long = 0);
146
147
  static bool isModifiable (CTypeInfo *, unsigned long = 0);
147
 
  static bool compatible (CTypeInfo *, CTypeInfo *);
148
 
  static bool compatibleBase (CTypeInfo *, CTypeInfo *);
 
148
  static bool compatible (CTypeInfo *, CTypeInfo *, CConstant* value = 0);
 
149
  static bool compatibleBase (CTypeInfo *, CTypeInfo *, CConstant* value = 0);
149
150
};
150
151
 
151
152
inline CSemExpr::CSemExpr (ErrorSink &e, CStructure *s) : 
159
160
             (type->isRecord () && type->VirtualType ()->TypeRecord ()->
160
161
              hasConstMember ()));
161
162
}
162
 
inline bool CSemExpr::compatible (CTypeInfo *t1, CTypeInfo *t2) {
163
 
  return *t1->VirtualType () == *t2->VirtualType ();
164
 
}
165
 
inline bool CSemExpr::compatibleBase (CTypeInfo *t1, CTypeInfo *t2) {
166
 
  return compatible (t1->VirtualType ()->BaseType (), t2->VirtualType ()->BaseType ());
 
163
inline bool CSemExpr::compatibleBase (CTypeInfo *t1, CTypeInfo *t2, CConstant* value) {
 
164
  return compatible (t1->VirtualType ()->BaseType (), t2->VirtualType ()->BaseType (), value);
167
165
}
168
166
 
169
167