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

« back to all changes in this revision

Viewing changes to Puma/gen-release/step1/src/CSemDeclSpecs.cc

  • 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:
26
26
namespace Puma {
27
27
 
28
28
 
29
 
CSemDeclSpecs::CSemDeclSpecs (ErrorSink *err, CT_DeclSpecSeq *dss) :
 
29
CSemDeclSpecs::CSemDeclSpecs (ErrorSink *err, CT_DeclSpecSeq *dss, bool support_implicit_int) :
30
30
  _err (err), _dss (dss) {
31
31
   
32
32
  bool no_error = true, have_type = false;
41
41
  no_error = (check_signed_unsigned () && no_error);
42
42
  no_error = (check_long_short () && no_error); 
43
43
 
 
44
  // implicit int
 
45
  if (! have_type && support_implicit_int) {
 
46
    _prim_map[CT_PrimDeclSpec::PDS_INT]++;
 
47
    have_type = true;
 
48
  }
 
49
 
44
50
  // now create the type
45
51
  _type = &CTYPE_UNDEFINED;
46
52
  if (have_type && no_error) {
55
61
// analyses the syntax tree nodes of the decl-spec sequence. Return false
56
62
// if an error was detected. 
57
63
bool CSemDeclSpecs::analyze_seq () {
58
 
 
59
64
  _names = 0, _class_specs = 0, _union_specs = 0, _enum_specs = 0;
60
65
  _def_class = _def_union = _def_enum = false;
61
66
  _name = 0;
155
160
                << "' ignored" << endMessage;
156
161
          have_error = true;
157
162
        }
158
 
      break;
 
163
        break;
159
164
      case CT_PrimDeclSpec::PDS_SIGNED:
160
165
        if (count > 0 && _prim_map[CT_PrimDeclSpec::PDS_UNSIGNED] > 0) {
161
166
          *_err << sev_error << _prim_token[s]->location ()