~ubuntu-branches/ubuntu/wily/styx/wily

« back to all changes in this revision

Viewing changes to libstyx/reg_exp.c

  • Committer: Package Import Robot
  • Author(s): Frederik Schüler
  • Date: 2013-12-28 18:20:37 UTC
  • mfrom: (0.1.5)
  • Revision ID: package-import@ubuntu.com-20131228182037-ihsf1de5y1oe24nf
Tags: 2.0.1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
   'lLen' = -1 --> null-terminated single byte or utf8 string
400
400
   RC: evaluator or NULL
401
401
*/
402
 
{ Reg_T  pReg = New(Reg_T); 
 
402
{ Reg_T  pReg = New(Reg_T); 
403
403
  c_byte ica  = (c_byte)(bIgnCase?SCN_FLG_IgnoreCase:0);
404
404
  Scn_get_rexp(&pReg->pRScn);
405
 
  pReg->pVScn = REG_Scanner(pReg->pRScn,szRegExp,lLen,szCharSet,ica);
 
405
  pReg->pVScn = REG_Scanner(pReg->pRScn,szRegExp,lLen,szCharSet,ica);
406
406
  if( pReg->pVScn == (Scn_T)NULL )
407
407
  {
408
408
    REG_drop(pReg); return (Reg_T)NULL;
422
422
   ( 'lLen', 'szCharSet' --> see function 'REG_create' )
423
423
   RC: true <--> OK
424
424
*/
425
 
{ c_byte ica  = (c_byte)(bIgnCase?SCN_FLG_IgnoreCase:0);
 
425
{ c_byte ica  = (c_byte)(bIgnCase?SCN_FLG_IgnoreCase:0);
426
426
  BUG_NULL(pReg);
427
427
  if( pReg->pVScn != (Scn_T)NULL )
428
428
    Scn_free(pReg->pVScn);