aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-06 23:05:59 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-06 23:05:59 +0000
commita8c4a952767d0f554b3ac4ea999dbeb5f54ae6eb (patch)
tree5a6351cf4ad94003f84f41283629dc2206ea40d3
parente0bb10be50fa23cb0ef9941750e874cc469cda86 (diff)
downloadruby-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.c6
-rw-r--r--internal.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/bignum.c b/bignum.c
index b7ead9c132..7042fecec3 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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);