Imported Debian version 0.3.6+nmu1
Ryan Niebur
12 years ago
|
0 |
dpkg-ruby (0.3.6+nmu1) unstable; urgency=high
|
|
1 |
|
|
2 |
* Non-maintainer upload.
|
|
3 |
* Use StringValuePtr instead of the long-deprecated (and removed in ruby
|
|
4 |
1.9.1) STR2CSTR (closes: #593025).
|
|
5 |
|
|
6 |
-- Julien Cristau <jcristau@debian.org> Thu, 26 Aug 2010 17:43:59 +0200
|
|
7 |
|
0 | 8 |
dpkg-ruby (0.3.6) unstable; urgency=low
|
1 | 9 |
|
2 | 10 |
* switch to ruby 1.9.1 (Closes: #565848)
|
5 | 5 |
extern "C" {
|
6 | 6 |
|
7 | 7 |
static VALUE cmp_version(VALUE self, VALUE anObject, VALUE cmpType, VALUE anOtherObject) {
|
8 | |
int res = debVS.CmpVersion(STR2CSTR(anObject),STR2CSTR(anOtherObject));
|
9 | |
char * cmp = STR2CSTR(cmpType);
|
|
8 |
int res = debVS.CmpVersion(StringValuePtr(anObject),StringValuePtr(anOtherObject));
|
|
9 |
char * cmp = StringValuePtr(cmpType);
|
10 | 10 |
if(!strcmp(cmp, "lt") || !strcmp(cmp, "<") || !strcmp(cmp, "<<")) {
|
11 | 11 |
if(res < 0)
|
12 | 12 |
return Qtrue;
|