~vibhavp/ubuntu/raring/spl/merge-from-debian

« back to all changes in this revision

Viewing changes to compiler.c

  • Committer: Bazaar Package Importer
  • Author(s): Gerfried Fuchs
  • Date: 2006-08-21 08:21:06 UTC
  • mto: (3.1.1 lenny)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20060821082106-6glercj8mn0un53l
Tags: upstream-1.0~pre2
ImportĀ upstreamĀ versionĀ 1.0~pre2

Show diffs side-by-side

added added

removed removed

Lines of Context:
897
897
    1320,  1321,  1322,  1323,  1325,  1326,  1327,  1328,  1329,  1330,
898
898
    1332,  1333,  1334,  1335,  1336,  1337,  1345,  1344,  1357,  1356,
899
899
    1368,  1371,  1374,  1378,  1377,  1382,  1381,  1386,  1385,  1390,
900
 
    1409,  1389,  1498,  1499,  1502,  1503,  1504,  1509,  1508,  1512,
901
 
    1514,  1519,  1520,  1523,  1524,  1525,  1529,  1531,  1538,  1548,
902
 
    1549,  1550,  1553,  1554,  1555,  1559,  1559,  1566,  1582,  1599,
903
 
    1616,  1635,  1636
 
900
    1409,  1389,  1504,  1505,  1508,  1509,  1510,  1515,  1514,  1518,
 
901
    1520,  1525,  1526,  1529,  1530,  1531,  1535,  1537,  1544,  1554,
 
902
    1555,  1556,  1559,  1560,  1561,  1565,  1565,  1572,  1588,  1605,
 
903
    1622,  1641,  1642
904
904
};
905
905
#endif
906
906
 
4626
4626
                                spl_asm_add(as, SPL_OP_PUSH, "#name");
4627
4627
 
4628
4628
                        spl_asm_add(as, SPL_OP_PUSH, "#newtext");
4629
 
                        spl_asm_add(as, SPL_OP_PUSH, "#reres.=LC");
 
4629
                        spl_asm_add(as, SPL_OP_PUSHC, "#array");
 
4630
                        spl_asm_add(as, SPL_OP_PUSH, "#index");
 
4631
                        spl_asm_add(as, SPL_OP_HENC, 0);
 
4632
                        spl_asm_add(as, SPL_OP_DOTCAT, 0);
 
4633
                        spl_asm_add(as, SPL_OP_PUSHC, "=LC");
 
4634
                        spl_asm_add(as, SPL_OP_DOTCAT, 0);
 
4635
                        spl_asm_add(as, SPL_OP_GETVAL, 0);
4630
4636
                        spl_asm_add(as, SPL_OP_CAT, 0);
4631
4637
 
4632
4638
                        if (yyvsp[-7].ch & REGEX_EVAL_SUBST) {
4654
4660
    break;
4655
4661
 
4656
4662
  case 307:
4657
 
#line 1509 "compiler.y"
 
4663
#line 1515 "compiler.y"
4658
4664
    { spl_asm_add(as, SPL_OP_HENC, 0); }
4659
4665
    break;
4660
4666
 
4661
4667
  case 308:
4662
 
#line 1511 "compiler.y"
 
4668
#line 1517 "compiler.y"
4663
4669
    { spl_asm_add(as, SPL_OP_APUSHREFID, 0); }
4664
4670
    break;
4665
4671
 
4666
4672
  case 309:
4667
 
#line 1513 "compiler.y"
 
4673
#line 1519 "compiler.y"
4668
4674
    { spl_asm_add(as, SPL_OP_APUSHREFID, 0); }
4669
4675
    break;
4670
4676
 
4671
4677
  case 310:
4672
 
#line 1515 "compiler.y"
 
4678
#line 1521 "compiler.y"
4673
4679
    { spl_asm_add(as, SPL_OP_APUSHREF, 0); }
4674
4680
    break;
4675
4681
 
4676
4682
  case 312:
4677
 
#line 1520 "compiler.y"
 
4683
#line 1526 "compiler.y"
4678
4684
    { spl_asm_add(as, SPL_OP_GETVAL, 0); }
4679
4685
    break;
4680
4686
 
4681
4687
  case 316:
4682
 
#line 1529 "compiler.y"
 
4688
#line 1535 "compiler.y"
4683
4689
    { spl_asm_add(as, SPL_OP_POPA, yyvsp[0].text); free(yyvsp[0].text); }
4684
4690
    break;
4685
4691
 
4686
4692
  case 317:
4687
 
#line 1532 "compiler.y"
 
4693
#line 1538 "compiler.y"
4688
4694
    {
4689
4695
                spl_asm_add(as, SPL_OP_PUSHC, yyvsp[0].text);
4690
4696
                spl_asm_add(as, SPL_OP_APOPA, 0);
4693
4699
    break;
4694
4700
 
4695
4701
  case 318:
4696
 
#line 1539 "compiler.y"
 
4702
#line 1545 "compiler.y"
4697
4703
    {
4698
4704
                spl_asm_add(as, SPL_OP_PUSHC, yyvsp[0].text);
4699
4705
                spl_asm_add(as, SPL_OP_UNDEF, 0);
4704
4710
    break;
4705
4711
 
4706
4712
  case 325:
4707
 
#line 1559 "compiler.y"
 
4713
#line 1565 "compiler.y"
4708
4714
    {
4709
4715
                pbstack_push(spl_asm_add(as, SPL_OP_NOP, 0));
4710
4716
        }
4711
4717
    break;
4712
4718
 
4713
4719
  case 327:
4714
 
#line 1567 "compiler.y"
 
4720
#line 1573 "compiler.y"
4715
4721
    {
4716
4722
                int begin_this_param = pbstack_pop();
4717
4723
                int begin_param_list = pbstack_pop() + 1;
4729
4735
    break;
4730
4736
 
4731
4737
  case 328:
4732
 
#line 1584 "compiler.y"
 
4738
#line 1590 "compiler.y"
4733
4739
    {
4734
4740
                int begin_this_param = pbstack_pop();
4735
4741
                int begin_param_list = pbstack_pop() + 1;
4747
4753
    break;
4748
4754
 
4749
4755
  case 329:
4750
 
#line 1601 "compiler.y"
 
4756
#line 1607 "compiler.y"
4751
4757
    {
4752
4758
                int begin_this_param = pbstack_pop();
4753
4759
                int begin_param_list = pbstack_pop() + 1;
4765
4771
    break;
4766
4772
 
4767
4773
  case 330:
4768
 
#line 1618 "compiler.y"
 
4774
#line 1624 "compiler.y"
4769
4775
    {
4770
4776
                int begin_this_param = pbstack_pop();
4771
4777
                int begin_param_list = pbstack_pop() + 1;
4783
4789
    break;
4784
4790
 
4785
4791
  case 331:
4786
 
#line 1635 "compiler.y"
 
4792
#line 1641 "compiler.y"
4787
4793
    { spl_asm_add(as, SPL_OP_PUSHC, yyvsp[0].text); free(yyvsp[0].text); }
4788
4794
    break;
4789
4795
 
4791
4797
    }
4792
4798
 
4793
4799
/* Line 991 of yacc.c.  */
4794
 
#line 4794 "y.tab.c"
 
4800
#line 4800 "y.tab.c"
4795
4801
 
4796
4802
  yyvsp -= yylen;
4797
4803
  yyssp -= yylen;
5002
5008
}
5003
5009
 
5004
5010
 
5005
 
#line 1639 "compiler.y"
 
5011
#line 1645 "compiler.y"
5006
5012
 
5007
5013
 
5008
5014
static struct {