diff options
author | Aaron Sokoloski <aaron@mustardsystems.com> | 2016-01-20 07:09:19 -0600 |
---|---|---|
committer | Aaron Sokoloski <aaron@mustardsystems.com> | 2016-01-20 07:12:56 -0600 |
commit | cbc0fce343b4e23361e8e2ad8b8ab13eeff85766 (patch) | |
tree | 11b8500fc66366b89e0bef917a9ddaa0ec54caf3 /utils | |
parent | bf6aa16944ed88d6b9135a8b185e1bc31ad4c30b (diff) | |
download | pycparser-cbc0fce343b4e23361e8e2ad8b8ab13eeff85766.tar.gz |
Problem: can't parse code from https://github.com/zeromq/malamute
Solution: more fake headers and some typedefs from asm-generic/int-ll64.h
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fake_libc_include/_fake_typedefs.h | 8 | ||||
-rw-r--r-- | utils/fake_libc_include/asm-generic/int-ll64.h | 2 | ||||
-rw-r--r-- | utils/fake_libc_include/linux/socket.h | 2 |
3 files changed, 12 insertions, 0 deletions
diff --git a/utils/fake_libc_include/_fake_typedefs.h b/utils/fake_libc_include/_fake_typedefs.h index 8c8d463..1455321 100644 --- a/utils/fake_libc_include/_fake_typedefs.h +++ b/utils/fake_libc_include/_fake_typedefs.h @@ -16,6 +16,14 @@ typedef int __int64_t; typedef int __uint64_t; typedef int __int_least32_t; typedef int __uint_least32_t; +typedef int __s8; +typedef int __u8; +typedef int __s16; +typedef int __u16; +typedef int __s32; +typedef int __u32; +typedef int __s64; +typedef int __u64; typedef int _LOCK_T; typedef int _LOCK_RECURSIVE_T; typedef int _off_t; diff --git a/utils/fake_libc_include/asm-generic/int-ll64.h b/utils/fake_libc_include/asm-generic/int-ll64.h new file mode 100644 index 0000000..f952c1d --- /dev/null +++ b/utils/fake_libc_include/asm-generic/int-ll64.h @@ -0,0 +1,2 @@ +#include "_fake_defines.h" +#include "_fake_typedefs.h" diff --git a/utils/fake_libc_include/linux/socket.h b/utils/fake_libc_include/linux/socket.h new file mode 100644 index 0000000..f952c1d --- /dev/null +++ b/utils/fake_libc_include/linux/socket.h @@ -0,0 +1,2 @@ +#include "_fake_defines.h" +#include "_fake_typedefs.h" |