Mailinglist Archive: zypp-commit (301 mails)

< Previous Next >
[zypp-commit] r7730 - /trunk/sat-solver/bindings/satsolver.i
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Wed, 31 Oct 2007 20:29:44 -0000
  • Message-id: <20071031202944.3E05F33DCB@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Wed Oct 31 21:29:43 2007
New Revision: 7730

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7730&view=rev
Log:
Fix Swig warning:
Creating wrapper code for ruby
.../backup/projects/sat-solver/bindings/ruby/../satsolver.i:33:
Warning(124): Specifying the language name in %typemap is deprecated -
use #ifdef SWIG<LANG> instead.


Modified:
trunk/sat-solver/bindings/satsolver.i

Modified: trunk/sat-solver/bindings/satsolver.i
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/satsolver.i?rev=7730&r1=7729&r2=7730&view=diff
==============================================================================
--- trunk/sat-solver/bindings/satsolver.i (original)
+++ trunk/sat-solver/bindings/satsolver.i Wed Oct 31 21:29:43 2007
@@ -30,7 +30,8 @@

}*/

-%typemap(ruby,in) FILE * {
+#ifdef SWIG<Ruby>
+FILE * {
OpenFile *fptr;

Check_Type($input, T_FILE);
@@ -38,6 +39,7 @@
/*rb_io_check_writable(fptr);*/
$1 = GetReadFile(fptr);
}
+#endif

%include "bitmap.h"
%include "evr.h"

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages