[PATCH RFC v2 1/1] Initial support for Lua scripting
    Dmitry V. Levin 
    ldv at altlinux.org
       
    Tue Jun 20 01:25:23 UTC 2017
    
    
  
On Fri, Jun 16, 2017 at 05:50:37PM +0300, Victor Krapivensky wrote:
[...]
> +CONTENT(
>  typedef struct sysent {
>  	unsigned nargs;
>  	int	sys_flags;
>  	int	sen;
> +)
> +/* We don't want to expose sys_func to LuaJIT */
> +#ifdef FFI_CDEF
> +CONTENT(
> +	char	priv[sizeof(int(*)())];
I think you can use "void *priv;" here.
> +)
> +#else
> +CONTENT(
>  	int	(*sys_func)();
> +)
> +#endif
-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20170620/ab2c8778/attachment.bin>
    
    
More information about the Strace-devel
mailing list