~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to ext/digest/digest.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  digest.c -
4
4
 
5
 
  $Author: knu $
 
5
  $Author: nobu $
6
6
  created at: Fri May 25 08:57:27 JST 2001
7
7
 
8
8
  Copyright (C) 1995-2001 Yukihiro Matsumoto
9
9
  Copyright (C) 2001-2006 Akinori MUSHA
10
10
 
11
11
  $RoughId: digest.c,v 1.16 2001/07/13 15:38:27 knu Exp $
12
 
  $Id: digest.c 11948 2007-02-28 18:27:50Z knu $
 
12
  $Id: digest.c 12799 2007-07-15 13:24:39Z nobu $
13
13
 
14
14
************************************************/
15
15
 
97
97
static VALUE
98
98
rb_digest_instance_update(VALUE self, VALUE str)
99
99
{
100
 
    rb_raise(rb_eRuntimeError, "%s does not implement update()", rb_inspect(self));
 
100
    rb_raise(rb_eRuntimeError, "%s does not implement update()", RSTRING_PTR(rb_inspect(self)));
101
101
}
102
102
 
103
103
/*
115
115
static VALUE
116
116
rb_digest_instance_finish(VALUE self)
117
117
{
118
 
    rb_raise(rb_eRuntimeError, "%s does not implement finish()", rb_inspect(self));
 
118
    rb_raise(rb_eRuntimeError, "%s does not implement finish()", RSTRING_PTR(rb_inspect(self)));
119
119
}
120
120
 
121
121
/*
129
129
static VALUE
130
130
rb_digest_instance_reset(VALUE self)
131
131
{
132
 
    rb_raise(rb_eRuntimeError, "%s does not implement reset()", rb_inspect(self));
 
132
    rb_raise(rb_eRuntimeError, "%s does not implement reset()", RSTRING_PTR(rb_inspect(self)));
133
133
}
134
134
 
135
135
/*
358
358
static VALUE
359
359
rb_digest_instance_block_length(VALUE self)
360
360
{
361
 
    rb_raise(rb_eRuntimeError, "%s does not implement block_length()", rb_inspect(self));
 
361
    rb_raise(rb_eRuntimeError, "%s does not implement block_length()", RSTRING_PTR(rb_inspect(self)));
362
362
}
363
363
 
364
364
/*
381
381
rb_digest_class_s_digest(int argc, VALUE *argv, VALUE klass)
382
382
{
383
383
    VALUE str;
384
 
    void *pctx;
385
384
    volatile VALUE obj;
386
385
 
387
386
    if (argc < 1) {