~ubuntu-branches/ubuntu/raring/mapserver/raring-security

« back to all changes in this revision

Viewing changes to mapscript/perl/mapscript_wrap.c

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine, Alan Boudreault, Francesco Paolo Lovergine
  • Date: 2010-03-24 22:13:25 UTC
  • mfrom: (10.2.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100324221325-g9hwfpfqeiq4fz7m
Tags: 5.6.3-1
[ Alan Boudreault ]
* New upstream release, with important bug fixes.
* Fixed some typo in debian/control.

[ Francesco Paolo Lovergine ]
* Policy bumped to 3.8.4 without changes.
* Removed Andreas Putzo among Uploaders: last contribution dated more than
  two years ago.
* Added shapelib to Suggests in mapserver-bin. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
3289
3289
            msSetError(12, "image rectangle minx >= maxx", "mapscript::mapObj::zoomRectangle()");
3290
3290
            return MS_FAILURE;
3291
3291
        }
3292
 
        if (poPixRect->miny >= poPixRect->maxy) {
 
3292
        /* This is not a typo: "maxx >= minx". For historical reason, we
 
3293
         * keep this as it is. See documentation for more info about this check. */
 
3294
        if (poPixRect->maxy >= poPixRect->miny) {
3293
3295
            msSetError(12, "image rectangle maxy >= miny", "mapscript::mapObj::zoomRectangle()");
3294
3296
            return MS_FAILURE;
3295
3297
        }
15782
15784
}
15783
15785
 
15784
15786
 
 
15787
XS(_wrap_resultCacheObj_usegetshape_set) {
 
15788
  {
 
15789
    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
 
15790
    int arg2 ;
 
15791
    void *argp1 = 0 ;
 
15792
    int res1 = 0 ;
 
15793
    int val2 ;
 
15794
    int ecode2 = 0 ;
 
15795
    int argvi = 0;
 
15796
    dXSARGS;
 
15797
    
 
15798
    if ((items < 2) || (items > 2)) {
 
15799
      SWIG_croak("Usage: resultCacheObj_usegetshape_set(self,usegetshape);");
 
15800
    }
 
15801
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
 
15802
    if (!SWIG_IsOK(res1)) {
 
15803
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_usegetshape_set" "', argument " "1"" of type '" "resultCacheObj *""'"); 
 
15804
    }
 
15805
    arg1 = (resultCacheObj *)(argp1);
 
15806
    ecode2 = SWIG_AsVal_int SWIG_PERL_CALL_ARGS_2(ST(1), &val2);
 
15807
    if (!SWIG_IsOK(ecode2)) {
 
15808
      SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "resultCacheObj_usegetshape_set" "', argument " "2"" of type '" "int""'");
 
15809
    } 
 
15810
    arg2 = (int)(val2);
 
15811
    if (arg1) (arg1)->usegetshape = arg2;
 
15812
    
 
15813
    
 
15814
    
 
15815
    XSRETURN(argvi);
 
15816
  fail:
 
15817
    
 
15818
    
 
15819
    SWIG_croak_null();
 
15820
  }
 
15821
}
 
15822
 
 
15823
 
 
15824
XS(_wrap_resultCacheObj_usegetshape_get) {
 
15825
  {
 
15826
    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
 
15827
    void *argp1 = 0 ;
 
15828
    int res1 = 0 ;
 
15829
    int argvi = 0;
 
15830
    int result;
 
15831
    dXSARGS;
 
15832
    
 
15833
    if ((items < 1) || (items > 1)) {
 
15834
      SWIG_croak("Usage: resultCacheObj_usegetshape_get(self);");
 
15835
    }
 
15836
    res1 = SWIG_ConvertPtr(ST(0), &argp1,SWIGTYPE_p_resultCacheObj, 0 |  0 );
 
15837
    if (!SWIG_IsOK(res1)) {
 
15838
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "resultCacheObj_usegetshape_get" "', argument " "1"" of type '" "resultCacheObj *""'"); 
 
15839
    }
 
15840
    arg1 = (resultCacheObj *)(argp1);
 
15841
    result = (int) ((arg1)->usegetshape);
 
15842
    ST(argvi) = SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(result)); argvi++ ;
 
15843
    
 
15844
    XSRETURN(argvi);
 
15845
  fail:
 
15846
    
 
15847
    SWIG_croak_null();
 
15848
  }
 
15849
}
 
15850
 
 
15851
 
15785
15852
XS(_wrap_resultCacheObj_getResult) {
15786
15853
  {
15787
15854
    resultCacheObj *arg1 = (resultCacheObj *) 0 ;
41727
41794
{"mapscriptc::delete_resultCacheMemberObj", _wrap_delete_resultCacheMemberObj},
41728
41795
{"mapscriptc::resultCacheObj_numresults_get", _wrap_resultCacheObj_numresults_get},
41729
41796
{"mapscriptc::resultCacheObj_bounds_get", _wrap_resultCacheObj_bounds_get},
 
41797
{"mapscriptc::resultCacheObj_usegetshape_set", _wrap_resultCacheObj_usegetshape_set},
 
41798
{"mapscriptc::resultCacheObj_usegetshape_get", _wrap_resultCacheObj_usegetshape_get},
41730
41799
{"mapscriptc::resultCacheObj_getResult", _wrap_resultCacheObj_getResult},
41731
41800
{"mapscriptc::new_resultCacheObj", _wrap_new_resultCacheObj},
41732
41801
{"mapscriptc::delete_resultCacheObj", _wrap_delete_resultCacheObj},
42757
42826
  
42758
42827
  /*@SWIG:/usr/local/share/swig/1.3.36/perl5/perltypemaps.swg,64,%set_constant@*/ do {
42759
42828
    SV *sv = get_sv((char*) SWIG_prefix "MS_VERSION", TRUE | 0x2 | GV_ADDMULTI);
42760
 
    sv_setsv(sv, SWIG_FromCharPtr("5.6.1"));
 
42829
    sv_setsv(sv, SWIG_FromCharPtr("5.6.3"));
42761
42830
    SvREADONLY_on(sv);
42762
42831
  } while(0) /*@SWIG@*/;
42763
42832
  /*@SWIG:/usr/local/share/swig/1.3.36/perl5/perltypemaps.swg,64,%set_constant@*/ do {
42772
42841
  } while(0) /*@SWIG@*/;
42773
42842
  /*@SWIG:/usr/local/share/swig/1.3.36/perl5/perltypemaps.swg,64,%set_constant@*/ do {
42774
42843
    SV *sv = get_sv((char*) SWIG_prefix "MS_VERSION_REV", TRUE | 0x2 | GV_ADDMULTI);
42775
 
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(1)));
 
42844
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)(3)));
42776
42845
    SvREADONLY_on(sv);
42777
42846
  } while(0) /*@SWIG@*/;
42778
42847
  /*@SWIG:/usr/local/share/swig/1.3.36/perl5/perltypemaps.swg,64,%set_constant@*/ do {
42779
42848
    SV *sv = get_sv((char*) SWIG_prefix "MS_VERSION_NUM", TRUE | 0x2 | GV_ADDMULTI);
42780
 
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((5*10000+6*100+1))));
 
42849
    sv_setsv(sv, SWIG_From_int  SWIG_PERL_CALL_ARGS_1((int)((5*10000+6*100+3))));
42781
42850
    SvREADONLY_on(sv);
42782
42851
  } while(0) /*@SWIG@*/;
42783
42852
  /*@SWIG:/usr/local/share/swig/1.3.36/perl5/perltypemaps.swg,64,%set_constant@*/ do {