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 | 495032ce8330765bf8066156af2680d105f39d6c (patch) | |
tree | 37dfb60dbee97de6c587f9cf0ca4e099d6f0cb1e | |
parent | 5f1ce22ddc423726501725c729b1b818ba20df80 (diff) | |
download | ruby-495032ce8330765bf8066156af2680d105f39d6c.tar.gz ruby-495032ce8330765bf8066156af2680d105f39d6c.tar.xz ruby-495032ce8330765bf8066156af2680d105f39d6c.zip |
Correct the description about type specifiers.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 51da92c49..893bd21d7 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. |