9:16:05flip214I'm trying to use CFFI. I need to allocate a pointer (done via (cffi:with-foreign-object (x :pointer))), and then need to pass the _address_ of that pointer to a function.
9:16:23flip214I can't find a function to get me the address of the SAP, though...
9:16:46flip214Do I need to check the foreign function declaration to make it pass the address of the SAP on?
9:32:22phoeflip214: you don't get it yet. a pointer to a pointer *is* a pointer.
9:32:55phoe*that* is the pointer that you want to create and pass. the "outer" one.
9:33:56phoeforget about C types for a moment. all in all, you are not allocating "pointers to pointers". you're allocatiing size_t bytes of raw memory, and that's what your function actually expects.
9:38:29beachIt would help if you used the right terminology.
9:38:45beachA pointer is just a value, like an integer is a value.
9:38:54flip214I know about the low-level implications. I just don't know or even _where_ to tell CFFI that it needs to pass the "object" (as in the address of the allocated memory range) versus it needs to pass the _content_ (the size_t bytes in that object that now contain the address to some memory)
9:39:01beachSo you can't take the address of a pointer, just like you can't take the address of an integer.