~ubuntu-branches/ubuntu/maverick/aspectc++/maverick

« back to all changes in this revision

Viewing changes to Puma/gen-release/step2/src/UnitManager.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:
1
 
// This file is part of PUMA.
2
 
// Copyright (C) 1999-2003  The PUMA developer team.
3
 
//                                                                
4
 
// This program is free software;  you can redistribute it and/or 
5
 
// modify it under the terms of the GNU General Public License as 
6
 
// published by the Free Software Foundation; either version 2 of 
7
 
// the License, or (at your option) any later version.            
8
 
//                                                                
9
 
// This program is distributed in the hope that it will be useful,
10
 
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
11
 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
12
 
// GNU General Public License for more details.                   
13
 
//                                                                
14
 
// You should have received a copy of the GNU General Public      
15
 
// License along with this program; if not, write to the Free     
16
 
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
17
 
// MA  02111-1307  USA                                            
18
 
 
19
 
#include "Puma/Unit.h"
20
 
#include "Puma/Source.h"
21
 
#include "Puma/SysCall.h"
22
 
#include "Puma/FileUnit.h"
23
 
#include "Puma/FileSource.h"
24
 
#include "Puma/ErrorStream.h"
25
 
#include "Puma/UnitManager.h"
26
 
#include "Puma/Tokenizer.h"
 
1
 
 
2
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
 
3
#ifndef __ac_FIRST__var_tmp_aspectc4343_debian_Puma_gen45release_step1__
 
4
#define __ac_FIRST__var_tmp_aspectc4343_debian_Puma_gen45release_step1__
 
5
#define __ac_FIRST_FILE__var_tmp_aspectc4343_debian_Puma_gen45release_step1_src_UnitManager_cc__
 
6
#endif // __ac_FIRST__var_tmp_aspectc4343_debian_Puma_gen45release_step1__
 
7
 
 
8
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
 
9
 
 
10
#line 11 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
11
 
 
12
#ifndef __ac_h_
 
13
#define __ac_h_
 
14
#ifdef __cplusplus
 
15
namespace AC {
 
16
  typedef const char* Type;
 
17
  enum JPType { CALL = 0x0004, EXECUTION = 0x0008, CONSTRUCTION = 0x0010, DESTRUCTION = 0x0020 };
 
18
  struct Action {
 
19
    void **_args; void *_result; void *_target; void *_that; void *_fptr;
 
20
    void (*_wrapper)(Action &);
 
21
    inline void trigger () { _wrapper (*this); }
 
22
  };
 
23
  struct AnyResultBuffer {};
 
24
  template <typename T> struct ResultBuffer : public AnyResultBuffer {
 
25
    char _data[sizeof (T)];
 
26
    ~ResultBuffer () { ((T*)_data)->T::~T(); }
 
27
    operator T& () const { return *(T*)_data; }
 
28
  };
 
29
  template <typename T, typename N> struct TL {
 
30
    typedef T type; typedef N next; enum { ARGS = next::ARGS + 1 };
 
31
  };
 
32
  struct TLE { enum { ARGS = 0 }; };
 
33
  template <typename T> struct Referred { typedef T type; };
 
34
  template <typename T> struct Referred<T &> { typedef T type; };
 
35
  template <typename TL, int I> struct Arg {
 
36
    typedef typename Arg<typename TL::next, I - 1>::Type Type;
 
37
    typedef typename Referred<Type>::type ReferredType;
 
38
  };
 
39
  template <typename TL> struct Arg<TL, 0> {
 
40
    typedef typename TL::type Type;
 
41
    typedef typename Referred<Type>::type ReferredType;
 
42
  };
 
43
  template <class Aspect, int Index>
 
44
  struct CFlow {
 
45
    static int &instance () {
 
46
      static int counter = 0;
 
47
      return counter;
 
48
    }
 
49
    CFlow () { instance ()++; }
 
50
    ~CFlow () { instance ()--; }
 
51
    static bool active () { return instance () > 0; }
 
52
  };
 
53
}
 
54
inline void * operator new (__SIZE_TYPE__, AC::AnyResultBuffer *p) { return p; }
 
55
inline void operator delete (void *, AC::AnyResultBuffer *) { } // for VC++
 
56
#endif // __cplusplus
 
57
#endif // __ac_h_
 
58
 
 
59
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
 
60
 
 
61
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
 
62
 
 
63
#line 64 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
64
 
 
65
#ifndef __ac_fwd_PragmaOnceUnitState__
 
66
#define __ac_fwd_PragmaOnceUnitState__
 
67
class PragmaOnceUnitState;
 
68
namespace AC {
 
69
  template <class JoinPoint>
 
70
  __attribute((always_inline)) inline void invoke_PragmaOnceUnitState_PragmaOnceUnitState_a0_after (JoinPoint *tjp);
 
71
  template <class JoinPoint>
 
72
  __attribute((always_inline)) inline void invoke_PragmaOnceUnitState_PragmaOnceUnitState_a1_after (JoinPoint *tjp);
 
73
}
 
74
#endif
 
75
 
 
76
#ifndef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
77
#define __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
78
#endif
 
79
 
 
80
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
 
81
// This file is part of PUMA.
 
82
// Copyright (C) 1999-2003  The PUMA developer team.
 
83
//                                                                
 
84
// This program is free software;  you can redistribute it and/or 
 
85
// modify it under the terms of the GNU General Public License as 
 
86
// published by the Free Software Foundation; either version 2 of 
 
87
// the License, or (at your option) any later version.            
 
88
//                                                                
 
89
// This program is distributed in the hope that it will be useful,
 
90
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
91
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
92
// GNU General Public License for more details.                   
 
93
//                                                                
 
94
// You should have received a copy of the GNU General Public      
 
95
// License along with this program; if not, write to the Free     
 
96
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
97
// MA  02111-1307  USA                                            
 
98
 
 
99
 
 
100
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Unit.h"
 
101
// This file is part of PUMA.
 
102
// Copyright (C) 1999-2003  The PUMA developer team.
 
103
//                                                                
 
104
// This program is free software;  you can redistribute it and/or 
 
105
// modify it under the terms of the GNU General Public License as 
 
106
// published by the Free Software Foundation; either version 2 of 
 
107
// the License, or (at your option) any later version.            
 
108
//                                                                
 
109
// This program is distributed in the hope that it will be useful,
 
110
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
111
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
112
// GNU General Public License for more details.                   
 
113
//                                                                
 
114
// You should have received a copy of the GNU General Public      
 
115
// License along with this program; if not, write to the Free     
 
116
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
117
// MA  02111-1307  USA                                            
 
118
 
 
119
#ifndef __unit_h__
 
120
#define __unit_h__
 
121
 
 
122
 
 
123
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/List.h"
 
124
// This file is part of PUMA.
 
125
// Copyright (C) 1999-2003  The PUMA developer team.
 
126
//                                                                
 
127
// This program is free software;  you can redistribute it and/or 
 
128
// modify it under the terms of the GNU General Public License as 
 
129
// published by the Free Software Foundation; either version 2 of 
 
130
// the License, or (at your option) any later version.            
 
131
//                                                                
 
132
// This program is distributed in the hope that it will be useful,
 
133
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
134
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
135
// GNU General Public License for more details.                   
 
136
//                                                                
 
137
// You should have received a copy of the GNU General Public      
 
138
// License along with this program; if not, write to the Free     
 
139
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
140
// MA  02111-1307  USA                                            
 
141
 
 
142
#ifndef __list_h__
 
143
#define __list_h__
 
144
 
 
145
 
 
146
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ListElement.h"
 
147
// This file is part of PUMA.
 
148
// Copyright (C) 1999-2003  The PUMA developer team.
 
149
//                                                                
 
150
// This program is free software;  you can redistribute it and/or 
 
151
// modify it under the terms of the GNU General Public License as 
 
152
// published by the Free Software Foundation; either version 2 of 
 
153
// the License, or (at your option) any later version.            
 
154
//                                                                
 
155
// This program is distributed in the hope that it will be useful,
 
156
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
157
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
158
// GNU General Public License for more details.                   
 
159
//                                                                
 
160
// You should have received a copy of the GNU General Public      
 
161
// License along with this program; if not, write to the Free     
 
162
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
163
// MA  02111-1307  USA                                            
 
164
 
 
165
#ifndef __list_element_h__
 
166
#define __list_element_h__
 
167
 
 
168
// Base class for objects that may be inserted into a List. Lists
 
169
// autonomously delete or copy list element. So it's necessary to
 
170
// define a destructor and a duplicate method in the derived
 
171
// classes.
 
172
 
 
173
#include <assert.h>
 
174
 
 
175
namespace Puma {
 
176
 
 
177
 
 
178
class List;
 
179
 
 
180
 
 
181
#line 182 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
182
} // closed Puma
 
183
class CCExprResolve;
 
184
class CExprResolve;
 
185
class WinIfExists;
 
186
class WinImportHandler;
 
187
class WinMacros;
 
188
class WinAsm;
 
189
class WinDeclSpecs;
 
190
class WinMemberExplSpec;
 
191
class WinTypeKeywords;
 
192
class WinFriend;
 
193
class ExtAC;
 
194
class ExtACBuilderCoupling;
 
195
class ExtACSyntaxCoupling;
 
196
class ExtACTree;
 
197
class ExtACKeywords;
 
198
class ExtGnu;
 
199
class PragmaOnceUnitState;
 
200
class PragmaOnce;
 
201
class CMatchSyntax;
 
202
namespace Puma {
 
203
 
 
204
#line 34 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ListElement.h"
 
205
class ListElement {
 
206
#line 207 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
207
  friend class ::CCExprResolve;
 
208
  friend class ::CExprResolve;
 
209
  friend class ::WinIfExists;
 
210
  friend class ::WinImportHandler;
 
211
  friend class ::WinMacros;
 
212
  friend class ::WinAsm;
 
213
  friend class ::WinDeclSpecs;
 
214
  friend class ::WinMemberExplSpec;
 
215
  friend class ::WinTypeKeywords;
 
216
  friend class ::WinFriend;
 
217
  friend class ::ExtAC;
 
218
  friend class ::ExtACBuilderCoupling;
 
219
  friend class ::ExtACSyntaxCoupling;
 
220
  friend class ::ExtACTree;
 
221
  friend class ::ExtACKeywords;
 
222
  friend class ::ExtGnu;
 
223
  friend class ::PragmaOnceUnitState;
 
224
  friend class ::PragmaOnce;
 
225
  friend class ::CMatchSyntax;
 
226
 
 
227
#line 34 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ListElement.h"
 
228
 
 
229
  friend class List;
 
230
 
 
231
  List        *_belonging_to;
 
232
  ListElement *_next;
 
233
  ListElement *_prev;
 
234
 
 
235
public:
 
236
  ListElement () : _belonging_to ((List*)0) {}
 
237
  virtual ~ListElement () { assert (! _belonging_to); };
 
238
 
 
239
  virtual ListElement *duplicate () = 0;
 
240
  List *belonging_to () const { return _belonging_to; }
 
241
};
 
242
 
 
243
 
 
244
} // namespace Puma
 
245
 
 
246
#endif /* __list_element_h__ */
 
247
 
 
248
#line 24 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/List.h"
 
249
namespace Puma {
 
250
 
 
251
 
 
252
 
 
253
#line 254 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
254
} // closed Puma
 
255
class CCExprResolve;
 
256
class CExprResolve;
 
257
class WinIfExists;
 
258
class WinImportHandler;
 
259
class WinMacros;
 
260
class WinAsm;
 
261
class WinDeclSpecs;
 
262
class WinMemberExplSpec;
 
263
class WinTypeKeywords;
 
264
class WinFriend;
 
265
class ExtAC;
 
266
class ExtACBuilderCoupling;
 
267
class ExtACSyntaxCoupling;
 
268
class ExtACTree;
 
269
class ExtACKeywords;
 
270
class ExtGnu;
 
271
class PragmaOnceUnitState;
 
272
class PragmaOnce;
 
273
class CMatchSyntax;
 
274
namespace Puma {
 
275
 
 
276
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/List.h"
 
277
class List {
 
278
#line 279 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
279
  friend class ::CCExprResolve;
 
280
  friend class ::CExprResolve;
 
281
  friend class ::WinIfExists;
 
282
  friend class ::WinImportHandler;
 
283
  friend class ::WinMacros;
 
284
  friend class ::WinAsm;
 
285
  friend class ::WinDeclSpecs;
 
286
  friend class ::WinMemberExplSpec;
 
287
  friend class ::WinTypeKeywords;
 
288
  friend class ::WinFriend;
 
289
  friend class ::ExtAC;
 
290
  friend class ::ExtACBuilderCoupling;
 
291
  friend class ::ExtACSyntaxCoupling;
 
292
  friend class ::ExtACTree;
 
293
  friend class ::ExtACKeywords;
 
294
  friend class ::ExtGnu;
 
295
  friend class ::PragmaOnceUnitState;
 
296
  friend class ::PragmaOnce;
 
297
  friend class ::CMatchSyntax;
 
298
 
 
299
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/List.h"
 
300
 
 
301
  ListElement *_first;
 
302
  ListElement *_last;
 
303
 
 
304
public:
 
305
  List () : _first ((ListElement*)0), _last ((ListElement*)0) {}
 
306
  List (const List &);
 
307
  ~List();
 
308
 
 
309
  List &operator = (const List &);
 
310
  List &operator += (const List &);
 
311
  List operator + (const List &);
 
312
 
 
313
  void clear ();
 
314
 
 
315
  void append (ListElement &);
 
316
  void prepend (ListElement &);
 
317
  void insert (ListElement *at, ListElement &element);
 
318
  void remove (ListElement *element);
 
319
  void kill (ListElement *from, ListElement *to = (ListElement*)0)
 
320
   { List discard; cut (discard, from, to); }
 
321
 
 
322
  void cut (List &out, ListElement *from, ListElement *to = (ListElement*)0);
 
323
  //List *cut (ListElement *from, ListElement *to = (ListElement*)0);
 
324
  List *copy (ListElement *from = (ListElement*)0, 
 
325
              ListElement *to = (ListElement*)0);
 
326
  void paste (ListElement *at, const List &l);
 
327
  void paste_before (ListElement *at, const List &l);
 
328
  void move (ListElement *at, List &l);
 
329
  void move_before (ListElement *at, List &l);
 
330
 
 
331
  bool empty () const { return _first == (ListElement*)0; }
 
332
  const ListElement *first () const { return _first; }
 
333
  const ListElement *last () const { return _last; }
 
334
  const ListElement *next (const ListElement *element) const
 
335
   { return element ? element->_next : 0; }
 
336
  const ListElement *prev (const ListElement *element) const 
 
337
   { return element ? element->_prev : 0; }
 
338
};
 
339
 
 
340
 
 
341
} // namespace Puma
 
342
 
 
343
#endif /* __list_h__ */
 
344
 
 
345
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Printable.h"
 
346
// This file is part of PUMA.
 
347
// Copyright (C) 1999-2003  The PUMA developer team.
 
348
//                                                                
 
349
// This program is free software;  you can redistribute it and/or 
 
350
// modify it under the terms of the GNU General Public License as 
 
351
// published by the Free Software Foundation; either version 2 of 
 
352
// the License, or (at your option) any later version.            
 
353
//                                                                
 
354
// This program is distributed in the hope that it will be useful,
 
355
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
356
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
357
// GNU General Public License for more details.                   
 
358
//                                                                
 
359
// You should have received a copy of the GNU General Public      
 
360
// License along with this program; if not, write to the Free     
 
361
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
362
// MA  02111-1307  USA                                            
 
363
 
 
364
#ifndef __printable_h__
 
365
#define __printable_h__
 
366
 
 
367
#include <iostream>
 
368
using namespace std;
 
369
 
 
370
namespace Puma {
 
371
 
 
372
 
 
373
 
 
374
#line 375 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
375
} // closed Puma
 
376
class CCExprResolve;
 
377
class CExprResolve;
 
378
class WinIfExists;
 
379
class WinImportHandler;
 
380
class WinMacros;
 
381
class WinAsm;
 
382
class WinDeclSpecs;
 
383
class WinMemberExplSpec;
 
384
class WinTypeKeywords;
 
385
class WinFriend;
 
386
class ExtAC;
 
387
class ExtACBuilderCoupling;
 
388
class ExtACSyntaxCoupling;
 
389
class ExtACTree;
 
390
class ExtACKeywords;
 
391
class ExtGnu;
 
392
class PragmaOnceUnitState;
 
393
class PragmaOnce;
 
394
class CMatchSyntax;
 
395
namespace Puma {
 
396
 
 
397
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Printable.h"
 
398
class Printable {
 
399
#line 400 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
400
  friend class ::CCExprResolve;
 
401
  friend class ::CExprResolve;
 
402
  friend class ::WinIfExists;
 
403
  friend class ::WinImportHandler;
 
404
  friend class ::WinMacros;
 
405
  friend class ::WinAsm;
 
406
  friend class ::WinDeclSpecs;
 
407
  friend class ::WinMemberExplSpec;
 
408
  friend class ::WinTypeKeywords;
 
409
  friend class ::WinFriend;
 
410
  friend class ::ExtAC;
 
411
  friend class ::ExtACBuilderCoupling;
 
412
  friend class ::ExtACSyntaxCoupling;
 
413
  friend class ::ExtACTree;
 
414
  friend class ::ExtACKeywords;
 
415
  friend class ::ExtGnu;
 
416
  friend class ::PragmaOnceUnitState;
 
417
  friend class ::PragmaOnce;
 
418
  friend class ::CMatchSyntax;
 
419
 
 
420
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Printable.h"
 
421
 
 
422
public:
 
423
  virtual ~Printable () {}
 
424
  virtual void print (ostream &os) const = 0;
 
425
};
 
426
 
 
427
 
 
428
inline ostream &operator << (ostream &os, const Printable &object) {
 
429
  object.print (os);
 
430
  return os;
 
431
}
 
432
 
 
433
 
 
434
} // namespace Puma
 
435
 
 
436
#endif /* __printable_h__ */
 
437
 
 
438
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
439
 
 
440
#line 441 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
441
 
 
442
#ifndef __ac_fwd_PragmaOnceUnitState__
 
443
#define __ac_fwd_PragmaOnceUnitState__
 
444
class PragmaOnceUnitState;
 
445
namespace AC {
 
446
  template <class JoinPoint>
 
447
  __attribute((always_inline)) inline void invoke_PragmaOnceUnitState_PragmaOnceUnitState_a0_after (JoinPoint *tjp);
 
448
  template <class JoinPoint>
 
449
  __attribute((always_inline)) inline void invoke_PragmaOnceUnitState_PragmaOnceUnitState_a1_after (JoinPoint *tjp);
 
450
}
 
451
#endif
 
452
 
 
453
#ifndef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
454
#define __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
455
#endif
 
456
 
 
457
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
458
// This file is part of PUMA.
 
459
// Copyright (C) 1999-2003  The PUMA developer team.
 
460
//                                                                
 
461
// This program is free software;  you can redistribute it and/or 
 
462
// modify it under the terms of the GNU General Public License as 
 
463
// published by the Free Software Foundation; either version 2 of 
 
464
// the License, or (at your option) any later version.            
 
465
//                                                                
 
466
// This program is distributed in the hope that it will be useful,
 
467
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
468
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
469
// GNU General Public License for more details.                   
 
470
//                                                                
 
471
// You should have received a copy of the GNU General Public      
 
472
// License along with this program; if not, write to the Free     
 
473
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
474
// MA  02111-1307  USA                                            
 
475
 
 
476
#ifndef __UnitState__
 
477
#define __UnitState__
 
478
 
 
479
// The state of a unit: 
 
480
// 1. modified by manipulations and not updated at the class registry
 
481
// 2. modified by manipulations and updated at the class registry
 
482
// 3. unmodified by manipulations and not updated at the class registry
 
483
// 4. unmodified by manipulations and updated at the class registry
 
484
 
 
485
namespace Puma {
 
486
 
 
487
 
 
488
 
 
489
#line 490 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
490
} // closed Puma
 
491
class CCExprResolve;
 
492
class CExprResolve;
 
493
class WinIfExists;
 
494
class WinImportHandler;
 
495
class WinMacros;
 
496
class WinAsm;
 
497
class WinDeclSpecs;
 
498
class WinMemberExplSpec;
 
499
class WinTypeKeywords;
 
500
class WinFriend;
 
501
class ExtAC;
 
502
class ExtACBuilderCoupling;
 
503
class ExtACSyntaxCoupling;
 
504
class ExtACTree;
 
505
class ExtACKeywords;
 
506
class ExtGnu;
 
507
class PragmaOnceUnitState;
 
508
class PragmaOnce;
 
509
class CMatchSyntax;
 
510
namespace Puma {
 
511
 
 
512
#line 31 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
513
 
 
514
#line 515 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
515
} // closed Puma
 
516
 
 
517
#ifndef __ac_guard__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
518
#define __ac_guard__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
519
 
 
520
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
521
// This file is part of PUMA.
 
522
// Copyright (C) 1999-2003  The PUMA developer team.
 
523
//                                                                
 
524
// This program is free software;  you can redistribute it and/or 
 
525
// modify it under the terms of the GNU General Public License as 
 
526
// published by the Free Software Foundation; either version 2 of 
 
527
// the License, or (at your option) any later version.            
 
528
//                                                                
 
529
// This program is distributed in the hope that it will be useful,
 
530
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
531
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
532
// GNU General Public License for more details.                   
 
533
//                                                                
 
534
// You should have received a copy of the GNU General Public      
 
535
// License along with this program; if not, write to the Free     
 
536
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
537
// MA  02111-1307  USA                                            
 
538
 
 
539
#ifndef __PragmaOnceUnitState__
 
540
#define __PragmaOnceUnitState__
 
541
 
 
542
 
 
543
#line 544 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
544
class CCExprResolve;
 
545
class CExprResolve;
 
546
class WinIfExists;
 
547
class WinImportHandler;
 
548
class WinMacros;
 
549
class WinAsm;
 
550
class WinDeclSpecs;
 
551
class WinMemberExplSpec;
 
552
class WinTypeKeywords;
 
553
class WinFriend;
 
554
class ExtAC;
 
555
class ExtACBuilderCoupling;
 
556
class ExtACSyntaxCoupling;
 
557
class ExtACTree;
 
558
class ExtACKeywords;
 
559
class ExtGnu;
 
560
class PragmaOnce;
 
561
class CMatchSyntax;
 
562
 
 
563
#line 22 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
564
class PragmaOnceUnitState {
 
565
#line 566 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
566
 
 
567
public:
 
568
  static PragmaOnceUnitState *aspectof () {
 
569
    static PragmaOnceUnitState __instance;
 
570
    return &__instance;
 
571
  }
 
572
  static PragmaOnceUnitState *aspectOf () {
 
573
    return aspectof ();
 
574
  }
 
575
private:
 
576
 
 
577
#line 22 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
578
 
 
579
#line 580 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
580
  friend class ::CCExprResolve;
 
581
  friend class ::CExprResolve;
 
582
  friend class ::WinIfExists;
 
583
  friend class ::WinImportHandler;
 
584
  friend class ::WinMacros;
 
585
  friend class ::WinAsm;
 
586
  friend class ::WinDeclSpecs;
 
587
  friend class ::WinMemberExplSpec;
 
588
  friend class ::WinTypeKeywords;
 
589
  friend class ::WinFriend;
 
590
  friend class ::ExtAC;
 
591
  friend class ::ExtACBuilderCoupling;
 
592
  friend class ::ExtACSyntaxCoupling;
 
593
  friend class ::ExtACTree;
 
594
  friend class ::ExtACKeywords;
 
595
  friend class ::ExtGnu;
 
596
  friend class ::PragmaOnce;
 
597
  friend class ::CMatchSyntax;
 
598
 
 
599
#line 22 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
600
 
 
601
  /******************************************************/
 
602
  /* specific #pragma once unit state                   */
 
603
  /******************************************************/
 
604
 
 
605
  // pointcut definitions
 
606
  
 
607
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
608
 
 
609
 
 
610
  
 
611
#line 37 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
612
 
 
613
  
 
614
  // initialize new state flag
 
615
  
 
616
#line 3 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
617
 
 
618
public: template<class JoinPoint> void __a0_after 
 
619
#line 40 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
620
 
 
621
#line 40 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
622
(JoinPoint *tjp)
 
623
#line 40 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
624
 {
 
625
#line 626 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
626
 
 
627
  JoinPoint *&thisJoinPoint = tjp;
 
628
 
 
629
#line 40 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
630
 
 
631
#line 632 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
632
 
 
633
  typedef typename JoinPoint::That __JP_That;
 
634
  typedef typename JoinPoint::Target __JP_Target;
 
635
  typedef typename JoinPoint::Result __JP_Result;
 
636
 
 
637
#line 40 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
638
 
 
639
    thisJoinPoint->that ()->_once = false;
 
640
  }
 
641
#line 642 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
642
 
 
643
private:
 
644
 
 
645
#line 42 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
646
 
 
647
  
 
648
  // initialize new flag for all managed units 
 
649
  
 
650
#line 3 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
651
 
 
652
public: template<class JoinPoint> void __a1_after 
 
653
#line 45 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
654
 
 
655
#line 45 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
656
(JoinPoint *tjp)
 
657
#line 45 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
658
 {
 
659
#line 660 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
660
 
 
661
  typedef typename JoinPoint::That __JP_That;
 
662
  typedef typename JoinPoint::Target __JP_Target;
 
663
  typedef typename JoinPoint::Result __JP_Result;
 
664
 
 
665
#line 45 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
666
 
 
667
    // go through the whole unit hash table and reset the 
 
668
    // `#pragma once' state of the units
 
669
    typename __JP_That
 
670
#line 48 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
671
::UMapIter iter;
 
672
    for (iter = tjp->that()->_umap.begin (); iter != tjp->that()->_umap.end (); ++iter)
 
673
      (*iter).second->state ().onlyOnce (false);
 
674
  }
 
675
#line 676 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
676
 
 
677
private:
 
678
 
 
679
#line 51 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
680
 
 
681
 
 
682
protected:
 
683
  // this aspect should never be instantiated directly
 
684
  PragmaOnceUnitState () {}
 
685
};
 
686
#line 687 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
687
 
 
688
namespace AC {
 
689
  template <class JoinPoint>
 
690
  __attribute((always_inline)) inline void invoke_PragmaOnceUnitState_PragmaOnceUnitState_a0_after (JoinPoint *tjp) {
 
691
    ::PragmaOnceUnitState::aspectof()->__a0_after (tjp);
 
692
  }
 
693
  template <class JoinPoint>
 
694
  __attribute((always_inline)) inline void invoke_PragmaOnceUnitState_PragmaOnceUnitState_a1_after (JoinPoint *tjp) {
 
695
    ::PragmaOnceUnitState::aspectof()->__a1_after (tjp);
 
696
  }
 
697
 
698
 
 
699
#line 56 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
700
 
 
701
 
 
702
 
 
703
#endif /* __PragmaOnceUnitState__ */
 
704
 
 
705
#line 8 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
706
#endif
 
707
namespace Puma {
 
708
 
 
709
#line 31 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
710
class UnitState {
 
711
#line 712 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
712
  friend class ::CCExprResolve;
 
713
  friend class ::CExprResolve;
 
714
  friend class ::WinIfExists;
 
715
  friend class ::WinImportHandler;
 
716
  friend class ::WinMacros;
 
717
  friend class ::WinAsm;
 
718
  friend class ::WinDeclSpecs;
 
719
  friend class ::WinMemberExplSpec;
 
720
  friend class ::WinTypeKeywords;
 
721
  friend class ::WinFriend;
 
722
  friend class ::ExtAC;
 
723
  friend class ::ExtACBuilderCoupling;
 
724
  friend class ::ExtACSyntaxCoupling;
 
725
  friend class ::ExtACTree;
 
726
  friend class ::ExtACKeywords;
 
727
  friend class ::ExtGnu;
 
728
  friend class ::PragmaOnceUnitState;
 
729
  friend class ::PragmaOnce;
 
730
  friend class ::CMatchSyntax;
 
731
 
 
732
#line 31 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
733
 
 
734
  bool _modified;
 
735
  bool _updated;
 
736
  long _lastModified;
 
737
      
 
738
public:
 
739
  
 
740
#line 741 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
741
public: __attribute__((always_inline)) inline void __exec_old_C1();
 
742
 
 
743
#line 37 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
744
UnitState ();
 
745
      
 
746
  bool isModified () const;
 
747
  bool isUpdated () const;
 
748
  long lastModified () const;
 
749
 
 
750
  // Is modified and has to be updated.
 
751
  void modified ();
 
752
  void lastModified (long);
 
753
  void unmodified ();
 
754
  void updated ();
 
755
   private:
 
756
 
 
757
#line 32 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/aspects/PragmaOnceUnitState.ah"
 
758
 bool _once ;
 
759
public :
 
760
 
 
761
bool onlyOnce ( ) const { return _once ; }
 
762
void onlyOnce ( bool v ) { _once = v ; }
 
763
#line 48 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
764
 
 
765
#line 766 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
766
 
 
767
template <typename TResult, typename TThat, typename TTarget, typename TArgs> struct TJP__ZN4Puma9UnitStateC1ERKN4PumaE9UnitState_0 {
 
768
  typedef TJP__ZN4Puma9UnitStateC1ERKN4PumaE9UnitState_0 __TJP;
 
769
  typedef TResult Result;
 
770
  typedef TThat   That;
 
771
  typedef TTarget Target;
 
772
  enum { ARGS = TArgs::ARGS };
 
773
  template <int I> struct Arg : AC::Arg<TArgs, I> {};
 
774
  static const int JPID = 3280;
 
775
  static const AC::JPType JPTYPE = (AC::JPType)16;
 
776
  struct Res {
 
777
    typedef void Type;
 
778
    typedef void ReferredType;
 
779
  };
 
780
 
 
781
  That *_that;
 
782
 
 
783
  inline That *that() {return (That*)_that;}
 
784
 
 
785
};
 
786
 
 
787
 
 
788
#line 48 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
789
 
 
790
#line 791 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
791
 
 
792
public:
 
793
inline UnitState (const Puma::UnitState & arg0) : _modified (arg0._modified), _updated (arg0._updated), _lastModified (arg0._lastModified), _once (arg0._once) {
 
794
  typedef TJP__ZN4Puma9UnitStateC1ERKN4PumaE9UnitState_0< void, ::Puma::UnitState , ::Puma::UnitState ,  AC::TL< const ::Puma::UnitState & , AC::TLE > > __TJP;
 
795
  __TJP tjp;
 
796
  tjp._that =  (__TJP::That*)this;
 
797
  AC::invoke_PragmaOnceUnitState_PragmaOnceUnitState_a0_after<__TJP> (&tjp);
 
798
 
 
799
}
 
800
 
 
801
#line 48 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
802
};
 
803
 
 
804
 
 
805
#line 806 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
806
 
 
807
 
 
808
template <typename TResult, typename TThat, typename TTarget, typename TArgs> struct TJP__ZN4Puma9UnitStateC1Ev_0 {
 
809
  typedef TJP__ZN4Puma9UnitStateC1Ev_0 __TJP;
 
810
  typedef TResult Result;
 
811
  typedef TThat   That;
 
812
  typedef TTarget Target;
 
813
  enum { ARGS = TArgs::ARGS };
 
814
  template <int I> struct Arg : AC::Arg<TArgs, I> {};
 
815
  static const int JPID = 3256;
 
816
  static const AC::JPType JPTYPE = (AC::JPType)16;
 
817
  struct Res {
 
818
    typedef void Type;
 
819
    typedef void ReferredType;
 
820
  };
 
821
 
 
822
  That *_that;
 
823
 
 
824
  inline That *that() {return (That*)_that;}
 
825
 
 
826
};
 
827
 
 
828
 
 
829
#line 50 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
830
inline UnitState::UnitState ()
 
831
 
 
832
#line 833 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
833
{
 
834
  typedef TJP__ZN4Puma9UnitStateC1Ev_0< void, ::Puma::UnitState , ::Puma::UnitState ,  AC::TLE > __TJP;
 
835
    __TJP tjp;
 
836
  tjp._that =  (__TJP::That*)this;
 
837
    this->__exec_old_C1();
 
838
  AC::invoke_PragmaOnceUnitState_PragmaOnceUnitState_a0_after<__TJP> (&tjp);
 
839
  
 
840
}
 
841
__attribute__((always_inline)) inline void Puma::UnitState::__exec_old_C1()
 
842
#line 51 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitState.h"
 
843
{ _modified = false; _updated = false; _lastModified = 0; }
 
844
 
 
845
inline bool UnitState::isModified () const 
 
846
 { return _modified; }
 
847
inline bool UnitState::isUpdated () const 
 
848
 { return _updated; }
 
849
inline long UnitState::lastModified () const
 
850
 { return _lastModified; }
 
851
 
 
852
inline void UnitState::modified () 
 
853
 { _modified = true; _updated = false; _lastModified = 0; }
 
854
inline void UnitState::unmodified () 
 
855
 { _modified = false; }
 
856
inline void UnitState::updated () 
 
857
 { _updated = true; }
 
858
inline void UnitState::lastModified (long when) 
 
859
 { _lastModified = when; }
 
860
 
 
861
 
 
862
} // namespace Puma
 
863
 
 
864
#endif /* __UnitState__ */
 
865
 
 
866
#line 26 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Unit.h"
 
867
namespace Puma {
 
868
 
 
869
 
 
870
 
 
871
#line 872 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
872
} // closed Puma
 
873
class CCExprResolve;
 
874
class CExprResolve;
 
875
class WinIfExists;
 
876
class WinImportHandler;
 
877
class WinMacros;
 
878
class WinAsm;
 
879
class WinDeclSpecs;
 
880
class WinMemberExplSpec;
 
881
class WinTypeKeywords;
 
882
class WinFriend;
 
883
class ExtAC;
 
884
class ExtACBuilderCoupling;
 
885
class ExtACSyntaxCoupling;
 
886
class ExtACTree;
 
887
class ExtACKeywords;
 
888
class ExtGnu;
 
889
class PragmaOnceUnitState;
 
890
class PragmaOnce;
 
891
class CMatchSyntax;
 
892
namespace Puma {
 
893
 
 
894
#line 29 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Unit.h"
 
895
class Unit : public List, public Printable {
 
896
#line 897 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
897
  friend class ::CCExprResolve;
 
898
  friend class ::CExprResolve;
 
899
  friend class ::WinIfExists;
 
900
  friend class ::WinImportHandler;
 
901
  friend class ::WinMacros;
 
902
  friend class ::WinAsm;
 
903
  friend class ::WinDeclSpecs;
 
904
  friend class ::WinMemberExplSpec;
 
905
  friend class ::WinTypeKeywords;
 
906
  friend class ::WinFriend;
 
907
  friend class ::ExtAC;
 
908
  friend class ::ExtACBuilderCoupling;
 
909
  friend class ::ExtACSyntaxCoupling;
 
910
  friend class ::ExtACTree;
 
911
  friend class ::ExtACKeywords;
 
912
  friend class ::ExtGnu;
 
913
  friend class ::PragmaOnceUnitState;
 
914
  friend class ::PragmaOnce;
 
915
  friend class ::CMatchSyntax;
 
916
 
 
917
#line 29 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Unit.h"
 
918
 
 
919
  char *_name;
 
920
  UnitState _state;
 
921
 
 
922
public:
 
923
  Unit () : List (), _name ((char*)0) {}
 
924
  Unit (const List &list) : List (list), _name ((char*)0) {}
 
925
  virtual ~Unit ();
 
926
  virtual void name (const char *);
 
927
  char *name () const { return _name; }
 
928
  virtual void print (ostream &os) const;
 
929
  virtual bool isFile () const { return false; }
 
930
  virtual bool isMacroExp () const { return false; }
 
931
  UnitState &state () { return _state; }
 
932
};
 
933
 
 
934
 
 
935
} // namespace Puma
 
936
 
 
937
#endif /* __unit_h__ */
 
938
 
 
939
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Source.h"
 
940
// This file is part of PUMA.
 
941
// Copyright (C) 1999-2003  The PUMA developer team.
 
942
//                                                                
 
943
// This program is free software;  you can redistribute it and/or 
 
944
// modify it under the terms of the GNU General Public License as 
 
945
// published by the Free Software Foundation; either version 2 of 
 
946
// the License, or (at your option) any later version.            
 
947
//                                                                
 
948
// This program is distributed in the hope that it will be useful,
 
949
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
950
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
951
// GNU General Public License for more details.                   
 
952
//                                                                
 
953
// You should have received a copy of the GNU General Public      
 
954
// License along with this program; if not, write to the Free     
 
955
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
956
// MA  02111-1307  USA                                            
 
957
 
 
958
#ifndef __source_h__
 
959
#define __source_h__
 
960
 
 
961
namespace Puma {
 
962
 
 
963
 
 
964
 
 
965
#line 966 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
966
} // closed Puma
 
967
class CCExprResolve;
 
968
class CExprResolve;
 
969
class WinIfExists;
 
970
class WinImportHandler;
 
971
class WinMacros;
 
972
class WinAsm;
 
973
class WinDeclSpecs;
 
974
class WinMemberExplSpec;
 
975
class WinTypeKeywords;
 
976
class WinFriend;
 
977
class ExtAC;
 
978
class ExtACBuilderCoupling;
 
979
class ExtACSyntaxCoupling;
 
980
class ExtACTree;
 
981
class ExtACKeywords;
 
982
class ExtGnu;
 
983
class PragmaOnceUnitState;
 
984
class PragmaOnce;
 
985
class CMatchSyntax;
 
986
namespace Puma {
 
987
 
 
988
#line 25 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Source.h"
 
989
class Source {
 
990
#line 991 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
991
  friend class ::CCExprResolve;
 
992
  friend class ::CExprResolve;
 
993
  friend class ::WinIfExists;
 
994
  friend class ::WinImportHandler;
 
995
  friend class ::WinMacros;
 
996
  friend class ::WinAsm;
 
997
  friend class ::WinDeclSpecs;
 
998
  friend class ::WinMemberExplSpec;
 
999
  friend class ::WinTypeKeywords;
 
1000
  friend class ::WinFriend;
 
1001
  friend class ::ExtAC;
 
1002
  friend class ::ExtACBuilderCoupling;
 
1003
  friend class ::ExtACSyntaxCoupling;
 
1004
  friend class ::ExtACTree;
 
1005
  friend class ::ExtACKeywords;
 
1006
  friend class ::ExtGnu;
 
1007
  friend class ::PragmaOnceUnitState;
 
1008
  friend class ::PragmaOnce;
 
1009
  friend class ::CMatchSyntax;
 
1010
 
 
1011
#line 25 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Source.h"
 
1012
 
 
1013
public:
 
1014
  Source () {}
 
1015
  virtual ~Source () {}
 
1016
  virtual int read (char *dest, int n) = 0;
 
1017
  virtual int size () { return -1; }
 
1018
};
 
1019
 
 
1020
 
 
1021
} // namespace Puma
 
1022
 
 
1023
#endif /* __source_h__ */
 
1024
 
 
1025
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SysCall.h"
 
1026
// This file is part of PUMA.
 
1027
// Copyright (C) 1999-2003  The PUMA developer team.
 
1028
//                                                                
 
1029
// This program is free software;  you can redistribute it and/or 
 
1030
// modify it under the terms of the GNU General Public License as 
 
1031
// published by the Free Software Foundation; either version 2 of 
 
1032
// the License, or (at your option) any later version.            
 
1033
//                                                                
 
1034
// This program is distributed in the hope that it will be useful,
 
1035
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1036
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1037
// GNU General Public License for more details.                   
 
1038
//                                                                
 
1039
// You should have received a copy of the GNU General Public      
 
1040
// License along with this program; if not, write to the Free     
 
1041
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1042
// MA  02111-1307  USA                                            
 
1043
 
 
1044
#ifndef __SysCall_h__
 
1045
#define __SysCall_h__
 
1046
 
 
1047
// Encapsulate some system calls. 
 
1048
 
 
1049
#include <time.h>
 
1050
#include <stdio.h>
 
1051
#include <stddef.h>
 
1052
#include <sys/stat.h>
 
1053
#include <sys/types.h>
 
1054
#ifdef _MSC_VER
 
1055
#include <string.h>
 
1056
#include <stdlib.h>
 
1057
#else
 
1058
#include <dirent.h>
 
1059
#endif // _MSVC
 
1060
 
 
1061
 
 
1062
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Filename.h"
 
1063
// This file is part of PUMA.
 
1064
// Copyright (C) 1999-2003  The PUMA developer team.
 
1065
//                                                                
 
1066
// This program is free software;  you can redistribute it and/or 
 
1067
// modify it under the terms of the GNU General Public License as 
 
1068
// published by the Free Software Foundation; either version 2 of 
 
1069
// the License, or (at your option) any later version.            
 
1070
//                                                                
 
1071
// This program is distributed in the hope that it will be useful,
 
1072
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1073
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1074
// GNU General Public License for more details.                   
 
1075
//                                                                
 
1076
// You should have received a copy of the GNU General Public      
 
1077
// License along with this program; if not, write to the Free     
 
1078
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1079
// MA  02111-1307  USA                                            
 
1080
 
 
1081
#ifndef __filename_h__
 
1082
#define __filename_h__
 
1083
 
 
1084
 
 
1085
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SmartPtr.h"
 
1086
// This file is part of PUMA.
 
1087
// Copyright (C) 1999-2003  The PUMA developer team.
 
1088
//                                                                
 
1089
// This program is free software;  you can redistribute it and/or 
 
1090
// modify it under the terms of the GNU General Public License as 
 
1091
// published by the Free Software Foundation; either version 2 of 
 
1092
// the License, or (at your option) any later version.            
 
1093
//                                                                
 
1094
// This program is distributed in the hope that it will be useful,
 
1095
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1096
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1097
// GNU General Public License for more details.                   
 
1098
//                                                                
 
1099
// You should have received a copy of the GNU General Public      
 
1100
// License along with this program; if not, write to the Free     
 
1101
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1102
// MA  02111-1307  USA                                            
 
1103
 
 
1104
#ifndef __smart_ptr_h__
 
1105
#define __smart_ptr_h__
 
1106
 
 
1107
 
 
1108
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/RefCnt.h"
 
1109
// This file is part of PUMA.
 
1110
// Copyright (C) 1999-2003  The PUMA developer team.
 
1111
//                                                                
 
1112
// This program is free software;  you can redistribute it and/or 
 
1113
// modify it under the terms of the GNU General Public License as 
 
1114
// published by the Free Software Foundation; either version 2 of 
 
1115
// the License, or (at your option) any later version.            
 
1116
//                                                                
 
1117
// This program is distributed in the hope that it will be useful,
 
1118
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1119
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1120
// GNU General Public License for more details.                   
 
1121
//                                                                
 
1122
// You should have received a copy of the GNU General Public      
 
1123
// License along with this program; if not, write to the Free     
 
1124
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1125
// MA  02111-1307  USA                                            
 
1126
 
 
1127
#ifndef __ref_cnt_h__
 
1128
#define __ref_cnt_h__
 
1129
 
 
1130
namespace Puma {
 
1131
 
 
1132
 
 
1133
 
 
1134
#line 1135 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1135
} // closed Puma
 
1136
class CCExprResolve;
 
1137
class CExprResolve;
 
1138
class WinIfExists;
 
1139
class WinImportHandler;
 
1140
class WinMacros;
 
1141
class WinAsm;
 
1142
class WinDeclSpecs;
 
1143
class WinMemberExplSpec;
 
1144
class WinTypeKeywords;
 
1145
class WinFriend;
 
1146
class ExtAC;
 
1147
class ExtACBuilderCoupling;
 
1148
class ExtACSyntaxCoupling;
 
1149
class ExtACTree;
 
1150
class ExtACKeywords;
 
1151
class ExtGnu;
 
1152
class PragmaOnceUnitState;
 
1153
class PragmaOnce;
 
1154
class CMatchSyntax;
 
1155
namespace Puma {
 
1156
 
 
1157
#line 25 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/RefCnt.h"
 
1158
class RefCnt {
 
1159
#line 1160 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1160
  friend class ::CCExprResolve;
 
1161
  friend class ::CExprResolve;
 
1162
  friend class ::WinIfExists;
 
1163
  friend class ::WinImportHandler;
 
1164
  friend class ::WinMacros;
 
1165
  friend class ::WinAsm;
 
1166
  friend class ::WinDeclSpecs;
 
1167
  friend class ::WinMemberExplSpec;
 
1168
  friend class ::WinTypeKeywords;
 
1169
  friend class ::WinFriend;
 
1170
  friend class ::ExtAC;
 
1171
  friend class ::ExtACBuilderCoupling;
 
1172
  friend class ::ExtACSyntaxCoupling;
 
1173
  friend class ::ExtACTree;
 
1174
  friend class ::ExtACKeywords;
 
1175
  friend class ::ExtGnu;
 
1176
  friend class ::PragmaOnceUnitState;
 
1177
  friend class ::PragmaOnce;
 
1178
  friend class ::CMatchSyntax;
 
1179
 
 
1180
#line 25 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/RefCnt.h"
 
1181
 
 
1182
  int _counter;
 
1183
 
 
1184
public:
 
1185
  RefCnt () : _counter (0) {}
 
1186
  virtual ~RefCnt () {}
 
1187
  
 
1188
  void ref () { _counter++; }
 
1189
  void deref () { _counter--; }
 
1190
  int counter () { return _counter; }
 
1191
};
 
1192
 
 
1193
 
 
1194
} // namespace Puma
 
1195
 
 
1196
#endif /* __ref_cnt_h__ */
 
1197
 
 
1198
#line 24 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SmartPtr.h"
 
1199
namespace Puma {
 
1200
 
 
1201
 
 
1202
 
 
1203
#line 1204 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1204
} // closed Puma
 
1205
class CCExprResolve;
 
1206
class CExprResolve;
 
1207
class WinIfExists;
 
1208
class WinImportHandler;
 
1209
class WinMacros;
 
1210
class WinAsm;
 
1211
class WinDeclSpecs;
 
1212
class WinMemberExplSpec;
 
1213
class WinTypeKeywords;
 
1214
class WinFriend;
 
1215
class ExtAC;
 
1216
class ExtACBuilderCoupling;
 
1217
class ExtACSyntaxCoupling;
 
1218
class ExtACTree;
 
1219
class ExtACKeywords;
 
1220
class ExtGnu;
 
1221
class PragmaOnceUnitState;
 
1222
class PragmaOnce;
 
1223
class CMatchSyntax;
 
1224
namespace Puma {
 
1225
 
 
1226
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SmartPtr.h"
 
1227
class SmartPtr {
 
1228
#line 1229 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1229
  friend class ::CCExprResolve;
 
1230
  friend class ::CExprResolve;
 
1231
  friend class ::WinIfExists;
 
1232
  friend class ::WinImportHandler;
 
1233
  friend class ::WinMacros;
 
1234
  friend class ::WinAsm;
 
1235
  friend class ::WinDeclSpecs;
 
1236
  friend class ::WinMemberExplSpec;
 
1237
  friend class ::WinTypeKeywords;
 
1238
  friend class ::WinFriend;
 
1239
  friend class ::ExtAC;
 
1240
  friend class ::ExtACBuilderCoupling;
 
1241
  friend class ::ExtACSyntaxCoupling;
 
1242
  friend class ::ExtACTree;
 
1243
  friend class ::ExtACKeywords;
 
1244
  friend class ::ExtGnu;
 
1245
  friend class ::PragmaOnceUnitState;
 
1246
  friend class ::PragmaOnce;
 
1247
  friend class ::CMatchSyntax;
 
1248
 
 
1249
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SmartPtr.h"
 
1250
 
 
1251
  RefCnt *_data;
 
1252
 
 
1253
public:
 
1254
  SmartPtr () : _data ((RefCnt*)0) {}
 
1255
  ~SmartPtr () { clear (); }
 
1256
  SmartPtr (const SmartPtr &copy);
 
1257
  SmartPtr (RefCnt *rc) : _data (rc) {}
 
1258
  SmartPtr &operator = (const SmartPtr &copy);
 
1259
 
 
1260
  void data (RefCnt *d);
 
1261
  void clear ();
 
1262
  RefCnt *data () const { return _data; }
 
1263
  bool is_defined () const { return _data != (RefCnt*)0; }
 
1264
};
 
1265
 
 
1266
 
 
1267
} // namespace Puma
 
1268
 
 
1269
#endif /* __smart_ptr_h__ */
 
1270
 
 
1271
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FilenameInfo.h"
 
1272
// This file is part of PUMA.
 
1273
// Copyright (C) 1999-2003  The PUMA developer team.
 
1274
//                                                                
 
1275
// This program is free software;  you can redistribute it and/or 
 
1276
// modify it under the terms of the GNU General Public License as 
 
1277
// published by the Free Software Foundation; either version 2 of 
 
1278
// the License, or (at your option) any later version.            
 
1279
//                                                                
 
1280
// This program is distributed in the hope that it will be useful,
 
1281
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1282
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1283
// GNU General Public License for more details.                   
 
1284
//                                                                
 
1285
// You should have received a copy of the GNU General Public      
 
1286
// License along with this program; if not, write to the Free     
 
1287
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1288
// MA  02111-1307  USA                                            
 
1289
 
 
1290
#ifndef __filename_info_h__
 
1291
#define __filename_info_h__
 
1292
 
 
1293
 
 
1294
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/DString.h"
 
1295
// This file is part of PUMA.
 
1296
// Copyright (C) 1999-2003  The PUMA developer team.
 
1297
//                                                                
 
1298
// This program is free software;  you can redistribute it and/or 
 
1299
// modify it under the terms of the GNU General Public License as 
 
1300
// published by the Free Software Foundation; either version 2 of 
 
1301
// the License, or (at your option) any later version.            
 
1302
//                                                                
 
1303
// This program is distributed in the hope that it will be useful,
 
1304
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1305
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1306
// GNU General Public License for more details.                   
 
1307
//                                                                
 
1308
// You should have received a copy of the GNU General Public      
 
1309
// License along with this program; if not, write to the Free     
 
1310
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1311
// MA  02111-1307  USA                                            
 
1312
 
 
1313
#ifndef __DString_h__
 
1314
#define __DString_h__
 
1315
 
 
1316
 
 
1317
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrHashTable.h"
 
1318
// This file is part of PUMA.
 
1319
// Copyright (C) 1999-2003  The PUMA developer team.
 
1320
//                                                                
 
1321
// This program is free software;  you can redistribute it and/or 
 
1322
// modify it under the terms of the GNU General Public License as 
 
1323
// published by the Free Software Foundation; either version 2 of 
 
1324
// the License, or (at your option) any later version.            
 
1325
//                                                                
 
1326
// This program is distributed in the hope that it will be useful,
 
1327
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1328
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1329
// GNU General Public License for more details.                   
 
1330
//                                                                
 
1331
// You should have received a copy of the GNU General Public      
 
1332
// License along with this program; if not, write to the Free     
 
1333
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1334
// MA  02111-1307  USA                                            
 
1335
 
 
1336
#ifndef __StrHashTable_h__
 
1337
#define __StrHashTable_h__
 
1338
 
 
1339
 
 
1340
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrHashKey.h"
 
1341
// This file is part of PUMA.
 
1342
// Copyright (C) 1999-2003  The PUMA developer team.
 
1343
//                                                                
 
1344
// This program is free software;  you can redistribute it and/or 
 
1345
// modify it under the terms of the GNU General Public License as 
 
1346
// published by the Free Software Foundation; either version 2 of 
 
1347
// the License, or (at your option) any later version.            
 
1348
//                                                                
 
1349
// This program is distributed in the hope that it will be useful,
 
1350
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1351
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1352
// GNU General Public License for more details.                   
 
1353
//                                                                
 
1354
// You should have received a copy of the GNU General Public      
 
1355
// License along with this program; if not, write to the Free     
 
1356
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1357
// MA  02111-1307  USA                                            
 
1358
 
 
1359
#ifndef __StrHashKey_h__
 
1360
#define __StrHashKey_h__
 
1361
 
 
1362
 
 
1363
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrCol.h"
 
1364
// This file is part of PUMA.
 
1365
// Copyright (C) 1999-2003  The PUMA developer team.
 
1366
//                                                                
 
1367
// This program is free software;  you can redistribute it and/or 
 
1368
// modify it under the terms of the GNU General Public License as 
 
1369
// published by the Free Software Foundation; either version 2 of 
 
1370
// the License, or (at your option) any later version.            
 
1371
//                                                                
 
1372
// This program is distributed in the hope that it will be useful,
 
1373
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1374
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1375
// GNU General Public License for more details.                   
 
1376
//                                                                
 
1377
// You should have received a copy of the GNU General Public      
 
1378
// License along with this program; if not, write to the Free     
 
1379
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1380
// MA  02111-1307  USA                                            
 
1381
 
 
1382
#ifndef __str_col__
 
1383
#define __str_col__
 
1384
 
 
1385
// Collection of functions handling strings.
 
1386
 
 
1387
namespace Puma {
 
1388
 
 
1389
 
 
1390
class Unit;
 
1391
 
 
1392
 
 
1393
#line 1394 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1394
} // closed Puma
 
1395
class CCExprResolve;
 
1396
class CExprResolve;
 
1397
class WinIfExists;
 
1398
class WinImportHandler;
 
1399
class WinMacros;
 
1400
class WinAsm;
 
1401
class WinDeclSpecs;
 
1402
class WinMemberExplSpec;
 
1403
class WinTypeKeywords;
 
1404
class WinFriend;
 
1405
class ExtAC;
 
1406
class ExtACBuilderCoupling;
 
1407
class ExtACSyntaxCoupling;
 
1408
class ExtACTree;
 
1409
class ExtACKeywords;
 
1410
class ExtGnu;
 
1411
class PragmaOnceUnitState;
 
1412
class PragmaOnce;
 
1413
class CMatchSyntax;
 
1414
namespace Puma {
 
1415
 
 
1416
#line 29 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrCol.h"
 
1417
class StrCol {
 
1418
#line 1419 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1419
  friend class ::CCExprResolve;
 
1420
  friend class ::CExprResolve;
 
1421
  friend class ::WinIfExists;
 
1422
  friend class ::WinImportHandler;
 
1423
  friend class ::WinMacros;
 
1424
  friend class ::WinAsm;
 
1425
  friend class ::WinDeclSpecs;
 
1426
  friend class ::WinMemberExplSpec;
 
1427
  friend class ::WinTypeKeywords;
 
1428
  friend class ::WinFriend;
 
1429
  friend class ::ExtAC;
 
1430
  friend class ::ExtACBuilderCoupling;
 
1431
  friend class ::ExtACSyntaxCoupling;
 
1432
  friend class ::ExtACTree;
 
1433
  friend class ::ExtACKeywords;
 
1434
  friend class ::ExtGnu;
 
1435
  friend class ::PragmaOnceUnitState;
 
1436
  friend class ::PragmaOnce;
 
1437
  friend class ::CMatchSyntax;
 
1438
 
 
1439
#line 29 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrCol.h"
 
1440
 
 
1441
protected:
 
1442
  StrCol () {}
 
1443
        
 
1444
public:
 
1445
  // Return true if c is a white space character.
 
1446
  static bool isSpace (const char c);
 
1447
 
 
1448
  // Return true if the string consists only of spaces.
 
1449
  static bool onlySpaces (const char *);
 
1450
 
 
1451
  // Return true if the two strings differ not only in spaces.
 
1452
  static bool effectivelyDifferent (const char *, const char *);
 
1453
 
 
1454
  // Build a string from a unit.
 
1455
  static char *buildString (Unit *);
 
1456
        
 
1457
  // Duplicate a string
 
1458
  static char *dup (const char *);
 
1459
  static char *dup (const char *, int);
 
1460
};
 
1461
 
 
1462
 
 
1463
} // namespace Puma
 
1464
 
 
1465
#endif /* __str_col__ */
 
1466
 
 
1467
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Chain.h"
 
1468
// This file is part of PUMA.
 
1469
// Copyright (C) 1999-2003  The PUMA developer team.
 
1470
//                                                                
 
1471
// This program is free software;  you can redistribute it and/or 
 
1472
// modify it under the terms of the GNU General Public License as 
 
1473
// published by the Free Software Foundation; either version 2 of 
 
1474
// the License, or (at your option) any later version.            
 
1475
//                                                                
 
1476
// This program is distributed in the hope that it will be useful,
 
1477
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
1478
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
1479
// GNU General Public License for more details.                   
 
1480
//                                                                
 
1481
// You should have received a copy of the GNU General Public      
 
1482
// License along with this program; if not, write to the Free     
 
1483
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
1484
// MA  02111-1307  USA                                            
 
1485
 
 
1486
#ifndef __Chain_h__
 
1487
#define __Chain_h__
 
1488
 
 
1489
//
 
1490
// implements a simple chain
 
1491
// 
 
1492
 
 
1493
#ifndef __puma
 
1494
#include <iostream>
 
1495
using namespace std;
 
1496
#endif 
 
1497
 
 
1498
namespace Puma {
 
1499
 
 
1500
 
 
1501
 
 
1502
#line 1503 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1503
} // closed Puma
 
1504
class CCExprResolve;
 
1505
class CExprResolve;
 
1506
class WinIfExists;
 
1507
class WinImportHandler;
 
1508
class WinMacros;
 
1509
class WinAsm;
 
1510
class WinDeclSpecs;
 
1511
class WinMemberExplSpec;
 
1512
class WinTypeKeywords;
 
1513
class WinFriend;
 
1514
class ExtAC;
 
1515
class ExtACBuilderCoupling;
 
1516
class ExtACSyntaxCoupling;
 
1517
class ExtACTree;
 
1518
class ExtACKeywords;
 
1519
class ExtGnu;
 
1520
class PragmaOnceUnitState;
 
1521
class PragmaOnce;
 
1522
class CMatchSyntax;
 
1523
namespace Puma {
 
1524
 
 
1525
#line 34 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Chain.h"
 
1526
class Chain {
 
1527
#line 1528 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1528
  friend class ::CCExprResolve;
 
1529
  friend class ::CExprResolve;
 
1530
  friend class ::WinIfExists;
 
1531
  friend class ::WinImportHandler;
 
1532
  friend class ::WinMacros;
 
1533
  friend class ::WinAsm;
 
1534
  friend class ::WinDeclSpecs;
 
1535
  friend class ::WinMemberExplSpec;
 
1536
  friend class ::WinTypeKeywords;
 
1537
  friend class ::WinFriend;
 
1538
  friend class ::ExtAC;
 
1539
  friend class ::ExtACBuilderCoupling;
 
1540
  friend class ::ExtACSyntaxCoupling;
 
1541
  friend class ::ExtACTree;
 
1542
  friend class ::ExtACKeywords;
 
1543
  friend class ::ExtGnu;
 
1544
  friend class ::PragmaOnceUnitState;
 
1545
  friend class ::PragmaOnce;
 
1546
  friend class ::CMatchSyntax;
 
1547
 
 
1548
#line 34 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Chain.h"
 
1549
 
 
1550
  Chain *next;
 
1551
 
 
1552
public:
 
1553
  Chain () { next = 0; }
 
1554
   
 
1555
  void select (Chain *c) { next = c; }
 
1556
  Chain *select () const { return next; }
 
1557
 
 
1558
  Chain *unlink () {
 
1559
    Chain *res = next;
 
1560
    if (next) {
 
1561
      next = next->select ();
 
1562
    }
 
1563
    return res;
 
1564
  }
 
1565
 
 
1566
  void insert (Chain *c) {
 
1567
    c->select (next);
 
1568
    next = c;
 
1569
  }
 
1570
};
 
1571
 
 
1572
#ifndef __puma
 
1573
 
 
1574
 
 
1575
//
 
1576
// Chain with useage/max counter
 
1577
// 
 
1578
 
 
1579
class ChainCnt : public Chain {
 
1580
  const char* name;
 
1581
 
 
1582
public:
 
1583
  long long max, use;
 
1584
  
 
1585
  ChainCnt (const char *n) : name (n) { max = use = 0; }
 
1586
  ~ChainCnt () {
 
1587
    cout << "max list " << name << ": " << max << endl;
 
1588
  }
 
1589
 
 
1590
  Chain *unlink () {
 
1591
    Chain *c = Chain::unlink ();
 
1592
    if (c) 
 
1593
      use--;
 
1594
    return c;
 
1595
  }
 
1596
  
 
1597
  void insert (Chain *c) {
 
1598
    use++;
 
1599
    if(use > max) 
 
1600
      max = use;
 
1601
    Chain::insert (c);
 
1602
  }
 
1603
};
 
1604
 
 
1605
#endif /* __puma */
 
1606
 
 
1607
 
 
1608
} // namespace Puma
 
1609
 
 
1610
#endif /* __Chain_h__ */
 
1611
 
 
1612
#line 25 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrHashKey.h"
 
1613
namespace Puma {
 
1614
 
 
1615
 
 
1616
 
 
1617
#line 1618 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1618
} // closed Puma
 
1619
class CCExprResolve;
 
1620
class CExprResolve;
 
1621
class WinIfExists;
 
1622
class WinImportHandler;
 
1623
class WinMacros;
 
1624
class WinAsm;
 
1625
class WinDeclSpecs;
 
1626
class WinMemberExplSpec;
 
1627
class WinTypeKeywords;
 
1628
class WinFriend;
 
1629
class ExtAC;
 
1630
class ExtACBuilderCoupling;
 
1631
class ExtACSyntaxCoupling;
 
1632
class ExtACTree;
 
1633
class ExtACKeywords;
 
1634
class ExtGnu;
 
1635
class PragmaOnceUnitState;
 
1636
class PragmaOnce;
 
1637
class CMatchSyntax;
 
1638
namespace Puma {
 
1639
 
 
1640
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrHashKey.h"
 
1641
class StrHashKey : public Chain {
 
1642
#line 1643 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1643
  friend class ::CCExprResolve;
 
1644
  friend class ::CExprResolve;
 
1645
  friend class ::WinIfExists;
 
1646
  friend class ::WinImportHandler;
 
1647
  friend class ::WinMacros;
 
1648
  friend class ::WinAsm;
 
1649
  friend class ::WinDeclSpecs;
 
1650
  friend class ::WinMemberExplSpec;
 
1651
  friend class ::WinTypeKeywords;
 
1652
  friend class ::WinFriend;
 
1653
  friend class ::ExtAC;
 
1654
  friend class ::ExtACBuilderCoupling;
 
1655
  friend class ::ExtACSyntaxCoupling;
 
1656
  friend class ::ExtACTree;
 
1657
  friend class ::ExtACKeywords;
 
1658
  friend class ::ExtGnu;
 
1659
  friend class ::PragmaOnceUnitState;
 
1660
  friend class ::PragmaOnce;
 
1661
  friend class ::CMatchSyntax;
 
1662
 
 
1663
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrHashKey.h"
 
1664
 
 
1665
  unsigned int m_Magic;
 
1666
  unsigned int m_Len;
 
1667
  const char  *m_Str;
 
1668
 
 
1669
  StrHashKey () : m_Len (0), m_Str (0) {}
 
1670
 
 
1671
public:
 
1672
  StrHashKey (int m, const char *s, int l) : 
 
1673
    m_Magic (m), m_Len (l), m_Str (StrCol::dup (s, l)) {}
 
1674
  ~StrHashKey () { if (m_Str) delete[] m_Str; }
 
1675
 
 
1676
  unsigned int getMagic () const { return m_Magic; }
 
1677
  unsigned int length () const { return m_Len; }
 
1678
  const char  *c_str () const { return m_Str; }
 
1679
};
 
1680
 
 
1681
 
 
1682
} // namespace Puma
 
1683
 
 
1684
#endif /* __StrHashKey_h__ */
 
1685
 
 
1686
#line 23 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrHashTable.h"
 
1687
#include <assert.h>
 
1688
 
 
1689
namespace Puma {
 
1690
 
 
1691
 
 
1692
 
 
1693
#line 1694 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1694
} // closed Puma
 
1695
class CCExprResolve;
 
1696
class CExprResolve;
 
1697
class WinIfExists;
 
1698
class WinImportHandler;
 
1699
class WinMacros;
 
1700
class WinAsm;
 
1701
class WinDeclSpecs;
 
1702
class WinMemberExplSpec;
 
1703
class WinTypeKeywords;
 
1704
class WinFriend;
 
1705
class ExtAC;
 
1706
class ExtACBuilderCoupling;
 
1707
class ExtACSyntaxCoupling;
 
1708
class ExtACTree;
 
1709
class ExtACKeywords;
 
1710
class ExtGnu;
 
1711
class PragmaOnceUnitState;
 
1712
class PragmaOnce;
 
1713
class CMatchSyntax;
 
1714
namespace Puma {
 
1715
 
 
1716
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrHashTable.h"
 
1717
class StrHashTable {
 
1718
#line 1719 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1719
  friend class ::CCExprResolve;
 
1720
  friend class ::CExprResolve;
 
1721
  friend class ::WinIfExists;
 
1722
  friend class ::WinImportHandler;
 
1723
  friend class ::WinMacros;
 
1724
  friend class ::WinAsm;
 
1725
  friend class ::WinDeclSpecs;
 
1726
  friend class ::WinMemberExplSpec;
 
1727
  friend class ::WinTypeKeywords;
 
1728
  friend class ::WinFriend;
 
1729
  friend class ::ExtAC;
 
1730
  friend class ::ExtACBuilderCoupling;
 
1731
  friend class ::ExtACSyntaxCoupling;
 
1732
  friend class ::ExtACTree;
 
1733
  friend class ::ExtACKeywords;
 
1734
  friend class ::ExtGnu;
 
1735
  friend class ::PragmaOnceUnitState;
 
1736
  friend class ::PragmaOnce;
 
1737
  friend class ::CMatchSyntax;
 
1738
 
 
1739
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/StrHashTable.h"
 
1740
 
 
1741
  StrHashKey *_emptyKey;
 
1742
 
 
1743
public:
 
1744
  StrHashTable () {
 
1745
    _emptyKey = insert ("");
 
1746
    assert (_emptyKey);
 
1747
  }
 
1748
 
 
1749
  StrHashKey *empty () const { assert (_emptyKey); return _emptyKey; }
 
1750
  StrHashKey *insert (const char *);
 
1751
  void remove (StrHashKey *);
 
1752
  void clear ();
 
1753
 
 
1754
  enum { STRHASHTABLE_SIZE=0xffff };
 
1755
  
 
1756
private:
 
1757
  Chain m_Table[STRHASHTABLE_SIZE];
 
1758
 
 
1759
  StrHashKey *find (unsigned int, const char *, unsigned int);
 
1760
  unsigned int hash (const char *, unsigned int &);
 
1761
};
 
1762
 
 
1763
 
 
1764
} // namespace Puma
 
1765
 
 
1766
#endif /* __StrHashTable_h__ */
 
1767
 
 
1768
#line 23 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/DString.h"
 
1769
#include <assert.h>
 
1770
 
 
1771
namespace Puma {
 
1772
 
 
1773
 
 
1774
extern StrHashTable ___str_dict;
 
1775
 
 
1776
 
 
1777
#line 1778 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1778
} // closed Puma
 
1779
class CCExprResolve;
 
1780
class CExprResolve;
 
1781
class WinIfExists;
 
1782
class WinImportHandler;
 
1783
class WinMacros;
 
1784
class WinAsm;
 
1785
class WinDeclSpecs;
 
1786
class WinMemberExplSpec;
 
1787
class WinTypeKeywords;
 
1788
class WinFriend;
 
1789
class ExtAC;
 
1790
class ExtACBuilderCoupling;
 
1791
class ExtACSyntaxCoupling;
 
1792
class ExtACTree;
 
1793
class ExtACKeywords;
 
1794
class ExtGnu;
 
1795
class PragmaOnceUnitState;
 
1796
class PragmaOnce;
 
1797
class CMatchSyntax;
 
1798
namespace Puma {
 
1799
 
 
1800
#line 30 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/DString.h"
 
1801
class DString {
 
1802
#line 1803 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1803
  friend class ::CCExprResolve;
 
1804
  friend class ::CExprResolve;
 
1805
  friend class ::WinIfExists;
 
1806
  friend class ::WinImportHandler;
 
1807
  friend class ::WinMacros;
 
1808
  friend class ::WinAsm;
 
1809
  friend class ::WinDeclSpecs;
 
1810
  friend class ::WinMemberExplSpec;
 
1811
  friend class ::WinTypeKeywords;
 
1812
  friend class ::WinFriend;
 
1813
  friend class ::ExtAC;
 
1814
  friend class ::ExtACBuilderCoupling;
 
1815
  friend class ::ExtACSyntaxCoupling;
 
1816
  friend class ::ExtACTree;
 
1817
  friend class ::ExtACKeywords;
 
1818
  friend class ::ExtGnu;
 
1819
  friend class ::PragmaOnceUnitState;
 
1820
  friend class ::PragmaOnce;
 
1821
  friend class ::CMatchSyntax;
 
1822
 
 
1823
#line 30 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/DString.h"
 
1824
 
 
1825
  StrHashKey *m_Key;
 
1826
 
 
1827
public:
 
1828
  DString () {
 
1829
    m_Key = ___str_dict.empty ();
 
1830
    assert (m_Key);
 
1831
  }
 
1832
  DString (const char *s) {
 
1833
    if(s == 0) {
 
1834
      m_Key = ___str_dict.empty ();
 
1835
    } else {
 
1836
      m_Key = ___str_dict.insert (s);
 
1837
    }
 
1838
    assert (m_Key);
 
1839
  }
 
1840
  DString (const DString &s) : m_Key (s.m_Key) {
 
1841
    assert (s.m_Key);
 
1842
  }
 
1843
  
 
1844
  DString &operator = (const DString &s) {
 
1845
    assert (s.m_Key);
 
1846
    m_Key = s.m_Key;
 
1847
    return *this;
 
1848
  }
 
1849
  
 
1850
  DString &operator = (const char *s) {
 
1851
    if(s == 0) {
 
1852
      m_Key = ___str_dict.empty ();
 
1853
    } else {
 
1854
      m_Key = ___str_dict.insert (s);
 
1855
    }
 
1856
    assert (m_Key);
 
1857
    return *this;
 
1858
  }
 
1859
 
 
1860
  bool operator == (const DString &s) const { 
 
1861
    assert (m_Key && s.m_Key);
 
1862
    return m_Key == s.m_Key; 
 
1863
  }
 
1864
  bool operator != (const DString &s) const { 
 
1865
    assert (m_Key && s.m_Key);
 
1866
    return m_Key != s.m_Key; 
 
1867
  }
 
1868
 
 
1869
  const char *c_str() const { 
 
1870
    assert (m_Key);
 
1871
    return m_Key->c_str (); 
 
1872
  }
 
1873
  unsigned int length () const { 
 
1874
    assert (m_Key);
 
1875
    return m_Key->length (); 
 
1876
  }
 
1877
  bool empty () const {
 
1878
    assert (m_Key);
 
1879
    return m_Key->length () == 0;
 
1880
  }
 
1881
  unsigned int magic () const { 
 
1882
    assert (m_Key);
 
1883
    return m_Key->getMagic (); 
 
1884
  }
 
1885
 
 
1886
  operator const char *() const {
 
1887
    assert (m_Key);
 
1888
    return c_str ();
 
1889
  }
 
1890
  
 
1891
  static void clearDict() {
 
1892
    ___str_dict.clear ();
 
1893
  }
 
1894
};
 
1895
 
 
1896
 
 
1897
} // namespace Puma
 
1898
 
 
1899
#endif /* __DString_h__ */
 
1900
 
 
1901
#line 25 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FilenameInfo.h"
 
1902
namespace Puma {
 
1903
 
 
1904
 
 
1905
 
 
1906
#line 1907 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1907
} // closed Puma
 
1908
class CCExprResolve;
 
1909
class CExprResolve;
 
1910
class WinIfExists;
 
1911
class WinImportHandler;
 
1912
class WinMacros;
 
1913
class WinAsm;
 
1914
class WinDeclSpecs;
 
1915
class WinMemberExplSpec;
 
1916
class WinTypeKeywords;
 
1917
class WinFriend;
 
1918
class ExtAC;
 
1919
class ExtACBuilderCoupling;
 
1920
class ExtACSyntaxCoupling;
 
1921
class ExtACTree;
 
1922
class ExtACKeywords;
 
1923
class ExtGnu;
 
1924
class PragmaOnceUnitState;
 
1925
class PragmaOnce;
 
1926
class CMatchSyntax;
 
1927
namespace Puma {
 
1928
 
 
1929
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FilenameInfo.h"
 
1930
class FilenameInfo : public RefCnt {
 
1931
#line 1932 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1932
  friend class ::CCExprResolve;
 
1933
  friend class ::CExprResolve;
 
1934
  friend class ::WinIfExists;
 
1935
  friend class ::WinImportHandler;
 
1936
  friend class ::WinMacros;
 
1937
  friend class ::WinAsm;
 
1938
  friend class ::WinDeclSpecs;
 
1939
  friend class ::WinMemberExplSpec;
 
1940
  friend class ::WinTypeKeywords;
 
1941
  friend class ::WinFriend;
 
1942
  friend class ::ExtAC;
 
1943
  friend class ::ExtACBuilderCoupling;
 
1944
  friend class ::ExtACSyntaxCoupling;
 
1945
  friend class ::ExtACTree;
 
1946
  friend class ::ExtACKeywords;
 
1947
  friend class ::ExtGnu;
 
1948
  friend class ::PragmaOnceUnitState;
 
1949
  friend class ::PragmaOnce;
 
1950
  friend class ::CMatchSyntax;
 
1951
 
 
1952
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FilenameInfo.h"
 
1953
 
 
1954
  DString _name;
 
1955
  const char *_path;
 
1956
  const char *_root;
 
1957
 
 
1958
public:
 
1959
  FilenameInfo () : _path ((const char*)0), _root ((const char*)0) {}
 
1960
  ~FilenameInfo ();
 
1961
  void name (const char *n);
 
1962
//  void name (const DString &dsn) { _name = dsn; }
 
1963
  const char *name () const { return _name.c_str (); }
 
1964
  const char *path ();
 
1965
  const char *root ();
 
1966
  bool is_absolute () const;
 
1967
  bool operator == (const FilenameInfo &rc) const {
 
1968
    return _name == rc._name;
 
1969
  }
 
1970
};
 
1971
 
 
1972
 
 
1973
} // namespace Puma
 
1974
 
 
1975
#endif /* __filename_info_h__ */
 
1976
 
 
1977
#line 26 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Filename.h"
 
1978
namespace Puma {
 
1979
 
 
1980
 
 
1981
 
 
1982
#line 1983 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
1983
} // closed Puma
 
1984
class CCExprResolve;
 
1985
class CExprResolve;
 
1986
class WinIfExists;
 
1987
class WinImportHandler;
 
1988
class WinMacros;
 
1989
class WinAsm;
 
1990
class WinDeclSpecs;
 
1991
class WinMemberExplSpec;
 
1992
class WinTypeKeywords;
 
1993
class WinFriend;
 
1994
class ExtAC;
 
1995
class ExtACBuilderCoupling;
 
1996
class ExtACSyntaxCoupling;
 
1997
class ExtACTree;
 
1998
class ExtACKeywords;
 
1999
class ExtGnu;
 
2000
class PragmaOnceUnitState;
 
2001
class PragmaOnce;
 
2002
class CMatchSyntax;
 
2003
namespace Puma {
 
2004
 
 
2005
#line 29 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Filename.h"
 
2006
class Filename : public SmartPtr, public Printable {
 
2007
#line 2008 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2008
  friend class ::CCExprResolve;
 
2009
  friend class ::CExprResolve;
 
2010
  friend class ::WinIfExists;
 
2011
  friend class ::WinImportHandler;
 
2012
  friend class ::WinMacros;
 
2013
  friend class ::WinAsm;
 
2014
  friend class ::WinDeclSpecs;
 
2015
  friend class ::WinMemberExplSpec;
 
2016
  friend class ::WinTypeKeywords;
 
2017
  friend class ::WinFriend;
 
2018
  friend class ::ExtAC;
 
2019
  friend class ::ExtACBuilderCoupling;
 
2020
  friend class ::ExtACSyntaxCoupling;
 
2021
  friend class ::ExtACTree;
 
2022
  friend class ::ExtACKeywords;
 
2023
  friend class ::ExtGnu;
 
2024
  friend class ::PragmaOnceUnitState;
 
2025
  friend class ::PragmaOnce;
 
2026
  friend class ::CMatchSyntax;
 
2027
 
 
2028
#line 29 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Filename.h"
 
2029
 
 
2030
  FilenameInfo *info () const { return (FilenameInfo*)data (); }
 
2031
 
 
2032
public:
 
2033
  Filename () {}
 
2034
  Filename (const char *n) { name (n); }
 
2035
  Filename &operator = (const char *n) { name (n); return *this; }
 
2036
  bool operator ~ () const { return info () != 0; }
 
2037
  void name (const char *n);
 
2038
  const char *name () const;
 
2039
  const char *path () const;
 
2040
  const char *root () const;
 
2041
  bool is_absolute () const;
 
2042
  bool operator == (const Filename &f) const;
 
2043
  bool operator != (const Filename &f) const { return !(*this == f); }
 
2044
  virtual void print (ostream &os) const { if (info ()) os << name (); }
 
2045
};
 
2046
 
 
2047
 
 
2048
} // namespace Puma
 
2049
 
 
2050
#endif /* __filename_h__ */
 
2051
 
 
2052
#line 38 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SysCall.h"
 
2053
namespace Puma {
 
2054
 
 
2055
class SysCall;
 
2056
 
 
2057
 
 
2058
#line 2059 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2059
} // closed Puma
 
2060
class CCExprResolve;
 
2061
class CExprResolve;
 
2062
class WinIfExists;
 
2063
class WinImportHandler;
 
2064
class WinMacros;
 
2065
class WinAsm;
 
2066
class WinDeclSpecs;
 
2067
class WinMemberExplSpec;
 
2068
class WinTypeKeywords;
 
2069
class WinFriend;
 
2070
class ExtAC;
 
2071
class ExtACBuilderCoupling;
 
2072
class ExtACSyntaxCoupling;
 
2073
class ExtACTree;
 
2074
class ExtACKeywords;
 
2075
class ExtGnu;
 
2076
class PragmaOnceUnitState;
 
2077
class PragmaOnce;
 
2078
class CMatchSyntax;
 
2079
namespace Puma {
 
2080
 
 
2081
#line 42 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SysCall.h"
 
2082
class FileInfo {
 
2083
#line 2084 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2084
  friend class ::CCExprResolve;
 
2085
  friend class ::CExprResolve;
 
2086
  friend class ::WinIfExists;
 
2087
  friend class ::WinImportHandler;
 
2088
  friend class ::WinMacros;
 
2089
  friend class ::WinAsm;
 
2090
  friend class ::WinDeclSpecs;
 
2091
  friend class ::WinMemberExplSpec;
 
2092
  friend class ::WinTypeKeywords;
 
2093
  friend class ::WinFriend;
 
2094
  friend class ::ExtAC;
 
2095
  friend class ::ExtACBuilderCoupling;
 
2096
  friend class ::ExtACSyntaxCoupling;
 
2097
  friend class ::ExtACTree;
 
2098
  friend class ::ExtACKeywords;
 
2099
  friend class ::ExtGnu;
 
2100
  friend class ::PragmaOnceUnitState;
 
2101
  friend class ::PragmaOnce;
 
2102
  friend class ::CMatchSyntax;
 
2103
 
 
2104
#line 42 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SysCall.h"
 
2105
 
 
2106
  friend class SysCall;
 
2107
#ifndef _MSC_VER
 
2108
  struct stat _info;
 
2109
#else
 
2110
  struct _stat _info;
 
2111
#endif
 
2112
 
 
2113
public:
 
2114
  bool is_dir () const {
 
2115
#ifdef _MSC_VER
 
2116
    return _S_IFDIR & _info.st_mode;
 
2117
#else
 
2118
    return S_ISDIR (_info.st_mode);
 
2119
#endif // _MSC_VER
 
2120
  }
 
2121
  time_t modi_time () const { return _info.st_mtime; }
 
2122
  int size () const { return _info.st_size; }
 
2123
};
 
2124
 
 
2125
#ifdef _MSC_VER
 
2126
struct DIR {
 
2127
  long _handle;
 
2128
  DIR (long h) : _handle (h) {}
 
2129
};
 
2130
#endif // _MSC_VER
 
2131
 
 
2132
typedef DIR *DirHandle;
 
2133
typedef FILE *FileHandle;
 
2134
 
 
2135
class ErrorSink;
 
2136
 
 
2137
 
 
2138
#line 2139 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2139
} // closed Puma
 
2140
class CCExprResolve;
 
2141
class CExprResolve;
 
2142
class WinIfExists;
 
2143
class WinImportHandler;
 
2144
class WinMacros;
 
2145
class WinAsm;
 
2146
class WinDeclSpecs;
 
2147
class WinMemberExplSpec;
 
2148
class WinTypeKeywords;
 
2149
class WinFriend;
 
2150
class ExtAC;
 
2151
class ExtACBuilderCoupling;
 
2152
class ExtACSyntaxCoupling;
 
2153
class ExtACTree;
 
2154
class ExtACKeywords;
 
2155
class ExtGnu;
 
2156
class PragmaOnceUnitState;
 
2157
class PragmaOnce;
 
2158
class CMatchSyntax;
 
2159
namespace Puma {
 
2160
 
 
2161
#line 74 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SysCall.h"
 
2162
class SysCall {
 
2163
#line 2164 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2164
  friend class ::CCExprResolve;
 
2165
  friend class ::CExprResolve;
 
2166
  friend class ::WinIfExists;
 
2167
  friend class ::WinImportHandler;
 
2168
  friend class ::WinMacros;
 
2169
  friend class ::WinAsm;
 
2170
  friend class ::WinDeclSpecs;
 
2171
  friend class ::WinMemberExplSpec;
 
2172
  friend class ::WinTypeKeywords;
 
2173
  friend class ::WinFriend;
 
2174
  friend class ::ExtAC;
 
2175
  friend class ::ExtACBuilderCoupling;
 
2176
  friend class ::ExtACSyntaxCoupling;
 
2177
  friend class ::ExtACTree;
 
2178
  friend class ::ExtACKeywords;
 
2179
  friend class ::ExtGnu;
 
2180
  friend class ::PragmaOnceUnitState;
 
2181
  friend class ::PragmaOnce;
 
2182
  friend class ::CMatchSyntax;
 
2183
 
 
2184
#line 74 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/SysCall.h"
 
2185
 
 
2186
  static void printerror (ErrorSink *, const char *, 
 
2187
                          const char * = (const char *)0);
 
2188
  static void printerror (ErrorSink *, const char *, int);
 
2189
 
 
2190
public:
 
2191
  SysCall () {}
 
2192
        
 
2193
  // create temporary file name, needs to be freed by caller
 
2194
  static const char* mktemp (const char *prefix, ErrorSink * = (ErrorSink *)0);
 
2195
 
 
2196
  // open/create/close file with exclusive file locking
 
2197
  static int open_excl (const char *, int, ErrorSink * = (ErrorSink *)0);
 
2198
  static int create_excl (const char *, int, ErrorSink * = (ErrorSink *)0);
 
2199
  static bool close_excl (int, ErrorSink * = (ErrorSink *)0);
 
2200
        
 
2201
  // open/create/close file
 
2202
  static int open (const char *, int, ErrorSink * = (ErrorSink *)0);
 
2203
  static int create (const char *, int, ErrorSink * = (ErrorSink *)0);
 
2204
  static bool close (int, ErrorSink * = (ErrorSink *)0);
 
2205
        
 
2206
  // read from file descriptor
 
2207
  static long read (int, void *, size_t, ErrorSink * = (ErrorSink *)0);
 
2208
        
 
2209
  // get file status
 
2210
  static bool stat (const char *, FileInfo &, ErrorSink * = (ErrorSink *)0);
 
2211
  static bool fstat (int, FileInfo &, ErrorSink * = (ErrorSink *)0);
 
2212
  static char* readlink (const char*, char*, size_t, ErrorSink * = (ErrorSink *)0);
 
2213
        
 
2214
  // open/close file stream
 
2215
  static FileHandle fopen (const char *, const char *, ErrorSink * = (ErrorSink *)0);
 
2216
  static bool fclose (FileHandle, ErrorSink * = (ErrorSink *)0);
 
2217
 
 
2218
  // open/close directory stream
 
2219
  static DirHandle opendir (const char *, ErrorSink * = (ErrorSink *)0);
 
2220
  static bool closedir (DirHandle, ErrorSink * = (ErrorSink *)0);
 
2221
 
 
2222
  // read from directory stream
 
2223
  static const char *readdir (DirHandle, ErrorSink * = (ErrorSink *)0);
 
2224
        
 
2225
  // change directory 
 
2226
  static bool chdir (const char *, ErrorSink * = (ErrorSink *)0);
 
2227
        
 
2228
  // create directory
 
2229
  static bool mkdir (const char *, ErrorSink * = (ErrorSink *)0);
 
2230
        
 
2231
  // get current working directory
 
2232
  static char *getcwd (char *, size_t, ErrorSink * = (ErrorSink *)0);
 
2233
        
 
2234
  // get current time
 
2235
  static time_t time (time_t *, ErrorSink * = (ErrorSink *)0);
 
2236
 
 
2237
  // platform depended path handling
 
2238
  static void MakeUnixPath (char*);
 
2239
  static void MakeDosPath  (char*);
 
2240
  
 
2241
#ifdef WIN32
 
2242
  // normalize an absolute Win32 filename of an exisiting file
 
2243
  static bool normalize (Filename filename, Filename &norm, ErrorSink *err);
 
2244
#endif // WIN32
 
2245
 
 
2246
  // return a canonical path name for an exisiting file
 
2247
  static bool canonical (Filename filename, Filename &result, ErrorSink * = 0);
 
2248
};
 
2249
 
 
2250
 
 
2251
} // namespace Puma
 
2252
 
 
2253
#endif /* __SysCall_h__ */
 
2254
 
 
2255
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FileUnit.h"
 
2256
// This file is part of PUMA.
 
2257
// Copyright (C) 1999-2003  The PUMA developer team.
 
2258
//                                                                
 
2259
// This program is free software;  you can redistribute it and/or 
 
2260
// modify it under the terms of the GNU General Public License as 
 
2261
// published by the Free Software Foundation; either version 2 of 
 
2262
// the License, or (at your option) any later version.            
 
2263
//                                                                
 
2264
// This program is distributed in the hope that it will be useful,
 
2265
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
2266
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
2267
// GNU General Public License for more details.                   
 
2268
//                                                                
 
2269
// You should have received a copy of the GNU General Public      
 
2270
// License along with this program; if not, write to the Free     
 
2271
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
2272
// MA  02111-1307  USA                                            
 
2273
 
 
2274
#ifndef __FileUnit__
 
2275
#define __FileUnit__
 
2276
 
 
2277
// Special Unit for files. Knows its last save location and the
 
2278
// absolute path of the corresponding file.
 
2279
 
 
2280
 
 
2281
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FileUnit.h"
 
2282
namespace Puma {
 
2283
 
 
2284
 
 
2285
class Project;
 
2286
 
 
2287
 
 
2288
#line 2289 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2289
} // closed Puma
 
2290
class CCExprResolve;
 
2291
class CExprResolve;
 
2292
class WinIfExists;
 
2293
class WinImportHandler;
 
2294
class WinMacros;
 
2295
class WinAsm;
 
2296
class WinDeclSpecs;
 
2297
class WinMemberExplSpec;
 
2298
class WinTypeKeywords;
 
2299
class WinFriend;
 
2300
class ExtAC;
 
2301
class ExtACBuilderCoupling;
 
2302
class ExtACSyntaxCoupling;
 
2303
class ExtACTree;
 
2304
class ExtACKeywords;
 
2305
class ExtGnu;
 
2306
class PragmaOnceUnitState;
 
2307
class PragmaOnce;
 
2308
class CMatchSyntax;
 
2309
namespace Puma {
 
2310
 
 
2311
#line 32 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FileUnit.h"
 
2312
class FileUnit : public Unit {
 
2313
#line 2314 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2314
  friend class ::CCExprResolve;
 
2315
  friend class ::CExprResolve;
 
2316
  friend class ::WinIfExists;
 
2317
  friend class ::WinImportHandler;
 
2318
  friend class ::WinMacros;
 
2319
  friend class ::WinAsm;
 
2320
  friend class ::WinDeclSpecs;
 
2321
  friend class ::WinMemberExplSpec;
 
2322
  friend class ::WinTypeKeywords;
 
2323
  friend class ::WinFriend;
 
2324
  friend class ::ExtAC;
 
2325
  friend class ::ExtACBuilderCoupling;
 
2326
  friend class ::ExtACSyntaxCoupling;
 
2327
  friend class ::ExtACTree;
 
2328
  friend class ::ExtACKeywords;
 
2329
  friend class ::ExtGnu;
 
2330
  friend class ::PragmaOnceUnitState;
 
2331
  friend class ::PragmaOnce;
 
2332
  friend class ::CMatchSyntax;
 
2333
 
 
2334
#line 32 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FileUnit.h"
 
2335
 
 
2336
  char *_lastLocation; 
 
2337
  char *_absolutePath;
 
2338
  
 
2339
  Project *_project;
 
2340
  bool _isBelow;
 
2341
 
 
2342
public:
 
2343
  FileUnit ();
 
2344
  FileUnit (Unit &);
 
2345
  FileUnit (const List &);
 
2346
  virtual ~FileUnit ();
 
2347
            
 
2348
  virtual void name (const char *);        
 
2349
  void setLocation (const char *);    
 
2350
        
 
2351
  char *lastLocation () const;
 
2352
  char *absolutePath () const;
 
2353
  bool isFile () const;
 
2354
  
 
2355
  // Generates the absolute pathname to the file.
 
2356
  static char *absolutePath (const char *);
 
2357
  static char *resolvePath (const char *);
 
2358
  
 
2359
  // File belongs to given project?
 
2360
  bool belongsTo (Project &);
 
2361
};
 
2362
 
 
2363
inline FileUnit::FileUnit () : 
 
2364
  Unit (), 
 
2365
  _lastLocation ((char*)0), 
 
2366
  _absolutePath ((char*)0),
 
2367
  _project (0),
 
2368
  _isBelow (false)
 
2369
 {}
 
2370
inline FileUnit::FileUnit (Unit &unit) : 
 
2371
  Unit (unit), 
 
2372
  _lastLocation ((char*)0), 
 
2373
  _absolutePath ((char*)0),
 
2374
  _project (0),
 
2375
  _isBelow (false)
 
2376
 {}
 
2377
inline FileUnit::FileUnit (const List &list) : 
 
2378
  Unit (list), 
 
2379
  _lastLocation ((char*)0), 
 
2380
  _absolutePath ((char*)0),
 
2381
  _project (0),
 
2382
  _isBelow (false)  
 
2383
 {}
 
2384
inline FileUnit::~FileUnit () 
 
2385
 { if (_lastLocation) delete[] _lastLocation; 
 
2386
   if (_absolutePath) delete[] _absolutePath; }
 
2387
            
 
2388
inline char *FileUnit::lastLocation () const 
 
2389
 { return _lastLocation; }
 
2390
inline char *FileUnit::absolutePath () const 
 
2391
 { return _absolutePath; }
 
2392
inline bool FileUnit::isFile () const 
 
2393
 { return true; }
 
2394
 
 
2395
 
 
2396
} // namespace Puma
 
2397
 
 
2398
#endif /* __FileUnit__ */
 
2399
 
 
2400
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FileSource.h"
 
2401
// This file is part of PUMA.
 
2402
// Copyright (C) 1999-2003  The PUMA developer team.
 
2403
//                                                                
 
2404
// This program is free software;  you can redistribute it and/or 
 
2405
// modify it under the terms of the GNU General Public License as 
 
2406
// published by the Free Software Foundation; either version 2 of 
 
2407
// the License, or (at your option) any later version.            
 
2408
//                                                                
 
2409
// This program is distributed in the hope that it will be useful,
 
2410
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
2411
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
2412
// GNU General Public License for more details.                   
 
2413
//                                                                
 
2414
// You should have received a copy of the GNU General Public      
 
2415
// License along with this program; if not, write to the Free     
 
2416
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
2417
// MA  02111-1307  USA                                            
 
2418
 
 
2419
#ifndef __file_source_h__
 
2420
#define __file_source_h__
 
2421
 
 
2422
 
 
2423
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorSink.h"
 
2424
// This file is part of PUMA.
 
2425
// Copyright (C) 1999-2003  The PUMA developer team.
 
2426
//                                                                
 
2427
// This program is free software;  you can redistribute it and/or 
 
2428
// modify it under the terms of the GNU General Public License as 
 
2429
// published by the Free Software Foundation; either version 2 of 
 
2430
// the License, or (at your option) any later version.            
 
2431
//                                                                
 
2432
// This program is distributed in the hope that it will be useful,
 
2433
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
2434
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
2435
// GNU General Public License for more details.                   
 
2436
//                                                                
 
2437
// You should have received a copy of the GNU General Public      
 
2438
// License along with this program; if not, write to the Free     
 
2439
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
2440
// MA  02111-1307  USA                                            
 
2441
 
 
2442
#ifndef __error_sink_h__
 
2443
#define __error_sink_h__
 
2444
 
 
2445
// This is an interface for classes that may be used to consume error
 
2446
// messages during a process where many errors can occur like parsing
 
2447
// a program.
 
2448
// The error information is handed over to the ErrorSink in stream-like
 
2449
// style. Different severities of errors are predefined and can be used
 
2450
// to classify error information that follows. Also a location can be
 
2451
// handed over to the ErrorSink to specify where the error was found
 
2452
// (filename, line, etc.). The error information itself can be of any
 
2453
// standard data type or anything that is "Printable".
 
2454
// Specializations of this class could either build and print error
 
2455
// messages or collect them for a later processing.
 
2456
 
 
2457
 
 
2458
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorSeverity.h"
 
2459
// This file is part of PUMA.
 
2460
// Copyright (C) 1999-2003  The PUMA developer team.
 
2461
//                                                                
 
2462
// This program is free software;  you can redistribute it and/or 
 
2463
// modify it under the terms of the GNU General Public License as 
 
2464
// published by the Free Software Foundation; either version 2 of 
 
2465
// the License, or (at your option) any later version.            
 
2466
//                                                                
 
2467
// This program is distributed in the hope that it will be useful,
 
2468
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
2469
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
2470
// GNU General Public License for more details.                   
 
2471
//                                                                
 
2472
// You should have received a copy of the GNU General Public      
 
2473
// License along with this program; if not, write to the Free     
 
2474
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
2475
// MA  02111-1307  USA                                            
 
2476
 
 
2477
#ifndef __error_severity_h__
 
2478
#define __error_severity_h__
 
2479
 
 
2480
// Severity of errors: represented by a short integer and a text
 
2481
 
 
2482
namespace Puma {
 
2483
 
 
2484
 
 
2485
 
 
2486
#line 2487 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2487
} // closed Puma
 
2488
class CCExprResolve;
 
2489
class CExprResolve;
 
2490
class WinIfExists;
 
2491
class WinImportHandler;
 
2492
class WinMacros;
 
2493
class WinAsm;
 
2494
class WinDeclSpecs;
 
2495
class WinMemberExplSpec;
 
2496
class WinTypeKeywords;
 
2497
class WinFriend;
 
2498
class ExtAC;
 
2499
class ExtACBuilderCoupling;
 
2500
class ExtACSyntaxCoupling;
 
2501
class ExtACTree;
 
2502
class ExtACKeywords;
 
2503
class ExtGnu;
 
2504
class PragmaOnceUnitState;
 
2505
class PragmaOnce;
 
2506
class CMatchSyntax;
 
2507
namespace Puma {
 
2508
 
 
2509
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorSeverity.h"
 
2510
class ErrorSeverity {
 
2511
#line 2512 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2512
  friend class ::CCExprResolve;
 
2513
  friend class ::CExprResolve;
 
2514
  friend class ::WinIfExists;
 
2515
  friend class ::WinImportHandler;
 
2516
  friend class ::WinMacros;
 
2517
  friend class ::WinAsm;
 
2518
  friend class ::WinDeclSpecs;
 
2519
  friend class ::WinMemberExplSpec;
 
2520
  friend class ::WinTypeKeywords;
 
2521
  friend class ::WinFriend;
 
2522
  friend class ::ExtAC;
 
2523
  friend class ::ExtACBuilderCoupling;
 
2524
  friend class ::ExtACSyntaxCoupling;
 
2525
  friend class ::ExtACTree;
 
2526
  friend class ::ExtACKeywords;
 
2527
  friend class ::ExtGnu;
 
2528
  friend class ::PragmaOnceUnitState;
 
2529
  friend class ::PragmaOnce;
 
2530
  friend class ::CMatchSyntax;
 
2531
 
 
2532
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorSeverity.h"
 
2533
 
 
2534
  unsigned short _severity;
 
2535
  const char *_text;
 
2536
 
 
2537
public:
 
2538
  ErrorSeverity (unsigned short s = 0, const char* t = (const char*)0) :
 
2539
    _severity (s), _text (t) {}
 
2540
  ErrorSeverity (const ErrorSeverity &s) :
 
2541
    _severity (s._severity), _text (s._text) {}
 
2542
  ErrorSeverity &operator =(const ErrorSeverity &s) 
 
2543
    { _severity = s._severity; _text = s._text; return *this; }
 
2544
 
 
2545
  int operator < (const ErrorSeverity &s) const
 
2546
   { return _severity < s._severity; }
 
2547
  int operator > (const ErrorSeverity &s) const
 
2548
   { return _severity > s._severity; }
 
2549
  int operator <= (const ErrorSeverity &s) const
 
2550
   { return _severity < s._severity || _severity == s._severity; }
 
2551
  int operator >= (const ErrorSeverity &s) const
 
2552
   { return _severity > s._severity || _severity == s._severity; }
 
2553
  int operator == (const ErrorSeverity &s) const
 
2554
   { return _severity == s._severity; }
 
2555
  int operator != (const ErrorSeverity &s) const
 
2556
   { return _severity != s._severity; }
 
2557
  const char *text () const
 
2558
   { return _text; }
 
2559
};
 
2560
 
 
2561
extern const ErrorSeverity sev_none;
 
2562
extern const ErrorSeverity sev_message;
 
2563
extern const ErrorSeverity sev_warning;
 
2564
extern const ErrorSeverity sev_error;
 
2565
extern const ErrorSeverity sev_fatal;
 
2566
      
 
2567
 
 
2568
} // namespace Puma
 
2569
 
 
2570
#endif /* __error_severity_h__ */
 
2571
 
 
2572
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Location.h"
 
2573
// This file is part of PUMA.
 
2574
// Copyright (C) 1999-2003  The PUMA developer team.
 
2575
//                                                                
 
2576
// This program is free software;  you can redistribute it and/or 
 
2577
// modify it under the terms of the GNU General Public License as 
 
2578
// published by the Free Software Foundation; either version 2 of 
 
2579
// the License, or (at your option) any later version.            
 
2580
//                                                                
 
2581
// This program is distributed in the hope that it will be useful,
 
2582
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
2583
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
2584
// GNU General Public License for more details.                   
 
2585
//                                                                
 
2586
// You should have received a copy of the GNU General Public      
 
2587
// License along with this program; if not, write to the Free     
 
2588
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
2589
// MA  02111-1307  USA                                            
 
2590
 
 
2591
#ifndef __location_h__
 
2592
#define __location_h__
 
2593
 
 
2594
 
 
2595
#line 24 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Location.h"
 
2596
namespace Puma {
 
2597
 
 
2598
 
 
2599
 
 
2600
#line 2601 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2601
} // closed Puma
 
2602
class CCExprResolve;
 
2603
class CExprResolve;
 
2604
class WinIfExists;
 
2605
class WinImportHandler;
 
2606
class WinMacros;
 
2607
class WinAsm;
 
2608
class WinDeclSpecs;
 
2609
class WinMemberExplSpec;
 
2610
class WinTypeKeywords;
 
2611
class WinFriend;
 
2612
class ExtAC;
 
2613
class ExtACBuilderCoupling;
 
2614
class ExtACSyntaxCoupling;
 
2615
class ExtACTree;
 
2616
class ExtACKeywords;
 
2617
class ExtGnu;
 
2618
class PragmaOnceUnitState;
 
2619
class PragmaOnce;
 
2620
class CMatchSyntax;
 
2621
namespace Puma {
 
2622
 
 
2623
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Location.h"
 
2624
class Location {
 
2625
#line 2626 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2626
  friend class ::CCExprResolve;
 
2627
  friend class ::CExprResolve;
 
2628
  friend class ::WinIfExists;
 
2629
  friend class ::WinImportHandler;
 
2630
  friend class ::WinMacros;
 
2631
  friend class ::WinAsm;
 
2632
  friend class ::WinDeclSpecs;
 
2633
  friend class ::WinMemberExplSpec;
 
2634
  friend class ::WinTypeKeywords;
 
2635
  friend class ::WinFriend;
 
2636
  friend class ::ExtAC;
 
2637
  friend class ::ExtACBuilderCoupling;
 
2638
  friend class ::ExtACSyntaxCoupling;
 
2639
  friend class ::ExtACTree;
 
2640
  friend class ::ExtACKeywords;
 
2641
  friend class ::ExtGnu;
 
2642
  friend class ::PragmaOnceUnitState;
 
2643
  friend class ::PragmaOnce;
 
2644
  friend class ::CMatchSyntax;
 
2645
 
 
2646
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Location.h"
 
2647
 
 
2648
  Filename _filename;
 
2649
  int _line;
 
2650
  int _column;
 
2651
 
 
2652
public:
 
2653
  Location () : _filename (), _line (0), _column (0) {}
 
2654
  Location (Filename f, int l, int c = 0) { setup (f, l, c); }
 
2655
  void setup (Filename f, int l, int c = 0) {
 
2656
    _filename = f;
 
2657
    _line     = l;
 
2658
    _column   = c;
 
2659
  }
 
2660
  const Filename &filename () const { return _filename; }
 
2661
  int line () const { return _line; }
 
2662
  int column () const { return _column; }
 
2663
  bool operator == (const Location &l) const {
 
2664
    return filename () == l.filename () && line () == l.line () &&
 
2665
      column () == l.column ();
 
2666
  }
 
2667
  bool operator != (const Location &l) const { return ! (*this == l); }
 
2668
  bool operator < (const Location &l) const {
 
2669
    // TODO: does it make sense to compare the filenames? better assert?
 
2670
    if (filename () != l.filename ())
 
2671
      return false;
 
2672
    return line () < l.line () && column () < l.column ();
 
2673
  }
 
2674
};
 
2675
 
 
2676
inline std::ostream &operator << (std::ostream &os, const Location &loc) {
 
2677
#ifdef VISUAL_STUDIO
 
2678
  os << loc.filename () << "(" << loc.line () << ")";
 
2679
#else
 
2680
  os << loc.filename () << ":" << loc.line ();
 
2681
#endif
 
2682
  return os;  
 
2683
}
 
2684
} // namespace Puma
 
2685
 
 
2686
#endif /* __location_h__ */
 
2687
 
 
2688
#line 38 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorSink.h"
 
2689
namespace Puma {
 
2690
 
 
2691
 
 
2692
 
 
2693
#line 2694 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2694
} // closed Puma
 
2695
class CCExprResolve;
 
2696
class CExprResolve;
 
2697
class WinIfExists;
 
2698
class WinImportHandler;
 
2699
class WinMacros;
 
2700
class WinAsm;
 
2701
class WinDeclSpecs;
 
2702
class WinMemberExplSpec;
 
2703
class WinTypeKeywords;
 
2704
class WinFriend;
 
2705
class ExtAC;
 
2706
class ExtACBuilderCoupling;
 
2707
class ExtACSyntaxCoupling;
 
2708
class ExtACTree;
 
2709
class ExtACKeywords;
 
2710
class ExtGnu;
 
2711
class PragmaOnceUnitState;
 
2712
class PragmaOnce;
 
2713
class CMatchSyntax;
 
2714
namespace Puma {
 
2715
 
 
2716
#line 41 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorSink.h"
 
2717
class ErrorSink {
 
2718
#line 2719 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2719
  friend class ::CCExprResolve;
 
2720
  friend class ::CExprResolve;
 
2721
  friend class ::WinIfExists;
 
2722
  friend class ::WinImportHandler;
 
2723
  friend class ::WinMacros;
 
2724
  friend class ::WinAsm;
 
2725
  friend class ::WinDeclSpecs;
 
2726
  friend class ::WinMemberExplSpec;
 
2727
  friend class ::WinTypeKeywords;
 
2728
  friend class ::WinFriend;
 
2729
  friend class ::ExtAC;
 
2730
  friend class ::ExtACBuilderCoupling;
 
2731
  friend class ::ExtACSyntaxCoupling;
 
2732
  friend class ::ExtACTree;
 
2733
  friend class ::ExtACKeywords;
 
2734
  friend class ::ExtGnu;
 
2735
  friend class ::PragmaOnceUnitState;
 
2736
  friend class ::PragmaOnce;
 
2737
  friend class ::CMatchSyntax;
 
2738
 
 
2739
#line 41 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorSink.h"
 
2740
 
 
2741
public:
 
2742
  virtual ~ErrorSink () {}
 
2743
  virtual ErrorSink &operator << (const char *) = 0;
 
2744
  virtual ErrorSink &operator << (long) = 0;
 
2745
  virtual ErrorSink &operator << (unsigned) = 0;
 
2746
  virtual ErrorSink &operator << (int) = 0;
 
2747
  virtual ErrorSink &operator << (short) = 0;
 
2748
  virtual ErrorSink &operator << (char) = 0;
 
2749
  virtual ErrorSink &operator << (double) = 0;
 
2750
  virtual ErrorSink &operator << (const ErrorSeverity &) = 0;
 
2751
  virtual ErrorSink &operator << (Location) = 0;
 
2752
  virtual ErrorSink &operator << (const Printable &) = 0;
 
2753
  virtual ErrorSink &operator << (void (*f)(ErrorSink &)) = 0;
 
2754
  virtual void endMessage () = 0;
 
2755
};
 
2756
 
 
2757
void endMessage (ErrorSink &);
 
2758
 
 
2759
 
 
2760
} // namespace Puma
 
2761
 
 
2762
#endif /* __error_sink_h__ */
 
2763
 
 
2764
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FdSource.h"
 
2765
// This file is part of PUMA.
 
2766
// Copyright (C) 1999-2003  The PUMA developer team.
 
2767
//                                                                
 
2768
// This program is free software;  you can redistribute it and/or 
 
2769
// modify it under the terms of the GNU General Public License as 
 
2770
// published by the Free Software Foundation; either version 2 of 
 
2771
// the License, or (at your option) any later version.            
 
2772
//                                                                
 
2773
// This program is distributed in the hope that it will be useful,
 
2774
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
2775
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
2776
// GNU General Public License for more details.                   
 
2777
//                                                                
 
2778
// You should have received a copy of the GNU General Public      
 
2779
// License along with this program; if not, write to the Free     
 
2780
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
2781
// MA  02111-1307  USA                                            
 
2782
 
 
2783
#ifndef __fd_source_h__
 
2784
#define __fd_source_h__
 
2785
 
 
2786
 
 
2787
#line 25 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FdSource.h"
 
2788
namespace Puma {
 
2789
 
 
2790
 
 
2791
 
 
2792
#line 2793 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2793
} // closed Puma
 
2794
class CCExprResolve;
 
2795
class CExprResolve;
 
2796
class WinIfExists;
 
2797
class WinImportHandler;
 
2798
class WinMacros;
 
2799
class WinAsm;
 
2800
class WinDeclSpecs;
 
2801
class WinMemberExplSpec;
 
2802
class WinTypeKeywords;
 
2803
class WinFriend;
 
2804
class ExtAC;
 
2805
class ExtACBuilderCoupling;
 
2806
class ExtACSyntaxCoupling;
 
2807
class ExtACTree;
 
2808
class ExtACKeywords;
 
2809
class ExtGnu;
 
2810
class PragmaOnceUnitState;
 
2811
class PragmaOnce;
 
2812
class CMatchSyntax;
 
2813
namespace Puma {
 
2814
 
 
2815
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FdSource.h"
 
2816
class FdSource : public Source {
 
2817
#line 2818 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2818
  friend class ::CCExprResolve;
 
2819
  friend class ::CExprResolve;
 
2820
  friend class ::WinIfExists;
 
2821
  friend class ::WinImportHandler;
 
2822
  friend class ::WinMacros;
 
2823
  friend class ::WinAsm;
 
2824
  friend class ::WinDeclSpecs;
 
2825
  friend class ::WinMemberExplSpec;
 
2826
  friend class ::WinTypeKeywords;
 
2827
  friend class ::WinFriend;
 
2828
  friend class ::ExtAC;
 
2829
  friend class ::ExtACBuilderCoupling;
 
2830
  friend class ::ExtACSyntaxCoupling;
 
2831
  friend class ::ExtACTree;
 
2832
  friend class ::ExtACKeywords;
 
2833
  friend class ::ExtGnu;
 
2834
  friend class ::PragmaOnceUnitState;
 
2835
  friend class ::PragmaOnce;
 
2836
  friend class ::CMatchSyntax;
 
2837
 
 
2838
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FdSource.h"
 
2839
 
 
2840
  int _fd;
 
2841
 
 
2842
public:
 
2843
  FdSource () : _fd (-1) {}
 
2844
  FdSource (int fdesc) : _fd (fdesc) {}
 
2845
  virtual ~FdSource () {}
 
2846
 
 
2847
  virtual int read (char *dest, int n)
 
2848
   { return SysCall::read (_fd, dest, n); }
 
2849
 
 
2850
  void fd (int fdesc) { _fd = fdesc; }
 
2851
  int fd () { return _fd; }
 
2852
 
 
2853
  int size () {
 
2854
    FileInfo fileinfo;
 
2855
    return (SysCall::fstat (_fd, fileinfo)) ? fileinfo.size () : -1;
 
2856
  }
 
2857
};
 
2858
 
 
2859
 
 
2860
} // namespace Puma
 
2861
 
 
2862
#endif /* __fd_source_h__ */
 
2863
 
 
2864
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FileSource.h"
 
2865
#include <fcntl.h>
 
2866
 
 
2867
namespace Puma {
 
2868
 
 
2869
 
 
2870
 
 
2871
#line 2872 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2872
} // closed Puma
 
2873
class CCExprResolve;
 
2874
class CExprResolve;
 
2875
class WinIfExists;
 
2876
class WinImportHandler;
 
2877
class WinMacros;
 
2878
class WinAsm;
 
2879
class WinDeclSpecs;
 
2880
class WinMemberExplSpec;
 
2881
class WinTypeKeywords;
 
2882
class WinFriend;
 
2883
class ExtAC;
 
2884
class ExtACBuilderCoupling;
 
2885
class ExtACSyntaxCoupling;
 
2886
class ExtACTree;
 
2887
class ExtACKeywords;
 
2888
class ExtGnu;
 
2889
class PragmaOnceUnitState;
 
2890
class PragmaOnce;
 
2891
class CMatchSyntax;
 
2892
namespace Puma {
 
2893
 
 
2894
#line 32 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FileSource.h"
 
2895
class FileSource : public FdSource {
 
2896
#line 2897 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2897
  friend class ::CCExprResolve;
 
2898
  friend class ::CExprResolve;
 
2899
  friend class ::WinIfExists;
 
2900
  friend class ::WinImportHandler;
 
2901
  friend class ::WinMacros;
 
2902
  friend class ::WinAsm;
 
2903
  friend class ::WinDeclSpecs;
 
2904
  friend class ::WinMemberExplSpec;
 
2905
  friend class ::WinTypeKeywords;
 
2906
  friend class ::WinFriend;
 
2907
  friend class ::ExtAC;
 
2908
  friend class ::ExtACBuilderCoupling;
 
2909
  friend class ::ExtACSyntaxCoupling;
 
2910
  friend class ::ExtACTree;
 
2911
  friend class ::ExtACKeywords;
 
2912
  friend class ::ExtGnu;
 
2913
  friend class ::PragmaOnceUnitState;
 
2914
  friend class ::PragmaOnce;
 
2915
  friend class ::CMatchSyntax;
 
2916
 
 
2917
#line 32 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/FileSource.h"
 
2918
 
 
2919
public:
 
2920
  FileSource (const char *name, ErrorSink *err = (ErrorSink*)0)
 
2921
   { fd (SysCall::open (name, O_RDONLY, err)); }
 
2922
  ~FileSource ()
 
2923
   { SysCall::close (fd ()); }
 
2924
 
 
2925
  virtual int read (char *dest, int n)
 
2926
   { return FdSource::read (dest, n); }
 
2927
};
 
2928
 
 
2929
 
 
2930
} // namespace Puma
 
2931
 
 
2932
#endif /* __file_source_h__ */
 
2933
 
 
2934
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorStream.h"
 
2935
// This file is part of PUMA.
 
2936
// Copyright (C) 1999-2003  The PUMA developer team.
 
2937
//                                                                
 
2938
// This program is free software;  you can redistribute it and/or 
 
2939
// modify it under the terms of the GNU General Public License as 
 
2940
// published by the Free Software Foundation; either version 2 of 
 
2941
// the License, or (at your option) any later version.            
 
2942
//                                                                
 
2943
// This program is distributed in the hope that it will be useful,
 
2944
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
2945
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
2946
// GNU General Public License for more details.                   
 
2947
//                                                                
 
2948
// You should have received a copy of the GNU General Public      
 
2949
// License along with this program; if not, write to the Free     
 
2950
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
2951
// MA  02111-1307  USA                                            
 
2952
 
 
2953
#ifndef __error_stream_h__
 
2954
#define __error_stream_h__
 
2955
 
 
2956
// An ErrorStream is a special ErrorSink that prints out an error message
 
2957
// as soon as it complete. It also stores the maximum error severity.
 
2958
// The ErrorStream can be reset to it's initial state.
 
2959
 
 
2960
#include <sstream>
 
2961
 
 
2962
#line 30 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorStream.h"
 
2963
using namespace std;
 
2964
 
 
2965
namespace Puma {
 
2966
 
 
2967
 
 
2968
 
 
2969
#line 2970 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2970
} // closed Puma
 
2971
class CCExprResolve;
 
2972
class CExprResolve;
 
2973
class WinIfExists;
 
2974
class WinImportHandler;
 
2975
class WinMacros;
 
2976
class WinAsm;
 
2977
class WinDeclSpecs;
 
2978
class WinMemberExplSpec;
 
2979
class WinTypeKeywords;
 
2980
class WinFriend;
 
2981
class ExtAC;
 
2982
class ExtACBuilderCoupling;
 
2983
class ExtACSyntaxCoupling;
 
2984
class ExtACTree;
 
2985
class ExtACKeywords;
 
2986
class ExtGnu;
 
2987
class PragmaOnceUnitState;
 
2988
class PragmaOnce;
 
2989
class CMatchSyntax;
 
2990
namespace Puma {
 
2991
 
 
2992
#line 35 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorStream.h"
 
2993
class ErrorStream : public ErrorSink {
 
2994
#line 2995 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
2995
  friend class ::CCExprResolve;
 
2996
  friend class ::CExprResolve;
 
2997
  friend class ::WinIfExists;
 
2998
  friend class ::WinImportHandler;
 
2999
  friend class ::WinMacros;
 
3000
  friend class ::WinAsm;
 
3001
  friend class ::WinDeclSpecs;
 
3002
  friend class ::WinMemberExplSpec;
 
3003
  friend class ::WinTypeKeywords;
 
3004
  friend class ::WinFriend;
 
3005
  friend class ::ExtAC;
 
3006
  friend class ::ExtACBuilderCoupling;
 
3007
  friend class ::ExtACSyntaxCoupling;
 
3008
  friend class ::ExtACTree;
 
3009
  friend class ::ExtACKeywords;
 
3010
  friend class ::ExtGnu;
 
3011
  friend class ::PragmaOnceUnitState;
 
3012
  friend class ::PragmaOnce;
 
3013
  friend class ::CMatchSyntax;
 
3014
 
 
3015
#line 35 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/ErrorStream.h"
 
3016
 
 
3017
  ostream *_ostream;
 
3018
  ErrorSeverity _max_severity;
 
3019
  ErrorSeverity _curr_severity;
 
3020
  Location _location;
 
3021
  bool _have_location;
 
3022
  std::ostringstream *_msg;
 
3023
  bool _silently;
 
3024
 
 
3025
  void output ();
 
3026
  void clear ();
 
3027
 
 
3028
public:
 
3029
  ErrorStream (std::ostream &s = cerr) : _ostream (&s), _msg ((std::ostringstream*)0)
 
3030
   { reset (); _silently = false; }
 
3031
  virtual ~ErrorStream () { delete _msg; }
 
3032
 
 
3033
  ErrorStream &operator << (const char *);
 
3034
  ErrorStream &operator << (long);
 
3035
  ErrorStream &operator << (unsigned);
 
3036
  ErrorStream &operator << (int);
 
3037
  ErrorStream &operator << (short);
 
3038
  ErrorStream &operator << (char);
 
3039
  ErrorStream &operator << (double);
 
3040
  ErrorStream &operator << (const ErrorSeverity &);
 
3041
  ErrorStream &operator << (Location);
 
3042
  ErrorStream &operator << (const Printable &);
 
3043
  ErrorStream &operator << (void (*f)(ErrorSink &));
 
3044
 
 
3045
  void endMessage ();
 
3046
  void reset ();
 
3047
  void silent ();
 
3048
  void loud ();
 
3049
 
 
3050
  ErrorSeverity severity () const { return _max_severity; }
 
3051
};
 
3052
 
 
3053
 
 
3054
} // namespace Puma
 
3055
 
 
3056
#endif /* __error_stream_h__ */
 
3057
 
 
3058
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitManager.h"
 
3059
// This file is part of PUMA.
 
3060
// Copyright (C) 1999-2003  The PUMA developer team.
 
3061
//                                                                
 
3062
// This program is free software;  you can redistribute it and/or 
 
3063
// modify it under the terms of the GNU General Public License as 
 
3064
// published by the Free Software Foundation; either version 2 of 
 
3065
// the License, or (at your option) any later version.            
 
3066
//                                                                
 
3067
// This program is distributed in the hope that it will be useful,
 
3068
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
3069
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
3070
// GNU General Public License for more details.                   
 
3071
//                                                                
 
3072
// You should have received a copy of the GNU General Public      
 
3073
// License along with this program; if not, write to the Free     
 
3074
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
3075
// MA  02111-1307  USA                                            
 
3076
 
 
3077
#ifndef __UnitManager__
 
3078
#define __UnitManager__
 
3079
 
 
3080
// Class UnitManager helps you to have control of all units built.
 
3081
 
 
3082
 
 
3083
#line 25 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitManager.h"
 
3084
#include <list>
 
3085
#include <map>
 
3086
 
 
3087
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitManager.h"
 
3088
using namespace std;
 
3089
 
 
3090
#line 31 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitManager.h"
 
3091
namespace Puma {
 
3092
 
 
3093
 
 
3094
class Unit;
 
3095
class Source;
 
3096
class Tokenizer;
 
3097
 
 
3098
 
 
3099
#line 3100 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
3100
} // closed Puma
 
3101
class CCExprResolve;
 
3102
class CExprResolve;
 
3103
class WinIfExists;
 
3104
class WinImportHandler;
 
3105
class WinMacros;
 
3106
class WinAsm;
 
3107
class WinDeclSpecs;
 
3108
class WinMemberExplSpec;
 
3109
class WinTypeKeywords;
 
3110
class WinFriend;
 
3111
class ExtAC;
 
3112
class ExtACBuilderCoupling;
 
3113
class ExtACSyntaxCoupling;
 
3114
class ExtACTree;
 
3115
class ExtACKeywords;
 
3116
class ExtGnu;
 
3117
class PragmaOnceUnitState;
 
3118
class PragmaOnce;
 
3119
class CMatchSyntax;
 
3120
namespace Puma {
 
3121
 
 
3122
#line 38 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitManager.h"
 
3123
class UnitManager {
 
3124
#line 3125 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
3125
  friend class ::CCExprResolve;
 
3126
  friend class ::CExprResolve;
 
3127
  friend class ::WinIfExists;
 
3128
  friend class ::WinImportHandler;
 
3129
  friend class ::WinMacros;
 
3130
  friend class ::WinAsm;
 
3131
  friend class ::WinDeclSpecs;
 
3132
  friend class ::WinMemberExplSpec;
 
3133
  friend class ::WinTypeKeywords;
 
3134
  friend class ::WinFriend;
 
3135
  friend class ::ExtAC;
 
3136
  friend class ::ExtACBuilderCoupling;
 
3137
  friend class ::ExtACSyntaxCoupling;
 
3138
  friend class ::ExtACTree;
 
3139
  friend class ::ExtACKeywords;
 
3140
  friend class ::ExtGnu;
 
3141
  friend class ::PragmaOnceUnitState;
 
3142
  friend class ::PragmaOnce;
 
3143
  friend class ::CMatchSyntax;
 
3144
 
 
3145
#line 38 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitManager.h"
 
3146
 
 
3147
public:
 
3148
  typedef map<string, Unit*> UMap;
 
3149
private:
 
3150
  ErrorStream *_err;        // For error messages.
 
3151
  list<Unit*> _nonames;     // Noname units list.
 
3152
  mutable UMap _umap;       // Named units, map supports fast lookup by name
 
3153
  typedef UMap::value_type UMapPair;
 
3154
  Tokenizer *_tokenizer;    // File scanner.
 
3155
 
 
3156
public:
 
3157
  UnitManager (ErrorStream &err) : _err (&err), _tokenizer (0) {}
 
3158
        
 
3159
  // Destructor: Delete all units.
 
3160
  virtual ~UnitManager ();
 
3161
        
 
3162
  // Get the unit hash table.
 
3163
  UMap &getTable () const { return _umap; }
 
3164
  typedef UMap::iterator UMapIter;
 
3165
        
 
3166
  // Get/Set the file scanner that is used by newUnit
 
3167
  Tokenizer *tokenizer () const { return _tokenizer; }
 
3168
  void tokenizer (Tokenizer *t) { _tokenizer = t; }
 
3169
 
 
3170
  // Add a unit to manager.
 
3171
  void addUnit (Unit *unit);
 
3172
        
 
3173
  // Remove (and destroy) a unit from hash table. If the name
 
3174
  // is NULL remove all (but not the nonames).
 
3175
  void removeUnit (const char *name = (const char*) 0, bool = false, 
 
3176
                   bool destroy = true) const;
 
3177
 
 
3178
  // Empty a unit. Don't remove from hash table.
 
3179
  // Preserve the last save location information.
 
3180
  void closeUnit (const char *name = (const char*) 0, bool = false) const;
 
3181
 
 
3182
  // Build and add a new unit. 
 
3183
  Unit *newUnit (const char *, Source *in = (Source*) 0, bool = false);
 
3184
        
 
3185
  // Get a unit by name. 
 
3186
  Unit *getUnit (const char *name, bool = false) const;
 
3187
                        
 
3188
  // Print given unit to the given outstream. If no
 
3189
  // name is given, print all units.
 
3190
  void print (const char *name = (const char*) 0, bool = false, 
 
3191
              ostream &out = cout) const;
 
3192
 
 
3193
  // Destroy all noname units.
 
3194
  void removeNonames ();
 
3195
      
 
3196
  // Initialize the unit manager and the managed 
 
3197
  // units for the next parse process.
 
3198
  
 
3199
#line 3200 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
3200
public: __attribute__((always_inline)) inline void __exec_old_init();
 
3201
 
 
3202
#line 90 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/UnitManager.h"
 
3203
void init ();
 
3204
};
 
3205
 
 
3206
 
 
3207
} // namespace Puma
 
3208
 
 
3209
#endif /* __UnitManager__ */
 
3210
 
 
3211
#line 1 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Tokenizer.h"
 
3212
// This file is part of PUMA.
 
3213
// Copyright (C) 1999-2003  The PUMA developer team.
 
3214
//                                                                
 
3215
// This program is free software;  you can redistribute it and/or 
 
3216
// modify it under the terms of the GNU General Public License as 
 
3217
// published by the Free Software Foundation; either version 2 of 
 
3218
// the License, or (at your option) any later version.            
 
3219
//                                                                
 
3220
// This program is distributed in the hope that it will be useful,
 
3221
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
3222
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
3223
// GNU General Public License for more details.                   
 
3224
//                                                                
 
3225
// You should have received a copy of the GNU General Public      
 
3226
// License along with this program; if not, write to the Free     
 
3227
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
3228
// MA  02111-1307  USA                                            
 
3229
 
 
3230
#ifndef __Tokenizer_h__
 
3231
#define __Tokenizer_h__
 
3232
 
 
3233
// Tokenizer interface. Tokenizer read input from a "Source" and
 
3234
// form tokens, which used to fill a "Unit".
 
3235
 
 
3236
 
 
3237
#line 28 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Tokenizer.h"
 
3238
namespace Puma {
 
3239
 
 
3240
 
 
3241
 
 
3242
#line 3243 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
3243
} // closed Puma
 
3244
class CCExprResolve;
 
3245
class CExprResolve;
 
3246
class WinIfExists;
 
3247
class WinImportHandler;
 
3248
class WinMacros;
 
3249
class WinAsm;
 
3250
class WinDeclSpecs;
 
3251
class WinMemberExplSpec;
 
3252
class WinTypeKeywords;
 
3253
class WinFriend;
 
3254
class ExtAC;
 
3255
class ExtACBuilderCoupling;
 
3256
class ExtACSyntaxCoupling;
 
3257
class ExtACTree;
 
3258
class ExtACKeywords;
 
3259
class ExtGnu;
 
3260
class PragmaOnceUnitState;
 
3261
class PragmaOnce;
 
3262
class CMatchSyntax;
 
3263
namespace Puma {
 
3264
 
 
3265
#line 31 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Tokenizer.h"
 
3266
class Tokenizer {
 
3267
#line 3268 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
3268
  friend class ::CCExprResolve;
 
3269
  friend class ::CExprResolve;
 
3270
  friend class ::WinIfExists;
 
3271
  friend class ::WinImportHandler;
 
3272
  friend class ::WinMacros;
 
3273
  friend class ::WinAsm;
 
3274
  friend class ::WinDeclSpecs;
 
3275
  friend class ::WinMemberExplSpec;
 
3276
  friend class ::WinTypeKeywords;
 
3277
  friend class ::WinFriend;
 
3278
  friend class ::ExtAC;
 
3279
  friend class ::ExtACBuilderCoupling;
 
3280
  friend class ::ExtACSyntaxCoupling;
 
3281
  friend class ::ExtACTree;
 
3282
  friend class ::ExtACKeywords;
 
3283
  friend class ::ExtGnu;
 
3284
  friend class ::PragmaOnceUnitState;
 
3285
  friend class ::PragmaOnce;
 
3286
  friend class ::CMatchSyntax;
 
3287
 
 
3288
#line 31 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/inc/Puma/Tokenizer.h"
 
3289
 
 
3290
public:
 
3291
  virtual ~Tokenizer () {}
 
3292
  virtual void fill_unit (Source &in, Unit &unit) = 0;
 
3293
};
 
3294
 
 
3295
 
 
3296
} // namespace Puma
 
3297
 
 
3298
#endif /* __Tokenizer_h__ */
 
3299
 
 
3300
#line 27 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
27
3301
#include <string.h>
28
3302
#include <assert.h>
29
3303
 
220
3494
  }
221
3495
}
222
3496
 
223
 
void UnitManager::init () {
224
 
  /* not yet used directly */
 
3497
 
 
3498
#line 3499 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
3499
 
 
3500
 
 
3501
template <typename TResult, typename TThat, typename TTarget, typename TArgs> struct TJP__ZN4Puma11UnitManager4initEv_0 {
 
3502
  typedef TJP__ZN4Puma11UnitManager4initEv_0 __TJP;
 
3503
  typedef TResult Result;
 
3504
  typedef TThat   That;
 
3505
  typedef TTarget Target;
 
3506
  enum { ARGS = TArgs::ARGS };
 
3507
  template <int I> struct Arg : AC::Arg<TArgs, I> {};
 
3508
  static const int JPID = 3674;
 
3509
  static const AC::JPType JPTYPE = (AC::JPType)8;
 
3510
  struct Res {
 
3511
    typedef TResult Type;
 
3512
    typedef TResult ReferredType;
 
3513
  };
 
3514
 
 
3515
  That *_that;
 
3516
 
 
3517
  inline That *that() {return (That*)_that;}
 
3518
 
 
3519
};
 
3520
 
 
3521
 
 
3522
#line 223 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
 
3523
void UnitManager::init () 
 
3524
#line 3525 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
3525
{
 
3526
  typedef TJP__ZN4Puma11UnitManager4initEv_0< void, ::Puma::UnitManager , ::Puma::UnitManager ,  AC::TLE > __TJP;
 
3527
    __TJP tjp;
 
3528
  tjp._that =  (__TJP::That*)this;
 
3529
    this->__exec_old_init();
 
3530
  AC::invoke_PragmaOnceUnitState_PragmaOnceUnitState_a1_after<__TJP> (&tjp);
225
3531
  
226
 
  // go through the whole hash table and reset the 
227
 
  // `#pragma once' state of the units
228
 
  for (UMapIter iter = _umap.begin (); iter != _umap.end (); ++iter)
229
 
    (*iter).second->state ().onlyOnce (false);
 
3532
}
 
3533
__attribute__((always_inline)) inline void Puma::UnitManager::__exec_old_init()
 
3534
#line 223 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
 
3535
{
230
3536
}
231
3537
 
232
3538
 
233
3539
} // namespace Puma
 
3540
 
 
3541
#line 3542 "/var/tmp/aspectc++/debian/Puma/gen-release/step2/src/UnitManager.cc"
 
3542
 
 
3543
#ifdef __ac_FIRST_FILE__var_tmp_aspectc4343_debian_Puma_gen45release_step1_src_UnitManager_cc__
 
3544
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CCExprResolveCC_ah__
 
3545
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CCExprResolveCC_ah__
 
3546
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CCExprResolveCC_ah__
 
3547
#include "CCExprResolveCC.ah"
 
3548
#endif
 
3549
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3550
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3551
#include "ExtACTree.ah"
 
3552
#endif
 
3553
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3554
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3555
#include "ExtGnu.ah"
 
3556
#endif
 
3557
#endif
 
3558
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CCExprResolveH_ah__
 
3559
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CCExprResolveH_ah__
 
3560
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CCExprResolveH_ah__
 
3561
#include "CCExprResolveH.ah"
 
3562
#endif
 
3563
#endif
 
3564
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CExprResolveCC_ah__
 
3565
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CExprResolveCC_ah__
 
3566
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CExprResolveCC_ah__
 
3567
#include "CExprResolveCC.ah"
 
3568
#endif
 
3569
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3570
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3571
#include "ExtACTree.ah"
 
3572
#endif
 
3573
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3574
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3575
#include "ExtGnu.ah"
 
3576
#endif
 
3577
#endif
 
3578
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CExprResolveH_ah__
 
3579
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CExprResolveH_ah__
 
3580
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CExprResolveH_ah__
 
3581
#include "CExprResolveH.ah"
 
3582
#endif
 
3583
#endif
 
3584
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinIfExists_ah__
 
3585
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinIfExists_ah__
 
3586
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinIfExists_ah__
 
3587
#include "WinIfExists.ah"
 
3588
#endif
 
3589
#endif
 
3590
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinImportHandler_ah__
 
3591
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinImportHandler_ah__
 
3592
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinImportHandler_ah__
 
3593
#include "WinImportHandler.ah"
 
3594
#endif
 
3595
#endif
 
3596
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinMacros_ah__
 
3597
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinMacros_ah__
 
3598
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinMacros_ah__
 
3599
#include "WinMacros.ah"
 
3600
#endif
 
3601
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3602
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3603
#include "PragmaOnceUnitState.ah"
 
3604
#endif
 
3605
#endif
 
3606
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinAsm_ah__
 
3607
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinAsm_ah__
 
3608
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinAsm_ah__
 
3609
#include "WinAsm.ah"
 
3610
#endif
 
3611
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3612
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3613
#include "ExtACTree.ah"
 
3614
#endif
 
3615
#endif
 
3616
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinDeclSpecs_ah__
 
3617
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinDeclSpecs_ah__
 
3618
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinDeclSpecs_ah__
 
3619
#include "WinDeclSpecs.ah"
 
3620
#endif
 
3621
#endif
 
3622
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinMemberExplSpec_ah__
 
3623
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinMemberExplSpec_ah__
 
3624
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinMemberExplSpec_ah__
 
3625
#include "WinMemberExplSpec.ah"
 
3626
#endif
 
3627
#endif
 
3628
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinTypeKeywords_ah__
 
3629
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinTypeKeywords_ah__
 
3630
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinTypeKeywords_ah__
 
3631
#include "WinTypeKeywords.ah"
 
3632
#endif
 
3633
#endif
 
3634
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinFriend_ah__
 
3635
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinFriend_ah__
 
3636
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_WinFriend_ah__
 
3637
#include "WinFriend.ah"
 
3638
#endif
 
3639
#endif
 
3640
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtAC_ah__
 
3641
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtAC_ah__
 
3642
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtAC_ah__
 
3643
#include "ExtAC.ah"
 
3644
#endif
 
3645
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3646
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3647
#include "ExtACTree.ah"
 
3648
#endif
 
3649
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACKeywords_ah__
 
3650
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACKeywords_ah__
 
3651
#include "ExtACKeywords.ah"
 
3652
#endif
 
3653
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3654
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3655
#include "ExtGnu.ah"
 
3656
#endif
 
3657
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3658
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3659
#include "PragmaOnceUnitState.ah"
 
3660
#endif
 
3661
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CMatchSyntax_ah__
 
3662
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CMatchSyntax_ah__
 
3663
#include "CMatchSyntax.ah"
 
3664
#endif
 
3665
#endif
 
3666
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACBuilderH_ah__
 
3667
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACBuilderH_ah__
 
3668
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACBuilderH_ah__
 
3669
#include "ExtACBuilderH.ah"
 
3670
#endif
 
3671
#endif
 
3672
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACBuilderCC_ah__
 
3673
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACBuilderCC_ah__
 
3674
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACBuilderCC_ah__
 
3675
#include "ExtACBuilderCC.ah"
 
3676
#endif
 
3677
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3678
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3679
#include "ExtACTree.ah"
 
3680
#endif
 
3681
#endif
 
3682
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACSyntaxH_ah__
 
3683
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACSyntaxH_ah__
 
3684
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACSyntaxH_ah__
 
3685
#include "ExtACSyntaxH.ah"
 
3686
#endif
 
3687
#endif
 
3688
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACSyntaxCC_ah__
 
3689
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACSyntaxCC_ah__
 
3690
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACSyntaxCC_ah__
 
3691
#include "ExtACSyntaxCC.ah"
 
3692
#endif
 
3693
#endif
 
3694
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3695
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3696
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3697
#include "ExtACTree.ah"
 
3698
#endif
 
3699
#endif
 
3700
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACKeywords_ah__
 
3701
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACKeywords_ah__
 
3702
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACKeywords_ah__
 
3703
#include "ExtACKeywords.ah"
 
3704
#endif
 
3705
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3706
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3707
#include "PragmaOnceUnitState.ah"
 
3708
#endif
 
3709
#endif
 
3710
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3711
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3712
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3713
#include "ExtACTree.ah"
 
3714
#endif
 
3715
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3716
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnu_ah__
 
3717
#include "ExtGnu.ah"
 
3718
#endif
 
3719
#endif
 
3720
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnuCSemDeclSpecs_ah__
 
3721
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3722
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtACTree_ah__
 
3723
#include "ExtACTree.ah"
 
3724
#endif
 
3725
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnuCSemDeclSpecs_ah__
 
3726
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_ExtGnuCSemDeclSpecs_ah__
 
3727
#include "ExtGnuCSemDeclSpecs.ah"
 
3728
#endif
 
3729
#endif
 
3730
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3731
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3732
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3733
 
 
3734
#line 193 "/var/tmp/aspectc++/debian/Puma/gen-release/step1/src/UnitManager.cc"
 
3735
#endif
 
3736
#endif
 
3737
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnce_ah__
 
3738
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3739
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnceUnitState_ah__
 
3740
#include "PragmaOnceUnitState.ah"
 
3741
#endif
 
3742
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnce_ah__
 
3743
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_PragmaOnce_ah__
 
3744
#include "PragmaOnce.ah"
 
3745
#endif
 
3746
#endif
 
3747
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_TraceSyntax_ah__
 
3748
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_TraceSyntax_ah__
 
3749
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_TraceSyntax_ah__
 
3750
#include "TraceSyntax.ah"
 
3751
#endif
 
3752
#endif
 
3753
#ifdef __ac_need__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CMatchSyntax_ah__
 
3754
#ifndef __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CMatchSyntax_ah__
 
3755
#define __ac_have__var_tmp_aspectc4343_debian_Puma_gen45release_step1_aspects_CMatchSyntax_ah__
 
3756
#include "CMatchSyntax.ah"
 
3757
#endif
 
3758
#endif
 
3759
#undef __ac_FIRST__var_tmp_aspectc4343_debian_Puma_gen45release_step1__
 
3760
#undef __ac_FIRST_FILE__var_tmp_aspectc4343_debian_Puma_gen45release_step1_src_UnitManager_cc__
 
3761
#endif // __ac_FIRST_FILE__var_tmp_aspectc4343_debian_Puma_gen45release_step1_src_UnitManager_cc__