lex.reg.c
/* main entry point: used by regions.c */
main entry point: used by regions.c
main entry point : used by regions . c
int regparse(Regions reg){
  xreg = reg;
  _regParseEnd();
  _regInitWCS();
  BEGIN INITIAL;
  laststart = INITIAL;
  _regScanString(xreg->regstr);
  regionslex();
  if( parse_error ){
    return -1;
  }
  _regMake();
  reg->filter = xstrdup(filter);
  reg->radang = xstrdup(radang);
  reg->nroutine = nroutine;
  reg->nshape = nshape;
  reg->nreg = _regRegions(TOK_IREG);
  _regParseEnd();
  regionslex_destroy();
  return reg->nshape;
}
int regparse ( Regions reg ) { xreg = reg ; _regParseEnd ( ) ; _regInitWCS ( ) ; BEGIN INITIAL ; laststart = INITIAL ; _regScanString ( xreg -> regstr ) ; regionslex ( ) ; if ( parse_error ) { return -1 ; } _regMake ( ) ; reg -> filter = xstrdup ( filter ) ; reg -> radang = xstrdup ( radang ) ; reg -> nroutine = nroutine ; reg -> nshape = nshape ; reg -> nreg = _regRegions ( TOK_IREG ) ; _regParseEnd ( ) ; regionslex_destroy ( ) ; return reg -> nshape ; }
main entry point: used by regions.c
main entry point : used by regions . c
/* save reg struct */ /* make sure we are cleaned up */ /* initialize wcs for this image */ /* reset parser */ /* scan new string */ /* parse regions */ /* check for error */ /* generate the region string */ /* fill in information used internally */ /* clean up parser */ /* return number of mask segments */