|
svn commit: r13136 - branches/ruby/subversion/bindings/swig: msg#00311version-control.subversion.svn
Author: kou Date: Thu Feb 24 06:18:28 2005 New Revision: 13136 Modified: branches/ruby/subversion/bindings/swig/svn_types.i Log: Add an argument check for pool. * subversion/bindings/swig/svn_types.i (%typemap(ruby, arginit) apr_pool_t *pool): Add argc == 0 check. Modified: branches/ruby/subversion/bindings/swig/svn_types.i Url: http://svn.collab.net/viewcvs/svn/branches/ruby/subversion/bindings/swig/svn_types.i?view=diff&rev=13136&p1=branches/ruby/subversion/bindings/swig/svn_types.i&r1=13135&p2=branches/ruby/subversion/bindings/swig/svn_types.i&r2=13136 ============================================================================== --- branches/ruby/subversion/bindings/swig/svn_types.i (original) +++ branches/ruby/subversion/bindings/swig/svn_types.i Thu Feb 24 06:18:28 2005 @@ -307,7 +307,9 @@ _global_pool = $1 = svn_swig_pl_make_pool (ST(items-1)); } %typemap(ruby, arginit) apr_pool_t *pool (apr_pool_t *_global_pool) { - if (argc <= $argnum) { + if (argc == 0) { + /* wrong # of arguments: we need at least a pool. */ + } else if (argc <= $argnum) { if (NIL_P(argv[argc - 1])) { rb_raise(rb_eArgError, "pool must be not nil"); } |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r13134 - in branches/locking/subversion: include libsvn_client libsvn_ra libsvn_ra_dav libsvn_ra_local libsvn_ra_svn libsvn_wc: 00311, lundblad-jqHnx1hy4Dsdnm+yROfE0A |
|---|---|
| Next by Date: | svn commit: r13139 - trunk/subversion/po: 00311, bliss-jqHnx1hy4Dsdnm+yROfE0A |
| Previous by Thread: | svn commit: r13134 - in branches/locking/subversion: include libsvn_client libsvn_ra libsvn_ra_dav libsvn_ra_local libsvn_ra_svn libsvn_wci: 00311, lundblad-jqHnx1hy4Dsdnm+yROfE0A |
| Next by Thread: | svn commit: r13139 - trunk/subversion/po: 00311, bliss-jqHnx1hy4Dsdnm+yROfE0A |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |