mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
types: typedef long_u as uintptr_t #961
As discussed here: https://github.com/neovim/neovim/pull/941/files#r15026398
This commit is contained in:

committed by
Justin M. Keyes

parent
953d61cbf8
commit
1b932cbfec
@@ -13,10 +13,10 @@
|
|||||||
// dummy to pass an ACL to a function
|
// dummy to pass an ACL to a function
|
||||||
typedef void *vim_acl_T;
|
typedef void *vim_acl_T;
|
||||||
|
|
||||||
// Make sure long_u is big enough to hold a pointer.
|
// According to the vanilla Vim docs, long_u needs to be big enough to hold
|
||||||
// On Win64, longs are 32 bits and pointers are 64 bits.
|
// a pointer for the platform. On C99, this is easy to do with the uintptr_t
|
||||||
// For printf() and scanf(), we need to take care of long_u specifically.
|
// type in lieu of the platform-specific typedefs that existed before.
|
||||||
typedef unsigned long long_u;
|
typedef uintptr_t long_u;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Shorthand for unsigned variables. Many systems, but not all, have u_char
|
* Shorthand for unsigned variables. Many systems, but not all, have u_char
|
||||||
|
Reference in New Issue
Block a user