1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Correct the description about type specifiers.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ttate 2003-01-11 17:28:59 +00:00
parent 3074716cad
commit 81dded0d17

View file

@ -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 prototype represents the type of return value, and remaining elements represent
the type of each argument. the type of each argument.
C : a character (char) C : char
c : a pointer to a character (char *) c : char *
H : a short integer (short) H : short
h : a pointer to a short integer (short *) h : short *
I : an integer (char, short, int) I : int
i : a pointer to an integer (char *, short *, int *) i : int *
L : a long integer (long) L : long
l : a pointer to a long integer (long *) l : long *
F : a real (float) F : float
f : a pointer to a real (float *) f : float *
D : a real (double) D : double
d : a pointer to a real (double *) d : double *
S : an immutable string (const char *) S : const char *
s : a mutable string (char *) s : char *
A : an array (const type[]) A : const type[]
a : a mutable array (type[]) a : type[] (allocates new memory space)
P : a pointer (void *) P : void * (same as 'p')
p : a mutable object (void *) p : void * (same as 'P')
0 : void function (this must be a first character of the prototype) 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. the cbtype consists of type specifiers 0, C, I, H, L, F, D, S and P.