summaryrefslogtreecommitdiff
path: root/libc/kernel/tools/clean_header.py
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2010-12-08 11:39:05 +0100
committerMartin Storsjo <martin@martin.st>2010-12-08 11:41:37 +0100
commitc9205dba43c45dc5a185aa26e1160c3f62e9b471 (patch)
treefdc369cc402eacf20c904fc278bd376af94b1f87 /libc/kernel/tools/clean_header.py
parentd32c8052fc2b2d3c5da344eb673df35d4a5bc052 (diff)
Replace all occurrances of asm with __asm__ in the output headers
asm() conflicts with userland code compiled with -std=c99, the userland libc should only use __asm__() instead. Therefore, this transformation has to be applied to all exported headers. This only changes arch-arm/asm/byteorder.h. Change-Id: I1cf88c37201c3a91668d387293a18885c316d53c
Diffstat (limited to 'libc/kernel/tools/clean_header.py')
-rwxr-xr-xlibc/kernel/tools/clean_header.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/kernel/tools/clean_header.py b/libc/kernel/tools/clean_header.py
index 28cb05ec5..dad91206e 100755
--- a/libc/kernel/tools/clean_header.py
+++ b/libc/kernel/tools/clean_header.py
@@ -71,6 +71,7 @@ def cleanupFile( path ):
list.removeEmptyLines()
list.removeMacroDefines( kernel_ignored_macros )
list.insertDisclaimer( kernel.kernel_disclaimer )
+ list.replaceTokens( kernel_token_replacements )
out = StringOutput()
list.write(out)