bionic/libc/kernel/arch-mips/asm
Elliott Hughes 40596aa005 Make cpp.py less braindead.
The old code ignored operator precedence (!), despite having two tables
of operator precedence. The code's still pretty awful, but I've cleaned
it up enough to fix this, the most important bug.

This patch lets us correctly clean the uapi unistd.h, stat.h, and swab.h files,
and also fixes the mess we were already making of various old kernel
header files. I've added a bunch more tests, fixed the existing tests that
the existing script was already failing (!), and changed the script so that
the tests are run every time the script is run.

We can probably remove some of the old kernel header files that we were
parsing incorrectly, but we can worry about that later.

Bug: 11253477
Change-Id: Ie66c65b3a7ae13b4e98ed8038a6a534f06eae0e5
2013-11-06 12:04:48 -08:00
..
dec Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
fw/arc [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
ip32 Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
lasat Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
mach-au1x00 Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
mach-generic [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
mach-ip22 [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
mips-boards Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
pci Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
sgi Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
sibyte Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
sn Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
vr41xx Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
xtalk [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
a.out.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
addrspace.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
asm.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
atomic.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
auxvec.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
barrier.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
bitops.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
bootinfo.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
bug.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
byteorder.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
cache.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
cachectl.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
cacheflush.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
cacheops.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
checksum.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
cmpxchg.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
compiler.h Make cpp.py less braindead. 2013-11-06 12:04:48 -08:00
cpu-features.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
cpu-info.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
cpu.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
cputime.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
current.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
debug.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
delay.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
device.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
div64.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
dma-mapping.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
dma.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
ds1286.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
dsp.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
errno.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
fcntl.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
fixmap.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
floppy.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
fpregdef.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
gt64120.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
hardirq.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
hazards.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
hw_irq.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
i8253.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
i8259.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
ide.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
io.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
ioctl.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
ioctls.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
ipcbuf.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
irq_gt641xx.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
irq_regs.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
irq.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
jazz.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
jazzdma.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
kdebug.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
kmap_types.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
linkage.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
local.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
mc146818rtc.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
mips_mt.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
mipsmtregs.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
mipsregs.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
mman.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
mmu.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
mmzone.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
module.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
msgbuf.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
mutex.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
param.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
percpu.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
pgalloc.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
pgtable-32.h Add the cleaned kernel headers 2012-09-24 12:33:57 -07:00
pgtable-bits.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
pgtable.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
poll.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
posix_types.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
prefetch.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
processor.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
ptrace.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
reg.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
regdef.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
resource.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
scatterlist.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
sections.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
segment.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
sembuf.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
setup.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
sgiarcs.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
sgidefs.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
shmbuf.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
shmparam.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
sigcontext.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
siginfo.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
signal.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
smp-ops.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
smp.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
socket.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
sockios.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
stat.h Add functionlity to the scripts to replace tokens in kernel headers 2013-01-17 14:39:09 -08:00
statfs.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
string.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
sysmips.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
system.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
termbits.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
termios.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
thread_info.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
timex.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
tlb.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
tlbflush.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
topology.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
txx9irq.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
types.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
uaccess.h [MIPS] Add CONFIG_32BIT to kernel_default_arch_macros for MIPS. 2012-09-21 17:14:05 -07:00
ucontext.h bionic: add clean kernel header ucontext.h 2012-05-14 01:42:12 +08:00
unaligned.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
unistd.h Clean up trailing whitespace in the kernel headers. 2013-01-30 10:13:07 -08:00
user.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
vga.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00
war.h [MIPS] Clean Kernel headers are generated by running 2012-03-27 11:38:00 -07:00