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

« back to all changes in this revision

Viewing changes to Puma/src/cpp/PreParser.lem

  • 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:
623
623
      if (state->passOnToken && ! state->errorDirective) {
624
624
        // Check every C++ identifier for macro calls.
625
625
        if (state->currToken->is_identifier ()) 
626
 
          if ((macro = _macroManager->getMacro (state->currToken->text ()))) {
 
626
          if ((macro = _macroManager->getMacro (state->currToken->dtext ()))) {
627
627
            
628
628
            // Check whether a special predefined macro was called
629
629
            // and update it if necessary.
1347
1347
            // Build a new function-like macro without arguments.
1348
1348
            char*     str   = buildString (tl);
1349
1349
            PreMacro* macro = new PreMacro (((PreTreeToken*) fid)->
1350
 
                              token ()->text (), (PreTree*) 0, str);
 
1350
                              token ()->dtext (), (PreTree*) 0, str);
1351
1351
            delete[] str;
1352
1352
            macro->location (((PreTreeToken*) d)->token ()->location ());
1353
1353
            
1370
1370
            // of arguments.
1371
1371
            char*     str   = buildString (tl);
1372
1372
            PreMacro* macro = new PreMacro (((PreTreeToken*) fid)->
1373
 
                              token ()->text (), (PreTree*) 0, str, 
 
1373
                              token ()->dtext (), (PreTree*) 0, str, 
1374
1374
                              PreMacro::VAR_ARG_MACRO);
1375
1375
            delete[] str;
1376
1376
            macro->location (((PreTreeToken*) d)->token ()->location ());
1394
1394
            // Build a new function-like macro with arguments.
1395
1395
            char*     str   = buildString (tl);
1396
1396
            PreMacro* macro = new PreMacro (((PreTreeToken*) fid)->
1397
 
                              token ()->text (), il, str);
 
1397
                              token ()->dtext (), il, str);
1398
1398
            delete[] str;
1399
1399
            macro->location (((PreTreeToken*) d)->token ()->location ());
1400
1400
        
1417
1417
            // Build a new function-like macro with arguments.
1418
1418
            char*     str   = buildString (tl);
1419
1419
            PreMacro* macro = new PreMacro (((PreTreeToken*) fid)->
1420
 
                              token ()->text (), il, str, 
 
1420
                              token ()->dtext (), il, str, 
1421
1421
                              PreMacro::VAR_ARG_MACRO);
1422
1422
            delete[] str;
1423
1423
            macro->location (((PreTreeToken*) d)->token ()->location ());
1441
1441
            // Build a new function-like macro with arguments.
1442
1442
            char*     str   = buildString (tl);
1443
1443
            PreMacro* macro = new PreMacro (((PreTreeToken*) fid)->
1444
 
                              token ()->text (), il, str, 
 
1444
                              token ()->dtext (), il, str, 
1445
1445
                              PreMacro::VAR_ARG_MACRO);
1446
1446
            delete[] str;
1447
1447
            macro->addArg ("__VA_ARGS__");
1464
1464
            // Build a new simple macro.
1465
1465
            char*     str   = buildString (tl);
1466
1466
            PreMacro* macro = new PreMacro (((PreTreeToken*) id)->
1467
 
                              token ()->text (), str);
 
1467
                              token ()->dtext (), str);
1468
1468
            delete[] str;
1469
1469
            macro->location (((PreTreeToken*) d)->token ()->location ());
1470
1470
            
1492
1492
        // Remove the macro given by its name from macro manager.
1493
1493
        if (! state->errorDirective && state->passOnToken) 
1494
1494
            parser->macroManager ()->removeMacro (((PreTreeToken*) id)->
1495
 
                                                  token ()->text ());
 
1495
                                                  token ()->dtext ());
1496
1496
    }
1497
1497
    
1498
1498
/***********************************************************************/