~ubuntu-branches/ubuntu/dapper/ruby1.9/dapper

« back to all changes in this revision

Viewing changes to compar.c

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2006-05-08 22:23:12 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060508222312-w2wqeaz030ifi59j
Tags: 1.9.0+20060423-3ubuntu1
* Resynchronized with Debian.
* Only change from Debian is the addition of
  debian/patches/903_sparc_fix_define.patch to fix illegal instructions
  at runtime on sparc. (change from 1.9.0+20050921-1ubuntu1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  compar.c -
4
4
 
5
5
  $Author: matz $
6
 
  $Date: 2005/09/12 15:23:54 $
 
6
  $Date: 2005/12/12 00:35:09 $
7
7
  created at: Thu Aug 26 14:39:48 JST 1993
8
8
 
9
9
  Copyright (C) 1993-2003 Yukihiro Matsumoto
53
53
{
54
54
    VALUE c = rb_funcall(a[0], cmp, 1, a[1]);
55
55
 
56
 
    if (NIL_P(c)) return Qnil;
 
56
    if (NIL_P(c)) return Qfalse;
57
57
    if (rb_cmpint(c, a[0], a[1]) == 0) return Qtrue;
58
58
    return Qfalse;
59
59
}
61
61
static VALUE
62
62
cmp_failed(void)
63
63
{
64
 
    return Qnil;
 
64
    return Qfalse;
65
65
}
66
66
 
67
67
/*