~ubuntu-branches/ubuntu/vivid/texlive-bin/vivid

« back to all changes in this revision

Viewing changes to utils/asymptote/dec.cc

  • Committer: Package Import Robot
  • Author(s): Norbert Preining
  • Date: 2012-06-23 12:57:25 UTC
  • mfrom: (1.2.8)
  • Revision ID: package-import@ubuntu.com-20120623125725-usp25qvphkyd6jlm
Tags: 2012.20120623-1
* post release fixed from Peter Breitenlohner (will be included upstream):
  - (patch-dvi2tty, patch-lacheck) Ken Brown <kbrow1i@gmail.com> has noteda
  that already moderately long pathnames may yield buffer overruns in 
  lacheck and dvi2tty.
  - (patch-icu) three ICU library files have been modified (undoing ICU 
  SVN commit 36090 from 2009-06-11), in order to solve all/most XeTeX 
  problems with Indic scripts.
  - (patch-pdftex) a small change in pdftexdir/pdftosrc.cc required to
  build pdfTeX with poppler >=0.18.4 (system-xpdf).  Note, however, that 
  building pdfTeX that way slightly reduces its capability to handle large 
  files (see README.config 1.6 and 3.4.2).
* update updmap man page (Closes: #677300)
* (pulled from upupstream cvs, patch xdvi-upupstream-fixes)
  - Fixed bugs in property handling on 64-bit systems (related to source 
    specials).
  - Added support for XkbBell, to make the console bell work again.

Show diffs side-by-side

added added

removed removed

Lines of Context:
201
201
      return true;
202
202
  return false;
203
203
}
 
204
 
 
205
vardec *block::asVardec()
 
206
{
 
207
  vardec *var = 0;
 
208
  for (list<runnable *>::iterator p=stms.begin();
 
209
       p != stms.end();
 
210
       ++p)
 
211
  {
 
212
    vardec *v = dynamic_cast<vardec *>(*p);
 
213
    if (v) {
 
214
      if (var)
 
215
        // Multiple vardecs.
 
216
        return 0;
 
217
      var = v;
 
218
    }
 
219
    else if (!dynamic_cast<emptyStm *>(*p))
 
220
      // Failure due to another runnable in the block.
 
221
      return 0;
 
222
  }
 
223
 
 
224
  return var;
 
225
}
204
226
  
205
227
 
206
228
void dec::prettyprint(ostream &out, Int indent)
570
592
  decs->transAsTypedefField(e, base->transAsTyEntry(e, r), r);
571
593
}
572
594
 
 
595
symbol vardec::singleName()
 
596
{
 
597
  decid *did = decs->singleEntry();
 
598
  if (!did)
 
599
    return symbol::nullsym;
 
600
  return did->getStart()->getName();
 
601
}
 
602
 
 
603
types::ty *vardec::singleGetType(coenv &e)
 
604
{
 
605
  decid *did = decs->singleEntry();
 
606
  if (!did)
 
607
    return 0;
 
608
  return did->getStart()->getType(base->trans(e), e);
 
609
}
 
610
 
 
611
 
573
612
// Helper class for imports.  This essentially evaluates to the run::loadModule
574
613
// function.  However, that function returns different types of records
575
614
// depending on the filename given to it, so we cannot add it to the