lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame^] | 1 | # This sed script massages native_client/src/untrusted/irt/irt.h into |
| 2 | # the nacl-irt.h used to build libc, by rewriting foo_t and struct bar |
| 3 | # to nacl_abi_foo_t and nacl_abi_bar_t (and eliding forward declarations). |
| 4 | # It doesn't perturb any struct CamelCaps cases, since such names will |
| 5 | # be used only in NaCl-specific interfaces. |
| 6 | /^struct \([a-z][a-z]*\);$/d |
| 7 | /^#include "irt\.h"$/d |
| 8 | /(/!b |
| 9 | s/\([a-z0-9_][a-z0-9_]*\)_t\>/nacl_abi_\1_t/g |
| 10 | s/struct \([a-z0-9_][a-z0-9_]*\)/nacl_abi_\1_t/g |
| 11 | s/nacl_abi_\(u*int[3264ptr]*_t\)/\1/g |
| 12 | s/nacl_abi_\(nacl_irt_\)/\1/g |