Switch kernel header parsing to python libclang
Replace the tokenizer in cpp.py with libclang. Bug: 18937958 Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d
This commit is contained in:
@@ -22,23 +22,23 @@
|
||||
#define SI_LOAD_SHIFT 16
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
struct sysinfo {
|
||||
__kernel_long_t uptime;
|
||||
__kernel_ulong_t loads[3];
|
||||
__kernel_ulong_t totalram;
|
||||
__kernel_long_t uptime;
|
||||
__kernel_ulong_t loads[3];
|
||||
__kernel_ulong_t totalram;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__kernel_ulong_t freeram;
|
||||
__kernel_ulong_t sharedram;
|
||||
__kernel_ulong_t bufferram;
|
||||
__kernel_ulong_t totalswap;
|
||||
__kernel_ulong_t freeram;
|
||||
__kernel_ulong_t sharedram;
|
||||
__kernel_ulong_t bufferram;
|
||||
__kernel_ulong_t totalswap;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__kernel_ulong_t freeswap;
|
||||
__u16 procs;
|
||||
__u16 pad;
|
||||
__kernel_ulong_t totalhigh;
|
||||
__kernel_ulong_t freeswap;
|
||||
__u16 procs;
|
||||
__u16 pad;
|
||||
__kernel_ulong_t totalhigh;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__kernel_ulong_t freehigh;
|
||||
__u32 mem_unit;
|
||||
char _f[20-2*sizeof(__kernel_ulong_t)-sizeof(__u32)];
|
||||
__kernel_ulong_t freehigh;
|
||||
__u32 mem_unit;
|
||||
char _f[20 - 2 * sizeof(__kernel_ulong_t) - sizeof(__u32)];
|
||||
};
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user