diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-06 23:05:59 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-06 23:05:59 +0000 |
commit | a8c4a952767d0f554b3ac4ea999dbeb5f54ae6eb (patch) | |
tree | 5a6351cf4ad94003f84f41283629dc2206ea40d3 | |
parent | e0bb10be50fa23cb0ef9941750e874cc469cda86 (diff) | |
download | ruby-a8c4a952767d0f554b3ac4ea999dbeb5f54ae6eb.tar.gz |
Arguments renamed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | bignum.c | 6 | ||||
-rw-r--r-- | internal.h | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -786,7 +786,7 @@ int_import_push_bits(int data, int numbits, BDIGIT_DBL *ddp, int *numbits_in_dd_ * * [sign] signedness of the value. * -1 for non-positive. 0 or 1 for non-negative. - * [bufarg] buffer to import. + * [words] buffer to import. * [wordcount] the size of given buffer as number of words. * [wordorder] order of words: 1 for most significant word first. -1 for least significant word first. * [wordsize] the size of word as number of bytes. @@ -796,11 +796,11 @@ int_import_push_bits(int data, int numbits, BDIGIT_DBL *ddp, int *numbits_in_dd_ * This function returns the imported integer as Fixnum or Bignum. */ VALUE -rb_int_import(int sign, const void *bufarg, size_t wordcount, int wordorder, size_t wordsize, int endian, size_t nails) +rb_int_import(int sign, const void *words, size_t wordcount, int wordorder, size_t wordsize, int endian, size_t nails) { VALUE num_bits, num_bdigits; VALUE result; - const unsigned char *buf = bufarg; + const unsigned char *buf = words; BDIGIT *dp; BDIGIT *de; diff --git a/internal.h b/internal.h index 09f104562a..e90c7c00a5 100644 --- a/internal.h +++ b/internal.h @@ -426,8 +426,8 @@ const char *rb_objspace_data_type_name(VALUE obj); VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd); /* bignum.c */ -void *rb_int_export(VALUE val, int *signp, size_t *wordcount_allocated, void *bufarg, size_t wordcount, int wordorder, size_t wordsize, int endian, size_t nails); -VALUE rb_int_import(int sign, const void *bufarg, size_t wordcount, int wordorder, size_t wordsize, int endian, size_t nails); +void *rb_int_export(VALUE val, int *signp, size_t *wordcount_allocated, void *words, size_t wordcount, int wordorder, size_t wordsize, int endian, size_t nails); +VALUE rb_int_import(int sign, const void *words, size_t wordcount, int wordorder, size_t wordsize, int endian, size_t nails); /* io.c */ void rb_maygvl_fd_fix_cloexec(int fd); |