~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to rvalue.c

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
527
527
                case RVE_STRLEN_OP:
528
528
                case RVE_STREMPTY_OP:
529
529
                case RVE_DEFINED_OP:
 
530
                case RVE_NOTDEFINED_OP:
530
531
                case RVE_INT_OP:
531
532
                        return RV_INT;
532
533
                case RVE_PLUS_OP:
572
573
                case RVE_STRLEN_OP:
573
574
                case RVE_STREMPTY_OP:
574
575
                case RVE_DEFINED_OP:
 
576
                case RVE_NOTDEFINED_OP:
575
577
                case RVE_INT_OP:
576
578
                case RVE_STR_OP:
577
579
                        return rve_is_constant(rve->left.rve);
636
638
                case RVE_STRLEN_OP:
637
639
                case RVE_STREMPTY_OP:
638
640
                case RVE_DEFINED_OP:
 
641
                case RVE_NOTDEFINED_OP:
639
642
                case RVE_INT_OP:
640
643
                case RVE_STR_OP:
641
644
                        return 1;
839
842
                case RVE_STRLEN_OP:
840
843
                case RVE_STREMPTY_OP:
841
844
                case RVE_DEFINED_OP:
 
845
                case RVE_NOTDEFINED_OP:
842
846
                        *type=RV_INT;
843
847
                        if (rve_check_type(&type1, rve->left.rve, bad_rve, bad_t, exp_t)){
844
848
                                if (type1==RV_INT){
2112
2116
                case RVE_DEFINED_OP:
2113
2117
                        ret=int_rve_defined(h, msg, res, rve->left.rve);
2114
2118
                        break;
 
2119
                case RVE_NOTDEFINED_OP:
 
2120
                        ret=int_rve_defined(h, msg, res, rve->left.rve);
 
2121
                        *res = !(*res);
 
2122
                        break;
2115
2123
                case RVE_STREQ_OP:
2116
2124
                case RVE_STRDIFF_OP:
2117
2125
                case RVE_MATCH_OP:
2233
2241
                case RVE_STRLEN_OP:
2234
2242
                case RVE_STREMPTY_OP:
2235
2243
                case RVE_DEFINED_OP:
 
2244
                case RVE_NOTDEFINED_OP:
2236
2245
                case RVE_INT_OP:
2237
2246
                        /* operator forces integer type */
2238
2247
                        ret=rval_expr_eval_int(h, msg, res_i, rve);
2360
2369
                case RVE_STRLEN_OP:
2361
2370
                case RVE_STREMPTY_OP:
2362
2371
                case RVE_DEFINED_OP:
 
2372
                case RVE_NOTDEFINED_OP:
2363
2373
                case RVE_INT_OP:
2364
2374
                        /* operator forces integer type */
2365
2375
                        r=rval_expr_eval_int(h, msg, &i, rve);
2601
2611
                case RVE_STRLEN_OP:
2602
2612
                case RVE_STREMPTY_OP:
2603
2613
                case RVE_DEFINED_OP:
 
2614
                case RVE_NOTDEFINED_OP:
2604
2615
                case RVE_INT_OP:
2605
2616
                case RVE_STR_OP:
2606
2617
                        break;
2692
2703
                case RVE_STRLEN_OP:
2693
2704
                case RVE_STREMPTY_OP:
2694
2705
                case RVE_DEFINED_OP:
 
2706
                case RVE_NOTDEFINED_OP:
2695
2707
                case RVE_INT_OP:
2696
2708
                case RVE_STR_OP:
2697
2709
                        /* one operand expression => cannot be assoc. */
2747
2759
                case RVE_STRLEN_OP:
2748
2760
                case RVE_STREMPTY_OP:
2749
2761
                case RVE_DEFINED_OP:
 
2762
                case RVE_NOTDEFINED_OP:
2750
2763
                case RVE_INT_OP:
2751
2764
                case RVE_STR_OP:
2752
2765
                        /* one operand expression => cannot be commut. */
3796
3809
                case RVE_STRLEN_OP:
3797
3810
                case RVE_STREMPTY_OP:
3798
3811
                case RVE_DEFINED_OP:
 
3812
                case RVE_NOTDEFINED_OP:
3799
3813
                case RVE_INT_OP:
3800
3814
                case RVE_STR_OP:
3801
3815
                        ret=fix_rval_expr((void*)rve->left.rve);