diff options
author | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-11 17:28:59 +0000 |
---|---|---|
committer | ttate <ttate@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-01-11 17:28:59 +0000 |
commit | 81dded0d178d0c6d9b251da5a1ee132f2e1449b4 (patch) | |
tree | 37dfb60dbee97de6c587f9cf0ca4e099d6f0cb1e /ext/dl/doc/dl.txt | |
parent | 3074716cadfffd28432f5bb6a6eef4762555efb8 (diff) | |
download | ruby-81dded0d178d0c6d9b251da5a1ee132f2e1449b4.tar.gz |
Correct the description about type specifiers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/doc/dl.txt')
-rw-r--r-- | ext/dl/doc/dl.txt | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/ext/dl/doc/dl.txt b/ext/dl/doc/dl.txt index 51da92c49d..893bd21d79 100644 --- a/ext/dl/doc/dl.txt +++ b/ext/dl/doc/dl.txt @@ -235,24 +235,24 @@ the prototype consists of the following type specifiers, first element of prototype represents the type of return value, and remaining elements represent the type of each argument. - C : a character (char) - c : a pointer to a character (char *) - H : a short integer (short) - h : a pointer to a short integer (short *) - I : an integer (char, short, int) - i : a pointer to an integer (char *, short *, int *) - L : a long integer (long) - l : a pointer to a long integer (long *) - F : a real (float) - f : a pointer to a real (float *) - D : a real (double) - d : a pointer to a real (double *) - S : an immutable string (const char *) - s : a mutable string (char *) - A : an array (const type[]) - a : a mutable array (type[]) - P : a pointer (void *) - p : a mutable object (void *) + C : char + c : char * + H : short + h : short * + I : int + i : int * + L : long + l : long * + F : float + f : float * + D : double + d : double * + S : const char * + s : char * + A : const type[] + a : type[] (allocates new memory space) + P : void * (same as 'p') + p : void * (same as 'P') 0 : void function (this must be a first character of the prototype) the cbtype consists of type specifiers 0, C, I, H, L, F, D, S and P. |