Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

little beauty flaw P25 #27

Open
DiagProf opened this issue May 26, 2020 · 2 comments
Open

little beauty flaw P25 #27

DiagProf opened this issue May 26, 2020 · 2 comments

Comments

@DiagProf
Copy link

Space between * and malloc

//here it is without
The C declaration of such function reads as follows (from the libc manual):
void *malloc( size_t size );

//and here with
To create a uFFI binding to it, we only need to copy-paste the declaration as
follows:
FFITutorial class >> malloc: aSize [
^ self ffiCall: #( void * malloc ( size_t aSize ) ) library: LibC
]

//that led me to the assumption that a space must be inserted for in case of Pointer-Marshalling
//I know better now, of course, but it was my first thought. :-)

@bencoman
Copy link

hi DiagProf,
Thanks for taking the time to log an issue to improve the documentation.
Now a PR would be even better :)
(I'm not too familiar with the book and its not clear where in the book you are referencing. A PR would put it more in context and be easier to action.)
cheers -ben

@DiagProf
Copy link
Author

Hi Pen,
yes you are right, only P25 is maybe a bit short. :-)
I mean page 25 in PDF. Under the headline "Obtaining an ExternalAddress" .
cheers digprof

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants