summaryrefslogtreecommitdiff
path: root/pack.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 14:03:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 14:03:53 +0000
commit709bff4f2b7564c34754feb5f33440a72f802fca (patch)
tree38ea224e09ed6fc86fcf720e0a7edc156c4fda95 /pack.c
parentf65aac7a904ea88dc5f84420d701d4249e059390 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/pack.c b/pack.c
index 8c07522fdf..ea305bb9ea 100644
--- a/pack.c
+++ b/pack.c
@@ -350,36 +350,36 @@ static unsigned long utf8_to_uv(const char*,long*);
* Float | |
* Directive | | Meaning
* ------------------------------------------------------------------------
- * D, d | Float | Double-precision float, native format
- * F, f | Float | Single-precision float, native format
- * E | Float | Double-precision float, little-endian byte order
- * e | Float | Single-precision float, little-endian byte order
- * G | Float | Double-precision float, network (big-endian) byte order
- * g | Float | Single-precision float, network (big-endian) byte order
+ * D, d | Float | double-precision float, native format
+ * F, f | Float | single-precision float, native format
+ * E | Float | double-precision float, little-endian byte order
+ * e | Float | single-precision float, little-endian byte order
+ * G | Float | double-precision float, network (big-endian) byte order
+ * g | Float | single-precision float, network (big-endian) byte order
*
* String | |
* Directive | | Meaning
* ------------------------------------------------------------------------
* A | String | arbitrary binary string (space padded, count is width)
* a | String | arbitrary binary string (null padded, count is width)
- * Z | String | Same as ``a'', except that null is added with *
- * B | String | Bit string (MSB first)
- * b | String | Bit string (LSB first)
- * H | String | Hex string (high nibble first)
- * h | String | Hex string (low nibble first)
+ * Z | String | same as ``a'', except that null is added with *
+ * B | String | bit string (MSB first)
+ * b | String | bit string (LSB first)
+ * H | String | hex string (high nibble first)
+ * h | String | hex string (low nibble first)
* u | String | UU-encoded string
- * M | String | Quoted printable, MIME encoding (see RFC2045)
- * m | String | Base64 encoded string (see RFC 2045, count is width)
+ * M | String | quoted printable, MIME encoding (see RFC2045)
+ * m | String | base64 encoded string (see RFC 2045, count is width)
* | | (if count is 0, no line feed are added, see RFC 4648)
- * P | String | Pointer to a structure (fixed-length string)
- * p | String | Pointer to a null-terminated string
+ * P | String | pointer to a structure (fixed-length string)
+ * p | String | pointer to a null-terminated string
*
* Misc. | |
* Directive | | Meaning
* ------------------------------------------------------------------------
- * @ | --- | Moves to absolute position
- * X | --- | Back up a byte
- * x | --- | Null byte
+ * @ | --- | moves to absolute position
+ * X | --- | back up a byte
+ * x | --- | null byte
*/
static VALUE
@@ -1238,7 +1238,7 @@ infected_str_new(const char *ptr, long len, VALUE str)
* L | Integer | 32-bit unsigned integer, native endian (uint32_t)
* Q | Integer | 64-bit unsigned integer, native endian (uint64_t)
* | |
- * c | Integer | 8-bit signed integer (char)
+ * c | Integer | 8-bit signed integer (signed char)
* s | Integer | 16-bit signed integer, native endian (int16_t)
* l | Integer | 32-bit signed integer, native endian (int32_t)
* q | Integer | 64-bit signed integer, native endian (int64_t)
@@ -1262,12 +1262,12 @@ infected_str_new(const char *ptr, long len, VALUE str)
* Float | |
* Directive | Returns | Meaning
* --------------------------------------------------------------
- * d, D | Float | Double-precision float, native format
- * f, F | Float | Single-precision float, native format
- * E | Float | Double-precision float, little-endian byte order
- * e | Float | Single-precision float, little-endian byte order
- * G | Float | Double-precision float, network (big-endian) byte order
- * g | Float | Single-precision float, network (big-endian) byte order
+ * D, d | Float | double-precision float, native format
+ * F, f | Float | single-precision float, native format
+ * E | Float | double-precision float, little-endian byte order
+ * e | Float | single-precision float, little-endian byte order
+ * G | Float | double-precision float, network (big-endian) byte order
+ * g | Float | single-precision float, network (big-endian) byte order
*
* String | |
* Directive | Returns | Meaning
@@ -1277,14 +1277,14 @@ infected_str_new(const char *ptr, long len, VALUE str)
* Z | String | null-terminated string
* B | String | bit string (MSB first)
* b | String | bit string (LSB first)
- * H | String | Hex string (high nibble first)
- * h | String | Hex string (low nibble first)
+ * H | String | hex string (high nibble first)
+ * h | String | hex string (low nibble first)
* u | String | UU-encoded string
* M | String | quoted-printable, MIME encoding (see RFC2045)
- * m | String | base64-encoded (RFC 2045) (default)
- * | | base64-encoded (RFC 4648) if followed by 0
- * P | String | Pointer to a structure (fixed-length string)
- * p | String | Pointer to a null-terminated string
+ * m | String | base64 encoded string (RFC 2045) (default)
+ * | | base64 encoded string (RFC 4648) if followed by 0
+ * P | String | pointer to a structure (fixed-length string)
+ * p | String | pointer to a null-terminated string
*
* Misc. | |
* Directive | Returns | Meaning
r.rb (show_limit): show dots only when printing to a ttyNobuyoshi Nakada 2019-06-19* remove trailing spaces, expand tabs.git 2019-06-19Show thread and fiber limits as part of bootstrap tests.Samuel Williams 2019-01-17support btest on older ruby.ko1 * bootstraptest/runner.rb (assert_normal_exit): check MJIT first to support btest with ruby ~2.5. btest (bootstraptest) should be enable to run with stable ruby interpreter because modified ruby may not able to run runner.rb and we need to know why (this is why we introduce btest). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2018-12-27delete emacs mode lines [ci skip]shyouhei These settings are now covered by .dir-locals.el. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2018-12-12bootstraptest/runner.rb: increase timeout for --jit-waitk0kubun because test_io.rb:33 randomly fails http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/1519055 checking MJIT.enabled? on driver might not make sense for target, but as long as the CI is -DMJIT_FORCE_ENABLE, I believe it works for now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2018-11-20Simply treat IO::WaitReadable just like Errno::EAGAINusa git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e 2018-11-20revert r65820 and retry assert_finishk0kubun From: MSP-Greg <greg.mpls@gmail.com> https://github.com/ruby/ruby/commit/5187ea768f57315e61486122d688f1992d4cb21f git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e